Compare commits

...

410 Commits
7.3.0 ... 7.5.0

Author SHA1 Message Date
0e818c8d73 Version bump 2022-09-22 09:21:04 +01:00
401de9147c Merge pull request #1668 from dolanmiu/dependabot/npm_and_yarn/ts-loader-9.4.1
build(deps-dev): bump ts-loader from 9.3.1 to 9.4.1
2022-09-22 09:13:23 +01:00
563e10fa92 Merge pull request #1667 from dolanmiu/dependabot/npm_and_yarn/cspell-6.10.1
build(deps-dev): bump cspell from 6.9.0 to 6.10.1
2022-09-22 09:13:15 +01:00
a22c34d8c2 Merge pull request #1666 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.23.15
build(deps-dev): bump typedoc from 0.23.14 to 0.23.15
2022-09-22 09:13:06 +01:00
e549f8ae61 Merge pull request #1662 from dolanmiu/feat/tslint-to-eslint
TSLint to ESLint
2022-09-22 09:12:55 +01:00
0ac23d0646 Add tests and bump coverage 2022-09-22 07:19:14 +01:00
814d3892f2 build(deps-dev): bump ts-loader from 9.3.1 to 9.4.1
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 9.3.1 to 9.4.1.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.3.1...9.4.1)

---
updated-dependencies:
- dependency-name: ts-loader
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-21 11:01:46 +00:00
07d1306a35 build(deps-dev): bump cspell from 6.9.0 to 6.10.1
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.9.0 to 6.10.1.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.9.0...v6.10.1)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-20 11:01:13 +00:00
5950055cca Fix linting and add new lint rules 2022-09-19 20:48:50 +01:00
d6dd468e84 build(deps-dev): bump typedoc from 0.23.14 to 0.23.15
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.14 to 0.23.15.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.14...v0.23.15)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-19 11:01:38 +00:00
9a221a01ab Merge pull request #1663 from dolanmiu/dependabot/npm_and_yarn/cspell-6.9.0
build(deps-dev): bump cspell from 6.8.2 to 6.9.0
2022-09-17 02:22:26 +01:00
2a78a29b08 build(deps-dev): bump cspell from 6.8.2 to 6.9.0
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.8.2 to 6.9.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.8.2...v6.9.0)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-16 11:00:59 +00: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
5d6d52a465 Merge pull request #1661 from dolanmiu/feat/is-legal-numbering
#1660 Add w:isLgl
2022-09-15 13:18:00 +01:00
ebb3f8137e #1660 Add w:isLgl 2022-09-15 13:08:49 +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
9f729b3bb3 Merge pull request #1658 from dolanmiu/dependabot/npm_and_yarn/cspell-6.8.2
build(deps-dev): bump cspell from 6.8.1 to 6.8.2
2022-09-15 02:53:33 +01:00
2376fb5834 Merge pull request #1659 from dolanmiu/dependabot/npm_and_yarn/types/node-18.7.18
build(deps): bump @types/node from 18.7.16 to 18.7.18
2022-09-15 02:53:21 +01:00
0a1507599b build(deps): bump @types/node from 18.7.16 to 18.7.18
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.16 to 18.7.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-14 11:01:01 +00:00
42bb01c416 build(deps-dev): bump cspell from 6.8.1 to 6.8.2
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.8.1 to 6.8.2.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.8.1...v6.8.2)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-13 11:02:24 +00:00
cfb0ae7428 Merge pull request #1653 from dolanmiu/dependabot/npm_and_yarn/json-schema-0.4.0
build(deps): bump json-schema from 0.2.3 to 0.4.0
2022-09-11 05:33:31 +01:00
6b30f44da0 Merge pull request #1651 from dolanmiu/dependabot/npm_and_yarn/types/node-18.7.16
build(deps): bump @types/node from 18.7.13 to 18.7.16
2022-09-11 05:33:12 +01:00
a7f89ac58f Merge pull request #1650 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.23.14
build(deps-dev): bump typedoc from 0.23.11 to 0.23.14
2022-09-11 05:32:57 +01:00
38711f04bc build(deps): bump @types/node from 18.7.13 to 18.7.16
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.13 to 18.7.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-11 04:18:13 +00:00
78fd99c26e build(deps): bump json-schema from 0.2.3 to 0.4.0
Bumps [json-schema](https://github.com/kriszyp/json-schema) from 0.2.3 to 0.4.0.
- [Release notes](https://github.com/kriszyp/json-schema/releases)
- [Commits](https://github.com/kriszyp/json-schema/compare/v0.2.3...v0.4.0)

---
updated-dependencies:
- dependency-name: json-schema
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-11 04:17:47 +00:00
cae10d4611 Merge pull request #1648 from dolanmiu/dependabot/npm_and_yarn/types/prompt-1.1.3
build(deps-dev): bump @types/prompt from 1.1.2 to 1.1.3
2022-09-11 05:17:23 +01:00
40233dbf87 Merge pull request #1646 from dolanmiu/dependabot/npm_and_yarn/types/glob-8.0.0
build(deps-dev): bump @types/glob from 7.2.0 to 8.0.0
2022-09-11 05:17:12 +01:00
35865e46f0 build(deps-dev): bump typedoc from 0.23.11 to 0.23.14
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.11 to 0.23.14.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.11...v0.23.14)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-05 15:34:40 +00:00
ea565d8f71 build(deps-dev): bump @types/prompt from 1.1.2 to 1.1.3
Bumps [@types/prompt](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/prompt) from 1.1.2 to 1.1.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/prompt)

---
updated-dependencies:
- dependency-name: "@types/prompt"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-01 11:01:21 +00:00
859a3f4015 build(deps-dev): bump @types/glob from 7.2.0 to 8.0.0
Bumps [@types/glob](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/glob) from 7.2.0 to 8.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/glob)

---
updated-dependencies:
- dependency-name: "@types/glob"
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-31 11:01:19 +00:00
ebcb37cbed Fix ESLinting errors and remove TSLint 2022-08-31 08:59:27 +01:00
1bdf9a4987 Initial ESlint conversion 2022-08-31 07:52:27 +01:00
d7a9cb2168 Merge pull request #1640 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.23.11
build(deps-dev): bump typedoc from 0.23.10 to 0.23.11
2022-08-28 06:08:29 +01:00
8890e13ccb Merge pull request #1641 from dolanmiu/dependabot/npm_and_yarn/cspell-6.8.1
build(deps-dev): bump cspell from 6.8.0 to 6.8.1
2022-08-28 06:08:13 +01:00
87e1844f04 build(deps-dev): bump cspell from 6.8.0 to 6.8.1
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.8.0 to 6.8.1.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.8.0...v6.8.1)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 11:01:29 +00:00
388030c6ec build(deps-dev): bump typedoc from 0.23.10 to 0.23.11
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.10 to 0.23.11.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.10...v0.23.11)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-26 11:00:54 +00:00
d5bd407802 Merge pull request #1601 from AdaEniac/patch-3
Update hyperlink.ts
2022-08-25 01:54:31 +01:00
ba4dc2ed54 Fix formatting 2022-08-25 01:40:14 +01:00
c982e64996 formatting 2022-08-24 13:01:15 -05:00
0425939668 Merge pull request #1638 from dolanmiu/dependabot/npm_and_yarn/types/node-18.7.13
build(deps): bump @types/node from 18.7.11 to 18.7.13
2022-08-24 13:22:07 +01:00
48b804b765 build(deps): bump @types/node from 18.7.11 to 18.7.13
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.11 to 18.7.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-24 11:01:27 +00:00
246ae6e6bc Merge pull request #1637 from dolanmiu/dependabot/npm_and_yarn/types/node-18.7.11
build(deps): bump @types/node from 18.7.9 to 18.7.11
2022-08-24 02:36:11 +01:00
efa5b65e45 build(deps): bump @types/node from 18.7.9 to 18.7.11
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.9 to 18.7.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-23 11:00:56 +00:00
f4f6ee5055 Created toStream example 2022-08-22 15:26:52 -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
600fef21f6 Update webpack.config.ts for nodestreams
Without this alias, JSZip throws a "nodestream not supported on this platform" error.  This addition resolves the issue.
2022-08-22 13:24:12 -07:00
b779ee79a5 Merge pull request #1633 from Volper212/master
Add toString to Packer
2022-08-22 18:40:38 +01:00
08537944ae Merge pull request #1635 from dolanmiu/dependabot/npm_and_yarn/cspell-6.8.0
build(deps-dev): bump cspell from 6.6.1 to 6.8.0
2022-08-22 18:30:49 +01:00
004b3641eb Merge pull request #1634 from dolanmiu/dependabot/npm_and_yarn/types/node-18.7.9
build(deps): bump @types/node from 18.7.4 to 18.7.9
2022-08-22 18:30:40 +01:00
b6be05a931 Add test for Packer.toString 2022-08-22 19:08:29 +02:00
191cc071c2 build(deps-dev): bump cspell from 6.6.1 to 6.8.0
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.6.1 to 6.8.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.6.1...v6.8.0)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 11:01:11 +00:00
9e52c46ad3 build(deps): bump @types/node from 18.7.4 to 18.7.9
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.4 to 18.7.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-22 11:00:51 +00:00
21f7662a77 Add toString to Packer 2022-08-17 18:52:19 +02:00
d4d7f92df8 Merge pull request #1629 from dolanmiu/dependabot/npm_and_yarn/types/node-18.7.4
build(deps): bump @types/node from 18.7.2 to 18.7.4
2022-08-15 12:13:25 +01:00
a3180fd70d build(deps): bump @types/node from 18.7.2 to 18.7.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.2 to 18.7.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-15 11:01:06 +00:00
3dc4f8e87a Merge pull request #1626 from dolanmiu/dependabot/npm_and_yarn/types/node-18.7.2
build(deps): bump @types/node from 18.7.1 to 18.7.2
2022-08-15 11:21:47 +01:00
64393d92a5 build(deps): bump @types/node from 18.7.1 to 18.7.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.7.1 to 18.7.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-12 11:00:49 +00:00
1fbd405e41 Merge pull request #1625 from dolanmiu/dependabot/npm_and_yarn/cspell-6.6.1
build(deps-dev): bump cspell from 6.6.0 to 6.6.1
2022-08-12 00:42:24 +01:00
f711aa1b58 Merge pull request #1624 from dolanmiu/dependabot/npm_and_yarn/types/node-18.7.1
build(deps): bump @types/node from 18.6.5 to 18.7.1
2022-08-12 00:42:10 +01:00
e2e527ce44 build(deps-dev): bump cspell from 6.6.0 to 6.6.1
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.6.0 to 6.6.1.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.6.0...v6.6.1)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-11 11:02:44 +00:00
bb7f48c021 build(deps): bump @types/node from 18.6.5 to 18.7.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.6.5 to 18.7.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-11 11:02:08 +00:00
ad9b64e7ae Merge pull request #1620 from dolanmiu/dependabot/npm_and_yarn/cspell-6.6.0
build(deps-dev): bump cspell from 6.5.0 to 6.6.0
2022-08-11 04:11:38 +01:00
ef2ee6d00d Merge pull request #1621 from dolanmiu/dependabot/npm_and_yarn/tsconfig-paths-4.1.0
build(deps-dev): bump tsconfig-paths from 4.0.0 to 4.1.0
2022-08-11 04:11:27 +01:00
2d259c4edc Merge pull request #1623 from dolanmiu/dependabot/npm_and_yarn/types/node-18.6.5
build(deps): bump @types/node from 18.6.4 to 18.6.5
2022-08-11 04:11:16 +01:00
b286e3ae09 build(deps): bump @types/node from 18.6.4 to 18.6.5
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.6.4 to 18.6.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-09 11:00:59 +00:00
ec3e193672 build(deps-dev): bump tsconfig-paths from 4.0.0 to 4.1.0
Bumps [tsconfig-paths](https://github.com/dividab/tsconfig-paths) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/dividab/tsconfig-paths/releases)
- [Changelog](https://github.com/dividab/tsconfig-paths/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dividab/tsconfig-paths/compare/v4.0.0...v4.1.0)

---
updated-dependencies:
- dependency-name: tsconfig-paths
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-08 11:01:39 +00:00
40a2fcd81e build(deps-dev): bump cspell from 6.5.0 to 6.6.0
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.5.0 to 6.6.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.5.0...v6.6.0)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-08 11:01:22 +00:00
7e876bad7e Merge pull request #1617 from dolanmiu/dependabot/npm_and_yarn/types/node-18.6.4
build(deps): bump @types/node from 18.6.3 to 18.6.4
2022-08-05 22:44:28 +01:00
aefa3b102c build(deps): bump @types/node from 18.6.3 to 18.6.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.6.3 to 18.6.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-05 11:01:13 +00:00
4d1f295a26 Merge pull request #1616 from dolanmiu/dependabot/npm_and_yarn/jszip-3.10.1
build(deps): bump jszip from 3.10.0 to 3.10.1
2022-08-04 03:14:28 +01:00
56a31faf7e build(deps): bump jszip from 3.10.0 to 3.10.1
Bumps [jszip](https://github.com/Stuk/jszip) from 3.10.0 to 3.10.1.
- [Release notes](https://github.com/Stuk/jszip/releases)
- [Changelog](https://github.com/Stuk/jszip/blob/main/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/compare/v3.10.0...v3.10.1)

---
updated-dependencies:
- dependency-name: jszip
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-03 11:00:52 +00:00
f3afef01b0 Merge pull request #1612 from dolanmiu/dependabot/npm_and_yarn/tsconfig-paths-webpack-plugin-4.0.0
build(deps-dev): bump tsconfig-paths-webpack-plugin from 3.5.2 to 4.0.0
2022-08-03 01:55:48 +01:00
ea38655c48 Merge pull request #1610 from dolanmiu/dependabot/npm_and_yarn/types/node-18.6.3
build(deps): bump @types/node from 18.6.1 to 18.6.3
2022-08-03 01:55:39 +01:00
972d06b492 Merge pull request #1611 from dolanmiu/dependabot/npm_and_yarn/cspell-6.5.0
build(deps-dev): bump cspell from 6.4.2 to 6.5.0
2022-08-03 01:55:16 +01:00
8538489136 Merge pull request #1613 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.23.10
build(deps-dev): bump typedoc from 0.23.9 to 0.23.10
2022-08-03 01:55:06 +01:00
4f28464b99 build(deps-dev): bump typedoc from 0.23.9 to 0.23.10
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.9 to 0.23.10.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.9...v0.23.10)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 11:02:18 +00:00
049e111797 build(deps-dev): bump tsconfig-paths-webpack-plugin from 3.5.2 to 4.0.0
Bumps [tsconfig-paths-webpack-plugin](https://github.com/dividab/tsconfig-paths-webpack-plugin) from 3.5.2 to 4.0.0.
- [Release notes](https://github.com/dividab/tsconfig-paths-webpack-plugin/releases)
- [Changelog](https://github.com/dividab/tsconfig-paths-webpack-plugin/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dividab/tsconfig-paths-webpack-plugin/compare/v3.5.2...v4.0.0)

---
updated-dependencies:
- dependency-name: tsconfig-paths-webpack-plugin
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 11:01:57 +00:00
96199c4b12 build(deps-dev): bump cspell from 6.4.2 to 6.5.0
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.4.2 to 6.5.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.4.2...v6.5.0)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 11:01:36 +00:00
cf23789edf build(deps): bump @types/node from 18.6.1 to 18.6.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.6.1 to 18.6.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-01 11:01:08 +00:00
48724e5b08 Fix spelling 2022-07-31 15:23:06 +01:00
40c778d244 Add Carbon adverts 2022-07-29 00:29:54 +01:00
ff0c44ecfc Merge pull request #1606 from dolanmiu/dependabot/npm_and_yarn/cspell-6.4.2
build(deps-dev): bump cspell from 6.4.1 to 6.4.2
2022-07-26 23:39:51 +01:00
828cc15ea3 build(deps-dev): bump cspell from 6.4.1 to 6.4.2
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.4.1 to 6.4.2.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.4.1...v6.4.2)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-26 11:01:24 +00:00
bbbe55b706 Merge pull request #1602 from dolanmiu/dependabot/npm_and_yarn/types/node-18.6.1
build(deps): bump @types/node from 18.0.6 to 18.6.1
2022-07-25 18:29:16 +01:00
cd98bdec9b Merge pull request #1603 from dolanmiu/dependabot/npm_and_yarn/cspell-6.4.1
build(deps-dev): bump cspell from 6.4.0 to 6.4.1
2022-07-25 18:29:08 +01:00
59767bddfe Merge pull request #1604 from dolanmiu/dependabot/npm_and_yarn/webpack-5.74.0
build(deps-dev): bump webpack from 5.73.0 to 5.74.0
2022-07-25 18:28:55 +01:00
035ae40b97 Merge pull request #1605 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.23.9
build(deps-dev): bump typedoc from 0.23.8 to 0.23.9
2022-07-25 18:28:47 +01:00
f7603bfdfc build(deps-dev): bump typedoc from 0.23.8 to 0.23.9
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.8 to 0.23.9.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.8...v0.23.9)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 11:11:30 +00:00
754201a9a2 build(deps-dev): bump webpack from 5.73.0 to 5.74.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.73.0 to 5.74.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.73.0...v5.74.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 11:11:00 +00:00
d0af7e4781 build(deps-dev): bump cspell from 6.4.0 to 6.4.1
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.4.0 to 6.4.1.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.4.0...v6.4.1)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 11:10:40 +00:00
ecf0bf8cdd build(deps): bump @types/node from 18.0.6 to 18.6.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.0.6 to 18.6.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-25 11:10:18 +00:00
85bafb3eef Update hyperlink.ts
ExternalHyperlink extends XmlComponent
2022-07-23 15:03:04 +08:00
efe378e94f Merge pull request #1600 from dolanmiu/dependabot/npm_and_yarn/terser-5.14.2
build(deps): bump terser from 5.13.1 to 5.14.2
2022-07-21 03:25:10 +01:00
614cb74d47 build(deps): bump terser from 5.13.1 to 5.14.2
Bumps [terser](https://github.com/terser/terser) from 5.13.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

---
updated-dependencies:
- dependency-name: terser
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-21 02:17:11 +00:00
df4190321e Merge pull request #1598 from dolanmiu/dependabot/npm_and_yarn/types/sinon-10.0.13
build(deps-dev): bump @types/sinon from 10.0.12 to 10.0.13
2022-07-21 03:16:43 +01:00
56c3574a2b Merge pull request #1599 from dolanmiu/dependabot/npm_and_yarn/cspell-6.4.0
build(deps-dev): bump cspell from 6.3.0 to 6.4.0
2022-07-21 03:16:36 +01:00
51b11c7035 build(deps-dev): bump cspell from 6.3.0 to 6.4.0
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.3.0 to 6.4.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.3.0...v6.4.0)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 11:01:32 +00:00
564693cf22 build(deps-dev): bump @types/sinon from 10.0.12 to 10.0.13
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.12 to 10.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-20 11:01:05 +00:00
50a6bed92f Merge pull request #1595 from dolanmiu/dependabot/npm_and_yarn/types/node-18.0.6
build(deps): bump @types/node from 18.0.4 to 18.0.6
2022-07-19 01:55:25 +01:00
ef54b3cf2e Merge pull request #1596 from dolanmiu/dependabot/npm_and_yarn/cspell-6.3.0
build(deps-dev): bump cspell from 6.2.3 to 6.3.0
2022-07-19 01:55:20 +01:00
ebf06250b1 Merge pull request #1597 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.23.8
build(deps-dev): bump typedoc from 0.23.7 to 0.23.8
2022-07-19 01:54:54 +01:00
56f9c22ac6 build(deps-dev): bump typedoc from 0.23.7 to 0.23.8
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.7 to 0.23.8.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.7...v0.23.8)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 11:06:40 +00:00
384242974b build(deps-dev): bump cspell from 6.2.3 to 6.3.0
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.2.3 to 6.3.0.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.2.3...v6.3.0)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 11:06:11 +00:00
7717d95cab build(deps): bump @types/node from 18.0.4 to 18.0.6
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.0.4 to 18.0.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-18 11:05:26 +00:00
5b69a32c11 Merge pull request #1593 from dolanmiu/dependabot/npm_and_yarn/types/node-18.0.4
build(deps): bump @types/node from 18.0.3 to 18.0.4
2022-07-16 05:18:30 +01:00
24abf51c8c Merge pull request #1594 from dolanmiu/dependabot/npm_and_yarn/ts-node-10.9.1
build(deps-dev): bump ts-node from 10.8.2 to 10.9.1
2022-07-16 05:18:23 +01:00
80c5092dc1 build(deps-dev): bump ts-node from 10.8.2 to 10.9.1
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.8.2 to 10.9.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.8.2...v10.9.1)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-14 11:01:18 +00:00
15ffa4d98b build(deps): bump @types/node from 18.0.3 to 18.0.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.0.3 to 18.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-14 11:00:53 +00:00
4935878f73 Version bump 2022-07-12 18:34:01 +01:00
440782e9cf Merge pull request #1589 from dolanmiu/feat/1583-fix-comments-missing
#1583 Comments to always write default data
2022-07-12 18:33:13 +01:00
f304220463 Merge pull request #1585 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.23.7
build(deps-dev): bump typedoc from 0.23.6 to 0.23.7
2022-07-12 18:16:45 +01:00
02a5aaf5d8 Bump coverage threshold 2022-07-12 18:14:20 +01:00
e84641c13c #1583 Add more tests to media data 2022-07-12 18:11:44 +01:00
278b6b6a20 Merge pull request #1590 from dolanmiu/feat/1584-fix-test-names
#1584 Fix test names
2022-07-12 17:30:25 +01:00
d369c0a74c Fix footnotes demo 2022-07-12 17:29:09 +01:00
ab9f97598c #1584 Fix test names 2022-07-12 17:10:37 +01:00
2814841226 Update demo 43 with images 2022-07-12 17:08:12 +01:00
a7d55a52f3 #1583 Comments to always write default data 2022-07-12 16:57:25 +01:00
d436b7b339 build(deps-dev): bump typedoc from 0.23.6 to 0.23.7
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.6 to 0.23.7.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.6...v0.23.7)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-11 11:01:30 +00:00
f183d38bb3 Merge pull request #1579 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.23.6
build(deps-dev): bump typedoc from 0.23.5 to 0.23.6
2022-07-08 18:19:59 +01:00
2353b36709 Merge pull request #1577 from dolanmiu/feat/cspell-actions
Add cspell to actions
2022-07-08 18:19:51 +01:00
00db6e7dc1 Merge pull request #1580 from dolanmiu/dependabot/npm_and_yarn/cspell-6.2.3
build(deps-dev): bump cspell from 6.2.2 to 6.2.3
2022-07-08 18:19:39 +01:00
eb479c4684 Merge pull request #1582 from khill-fbmc/patch-1
Update _sidebar.md
2022-07-08 18:19:28 +01:00
68413605e9 Update _sidebar.md
Correct me if I am wrong, but like this? To fix #1581
2022-07-08 06:03:49 -07:00
02bd5d71d0 build(deps-dev): bump cspell from 6.2.2 to 6.2.3
Bumps [cspell](https://github.com/streetsidesoftware/cspell) from 6.2.2 to 6.2.3.
- [Release notes](https://github.com/streetsidesoftware/cspell/releases)
- [Changelog](https://github.com/streetsidesoftware/cspell/blob/main/CHANGELOG.md)
- [Commits](https://github.com/streetsidesoftware/cspell/compare/v6.2.2...v6.2.3)

---
updated-dependencies:
- dependency-name: cspell
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 11:01:26 +00:00
97a851a848 build(deps-dev): bump typedoc from 0.23.5 to 0.23.6
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.5 to 0.23.6.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.5...v0.23.6)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-08 11:01:02 +00:00
f503794e09 Merge pull request #1572 from dolanmiu/dependabot/npm_and_yarn/ts-node-10.8.2
build(deps-dev): bump ts-node from 10.8.1 to 10.8.2
2022-07-06 16:54:04 +01:00
d0ee5fa23a Merge pull request #1575 from dolanmiu/dependabot/npm_and_yarn/types/node-18.0.3
build(deps): bump @types/node from 18.0.0 to 18.0.3
2022-07-06 16:53:51 +01:00
0ccf0f8d7a Merge pull request #1570 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.23.5
build(deps-dev): bump typedoc from 0.23.2 to 0.23.5
2022-07-06 16:44:44 +01:00
719f7c8f9e Add cspell to actions 2022-07-06 16:43:58 +01:00
828e30a248 build(deps-dev): bump typedoc from 0.23.2 to 0.23.5
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.23.2 to 0.23.5.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.23.2...v0.23.5)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-06 15:34:56 +00:00
6beb7208af build(deps): bump @types/node from 18.0.0 to 18.0.3
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 18.0.0 to 18.0.3.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-06 15:34:55 +00:00
2d342a2415 build(deps-dev): bump ts-node from 10.8.1 to 10.8.2
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.8.1 to 10.8.2.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.8.1...v10.8.2)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-06 15:34:30 +00:00
a2017fc353 Merge pull request #1574 from wvbe/master
docs: Fix property name accuracy in describing paragraph borders
2022-07-06 16:34:30 +01:00
709c3d9b55 Merge pull request #1563 from khill-fbmc/extension-req
Recommend to install `Code Spell Checker` Extension
2022-07-06 16:33:52 +01:00
950867d032 Merge pull request #1576 from dolanmiu/feat/cspell
Feat/cspell
2022-07-06 16:33:24 +01:00
65caa531c5 Improve spelling and prettier commands 2022-07-06 15:26:17 +01:00
64addc85ee Fix all spelling across the project 2022-07-06 14:05:37 +01:00
aa02261248 docs: Fix property name accuracy in describing paragraph borders 2022-07-06 11:51:10 +02:00
6d447033c9 Fix more spelling rules 2022-07-05 05:06:32 +01:00
c888f589d0 Introduce CSpell 2022-07-04 14:51:36 +01:00
bb6eb87313 Version bump 2022-07-04 03:03:36 +01:00
813143237b Merge pull request #1567 from dolanmiu/dependabot/npm_and_yarn/types/sinon-10.0.12
build(deps-dev): bump @types/sinon from 10.0.11 to 10.0.12
2022-06-30 21:32:26 +01:00
91c149caf8 Merge pull request #1566 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.23.2
build(deps-dev): bump typedoc from 0.22.17 to 0.23.2
2022-06-30 21:32:17 +01:00
3e619e47b2 Merge pull request #1564 from dolanmiu/feat/improve-alias
Improve import alias
2022-06-30 21:32:06 +01:00
3c03281b78 build(deps-dev): bump @types/sinon from 10.0.11 to 10.0.12
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.11 to 10.0.12.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-29 11:01:00 +00:00
1d0c43e45d build(deps-dev): bump typedoc from 0.22.17 to 0.23.2
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.22.17 to 0.23.2.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.17...v0.23.2)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-28 11:01:35 +00:00
982d923553 Improve import alias
@file/ and @export/ instead of file/ and export/ etc
2022-06-26 23:26:42 +01:00
4697d774f4 Since I saw some cSpell definitions in the settings, why not also recommend to install the extension? 2022-06-26 06:42:36 -07:00
c19bc6b4b3 Merge pull request #1562 from GiladFeder/patch-1
removed "both" as a verticalAlign feature
2022-06-25 13:27:39 +01:00
9c15cb55c8 Merge pull request #1561 from dolanmiu/dependabot/npm_and_yarn/ts-loader-9.3.1
build(deps-dev): bump ts-loader from 9.3.0 to 9.3.1
2022-06-25 13:22:25 +01:00
73b974ddb2 Merge pull request #1448 from chenyuncai/master
Implement sample version of Comment feature.
2022-06-25 13:21:22 +01:00
c38e70e25d Update tests 2022-06-25 13:08:20 +01:00
60096a94c9 removed "both" as a verticalAlign feature
fixes: https://github.com/dolanmiu/docx/issues/1514
2022-06-24 13:12:50 +03:00
c155f76550 build(deps-dev): bump ts-loader from 9.3.0 to 9.3.1
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 9.3.0 to 9.3.1.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.3.0...v9.3.1)

---
updated-dependencies:
- dependency-name: ts-loader
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-23 13:32:41 +00:00
9827ed30bb Write tests, improve API, create documentation 2022-06-22 23:35:46 +01:00
49054dae27 Merge pull request #1559 from dolanmiu/dependabot/npm_and_yarn/typescript-4.7.4
build(deps-dev): bump typescript from 4.7.3 to 4.7.4
2022-06-21 04:05:46 +01:00
46f1f78529 build(deps-dev): bump typescript from 4.7.3 to 4.7.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.3 to 4.7.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.3...v4.7.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-20 11:01:49 +00:00
5b7c62685d Export to My Document.docx 2022-06-19 13:12:59 +01:00
0acb9cf7a9 Format demo 2022-06-19 02:01:54 +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
291a650337 Merge pull request #1556 from dolanmiu/dependabot/npm_and_yarn/prettier-2.7.1
build(deps-dev): bump prettier from 2.7.0 to 2.7.1
2022-06-16 20:36:08 +01:00
9d4476b04a Merge pull request #1557 from dolanmiu/dependabot/npm_and_yarn/types/node-18.0.0
build(deps): bump @types/node from 17.0.43 to 18.0.0
2022-06-16 20:36:01 +01:00
871e0721b9 Merge pull request #1558 from dolanmiu/feat/numbering-on-header-footer
#1528 Adding numbering replacer on header and footer
2022-06-16 16:50:36 +01:00
f1ab24c439 #1528 Adding numbering replacer on header and footer 2022-06-16 16:31:34 +01:00
05c053a44d Merge pull request #1555 from dolanmiu/feat/improve-mocha-command
Use .mocharc.json
2022-06-16 12:42:46 +01:00
966a14b1b3 build(deps): bump @types/node from 17.0.43 to 18.0.0
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.43 to 18.0.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-16 11:01:29 +00:00
c00751d26a build(deps-dev): bump prettier from 2.7.0 to 2.7.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.7.0 to 2.7.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.7.0...2.7.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-16 11:01:09 +00:00
9fe329d542 Merge pull request #1549 from dolanmiu/dependabot/npm_and_yarn/webpack-cli-4.10.0
build(deps-dev): bump webpack-cli from 4.9.2 to 4.10.0
2022-06-15 13:50:11 +01:00
96f2e8acb5 Merge pull request #1553 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.43
build(deps): bump @types/node from 17.0.38 to 17.0.43
2022-06-15 13:37:01 +01:00
37dd51a119 build(deps): bump @types/node from 17.0.38 to 17.0.43
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.38 to 17.0.43.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15 11:01:03 +00:00
e962f0ab83 Use .mocharc.json 2022-06-15 11:16:02 +01:00
a7f17f91d6 build(deps-dev): bump webpack-cli from 4.9.2 to 4.10.0
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.9.2 to 4.10.0.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.2...webpack-cli@4.10.0)

---
updated-dependencies:
- dependency-name: webpack-cli
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-15 01:30:52 +00:00
20cdd25e70 Merge pull request #1551 from dolanmiu/dependabot/npm_and_yarn/prettier-2.7.0
build(deps-dev): bump prettier from 2.6.2 to 2.7.0
2022-06-15 02:19:28 +01:00
a79f839693 Merge pull request #1552 from dolanmiu/feat/word-break-asian
#1529 Add word break feature
2022-06-15 02:19:19 +01:00
c7b68a40e4 Add tests for get media data 2022-06-15 01:44:57 +01:00
f414b4ee9a #1529 Add word break feature 2022-06-15 00:07:12 +01:00
ea908d57b5 build(deps-dev): bump prettier from 2.6.2 to 2.7.0
Bumps [prettier](https://github.com/prettier/prettier) from 2.6.2 to 2.7.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.6.2...2.7.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-14 11:01:38 +00:00
bdbd15e7d9 Remove daviddm 2022-06-13 19:03:17 +01:00
00ae5a1a1f Force dependency install 2022-06-13 19:02:40 +01:00
48f7e15be9 Merge pull request #1545 from dolanmiu/dependabot/npm_and_yarn/ts-node-10.8.1
build(deps-dev): bump ts-node from 10.8.0 to 10.8.1
2022-06-10 19:35:22 +01:00
99d3a241a0 Merge pull request #1543 from dolanmiu/dependabot/npm_and_yarn/webpack-5.73.0
build(deps-dev): bump webpack from 5.72.1 to 5.73.0
2022-06-10 19:35:14 +01:00
eea9643d7e Merge pull request #1542 from dolanmiu/dependabot/npm_and_yarn/typescript-4.7.3
build(deps-dev): bump typescript from 4.7.2 to 4.7.3
2022-06-10 19:35:06 +01:00
d66f79e7b3 build(deps-dev): bump ts-node from 10.8.0 to 10.8.1
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.8.0 to 10.8.1.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.8.0...v10.8.1)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 11:03:08 +00:00
a5193b18d8 build(deps-dev): bump webpack from 5.72.1 to 5.73.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.72.1 to 5.73.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.72.1...v5.73.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 11:02:06 +00:00
ec408c2dea build(deps-dev): bump typescript from 4.7.2 to 4.7.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.2 to 4.7.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.2...v4.7.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-06 11:01:32 +00:00
cb79c616ee Update lock file 2022-06-06 00:37:14 +01:00
c7d9be597f Merge pull request #1539 from dolanmiu/dependabot/npm_and_yarn/webpack-5.73.0
build(deps-dev): bump webpack from 5.72.1 to 5.73.0
2022-06-06 00:32:37 +01:00
c77542195e Merge pull request #1537 from dolanmiu/dependabot/npm_and_yarn/typescript-4.7.2
build(deps-dev): bump typescript from 4.6.4 to 4.7.2
2022-06-06 00:32:24 +01:00
824f5d6396 Update lockfile 2022-06-06 00:06:18 +01:00
0b2235793b build(deps-dev): bump webpack from 5.72.1 to 5.73.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.72.1 to 5.73.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.72.1...v5.73.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-03 11:01:34 +00:00
559b92a8f9 build(deps-dev): bump typescript from 4.6.4 to 4.7.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.4 to 4.7.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.4...v4.7.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-02 11:01:22 +00:00
8c7c373097 Merge pull request #1534 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.38
build(deps): bump @types/node from 17.0.35 to 17.0.38
2022-06-01 15:25:39 +01:00
52f1392cc2 Merge pull request #1531 from dolanmiu/dependabot/npm_and_yarn/replace-in-file-6.3.5
build(deps-dev): bump replace-in-file from 6.3.3 to 6.3.5
2022-06-01 15:25:32 +01:00
c21cc6c3e9 Merge pull request #1535 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.22.17
build(deps-dev): bump typedoc from 0.22.15 to 0.22.17
2022-06-01 15:25:25 +01:00
5cba27b482 build(deps-dev): bump typedoc from 0.22.15 to 0.22.17
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.22.15 to 0.22.17.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.15...v0.22.17)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-01 11:34:56 +00:00
4fe8a2aa9d build(deps): bump @types/node from 17.0.35 to 17.0.38
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.35 to 17.0.38.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-01 11:34:04 +00:00
27b3884e4d build(deps-dev): bump replace-in-file from 6.3.3 to 6.3.5
Bumps [replace-in-file](https://github.com/adamreisnz/replace-in-file) from 6.3.3 to 6.3.5.
- [Release notes](https://github.com/adamreisnz/replace-in-file/releases)
- [Changelog](https://github.com/adamreisnz/replace-in-file/blob/main/CHANGELOG.md)
- [Commits](https://github.com/adamreisnz/replace-in-file/compare/v6.3.3...v6.3.5)

---
updated-dependencies:
- dependency-name: replace-in-file
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-30 11:01:10 +00:00
b54ff84adb Merge pull request #1527 from dolanmiu/dependabot/npm_and_yarn/jszip-3.10.0
build(deps): bump jszip from 3.9.1 to 3.10.0
2022-05-30 09:08:19 +01:00
8e8d09bbda Merge pull request #1530 from dolanmiu/dependabot/npm_and_yarn/replace-in-file-6.3.3
build(deps-dev): bump replace-in-file from 6.3.2 to 6.3.3
2022-05-30 09:07:35 +01:00
0f78442cca Merge pull request #1526 from dolanmiu/dependabot/npm_and_yarn/ts-node-10.8.0
build(deps-dev): bump ts-node from 10.7.0 to 10.8.0
2022-05-30 09:07:29 +01:00
9578c4ba33 build(deps-dev): bump replace-in-file from 6.3.2 to 6.3.3
Bumps [replace-in-file](https://github.com/adamreisnz/replace-in-file) from 6.3.2 to 6.3.3.
- [Release notes](https://github.com/adamreisnz/replace-in-file/releases)
- [Changelog](https://github.com/adamreisnz/replace-in-file/blob/main/CHANGELOG.md)
- [Commits](https://github.com/adamreisnz/replace-in-file/compare/v6.3.2...v6.3.3)

---
updated-dependencies:
- dependency-name: replace-in-file
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-26 11:03:16 +00:00
9431f7b34e Merge pull request #1523 from wmbutler/patch-1
Improve documentation
2022-05-24 00:12:10 +01:00
460d4888eb build(deps): bump jszip from 3.9.1 to 3.10.0
Bumps [jszip](https://github.com/Stuk/jszip) from 3.9.1 to 3.10.0.
- [Release notes](https://github.com/Stuk/jszip/releases)
- [Changelog](https://github.com/Stuk/jszip/blob/main/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/compare/v3.9.1...v3.10.0)

---
updated-dependencies:
- dependency-name: jszip
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 11:01:40 +00:00
c8b183f057 build(deps-dev): bump ts-node from 10.7.0 to 10.8.0
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.7.0 to 10.8.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.7.0...v10.8.0)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-23 11:01:25 +00:00
27b0169e5f Merge pull request #1525 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.35
build(deps): bump @types/node from 17.0.34 to 17.0.35
2022-05-22 16:30:11 +01:00
e47d8846a4 build(deps): bump @types/node from 17.0.34 to 17.0.35
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.34 to 17.0.35.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-20 11:01:13 +00:00
4f846f2a4a Improve documentation
Add clarity to specifying Different First page
2022-05-19 16:25:11 -04:00
2246c625ce Merge pull request #1519 from dolanmiu/dependabot/npm_and_yarn/glob-8.0.3
build(deps-dev): bump glob from 8.0.2 to 8.0.3
2022-05-18 10:58:12 +01:00
4e97012466 Merge pull request #1520 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.34
build(deps): bump @types/node from 17.0.33 to 17.0.34
2022-05-18 10:58:04 +01:00
b7c0ad2d84 build(deps): bump @types/node from 17.0.33 to 17.0.34
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.33 to 17.0.34.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-17 11:01:19 +00:00
065977af37 build(deps-dev): bump glob from 8.0.2 to 8.0.3
Bumps [glob](https://github.com/isaacs/node-glob) from 8.0.2 to 8.0.3.
- [Release notes](https://github.com/isaacs/node-glob/releases)
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v8.0.2...v8.0.3)

---
updated-dependencies:
- dependency-name: glob
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-16 11:01:21 +00:00
2882c9aee2 Merge pull request #1511 from dolanmiu/dependabot/npm_and_yarn/webpack-5.72.1
build(deps-dev): bump webpack from 5.72.0 to 5.72.1
2022-05-14 17:10:59 +01:00
96ad7c5886 Merge pull request #1509 from dolanmiu/dependabot/npm_and_yarn/sinon-14.0.0
build(deps-dev): bump sinon from 13.0.2 to 14.0.0
2022-05-14 17:10:46 +01:00
c41b208ecb Merge pull request #1515 from dolanmiu/dependabot/npm_and_yarn/glob-8.0.2
build(deps-dev): bump glob from 8.0.1 to 8.0.2
2022-05-14 17:10:40 +01:00
5f446a1f39 Merge pull request #1516 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.33
build(deps): bump @types/node from 17.0.31 to 17.0.33
2022-05-14 17:10:31 +01:00
62223f3053 build(deps): bump @types/node from 17.0.31 to 17.0.33
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.31 to 17.0.33.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 11:01:40 +00:00
ce80a592de build(deps-dev): bump glob from 8.0.1 to 8.0.2
Bumps [glob](https://github.com/isaacs/node-glob) from 8.0.1 to 8.0.2.
- [Release notes](https://github.com/isaacs/node-glob/releases)
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v8.0.1...v8.0.2)

---
updated-dependencies:
- dependency-name: glob
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-13 11:01:26 +00:00
4e002ff342 build(deps-dev): bump webpack from 5.72.0 to 5.72.1
Bumps [webpack](https://github.com/webpack/webpack) from 5.72.0 to 5.72.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.72.0...v5.72.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-10 11:02:02 +00:00
9260fcb450 build(deps-dev): bump sinon from 13.0.2 to 14.0.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 13.0.2 to 14.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v13.0.2...v14.0.0)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-09 11:02:25 +00:00
19b4f87ec1 Merge pull request #1503 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.31
build(deps): bump @types/node from 17.0.29 to 17.0.31
2022-05-06 17:26:07 +01:00
2a9607b5b4 Merge pull request #1498 from dolanmiu/dependabot/npm_and_yarn/typescript-4.6.4
build(deps-dev): bump typescript from 4.6.3 to 4.6.4
2022-05-06 17:26:00 +01:00
0bc3fe0617 Merge pull request #1501 from dolanmiu/dependabot/npm_and_yarn/ts-loader-9.3.0
build(deps-dev): bump ts-loader from 9.2.9 to 9.3.0
2022-05-06 17:25:54 +01:00
375818b496 Merge pull request #1502 from dolanmiu/dependabot/npm_and_yarn/mocha-10.0.0
build(deps-dev): bump mocha from 9.2.2 to 10.0.0
2022-05-06 17:25:48 +01:00
98d82248df Merge pull request #1504 from dolanmiu/dependabot/npm_and_yarn/tsconfig-paths-4.0.0
build(deps-dev): bump tsconfig-paths from 3.14.1 to 4.0.0
2022-05-06 17:25:41 +01:00
d22263293f Merge pull request #1505 from dolanmiu/dependabot/npm_and_yarn/nanoid-3.3.4
build(deps): bump nanoid from 3.3.3 to 3.3.4
2022-05-06 17:25:34 +01:00
dbf7157ac6 build(deps): bump nanoid from 3.3.3 to 3.3.4
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.3 to 3.3.4.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.3...3.3.4)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 11:01:58 +00:00
dbd8d98223 build(deps-dev): bump tsconfig-paths from 3.14.1 to 4.0.0
Bumps [tsconfig-paths](https://github.com/dividab/tsconfig-paths) from 3.14.1 to 4.0.0.
- [Release notes](https://github.com/dividab/tsconfig-paths/releases)
- [Changelog](https://github.com/dividab/tsconfig-paths/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dividab/tsconfig-paths/compare/v3.14.1...v4.0.0)

---
updated-dependencies:
- dependency-name: tsconfig-paths
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-03 11:01:38 +00:00
aedaa98ecf build(deps): bump @types/node from 17.0.29 to 17.0.31
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.29 to 17.0.31.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 11:01:58 +00:00
252878dd74 build(deps-dev): bump mocha from 9.2.2 to 10.0.0
Bumps [mocha](https://github.com/mochajs/mocha) from 9.2.2 to 10.0.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.2...v10.0.0)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 11:01:40 +00:00
2dc7fa7fda build(deps-dev): bump ts-loader from 9.2.9 to 9.3.0
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 9.2.9 to 9.3.0.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.2.9...v9.3.0)

---
updated-dependencies:
- dependency-name: ts-loader
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-05-02 11:01:22 +00:00
d50c00b8e4 build(deps-dev): bump typescript from 4.6.3 to 4.6.4
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.3 to 4.6.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.3...v4.6.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-29 11:02:45 +00:00
aef9c9883d Merge pull request #1495 from dolanmiu/dependabot/npm_and_yarn/ts-loader-9.2.9
build(deps-dev): bump ts-loader from 9.2.8 to 9.2.9
2022-04-29 02:02:01 +01:00
cf825676d3 Merge pull request #1496 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.29
build(deps): bump @types/node from 17.0.25 to 17.0.29
2022-04-29 02:01:54 +01:00
af56f33b83 build(deps): bump @types/node from 17.0.25 to 17.0.29
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.25 to 17.0.29.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-27 11:01:42 +00:00
512cded8aa build(deps-dev): bump ts-loader from 9.2.8 to 9.2.9
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 9.2.8 to 9.2.9.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.2.8...v9.2.9)

---
updated-dependencies:
- dependency-name: ts-loader
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-27 11:01:22 +00:00
4af9e2545f Merge pull request #1491 from dolanmiu/feat/fix-frame-option-type
#1487 Create union type for IFrameOptions
2022-04-25 10:04:28 +01:00
7ea0917b90 Merge pull request #1492 from dolanmiu/dependabot/npm_and_yarn/types/mocha-9.1.1
build(deps-dev): bump @types/mocha from 9.1.0 to 9.1.1
2022-04-22 17:44:16 +01:00
6ed9059c34 build(deps-dev): bump @types/mocha from 9.1.0 to 9.1.1
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 9.1.0 to 9.1.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

---
updated-dependencies:
- dependency-name: "@types/mocha"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-22 11:01:31 +00:00
33ec69bc17 Merge pull request #1488 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.25
build(deps): bump @types/node from 17.0.24 to 17.0.25
2022-04-22 02:15:09 +01:00
f07ce0bbf4 #1487 Fix tests 2022-04-21 21:35:56 +01:00
d2f9816714 #1487 Create union type for IFrameOptions 2022-04-21 21:27:01 +01:00
58305b5970 build(deps): bump @types/node from 17.0.24 to 17.0.25
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.24 to 17.0.25.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-19 11:01:28 +00:00
0b0a185fef Merge pull request #1485 from dolanmiu/dependabot/npm_and_yarn/nanoid-3.3.3
build(deps): bump nanoid from 3.3.2 to 3.3.3
2022-04-19 01:58:59 +01:00
d9743c2fa8 build(deps): bump nanoid from 3.3.2 to 3.3.3
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.2 to 3.3.3.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.2...3.3.3)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-18 11:01:24 +00:00
71b7c22aa8 Merge pull request #1476 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.22.15
build(deps-dev): bump typedoc from 0.22.14 to 0.22.15
2022-04-16 21:04:43 +01:00
2237b7d687 Merge pull request #1478 from dolanmiu/dependabot/npm_and_yarn/glob-8.0.1
build(deps-dev): bump glob from 7.2.0 to 8.0.1
2022-04-16 21:04:37 +01:00
435fe309bd Merge pull request #1479 from dolanmiu/dependabot/npm_and_yarn/prompt-1.3.0
build(deps-dev): bump prompt from 1.2.2 to 1.3.0
2022-04-16 21:04:29 +01:00
464002a03b Merge pull request #1481 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.24
build(deps): bump @types/node from 17.0.23 to 17.0.24
2022-04-16 21:04:22 +01:00
fe7e7f4085 Merge pull request #1482 from dolanmiu/dependabot/npm_and_yarn/sinon-13.0.2
build(deps-dev): bump sinon from 13.0.1 to 13.0.2
2022-04-16 21:04:16 +01:00
5a0c42a351 Merge pull request #1483 from dolanmiu/dependabot/npm_and_yarn/types/chai-4.3.1
build(deps-dev): bump @types/chai from 4.3.0 to 4.3.1
2022-04-16 21:04:08 +01:00
fe3a299b32 build(deps-dev): bump @types/chai from 4.3.0 to 4.3.1
Bumps [@types/chai](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/chai) from 4.3.0 to 4.3.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/chai)

---
updated-dependencies:
- dependency-name: "@types/chai"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 11:01:47 +00:00
8712c0f2e0 build(deps-dev): bump sinon from 13.0.1 to 13.0.2
Bumps [sinon](https://github.com/sinonjs/sinon) from 13.0.1 to 13.0.2.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/main/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v13.0.1...v13.0.2)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 11:01:34 +00:00
c495035da0 build(deps): bump @types/node from 17.0.23 to 17.0.24
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.23 to 17.0.24.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-14 11:01:15 +00:00
0286749ffc build(deps-dev): bump prompt from 1.2.2 to 1.3.0
Bumps [prompt](https://github.com/flatiron/prompt) from 1.2.2 to 1.3.0.
- [Release notes](https://github.com/flatiron/prompt/releases)
- [Changelog](https://github.com/flatiron/prompt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/flatiron/prompt/commits)

---
updated-dependencies:
- dependency-name: prompt
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-12 13:28:38 +00:00
54b43c76e1 build(deps-dev): bump glob from 7.2.0 to 8.0.1
Bumps [glob](https://github.com/isaacs/node-glob) from 7.2.0 to 8.0.1.
- [Release notes](https://github.com/isaacs/node-glob/releases)
- [Changelog](https://github.com/isaacs/node-glob/blob/main/changelog.md)
- [Commits](https://github.com/isaacs/node-glob/compare/v7.2.0...v8.0.1)

---
updated-dependencies:
- dependency-name: glob
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-12 13:28:21 +00:00
0ffe150fdc build(deps-dev): bump typedoc from 0.22.14 to 0.22.15
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.22.14 to 0.22.15.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.14...v0.22.15)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-11 11:01:24 +00:00
e630c694b3 Merge pull request #1472 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.22.14
build(deps-dev): bump typedoc from 0.22.13 to 0.22.14
2022-04-11 11:36:51 +01:00
853219dca5 Merge pull request #1471 from dolanmiu/dependabot/npm_and_yarn/jszip-3.9.1
build(deps): bump jszip from 3.8.0 to 3.9.1
2022-04-11 11:36:41 +01:00
63a5e25e42 Merge pull request #1474 from dolanmiu/dependabot/npm_and_yarn/webpack-5.72.0
build(deps-dev): bump webpack from 5.71.0 to 5.72.0
2022-04-11 11:36:20 +01:00
0fe51ffcb2 build(deps-dev): bump webpack from 5.71.0 to 5.72.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.71.0 to 5.72.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.71.0...v5.72.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-08 11:01:18 +00:00
b8a750aa64 build(deps-dev): bump typedoc from 0.22.13 to 0.22.14
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.22.13 to 0.22.14.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.13...v0.22.14)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-07 11:01:33 +00:00
26dfed5853 build(deps): bump jszip from 3.8.0 to 3.9.1
Bumps [jszip](https://github.com/Stuk/jszip) from 3.8.0 to 3.9.1.
- [Release notes](https://github.com/Stuk/jszip/releases)
- [Changelog](https://github.com/Stuk/jszip/blob/main/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/compare/v3.8.0...v3.9.1)

---
updated-dependencies:
- dependency-name: jszip
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-07 11:01:16 +00:00
259b428d2d Merge pull request #1469 from dolanmiu/dependabot/npm_and_yarn/prettier-2.6.2
build(deps-dev): bump prettier from 2.6.1 to 2.6.2
2022-04-05 15:12:07 +01:00
29dd14933e Merge pull request #1468 from dolanmiu/dependabot/npm_and_yarn/webpack-5.71.0
build(deps-dev): bump webpack from 5.70.0 to 5.71.0
2022-04-05 15:12:00 +01:00
98013466be build(deps-dev): bump prettier from 2.6.1 to 2.6.2
Bumps [prettier](https://github.com/prettier/prettier) from 2.6.1 to 2.6.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.6.1...2.6.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 11:01:32 +00:00
27dd0a6ede build(deps-dev): bump webpack from 5.70.0 to 5.71.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.70.0 to 5.71.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.70.0...v5.71.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-04 11:01:11 +00:00
e40deff1b5 Merge pull request #1467 from dolanmiu/dependabot/npm_and_yarn/jszip-3.8.0
build(deps): bump jszip from 3.7.1 to 3.8.0
2022-04-01 15:21:56 +01:00
6f4b70b7ed build(deps): bump jszip from 3.7.1 to 3.8.0
Bumps [jszip](https://github.com/Stuk/jszip) from 3.7.1 to 3.8.0.
- [Release notes](https://github.com/Stuk/jszip/releases)
- [Changelog](https://github.com/Stuk/jszip/blob/master/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/commits)

---
updated-dependencies:
- dependency-name: jszip
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-31 11:01:13 +00:00
6bf962a670 Merge pull request #1462 from dolanmiu/dependabot/npm_and_yarn/typescript-4.6.3
build(deps-dev): bump typescript from 4.6.2 to 4.6.3
2022-03-30 15:36:20 +01:00
896f6b5000 Merge pull request #1463 from dolanmiu/dependabot/npm_and_yarn/prettier-2.6.1
build(deps-dev): bump prettier from 2.6.0 to 2.6.1
2022-03-30 15:36:11 +01:00
8011c54631 Merge pull request #1465 from dolanmiu/dependabot/npm_and_yarn/nanoid-3.3.2
build(deps): bump nanoid from 3.3.1 to 3.3.2
2022-03-30 15:35:59 +01:00
591e9b0be0 build(deps): bump nanoid from 3.3.1 to 3.3.2
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.1...3.3.2)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-28 11:01:24 +00:00
b6f6bb0894 build(deps-dev): bump prettier from 2.6.0 to 2.6.1
Bumps [prettier](https://github.com/prettier/prettier) from 2.6.0 to 2.6.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.6.0...2.6.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 11:01:36 +00:00
d14f343481 build(deps-dev): bump typescript from 4.6.2 to 4.6.3
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.2 to 4.6.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.2...v4.6.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-25 11:01:23 +00:00
afc50719ce Merge pull request #1460 from dolanmiu/dependabot/npm_and_yarn/minimist-1.2.6
build(deps): bump minimist from 1.2.5 to 1.2.6
2022-03-24 11:13:52 +00:00
257b3f075d Merge pull request #1461 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.23
build(deps): bump @types/node from 17.0.22 to 17.0.23
2022-03-24 11:13:15 +00:00
1973597eb2 build(deps): bump @types/node from 17.0.22 to 17.0.23
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.22 to 17.0.23.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-24 11:01:31 +00:00
a87ecc2c99 build(deps): bump minimist from 1.2.5 to 1.2.6
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-23 21:14:49 +00:00
a4eeb5782e Merge pull request #1459 from dolanmiu/dependabot/npm_and_yarn/tsconfig-paths-3.14.1
build(deps-dev): bump tsconfig-paths from 3.14.0 to 3.14.1
2022-03-23 20:53:11 +00:00
36f537144a build(deps-dev): bump tsconfig-paths from 3.14.0 to 3.14.1
Bumps [tsconfig-paths](https://github.com/dividab/tsconfig-paths) from 3.14.0 to 3.14.1.
- [Release notes](https://github.com/dividab/tsconfig-paths/releases)
- [Changelog](https://github.com/dividab/tsconfig-paths/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dividab/tsconfig-paths/compare/v3.14.0...v3.14.1)

---
updated-dependencies:
- dependency-name: tsconfig-paths
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-23 11:28:52 +00:00
ad047110b4 Merge pull request #1458 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.22
build(deps): bump @types/node from 17.0.21 to 17.0.22
2022-03-23 01:18:32 +00:00
32ac881d3d build(deps): bump @types/node from 17.0.21 to 17.0.22
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.21 to 17.0.22.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-22 11:01:11 +00:00
5fba4d8e76 Merge pull request #1451 from dolanmiu/dependabot/npm_and_yarn/tsconfig-paths-3.14.0
build(deps-dev): bump tsconfig-paths from 3.13.0 to 3.14.0
2022-03-19 10:38:34 +00:00
d836231737 Merge pull request #1452 from dolanmiu/dependabot/npm_and_yarn/docsify-cli-4.4.4
build(deps-dev): bump docsify-cli from 4.4.3 to 4.4.4
2022-03-19 10:38:28 +00:00
bfcacc16a2 Merge pull request #1454 from dolanmiu/dependabot/npm_and_yarn/prettier-2.6.0
build(deps-dev): bump prettier from 2.5.1 to 2.6.0
2022-03-19 10:38:21 +00:00
862d04f4d5 build(deps-dev): bump prettier from 2.5.1 to 2.6.0
Bumps [prettier](https://github.com/prettier/prettier) from 2.5.1 to 2.6.0.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.5.1...2.6.0)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-16 11:53:25 +00:00
d1699482bf Merge pull request #1453 from dolanmiu/dependabot/npm_and_yarn/mocha-9.2.2
build(deps-dev): bump mocha from 9.2.1 to 9.2.2
2022-03-15 17:28:12 +00:00
622289ce2c build(deps-dev): bump mocha from 9.2.1 to 9.2.2
Bumps [mocha](https://github.com/mochajs/mocha) from 9.2.1 to 9.2.2.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.1...v9.2.2)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 11:02:51 +00:00
0859026fcc build(deps-dev): bump docsify-cli from 4.4.3 to 4.4.4
Bumps [docsify-cli](https://github.com/docsifyjs/docsify-cli) from 4.4.3 to 4.4.4.
- [Release notes](https://github.com/docsifyjs/docsify-cli/releases)
- [Changelog](https://github.com/docsifyjs/docsify-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/docsifyjs/docsify-cli/compare/v4.4.3...v4.4.4)

---
updated-dependencies:
- dependency-name: docsify-cli
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 11:02:35 +00:00
c19c55d2c2 build(deps-dev): bump tsconfig-paths from 3.13.0 to 3.14.0
Bumps [tsconfig-paths](https://github.com/dividab/tsconfig-paths) from 3.13.0 to 3.14.0.
- [Release notes](https://github.com/dividab/tsconfig-paths/releases)
- [Changelog](https://github.com/dividab/tsconfig-paths/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dividab/tsconfig-paths/compare/v3.13.0...v3.14.0)

---
updated-dependencies:
- dependency-name: tsconfig-paths
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-14 11:02:18 +00:00
f21b1bc85b Merge remote-tracking branch 'github.com/master' 2022-03-14 13:27:23 +08:00
9ba31e8c3c Merge pull request #1450 from dolanmiu/dependabot/npm_and_yarn/ts-loader-9.2.8
build(deps-dev): bump ts-loader from 9.2.7 to 9.2.8
2022-03-13 15:05:41 +00:00
fe71e59524 Merge pull request #1449 from dolanmiu/dependabot/npm_and_yarn/typescript-4.6.2
build(deps-dev): bump typescript from 4.5.5 to 4.6.2
2022-03-13 15:05:35 +00:00
ddd85688ce Merge pull request #1446 from dolanmiu/dependabot/npm_and_yarn/ts-node-10.7.0
build(deps-dev): bump ts-node from 10.6.0 to 10.7.0
2022-03-13 15:05:28 +00:00
6ca91e78db build(deps-dev): bump ts-loader from 9.2.7 to 9.2.8
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 9.2.7 to 9.2.8.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.2.7...v9.2.8)

---
updated-dependencies:
- dependency-name: ts-loader
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-11 11:01:16 +00:00
0008090360 build(deps-dev): bump typescript from 4.5.5 to 4.6.2
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.5 to 4.6.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.5...v4.6.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-10 11:01:37 +00:00
8cf779d5b8 Merge pull request #1447 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.22.13 2022-03-10 07:33:26 +00:00
b81086ab7a feat: transfer comments property to File CoreProperties like numbering. 2022-03-07 20:02:14 +08:00
6b2eab89d8 build(deps-dev): bump typedoc from 0.22.12 to 0.22.13
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.22.12 to 0.22.13.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.12...v0.22.13)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 11:01:55 +00:00
3cf4eb7b48 build(deps-dev): bump ts-node from 10.6.0 to 10.7.0
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.6.0 to 10.7.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.6.0...v10.7.0)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-07 11:01:17 +00:00
fd44b3b649 Merge pull request #1437 from dolanmiu/dependabot/npm_and_yarn/ts-loader-9.2.7
Bump ts-loader from 9.2.6 to 9.2.7
2022-03-04 16:38:36 +00:00
ce4eaec827 Merge pull request #1438 from dolanmiu/dependabot/npm_and_yarn/ts-node-10.6.0
Bump ts-node from 10.5.0 to 10.6.0
2022-03-04 16:38:29 +00:00
456e424d4d Merge pull request #1444 from dolanmiu/dependabot/npm_and_yarn/webpack-5.70.0
Bump webpack from 5.69.1 to 5.70.0
2022-03-04 16:38:20 +00:00
2f3b6a2753 Merge pull request #1445 from dolanmiu/dependabot/npm_and_yarn/tsconfig-paths-3.13.0
Bump tsconfig-paths from 3.12.0 to 3.13.0
2022-03-04 16:38:12 +00:00
c49a0225d7 Bump tsconfig-paths from 3.12.0 to 3.13.0
Bumps [tsconfig-paths](https://github.com/dividab/tsconfig-paths) from 3.12.0 to 3.13.0.
- [Release notes](https://github.com/dividab/tsconfig-paths/releases)
- [Changelog](https://github.com/dividab/tsconfig-paths/blob/master/CHANGELOG.md)
- [Commits](https://github.com/dividab/tsconfig-paths/compare/v3.12.0...v3.13.0)

---
updated-dependencies:
- dependency-name: tsconfig-paths
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-04 11:01:38 +00:00
c1e47885e0 Bump webpack from 5.69.1 to 5.70.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.69.1 to 5.70.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.69.1...v5.70.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-04 11:01:21 +00:00
b2a09b512f implement sample version of Comment feature. 2022-03-03 09:59:09 +08:00
75bf33d64e Bump ts-node from 10.5.0 to 10.6.0
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.5.0 to 10.6.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.5.0...v10.6.0)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 11:01:43 +00:00
33b44c1612 Bump ts-loader from 9.2.6 to 9.2.7
Bumps [ts-loader](https://github.com/TypeStrong/ts-loader) from 9.2.6 to 9.2.7.
- [Release notes](https://github.com/TypeStrong/ts-loader/releases)
- [Changelog](https://github.com/TypeStrong/ts-loader/blob/main/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/ts-loader/compare/v9.2.6...v9.2.7)

---
updated-dependencies:
- dependency-name: ts-loader
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-03-02 11:01:30 +00:00
dc7f199345 Merge pull request #1433 from dolanmiu/dependabot/npm_and_yarn/prismjs-1.27.0
Bump prismjs from 1.25.0 to 1.27.0
2022-02-28 17:23:07 +00:00
bf77d76a75 Bump prismjs from 1.25.0 to 1.27.0
Bumps [prismjs](https://github.com/PrismJS/prism) from 1.25.0 to 1.27.0.
- [Release notes](https://github.com/PrismJS/prism/releases)
- [Changelog](https://github.com/PrismJS/prism/blob/master/CHANGELOG.md)
- [Commits](https://github.com/PrismJS/prism/compare/v1.25.0...v1.27.0)

---
updated-dependencies:
- dependency-name: prismjs
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-26 01:45:13 +00:00
26bdca5f30 Merge pull request #1432 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.21
Bump @types/node from 17.0.19 to 17.0.21
2022-02-24 14:21:44 +00:00
491b774dd9 Bump @types/node from 17.0.19 to 17.0.21
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.19 to 17.0.21.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-24 11:01:21 +00:00
65e004f0c1 Merge pull request #1427 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.19
Bump @types/node from 17.0.18 to 17.0.19
2022-02-22 10:26:13 +00:00
8348db2067 Merge pull request #1428 from dolanmiu/dependabot/npm_and_yarn/mocha-9.2.1
Bump mocha from 9.2.0 to 9.2.1
2022-02-22 10:26:05 +00:00
5dfe811a46 Merge pull request #1429 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.22.12
Bump typedoc from 0.22.11 to 0.22.12
2022-02-22 10:25:56 +00:00
10f76962dd Bump typedoc from 0.22.11 to 0.22.12
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.22.11 to 0.22.12.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.11...v0.22.12)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 11:01:58 +00:00
6377bb2d81 Bump mocha from 9.2.0 to 9.2.1
Bumps [mocha](https://github.com/mochajs/mocha) from 9.2.0 to 9.2.1.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.2.0...v9.2.1)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 11:01:41 +00:00
a012896665 Bump @types/node from 17.0.18 to 17.0.19
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.18 to 17.0.19.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-21 11:01:24 +00:00
8c5859aacd Merge pull request #1424 from dolanmiu/dependabot/npm_and_yarn/prompt-1.2.2
Bump prompt from 1.2.1 to 1.2.2
2022-02-18 21:24:28 +00:00
cf267cc84a Merge pull request #1425 from dolanmiu/dependabot/npm_and_yarn/webpack-5.69.1
Bump webpack from 5.69.0 to 5.69.1
2022-02-18 21:24:19 +00:00
578cc1530b Bump webpack from 5.69.0 to 5.69.1
Bumps [webpack](https://github.com/webpack/webpack) from 5.69.0 to 5.69.1.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.69.0...v5.69.1)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-18 11:01:55 +00:00
516658ad56 Bump prompt from 1.2.1 to 1.2.2
Bumps [prompt](https://github.com/flatiron/prompt) from 1.2.1 to 1.2.2.
- [Release notes](https://github.com/flatiron/prompt/releases)
- [Changelog](https://github.com/flatiron/prompt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/flatiron/prompt/commits)

---
updated-dependencies:
- dependency-name: prompt
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-18 11:01:36 +00:00
d37e78057c Merge pull request #1423 from dolanmiu/dependabot/npm_and_yarn/nanoid-3.3.1
Bump nanoid from 3.3.0 to 3.3.1
2022-02-17 20:29:11 +00:00
2eabf1aba8 Bump nanoid from 3.3.0 to 3.3.1
Bumps [nanoid](https://github.com/ai/nanoid) from 3.3.0 to 3.3.1.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.3.0...3.3.1)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-17 11:01:26 +00:00
67b4e48c74 Merge pull request #1422 from dolanmiu/dependabot/npm_and_yarn/webpack-5.69.0
Bump webpack from 5.68.0 to 5.69.0
2022-02-16 19:01:29 +00:00
2c0921c8e6 Bump webpack from 5.68.0 to 5.69.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.68.0 to 5.69.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.68.0...v5.69.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-16 11:01:16 +00:00
2642571cf9 Merge pull request #1421 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.18
Bump @types/node from 17.0.17 to 17.0.18
2022-02-16 01:31:07 +00:00
b14d657ad6 Merge pull request #1420 from dolanmiu/dependabot/npm_and_yarn/nanoid-3.3.0
Bump nanoid from 3.2.0 to 3.3.0
2022-02-16 01:30:59 +00:00
7d010f1186 Bump @types/node from 17.0.17 to 17.0.18
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.17 to 17.0.18.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-15 11:01:40 +00:00
dec9c3db49 Bump nanoid from 3.2.0 to 3.3.0
Bumps [nanoid](https://github.com/ai/nanoid) from 3.2.0 to 3.3.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.2.0...3.3.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-15 11:01:26 +00:00
326c4492d0 Merge pull request #1418 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.17
Bump @types/node from 17.0.16 to 17.0.17
2022-02-15 01:21:36 +00:00
b1270309c0 Bump @types/node from 17.0.16 to 17.0.17
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.16 to 17.0.17.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-10 11:32:31 +00:00
607e01925e Merge pull request #1410 from dolanmiu/dependabot/npm_and_yarn/ts-node-10.5.0
Bump ts-node from 10.4.0 to 10.5.0
2022-02-08 21:21:54 +00:00
700474f80d Merge pull request #1411 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.16
Bump @types/node from 17.0.14 to 17.0.16
2022-02-08 21:21:47 +00:00
37655b357f Merge pull request #1412 from dolanmiu/dependabot/npm_and_yarn/types/sinon-10.0.11
Bump @types/sinon from 10.0.10 to 10.0.11
2022-02-08 21:21:40 +00:00
3ae5b5d8d5 Bump @types/sinon from 10.0.10 to 10.0.11
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.10 to 10.0.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-08 11:01:57 +00:00
f7bd5ae327 Bump @types/node from 17.0.14 to 17.0.16
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.14 to 17.0.16.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-08 11:01:43 +00:00
d307ecbde0 Bump ts-node from 10.4.0 to 10.5.0
Bumps [ts-node](https://github.com/TypeStrong/ts-node) from 10.4.0 to 10.5.0.
- [Release notes](https://github.com/TypeStrong/ts-node/releases)
- [Commits](https://github.com/TypeStrong/ts-node/compare/v10.4.0...v10.5.0)

---
updated-dependencies:
- dependency-name: ts-node
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-08 11:01:17 +00:00
fa8d0bc9a6 Merge pull request #1406 from dolanmiu/dependabot/npm_and_yarn/sinon-13.0.1
Bump sinon from 13.0.0 to 13.0.1
2022-02-05 02:52:05 +00:00
b34b01e2da Merge pull request #1407 from dolanmiu/dependabot/npm_and_yarn/types/sinon-10.0.10
Bump @types/sinon from 10.0.9 to 10.0.10
2022-02-05 02:51:57 +00:00
b32d6645aa Bump @types/sinon from 10.0.9 to 10.0.10
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.9 to 10.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-03 11:01:30 +00:00
594861024d Bump sinon from 13.0.0 to 13.0.1
Bumps [sinon](https://github.com/sinonjs/sinon) from 13.0.0 to 13.0.1.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v13.0.0...v13.0.1)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-02 11:01:19 +00:00
22fd752afc Merge pull request #1404 from dolanmiu/dependabot/npm_and_yarn/webpack-5.68.0
Bump webpack from 5.67.0 to 5.68.0
2022-02-01 21:14:12 +00:00
5c57e61f84 Merge pull request #1405 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.14
Bump @types/node from 17.0.13 to 17.0.14
2022-02-01 21:14:06 +00:00
d3479b4e45 Bump @types/node from 17.0.13 to 17.0.14
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.13 to 17.0.14.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 11:01:49 +00:00
5eaeed2679 Bump webpack from 5.67.0 to 5.68.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.67.0 to 5.68.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.67.0...v5.68.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-01 11:01:27 +00:00
bea22bef53 Merge pull request #1403 from dolanmiu/dependabot/npm_and_yarn/sinon-13.0.0
Bump sinon from 12.0.1 to 13.0.0
2022-02-01 01:00:43 +00:00
06d055c37d Bump sinon from 12.0.1 to 13.0.0
Bumps [sinon](https://github.com/sinonjs/sinon) from 12.0.1 to 13.0.0.
- [Release notes](https://github.com/sinonjs/sinon/releases)
- [Changelog](https://github.com/sinonjs/sinon/blob/master/docs/changelog.md)
- [Commits](https://github.com/sinonjs/sinon/compare/v12.0.1...v13.0.0)

---
updated-dependencies:
- dependency-name: sinon
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-31 11:01:10 +00:00
009faac447 Merge pull request #1400 from dolanmiu/dependabot/npm_and_yarn/node-fetch-2.6.7
Bump node-fetch from 2.6.1 to 2.6.7
2022-01-28 20:26:24 +00:00
4444063bcb Merge pull request #1398 from dolanmiu/dependabot/npm_and_yarn/types/sinon-10.0.9
Bump @types/sinon from 10.0.8 to 10.0.9
2022-01-28 19:56:09 +00:00
826b9e9a99 Merge pull request #1397 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.13
Bump @types/node from 17.0.10 to 17.0.13
2022-01-28 19:55:56 +00:00
9905654ef0 Bump node-fetch from 2.6.1 to 2.6.7
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-28 19:55:45 +00:00
00549cc011 Merge pull request #1389 from jamesmontalvo3/patch-1
docs: fix height.value not height.height
2022-01-28 19:55:44 +00:00
768f3c8f8f Merge pull request #1388 from dolanmiu/dependabot/npm_and_yarn/mocha-9.2.0
Bump mocha from 9.1.4 to 9.2.0
2022-01-28 19:55:21 +00:00
096a627944 Merge pull request #1387 from dolanmiu/dependabot/npm_and_yarn/webpack-5.67.0
Bump webpack from 5.66.0 to 5.67.0
2022-01-28 19:55:14 +00:00
63892f8ab4 Merge pull request #1392 from dolanmiu/dependabot/npm_and_yarn/webpack-cli-4.9.2
Bump webpack-cli from 4.9.1 to 4.9.2
2022-01-28 19:55:05 +00:00
3094d216a8 Bump @types/sinon from 10.0.8 to 10.0.9
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.8 to 10.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-28 11:01:49 +00:00
c1fd61850b Bump @types/node from 17.0.10 to 17.0.13
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.10 to 17.0.13.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-28 11:01:27 +00:00
5e95a6272d Bump webpack-cli from 4.9.1 to 4.9.2
Bumps [webpack-cli](https://github.com/webpack/webpack-cli) from 4.9.1 to 4.9.2.
- [Release notes](https://github.com/webpack/webpack-cli/releases)
- [Changelog](https://github.com/webpack/webpack-cli/blob/master/CHANGELOG.md)
- [Commits](https://github.com/webpack/webpack-cli/compare/webpack-cli@4.9.1...webpack-cli@4.9.2)

---
updated-dependencies:
- dependency-name: webpack-cli
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-25 11:01:38 +00:00
111c80d049 docs: fix height.value not height.height 2022-01-24 10:28:57 -06:00
e6aad63047 Bump mocha from 9.1.4 to 9.2.0
Bumps [mocha](https://github.com/mochajs/mocha) from 9.1.4 to 9.2.0.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.1.4...v9.2.0)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 11:01:56 +00:00
e7fa73d145 Bump webpack from 5.66.0 to 5.67.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.66.0 to 5.67.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.66.0...v5.67.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-24 11:01:32 +00:00
bf685faf1d Merge pull request #1385 from dolanmiu/dependabot/npm_and_yarn/typescript-4.5.5
Bump typescript from 4.5.4 to 4.5.5
2022-01-21 21:28:06 +00:00
efcd318100 Bump typescript from 4.5.4 to 4.5.5
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.4 to 4.5.5.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.5.4...v4.5.5)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-21 11:01:20 +00:00
9cbb307fcc Merge pull request #1384 from simonbrunel/fix/template-images-browser
Fix reading template images in the browser
2022-01-20 19:40:36 +00:00
a868692b7a Merge pull request #1378 from dolanmiu/dependabot/npm_and_yarn/typedoc-0.22.11
Bump typedoc from 0.22.10 to 0.22.11
2022-01-20 19:40:22 +00:00
4900697d4a Merge pull request #1380 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.10
Bump @types/node from 17.0.9 to 17.0.10
2022-01-20 19:25:53 +00:00
60bc688ce2 Merge pull request #1381 from dolanmiu/dependabot/npm_and_yarn/types/sinon-10.0.8
Bump @types/sinon from 10.0.6 to 10.0.8
2022-01-20 19:25:19 +00:00
ab7d4f9f25 Merge pull request #1382 from dolanmiu/dependabot/npm_and_yarn/types/mocha-9.1.0
Bump @types/mocha from 9.0.0 to 9.1.0
2022-01-20 19:25:10 +00:00
9a937891a8 Fix reading template images in the browser 2022-01-20 16:20:28 +01:00
3a27a33d8c Bump @types/mocha from 9.0.0 to 9.1.0
Bumps [@types/mocha](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/mocha) from 9.0.0 to 9.1.0.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/mocha)

---
updated-dependencies:
- dependency-name: "@types/mocha"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-20 11:01:48 +00:00
e5005598e2 Bump @types/sinon from 10.0.6 to 10.0.8
Bumps [@types/sinon](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sinon) from 10.0.6 to 10.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sinon)

---
updated-dependencies:
- dependency-name: "@types/sinon"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-20 11:01:26 +00:00
fbaea25fa3 Bump @types/node from 17.0.9 to 17.0.10
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.9 to 17.0.10.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-19 11:01:20 +00:00
9ce032decf Bump typedoc from 0.22.10 to 0.22.11
Bumps [typedoc](https://github.com/TypeStrong/TypeDoc) from 0.22.10 to 0.22.11.
- [Release notes](https://github.com/TypeStrong/TypeDoc/releases)
- [Changelog](https://github.com/TypeStrong/typedoc/blob/master/CHANGELOG.md)
- [Commits](https://github.com/TypeStrong/TypeDoc/compare/v0.22.10...v0.22.11)

---
updated-dependencies:
- dependency-name: typedoc
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-18 11:01:17 +00:00
01ab5e0c00 Merge pull request #1375 from dolanmiu/dependabot/npm_and_yarn/mocha-9.1.4
Bump mocha from 9.1.3 to 9.1.4
2022-01-17 18:10:26 +00:00
1412b40c4e Merge pull request #1376 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.9
Bump @types/node from 17.0.8 to 17.0.9
2022-01-17 18:10:18 +00:00
e0ac5081ab Merge pull request #1377 from dolanmiu/dependabot/npm_and_yarn/nanoid-3.2.0
Bump nanoid from 3.1.32 to 3.2.0
2022-01-17 18:10:07 +00:00
dd4ee37179 Bump nanoid from 3.1.32 to 3.2.0
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.32 to 3.2.0.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.32...3.2.0)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 11:01:54 +00:00
344f7f036d Bump @types/node from 17.0.8 to 17.0.9
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.8 to 17.0.9.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 11:01:37 +00:00
2e02a3dfad Bump mocha from 9.1.3 to 9.1.4
Bumps [mocha](https://github.com/mochajs/mocha) from 9.1.3 to 9.1.4.
- [Release notes](https://github.com/mochajs/mocha/releases)
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md)
- [Commits](https://github.com/mochajs/mocha/compare/v9.1.3...v9.1.4)

---
updated-dependencies:
- dependency-name: mocha
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-17 11:01:20 +00:00
3235f9bd7a Merge pull request #1372 from dolanmiu/dependabot/npm_and_yarn/nanoid-3.1.32
Bump nanoid from 3.1.30 to 3.1.32
2022-01-15 01:29:15 +00:00
e6cee96a9d Merge pull request #1373 from dolanmiu/dependabot/npm_and_yarn/webpack-5.66.0
Bump webpack from 5.65.0 to 5.66.0
2022-01-15 01:29:07 +00:00
11d902ff21 Merge pull request #1374 from dolanmiu/dependabot/npm_and_yarn/types/shelljs-0.8.11
Bump @types/shelljs from 0.8.10 to 0.8.11
2022-01-15 01:28:57 +00:00
b8196aaa5a Bump @types/shelljs from 0.8.10 to 0.8.11
Bumps [@types/shelljs](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/shelljs) from 0.8.10 to 0.8.11.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/shelljs)

---
updated-dependencies:
- dependency-name: "@types/shelljs"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-13 11:01:27 +00:00
591fc0abad Bump webpack from 5.65.0 to 5.66.0
Bumps [webpack](https://github.com/webpack/webpack) from 5.65.0 to 5.66.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.65.0...v5.66.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-12 11:01:40 +00:00
eb25eb43d7 Bump nanoid from 3.1.30 to 3.1.32
Bumps [nanoid](https://github.com/ai/nanoid) from 3.1.30 to 3.1.32.
- [Release notes](https://github.com/ai/nanoid/releases)
- [Changelog](https://github.com/ai/nanoid/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ai/nanoid/compare/3.1.30...3.1.32)

---
updated-dependencies:
- dependency-name: nanoid
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-12 11:01:21 +00:00
df6b1c0815 Merge pull request #1364 from dolanmiu/dependabot/npm_and_yarn/shelljs-0.8.5
Bump shelljs from 0.8.4 to 0.8.5
2022-01-11 19:48:16 +00:00
82d9a71e67 Merge pull request #1370 from dolanmiu/dependabot/npm_and_yarn/prompt-1.2.1
Bump prompt from 1.2.0 to 1.2.1
2022-01-11 19:48:09 +00:00
d46c4e7387 Bump prompt from 1.2.0 to 1.2.1
Bumps [prompt](https://github.com/flatiron/prompt) from 1.2.0 to 1.2.1.
- [Release notes](https://github.com/flatiron/prompt/releases)
- [Changelog](https://github.com/flatiron/prompt/blob/master/CHANGELOG.md)
- [Commits](https://github.com/flatiron/prompt/commits)

---
updated-dependencies:
- dependency-name: prompt
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-11 11:01:21 +00:00
abf2f531da Bump shelljs from 0.8.4 to 0.8.5
Bumps [shelljs](https://github.com/shelljs/shelljs) from 0.8.4 to 0.8.5.
- [Release notes](https://github.com/shelljs/shelljs/releases)
- [Changelog](https://github.com/shelljs/shelljs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/shelljs/shelljs/compare/v0.8.4...v0.8.5)

---
updated-dependencies:
- dependency-name: shelljs
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-07 11:01:22 +00:00
f36b13f9ae Merge pull request #1363 from dolanmiu/feat/run-borders
Run borders
2022-01-06 04:57:43 +00:00
4775093376 Merge pull request #1362 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.8
Bump @types/node from 17.0.7 to 17.0.8
2022-01-06 04:47:11 +00:00
531e240a37 Run borders 2022-01-06 04:36:55 +00:00
152b91685c Bump @types/node from 17.0.7 to 17.0.8
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.7 to 17.0.8.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-05 11:01:39 +00:00
2b0e8385f1 Merge pull request #1359 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.7
Bump @types/node from 17.0.4 to 17.0.7
2022-01-03 15:56:48 +00:00
36b3242f4a Bump @types/node from 17.0.4 to 17.0.7
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.4 to 17.0.7.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 11:01:32 +00:00
8ca113c87b Merge pull request #1352 from dolanmiu/dependabot/npm_and_yarn/types/unzipper-0.10.5 2021-12-24 14:27:57 +00:00
d3fd3938c7 Bump @types/unzipper from 0.10.4 to 0.10.5
Bumps [@types/unzipper](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/unzipper) from 0.10.4 to 0.10.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/unzipper)

---
updated-dependencies:
- dependency-name: "@types/unzipper"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-24 11:01:19 +00:00
8f0bbec5da Merge pull request #1351 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.4
Bump @types/node from 17.0.2 to 17.0.4
2021-12-24 04:36:14 +00:00
6e95fd0fb9 Bump @types/node from 17.0.2 to 17.0.4
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.2 to 17.0.4.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-23 11:01:25 +00:00
dd842d54f0 Merge pull request #1347 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.2
Bump @types/node from 17.0.1 to 17.0.2
2021-12-21 17:02:00 +00:00
efb48bf9ea Bump @types/node from 17.0.1 to 17.0.2
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.1 to 17.0.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-21 11:01:18 +00:00
d1d0310200 Merge pull request #1346 from dolanmiu/dependabot/npm_and_yarn/types/node-17.0.1
Bump @types/node from 17.0.0 to 17.0.1
2021-12-20 17:46:58 +00:00
fdeb873536 Bump @types/node from 17.0.0 to 17.0.1
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 17.0.0 to 17.0.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 11:01:39 +00:00
444 changed files with 17636 additions and 2349 deletions

58
.cspell.json Normal file
View File

@ -0,0 +1,58 @@
// cSpell Settings
{
// Version of the setting file. Always 0.2
"version": "0.2",
// language - current active spelling language
"language": "en_US",
"dictionaries": ["en_US", "typescript", "softwareTerms", "fonts", "npm"],
// words - list of words to be always considered correct
"words": [
"Xmlable",
"twip",
"twips",
"jsonify",
"falsey",
"aiueo",
"iroha",
"aiueo",
"iroha",
"chosung",
"Abjad",
"Initializable",
"rels",
"dolan",
"xmlify",
"Xmlifyed",
"xmlified",
"datas",
"jszip",
"rsid",
"NUMPAGES",
"ATLEAST",
"ooxml",
"clippy",
"docsify"
],
"ignoreRegExpList": [
"/\"w:.+\"/",
"/\"s:.+\"/",
"/\"a:.+\"/",
"/\"pic:.+\"/",
"/\"xmlns:.+\"/",
"/\"vt:.+\"/",
"/[^\\s]{40,}/",
"/<xsd:.+/>/",
"/[A-Z_]+ = \".+\"/",
"/XmlAttributeComponent<{[^}]+}>/g",
"/xmlKeys = {[^}]+}/g",
"/\\.to\\.deep\\.equal\\({[^)]+}\\)/g",
"\\.to\\.include\\.members\\(\\[[^\\]]+]\\)",
"/new [a-zA-Z]+\\({[^£]+}\\)/g"
],
"ignorePaths": ["package.json", "docs/api"],
"allowCompoundWords": true,
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"
"flagWords": ["hte"]
}

270
.eslintrc.js Normal file
View File

@ -0,0 +1,270 @@
/*
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
https://github.com/typescript-eslint/tslint-to-eslint-config
It represents the closest reasonable ESLint configuration to this
project's original TSLint configuration.
We recommend eventually switching this configuration to extend from
the recommended rulesets in typescript-eslint.
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
Happy linting! 💖
*/
module.exports = {
extends: "eslint:recommended",
env: {
browser: true,
es6: true,
node: true,
},
parser: "@typescript-eslint/parser",
parserOptions: {
project: "tsconfig.json",
sourceType: "module",
},
plugins: [
"eslint-plugin-import",
"eslint-plugin-no-null",
"eslint-plugin-unicorn",
"eslint-plugin-jsdoc",
"eslint-plugin-prefer-arrow",
"@typescript-eslint",
"functional",
],
root: true,
rules: {
"no-undef": "off",
"no-extra-boolean-cast": "off",
"no-alert": "error",
"no-self-compare": "error",
"no-unreachable-loop": "error",
"no-template-curly-in-string": "error",
"no-unused-private-class-members": "error",
"no-extend-native": "error",
"no-floating-decimal": "error",
"no-implied-eval": "error",
"no-iterator": "error",
"no-lone-blocks": "error",
"no-loop-func": "error",
"no-new-object": "error",
"no-proto": "error",
"no-useless-catch": "error",
"one-var-declaration-per-line": "error",
"prefer-arrow-callback": "error",
"prefer-destructuring": "error",
"prefer-exponentiation-operator": "error",
"prefer-promise-reject-errors": "error",
"prefer-regex-literals": "error",
"prefer-spread": "error",
"prefer-template": "error",
"require-await": "error",
"@typescript-eslint/adjacent-overload-signatures": "error",
"@typescript-eslint/array-type": [
"error",
{
default: "array",
},
],
"@typescript-eslint/ban-types": [
"error",
{
types: {
Object: {
message: "Avoid using the `Object` type. Did you mean `object`?",
},
Function: {
message: "Avoid using the `Function` type. Prefer a specific function type, like `() => void`.",
},
Boolean: {
message: "Avoid using the `Boolean` type. Did you mean `boolean`?",
},
Number: {
message: "Avoid using the `Number` type. Did you mean `number`?",
},
String: {
message: "Avoid using the `String` type. Did you mean `string`?",
},
Symbol: {
message: "Avoid using the `Symbol` type. Did you mean `symbol`?",
},
},
},
],
"@typescript-eslint/consistent-type-assertions": "error",
"@typescript-eslint/dot-notation": "error",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
allowExpressions: false,
allowTypedFunctionExpressions: false,
allowHigherOrderFunctions: false,
allowDirectConstAssertionInArrowFunctions: true,
allowConciseArrowFunctionExpressionsStartingWithVoid: true,
},
],
"@typescript-eslint/explicit-member-accessibility": [
"error",
{
accessibility: "explicit",
overrides: {
accessors: "explicit",
},
},
],
"@typescript-eslint/explicit-module-boundary-types": [
"error",
{
allowArgumentsExplicitlyTypedAsAny: true,
allowDirectConstAssertionInArrowFunctions: true,
allowHigherOrderFunctions: false,
allowTypedFunctionExpressions: false,
},
],
"@typescript-eslint/naming-convention": [
"error",
{
selector: ["objectLiteralProperty"],
leadingUnderscore: "allow",
format: ["camelCase", "PascalCase"],
filter: {
regex: "(^[a-z]+:.+)|_attr|[0-9]",
match: false,
},
},
],
"@typescript-eslint/no-empty-function": "error",
"@typescript-eslint/no-empty-interface": "error",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-misused-new": "error",
"@typescript-eslint/no-namespace": "error",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/no-require-imports": "error",
"@typescript-eslint/no-shadow": [
"error",
{
hoist: "all",
},
],
"@typescript-eslint/no-this-alias": "error",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/no-var-requires": "error",
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/prefer-function-type": "error",
"@typescript-eslint/prefer-namespace-keyword": "error",
"@typescript-eslint/prefer-readonly": "error",
"@typescript-eslint/triple-slash-reference": [
"error",
{
path: "always",
types: "prefer-import",
lib: "always",
},
],
"@typescript-eslint/typedef": [
"error",
{
parameter: true,
propertyDeclaration: true,
},
],
"@typescript-eslint/unified-signatures": "error",
"arrow-body-style": "error",
complexity: "off",
"consistent-return": "error",
"constructor-super": "error",
curly: "error",
"dot-notation": "off",
eqeqeq: ["error", "smart"],
"guard-for-in": "error",
"id-denylist": ["error", "any", "Number", "number", "String", "string", "Boolean", "boolean", "Undefined", "undefined"],
"id-match": "error",
"import/no-default-export": "error",
"import/no-extraneous-dependencies": "off",
"import/no-internal-modules": "off",
"import/order": "error",
indent: "off",
"jsdoc/check-alignment": "error",
"jsdoc/check-indentation": "off",
"jsdoc/newline-after-description": "error",
"max-classes-per-file": "off",
"max-len": "off",
"new-parens": "error",
"no-bitwise": "error",
"no-caller": "error",
"no-cond-assign": "error",
"no-console": "error",
"no-debugger": "error",
"no-duplicate-case": "error",
"no-duplicate-imports": "error",
"no-empty": "error",
"no-empty-function": "off",
"no-eval": "error",
"no-extra-bind": "error",
"no-fallthrough": "off",
"no-invalid-this": "off",
"no-multiple-empty-lines": "error",
"no-new-func": "error",
"no-new-wrappers": "error",
"no-null/no-null": "error",
"no-param-reassign": "error",
"no-redeclare": "error",
"no-return-await": "error",
"no-sequences": "error",
"no-shadow": "off",
"no-sparse-arrays": "error",
"no-template-curly-in-string": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-undef-init": "error",
"no-underscore-dangle": ["error", { allow: ["_attr"] }],
"no-unsafe-finally": "error",
"no-unused-expressions": "off",
"no-unused-labels": "error",
"no-use-before-define": "off",
"no-useless-constructor": "error",
"no-var": "error",
"object-shorthand": "off",
"one-var": ["error", "never"],
"prefer-arrow/prefer-arrow-functions": "error",
"prefer-const": "error",
"prefer-object-spread": "error",
radix: "error",
"space-in-parens": ["error", "never"],
"spaced-comment": [
"error",
"always",
{
markers: ["/"],
},
],
"unicorn/filename-case": "error",
"unicorn/prefer-ternary": "error",
"use-isnan": "error",
"valid-typeof": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"functional/immutable-data": [
"error",
{
assumeTypes: true,
ignoreImmediateMutation: true,
ignoreAccessorPattern: ["**.root*", "**.numberingReferences*", "**.sections*", "**.properties*"],
},
],
"functional/no-method-signature": "error",
"functional/no-mixed-type": "error",
"functional/prefer-readonly-type": "error",
"no-unused-vars": ["error", { argsIgnorePattern: "^[_]+$" }],
},
overrides: [
{
files: ["*.spec.ts"],
rules: {
"@typescript-eslint/no-unused-expressions": "off",
"@typescript-eslint/dot-notation": "off",
"prefer-destructuring": "off",
},
},
],
};

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
# https://prettier.io/docs/en/options.html#end-of-line
* text=auto eol=lf

View File

@ -15,7 +15,7 @@ jobs:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@master uses: actions/checkout@master
- name: Install Dependencies - name: Install Dependencies
run: npm ci run: npm ci --force
- name: Build - name: Build
run: npm run build run: npm run build
- name: Archive Production Artifact - name: Archive Production Artifact
@ -30,7 +30,7 @@ jobs:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@master uses: actions/checkout@master
- name: Install Dependencies - name: Install Dependencies
run: npm ci run: npm ci --force
- name: Test - name: Test
run: npm run test.coverage run: npm run test.coverage
- name: Codecov - name: Codecov
@ -45,7 +45,7 @@ jobs:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@master uses: actions/checkout@master
- name: Install Dependencies - name: Install Dependencies
run: npm ci run: npm ci --force
- name: Lint - name: Lint
run: npm run lint run: npm run lint
prettier: prettier:
@ -55,6 +55,16 @@ jobs:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@master uses: actions/checkout@master
- name: Install Dependencies - name: Install Dependencies
run: npm ci run: npm ci --force
- name: Prettier - name: Prettier
run: npm run style run: npm run style
cspell:
name: CSpell
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@master
- name: Install Dependencies
run: npm ci --force
- name: Prettier
run: npm run cspell

View File

@ -15,7 +15,7 @@ jobs:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@master uses: actions/checkout@master
- name: Install Dependencies - name: Install Dependencies
run: npm ci run: npm ci --force
- name: Build - name: Build
run: npm run build run: npm run build
- name: Archive Production Artifact - name: Archive Production Artifact
@ -31,7 +31,7 @@ jobs:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@master uses: actions/checkout@master
- name: Install Dependencies - name: Install Dependencies
run: npm ci run: npm ci --force
- name: Download Artifact - name: Download Artifact
uses: actions/download-artifact@master uses: actions/download-artifact@master
with: with:

View File

@ -12,7 +12,7 @@ jobs:
- name: Checkout Repo - name: Checkout Repo
uses: actions/checkout@master uses: actions/checkout@master
- name: Install Dependencies - name: Install Dependencies
run: npm ci run: npm ci --force
- name: Build 🔧 - name: Build 🔧
run: | run: |
npm run typedoc npm run typedoc
@ -30,7 +30,7 @@ jobs:
- name: Checkout Repo 🛎️ - name: Checkout Repo 🛎️
uses: actions/checkout@master uses: actions/checkout@master
- name: Install Dependencies - name: Install Dependencies
run: npm ci run: npm ci --force
- name: Download Artifact - name: Download Artifact
uses: actions/download-artifact@master uses: actions/download-artifact@master
with: with:

13
.mocharc.json Normal file
View File

@ -0,0 +1,13 @@
{
"diff": true,
"spec": "src/**/*.ts",
"extension": ["ts"],
"package": "./package.json",
"reporter": "spec",
"slow": "75",
"timeout": "2000",
"ui": "bdd",
"watch-files": ["src/**/*.ts"],
"watch-ignore": ["build", "demo"],
"require": ["mocha.env", "ts-node/register", "tsconfig-paths/register"]
}

8
.nycrc
View File

@ -1,9 +1,9 @@
{ {
"check-coverage": true, "check-coverage": true,
"statements": 99.32, "statements": 99.72,
"branches": 96.27, "branches": 97.95,
"functions": 99.11, "functions": 99.82,
"lines": 99.32, "lines": 99.71,
"include": [ "include": [
"src/**/*.ts" "src/**/*.ts"
], ],

3
.vscode/extensions.json vendored Normal file
View File

@ -0,0 +1,3 @@
{
"recommendations": ["streetsidesoftware.code-spell-checker", "dbaeumer.vscode-eslint"]
}

View File

@ -11,7 +11,6 @@
[![NPM version][npm-image]][npm-url] [![NPM version][npm-image]][npm-url]
[![Downloads per month][downloads-image]][downloads-url] [![Downloads per month][downloads-image]][downloads-url]
[![GitHub Action Workflow Status][github-actions-workflow-image]][github-actions-workflow-url] [![GitHub Action Workflow Status][github-actions-workflow-image]][github-actions-workflow-url]
[![Dependency Status][daviddm-image]][daviddm-url]
[![Known Vulnerabilities][snky-image]][snky-url] [![Known Vulnerabilities][snky-image]][snky-url]
[![Chat on Gitter][gitter-image]][gitter-url] [![Chat on Gitter][gitter-image]][gitter-url]
[![PRs Welcome][pr-image]][pr-url] [![PRs Welcome][pr-image]][pr-url]
@ -27,21 +26,21 @@
Here are examples of `docx` being used with basic `HTML/JS` in a browser environment: Here are examples of `docx` being used with basic `HTML/JS` in a browser environment:
* https://codepen.io/dolanmiu/pen/RwNeObg - https://codepen.io/dolanmiu/pen/RwNeObg
* https://jsfiddle.net/dolanmiu/onadx1gu/ - https://jsfiddle.net/dolanmiu/onadx1gu/
Here is an example of `docx` working in `Angular`: Here is an example of `docx` working in `Angular`:
* https://stackblitz.com/edit/angular-docx - https://stackblitz.com/edit/angular-docx
Here is an example of `docx` working in `React`: Here is an example of `docx` working in `React`:
* https://stackblitz.com/edit/react-docx - https://stackblitz.com/edit/react-docx
* https://stackblitz.com/edit/react-docx-images (adding images to Word Document) - https://stackblitz.com/edit/react-docx-images (adding images to Word Document)
Here is an example of `docx` working in `Vue.js`: Here is an example of `docx` working in `Vue.js`:
* https://stackblitz.com/edit/vuejs-docx - https://stackblitz.com/edit/vuejs-docx
## Node ## Node
@ -49,15 +48,15 @@ Press `endpoint` on the `RunKit` website:
![RunKit Instructions](https://user-images.githubusercontent.com/2917613/38582539-f84311b6-3d07-11e8-90db-5885ae02c3c4.png) ![RunKit Instructions](https://user-images.githubusercontent.com/2917613/38582539-f84311b6-3d07-11e8-90db-5885ae02c3c4.png)
* https://runkit.com/dolanmiu/docx-demo1 - Simple paragraph and text - https://runkit.com/dolanmiu/docx-demo1 - Simple paragraph and text
* https://runkit.com/dolanmiu/docx-demo2 - Advanced Paragraphs and text - https://runkit.com/dolanmiu/docx-demo2 - Advanced Paragraphs and text
* https://runkit.com/dolanmiu/docx-demo3 - Bullet points - https://runkit.com/dolanmiu/docx-demo3 - Bullet points
* https://runkit.com/dolanmiu/docx-demo4 - Simple table - https://runkit.com/dolanmiu/docx-demo4 - Simple table
* https://runkit.com/dolanmiu/docx-demo5 - Images - https://runkit.com/dolanmiu/docx-demo5 - Images
* https://runkit.com/dolanmiu/docx-demo6 - Margins - https://runkit.com/dolanmiu/docx-demo6 - Margins
* https://runkit.com/dolanmiu/docx-demo7 - Landscape - https://runkit.com/dolanmiu/docx-demo7 - Landscape
* https://runkit.com/dolanmiu/docx-demo8 - Header and Footer - https://runkit.com/dolanmiu/docx-demo8 - Header and Footer
* https://runkit.com/dolanmiu/docx-demo10 - **My CV generated with docx** - https://runkit.com/dolanmiu/docx-demo10 - **My CV generated with docx**
More [here](https://github.com/dolanmiu/docx/tree/master/demo) More [here](https://github.com/dolanmiu/docx/tree/master/demo)
@ -89,7 +88,6 @@ Read the contribution guidelines [here](https://docx.js.org/#/contribution-guide
[<img src="https://i.imgur.com/PXo25um.png" alt="drawing" height="50"/>](https://www.circadianrisk.com/) [<img src="https://i.imgur.com/PXo25um.png" alt="drawing" height="50"/>](https://www.circadianrisk.com/)
[<img src="https://i.imgur.com/AKGhtlh.png" alt="drawing"/>](https://lexense.com/) [<img src="https://i.imgur.com/AKGhtlh.png" alt="drawing"/>](https://lexense.com/)
...and many more! ...and many more!
--- ---
@ -105,8 +103,6 @@ Made with 💖
[downloads-url]: https://npmjs.org/package/docx [downloads-url]: https://npmjs.org/package/docx
[github-actions-workflow-image]: https://github.com/dolanmiu/docx/workflows/Default/badge.svg [github-actions-workflow-image]: https://github.com/dolanmiu/docx/workflows/Default/badge.svg
[github-actions-workflow-url]: https://github.com/dolanmiu/docx/actions [github-actions-workflow-url]: https://github.com/dolanmiu/docx/actions
[daviddm-image]: https://david-dm.org/dolanmiu/docx.svg?theme=shields.io
[daviddm-url]: https://david-dm.org/dolanmiu/docx
[snky-image]: https://snyk.io/test/github/dolanmiu/docx/badge.svg [snky-image]: https://snyk.io/test/github/dolanmiu/docx/badge.svg
[snky-url]: https://snyk.io/test/github/dolanmiu/docx [snky-url]: https://snyk.io/test/github/dolanmiu/docx
[gitter-image]: https://badges.gitter.im/dolanmiu/docx.svg [gitter-image]: https://badges.gitter.im/dolanmiu/docx.svg

View File

@ -43,7 +43,7 @@ interface Skill {
readonly name: string; readonly name: string;
} }
interface Achivement { interface Achievement {
readonly issuer: string; readonly issuer: string;
readonly name: string; readonly name: string;
} }
@ -64,7 +64,7 @@ const experiences: Experience[] = [
{ {
isCurrent: false, isCurrent: false,
summary: summary:
"Full-stack developer working with Angular, Node and TypeScript. Working for the iShares platform. Emphasis on Dev-ops and developing the continous integration pipeline.", "Full-stack developer working with Angular, Node and TypeScript. Working for the iShares platform. Emphasis on Dev-ops and developing the continuous integration pipeline.",
title: "Software Developer", title: "Software Developer",
endDate: { endDate: {
month: 11, month: 11,
@ -98,6 +98,7 @@ const experiences: Experience[] = [
{ {
isCurrent: false, isCurrent: false,
summary: summary:
// cspell:disable-next-line
"Develop web commerce platforms for various high profile clients.\n\nCreated a log analysis web application with the Play Framework in Java, incorporating Test Driven Development. It asynchronously uploads and processes large (2 GB) log files, and outputs meaningful results in context with the problem. \n\nAnalysis and development of the payment system infrastructure and user accounts section to be used by several clients of the company such as Waitrose, Tally Weijl, DJ Sports, Debenhams, Ann Summers, John Lewis and others.\n\nTechnologies used include WebSphere Commerce, Java, JavaScript and JSP.", "Develop web commerce platforms for various high profile clients.\n\nCreated a log analysis web application with the Play Framework in Java, incorporating Test Driven Development. It asynchronously uploads and processes large (2 GB) log files, and outputs meaningful results in context with the problem. \n\nAnalysis and development of the payment system infrastructure and user accounts section to be used by several clients of the company such as Waitrose, Tally Weijl, DJ Sports, Debenhams, Ann Summers, John Lewis and others.\n\nTechnologies used include WebSphere Commerce, Java, JavaScript and JSP.",
title: "Java Developer", title: "Java Developer",
endDate: { endDate: {
@ -118,7 +119,7 @@ const education: Education[] = [
{ {
degree: "Master of Science (MSc)", degree: "Master of Science (MSc)",
fieldOfStudy: "Computer Science", fieldOfStudy: "Computer Science",
notes: "Exam Results: 1st Class with Distinction, Dissertation: 1st Class with Distinction\n\nRelevant Courses: Java and C# Programming, Software Engineering, Artificial Intelligence, \nComputational Photography, Algorithmics, Architecture and Hardware.\n\nCreated a Windows 8 game in JavaScript for the dissertation. \n\nCreated an award-winning 3D stereoscopic game in C# using XNA.", notes: "Exam Results: 1st Class with Distinction, Dissertation: 1st Class with Distinction\n\nRelevant Courses: Java and C# Programming, Software Engineering, Artificial Intelligence, \nComputational Photography, Algorithms, Architecture and Hardware.\n\nCreated a Windows 8 game in JavaScript for the dissertation. \n\nCreated an award-winning 3D stereoscopic game in C# using XNA.",
schoolName: "University College London", schoolName: "University College London",
startDate: { startDate: {
year: 2012, year: 2012,
@ -156,7 +157,7 @@ const skills: Skill[] = [
}, },
]; ];
const achievements: Achivement[] = [ const achievements: Achievement[] = [
{ {
issuer: "Oracle", issuer: "Oracle",
name: "Oracle Certified Expert", name: "Oracle Certified Expert",
@ -165,7 +166,7 @@ const achievements: Achivement[] = [
class DocumentCreator { class DocumentCreator {
// tslint:disable-next-line: typedef // tslint:disable-next-line: typedef
public create([experiences, educations, skills, achivements]: [Experience[], Education[], Skill[], Achivement[]]): Document { public create([experiences, educations, skills, achievements]: [Experience[], Education[], Skill[], Achievement[]]): Document {
const document = new Document({ const document = new Document({
sections: [ sections: [
{ {
@ -221,7 +222,7 @@ class DocumentCreator {
this.createSubHeading("Skills"), this.createSubHeading("Skills"),
this.createSkillList(skills), this.createSkillList(skills),
this.createSubHeading("Achievements"), this.createSubHeading("Achievements"),
...this.createAchivementsList(achivements), ...this.createAchievementsList(achievements),
this.createSubHeading("Interests"), this.createSubHeading("Interests"),
this.createInterests("Programming, Technology, Music Production, Web Design, 3D Modelling, Dancing."), this.createInterests("Programming, Technology, Music Production, Web Design, 3D Modelling, Dancing."),
this.createHeading("References"), this.createHeading("References"),
@ -318,8 +319,8 @@ class DocumentCreator {
} }
// tslint:disable-next-line:no-any // tslint:disable-next-line:no-any
public createAchivementsList(achivements: any[]): Paragraph[] { public createAchievementsList(achievements: any[]): Paragraph[] {
return achivements.map( return achievements.map(
(achievement) => (achievement) =>
new Paragraph({ new Paragraph({
text: achievement.name, text: achievement.name,

View File

@ -52,18 +52,20 @@ const table = new Table({
}); });
const doc = new Document({ const doc = new Document({
numbering:{ numbering: {
config:[{ config: [
reference: 'ref1', {
reference: "ref1",
levels: [ levels: [
{ {
level: 0, level: 0,
format: LevelFormat.DECIMAL, format: LevelFormat.DECIMAL,
text: '%1)', text: "%1)",
start: 50, start: 50,
} },
],
},
], ],
}]
}, },
styles: { styles: {
default: { default: {
@ -184,11 +186,11 @@ const doc = new Document({
spacing: { line: 276, before: 20 * 72 * 0.1, after: 20 * 72 * 0.05 }, spacing: { line: 276, before: 20 * 72 * 0.1, after: 20 * 72 * 0.05 },
rightTabStop: TabStopPosition.MAX, rightTabStop: TabStopPosition.MAX,
leftTabStop: 453.543307087, leftTabStop: 453.543307087,
numbering : { numbering: {
reference: 'ref1', reference: "ref1",
instance: 0, instance: 0,
level: 0, level: 0,
} },
}, },
}, },
], ],

View File

@ -18,10 +18,15 @@ const doc = new Document({
new Paragraph({ new Paragraph({
children: [ children: [
new TextRun({ new TextRun({
children: ["Hello", new FootnoteReferenceRun(1)], children: ["Hello"],
}), }),
new FootnoteReferenceRun(1),
new TextRun({ new TextRun({
children: [" World!", new FootnoteReferenceRun(2)], children: [" World!"],
}),
new FootnoteReferenceRun(2),
new TextRun({
children: [" GitHub!"],
}), }),
], ],
}), }),
@ -35,15 +40,17 @@ const doc = new Document({
new Paragraph({ new Paragraph({
children: [ children: [
new TextRun({ new TextRun({
children: ["Hello", new FootnoteReferenceRun(4)], children: ["Hello"],
}), }),
new FootnoteReferenceRun(4),
new TextRun({ new TextRun({
children: [" World!", new FootnoteReferenceRun(5)], children: [" World!"],
}), }),
new FootnoteReferenceRun(5),
], ],
}), }),
new Paragraph({ new Paragraph({
children: [new TextRun("Hello World"), new FootnoteReferenceRun(6)], children: [new TextRun("Hello World Again"), new FootnoteReferenceRun(6)],
}), }),
], ],
}, },

View File

@ -1,4 +1,4 @@
// Example on how to customise the look at feel using Styles // Example on how to customize the look at feel using Styles
// Import from 'docx' rather than '../build' if you install from npm // Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs"; import * as fs from "fs";
import { import {

View File

@ -1,9 +1,21 @@
// This demo shows how to create bookmarks then link to them with internal hyperlinks // This demo shows how to create bookmarks then link to them with internal hyperlinks
// Import from 'docx' rather than '../build' if you install from npm // Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs"; import * as fs from "fs";
import { Bookmark, Document, Footer, HeadingLevel, InternalHyperlink, Packer, PageBreak, Paragraph, TextRun, PageReference } from "../build"; import {
Bookmark,
Document,
Footer,
HeadingLevel,
InternalHyperlink,
Packer,
PageBreak,
Paragraph,
TextRun,
PageReference,
} from "../build";
const LOREM_IPSUM = const LOREM_IPSUM =
/* cspell:disable-next-line */
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam mi velit, convallis convallis scelerisque nec, faucibus nec leo. Phasellus at posuere mauris, tempus dignissim velit. Integer et tortor dolor. Duis auctor efficitur mattis. Vivamus ut metus accumsan tellus auctor sollicitudin venenatis et nibh. Cras quis massa ac metus fringilla venenatis. Proin rutrum mauris purus, ut suscipit magna consectetur id. Integer consectetur sollicitudin ante, vitae faucibus neque efficitur in. Praesent ultricies nibh lectus. Mauris pharetra id odio eget iaculis. Duis dictum, risus id pellentesque rutrum, lorem quam malesuada massa, quis ullamcorper turpis urna a diam. Cras vulputate metus vel massa porta ullamcorper. Etiam porta condimentum nulla nec tristique. Sed nulla urna, pharetra non tortor sed, sollicitudin molestie diam. Maecenas enim leo, feugiat eget vehicula id, sollicitudin vitae ante."; "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam mi velit, convallis convallis scelerisque nec, faucibus nec leo. Phasellus at posuere mauris, tempus dignissim velit. Integer et tortor dolor. Duis auctor efficitur mattis. Vivamus ut metus accumsan tellus auctor sollicitudin venenatis et nibh. Cras quis massa ac metus fringilla venenatis. Proin rutrum mauris purus, ut suscipit magna consectetur id. Integer consectetur sollicitudin ante, vitae faucibus neque efficitur in. Praesent ultricies nibh lectus. Mauris pharetra id odio eget iaculis. Duis dictum, risus id pellentesque rutrum, lorem quam malesuada massa, quis ullamcorper turpis urna a diam. Cras vulputate metus vel massa porta ullamcorper. Etiam porta condimentum nulla nec tristique. Sed nulla urna, pharetra non tortor sed, sollicitudin molestie diam. Maecenas enim leo, feugiat eget vehicula id, sollicitudin vitae ante.";
const doc = new Document({ const doc = new Document({

View File

@ -1,7 +1,7 @@
// Creates two paragraphs, one with a border and one without // Creates two paragraphs, one with a border and one without
// Import from 'docx' rather than '../build' if you install from npm // Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs"; import * as fs from "fs";
import { BorderStyle, Document, Packer, Paragraph } from "../build"; import { BorderStyle, Document, Packer, Paragraph, TextRun } from "../build";
const doc = new Document({ const doc = new Document({
sections: [ sections: [
@ -25,6 +25,25 @@ const doc = new Document({
}, },
}, },
}), }),
new Paragraph({
children: [
new TextRun({
text: "This will ",
}),
new TextRun({
text: "have a border.",
border: {
color: "auto",
space: 1,
style: BorderStyle.SINGLE,
size: 6,
},
}),
new TextRun({
text: " This will not.",
}),
],
}),
], ],
}, },
], ],

View File

@ -1,7 +1,7 @@
// Numbering and bullet points example // Numbering and bullet points example
// Import from 'docx' rather than '../build' if you install from npm // Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs"; import * as fs from "fs";
import { AlignmentType, convertInchesToTwip, Document, HeadingLevel, LevelFormat, Packer, Paragraph } from "../build"; import { AlignmentType, convertInchesToTwip, Document, Footer, Header, HeadingLevel, LevelFormat, Packer, Paragraph } from "../build";
const doc = new Document({ const doc = new Document({
numbering: { numbering: {
@ -119,6 +119,46 @@ const doc = new Document({
}, },
sections: [ sections: [
{ {
headers: {
default: new Header({
children: [
new Paragraph({
text: "Hey you",
numbering: {
reference: "my-crazy-numbering",
level: 0,
},
}),
new Paragraph({
text: "What's up fam",
numbering: {
reference: "my-crazy-numbering",
level: 1,
},
}),
],
}),
},
footers: {
default: new Footer({
children: [
new Paragraph({
text: "Hey you",
numbering: {
reference: "my-crazy-numbering",
level: 0,
},
}),
new Paragraph({
text: "What's up fam",
numbering: {
reference: "my-crazy-numbering",
level: 1,
},
}),
],
}),
},
children: [ children: [
new Paragraph({ new Paragraph({
text: "Hey you", text: "Hey you",

View File

@ -34,8 +34,7 @@ const doc = new Document({
new TableCell({ new TableCell({
children: [ children: [
new Paragraph({ new Paragraph({
text: text: "Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah",
"Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah",
heading: HeadingLevel.HEADING_1, heading: HeadingLevel.HEADING_1,
}), }),
], ],

View File

@ -1,9 +1,15 @@
// Add image to table cell // Add image to table cell
// Import from 'docx' rather than '../build' if you install from npm // Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs"; import * as fs from "fs";
import { Document, Packer, Paragraph, Table, TableCell, TableRow } from "../build"; import { Document, ImageRun, Packer, Paragraph, Table, TableCell, TableRow, WidthType } from "../build";
const imageBase64Data = `iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAACzVBMVEUAAAAAAAAAAAAAAAA/AD8zMzMqKiokJCQfHx8cHBwZGRkuFxcqFSonJyckJCQiIiIfHx8eHh4cHBwoGhomGSYkJCQhISEfHx8eHh4nHR0lHBwkGyQjIyMiIiIgICAfHx8mHh4lHh4kHR0jHCMiGyIhISEgICAfHx8lHx8kHh4jHR0hHCEhISEgICAlHx8kHx8jHh4jHh4iHSIhHCEhISElICAkHx8jHx8jHh4iHh4iHSIhHSElICAkICAjHx8jHx8iHh4iHh4hHiEhHSEkICAjHx8iHx8iHx8hHh4hHiEkHSEjHSAjHx8iHx8iHx8hHh4kHiEkHiEjHSAiHx8hHx8hHh4kHiEjHiAjHSAiHx8iHx8hHx8kHh4jHiEjHiAjHiAiICAiHx8kHx8jHh4jHiEjHiAiHiAiHSAiHx8jHx8jHx8jHiAiHiAiHiAiHSAiHx8jHx8jHx8iHiAiHiAiHiAjHx8jHx8jHx8jHx8iHiAiHiAiHiAjHx8jHx8jHx8iHx8iHSAiHiAjHiAjHx8jHx8hHx8iHx8iHyAiHiAjHiAjHiAjHh4hHx8iHx8iHx8iHyAjHSAjHiAjHiAjHh4hHx8iHx8iHx8jHyAjHiAhHh4iHx8iHx8jHyAjHSAjHSAhHiAhHh4iHx8iHx8jHx8jHyAjHSAjHSAiHh4iHh4jHx8jHx8jHyAjHyAhHSAhHSAiHh4iHh4jHx8jHx8jHyAhHyAhHSAiHSAiHh4jHh4jHx8jHx8jHyAhHyAhHSAiHSAjHR4jHh4jHx8jHx8hHyAhHyAiHSAjHSAjHR4jHh4jHx8hHx8hHyAhHyAiHyAjHSAjHR4jHR4hHh4hHx8hHyAiHyAjHyAjHSAjHR4jHR4hHh4hHx8hHyAjHyAjHyAjHSAjHR4hHR4hHR4hHx8iHyAjHyAjHyAjHSAhHR4hHR4hHR4hHx8jHyAjHyAjHyAjHyC9S2xeAAAA7nRSTlMAAQIDBAUGBwgJCgsMDQ4PEBESExQVFxgZGhscHR4fICEiIyQlJicoKSorLS4vMDEyMzQ1Njc4OTo7PD0+P0BBQkNERUZISUpLTE1OUFFSU1RVVllaW1xdXmBhYmNkZWZnaGprbG1ub3Byc3R1dnd4eXp8fn+AgYKDhIWGiImKi4yNj5CRkpOUlZaXmJmam5ydnp+goaKjpKaoqqusra6vsLGys7S1tri5uru8vb6/wMHCw8TFxsfIycrLzM3Oz9DR0tPU1dbX2Nna29zd3t/g4eLj5OXm5+jp6uvs7e7v8PHy8/T19vf4+fr7/P3+fkZpVQAABcBJREFUGBntwftjlQMcBvDnnLNL22qzJjWlKLHFVogyty3SiFq6EZliqZGyhnSxsLlMRahYoZKRFcul5dKFCatYqWZaNKvWtrPz/A2+7/b27qRzec/lPfvl/XxgMplMJpPJZDKZAtA9HJ3ppnIez0KnSdtC0RCNznHdJrbrh85wdSlVVRaEXuoGamYi5K5430HNiTiEWHKJg05eRWgNfKeV7RxbqUhGKPV/207VupQ8is0IoX5vtFC18SqEHaK4GyHTZ2kzVR8PBTCO4oANIZL4ShNVZcOhKKeYg9DoWdhI1ec3os2VFI0JCIUez5+i6st0qJZRrEAIJCw+QdW223BG/EmKwTBc/IJ/qfp2FDrkUnwFo8U9dZyqnaPhxLqfYjyM1S3vb6p+GGOBszsojoTDSDFz6qj66R4LzvYJxVMwUNRjf1H1ywQr/megg2RzLximy8waqvbda8M5iijegVEiHjlM1W/3h+FcXesphsMY4dMOUnUgOxyuPEzxPQwRNvV3qg5Nj4BreyimwADWe/dRVTMjEm6MoGLzGwtystL6RyOY3qSqdlYU3FpLZw1VW0sK5943MvUCKwJ1noNtjs6Ohge76Zq9ZkfpigU5WWkDYuCfbs1U5HWFR8/Qq4a9W0uK5k4ZmdrTCl8spGIePLPlbqqsc1Afe83O0hULc8alDYiBd7ZyitYMeBfR55rR2fOKP6ioPk2dGvZ+UVI0d8rtqT2tcCexlqK2F3wRn5Q+YVbBqrLKOupkr9lZujAOrmS0UpTb4JeIPkNHZ+cXr6uoPk2vyuBSPhWLEKj45PQJuQWryyqP0Z14uGLdROHIRNBEXDR09EP5r62rOHCazhrD4VKPwxTH+sIA3ZPTJ+YuWV22n+IruHFDC8X2CBjnPoolcGc2FYUwzmsUWXDHsoGKLBhmN0VvuBVfTVE/AAbpaid5CB4MbaLY1QXGuIViLTyZQcVyGGMuxWPwaA0Vk2GI9RRp8Ci2iuLkIBjhT5LNUfAspZFiTwyC72KK7+DNg1SsRvCNp3gZXq2k4iEEXSHFJHgVXUlxejCCbTvFAHiXdIJiXxyCK7KJ5FHoMZGK9xBcwyg2QpdlVMxEUM2iyIMuXXZQNF+HswxMsSAAJRQjoE//eoqDCXBSTO6f1xd+O0iyNRY6jaWi1ALNYCocZROj4JdEikroVkjFk9DcStXxpdfCD2MoXodu4RUU9ptxxmXssOfxnvDVcxRTod9FxyhqLoAqis5aPhwTDp9spRgEH2Q6KLbYoKqlaKTm6Isp0C/sJMnjFvhiERXPQvUNRe9p29lhR04CdBpC8Sl8YiuncIxEuzUUg4Dkgj+paVozygY9plPMh28SaymO9kabAopREGF3vt9MzeFFl8G7lRSZ8FFGK8XX4VA8QjEd7XrM3M0OXz8YCy+qKBLgq3wqnofiTorF0Ax56Rg1J1elW+BBAsVe+My6iYq7IK6keBdOIseV2qn5Pb8f3MqkWAXf9ThM8c8lAOIotuFsF875lRrH5klRcG0+xcPwQ1oLxfeRAP4heQTnGL78X2rqlw2DK59SXAV/zKaiGMAuko5InCt68mcOan5+ohf+z1pP8lQY/GHZQMV4YD3FpXDp4qerqbF/lBWBswyi+AL+ia+maLgcRRQj4IYlY/UpauqKBsPJAxQF8NM1TRQ/RudSPAD34rK3scOuR8/HGcspxsJfOVS8NZbiGXiUtPgINU3v3WFDmx8pEuG3EiqKKVbCC1vm2iZqap5LAtCtleQf8F9sFYWDohzeJczYyQ4V2bEZFGsQgJRGqqqhS2phHTWn9lDkIhBTqWqxQZ+IsRvtdHY9AvI2VX2hW68nfqGmuQsCEl3JdjfCF8OW1bPdtwhQ0gm2mQzfRE3a7KCYj0BNZJs8+Kxf/r6WtTEI2FIqlsMfFgRB5A6KUnSe/vUkX0AnuvUIt8SjM1m6wWQymUwmk8lkMgXRf5vi8rLQxtUhAAAAAElFTkSuQmCC`;
const table = new Table({ const table = new Table({
width: {
size: 8640,
type: WidthType.DXA,
},
rows: [ rows: [
new TableRow({ new TableRow({
children: [ children: [
@ -17,7 +23,19 @@ const table = new Table({
children: [], children: [],
}), }),
new TableCell({ new TableCell({
children: [], children: [
new Paragraph({
children: [
new ImageRun({
data: Buffer.from(imageBase64Data, "base64"),
transformation: {
width: 100,
height: 100,
},
}),
],
}),
],
}), }),
], ],
}), }),
@ -27,7 +45,19 @@ const table = new Table({
children: [], children: [],
}), }),
new TableCell({ new TableCell({
children: [], children: [
new Paragraph({
children: [
new ImageRun({
data: fs.readFileSync("./demo/images/image1.jpeg"),
transformation: {
width: 100,
height: 100,
},
}),
],
}),
],
}), }),
new TableCell({ new TableCell({
children: [], children: [],

View File

@ -123,8 +123,7 @@ const noBorderTable = new Table({
new TableCell({ new TableCell({
children: [ children: [
new Paragraph({ new Paragraph({
text: text: "Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah",
"Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah Blah",
heading: HeadingLevel.HEADING_1, heading: HeadingLevel.HEADING_1,
}), }),
], ],

View File

@ -43,8 +43,7 @@ const doc = new Document({
style: "strong", style: "strong",
}), }),
new TextRun({ new TextRun({
text: text: " - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
" - Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.",
}), }),
], ],
}), }),

View File

@ -121,7 +121,7 @@ const doc = new Document({
author: "Firstname Lastname", author: "Firstname Lastname",
date: "2020-10-06T09:05:00Z", date: "2020-10-06T09:05:00Z",
bold: false, bold: false,
} },
}), }),
], ],
}), }),

View File

@ -4,7 +4,7 @@ import * as fs from "fs";
import { Bookmark, Document, Packer, Paragraph, SimpleField, TextRun } from "../build"; import { Bookmark, Document, Packer, Paragraph, SimpleField, TextRun } from "../build";
const doc = new Document({ const doc = new Document({
creator: 'Me', creator: "Me",
sections: [ sections: [
{ {
properties: {}, properties: {},

View File

@ -13,11 +13,13 @@ const doc = new Document({
}, },
}, },
children: [ children: [
new Paragraph({ children: [ new Paragraph({
new TextRun('This text will be in the first column.'), children: [
new TextRun("This text will be in the first column."),
new ColumnBreak(), new ColumnBreak(),
new TextRun('This text will be in the second column.'), new TextRun("This text will be in the second column."),
] }), ],
}),
], ],
}, },
], ],

37
demo/72-word-wrap.ts Normal file
View File

@ -0,0 +1,37 @@
// Example on how to preserve word wrap text. Works with all languages.
// Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs";
import { Document, Packer, Paragraph, TextRun, SpaceType } from "../build";
const doc = new Document({
sections: [
{
children: [
new Paragraph({
children: [
new TextRun("我今天遛狗去公园"),
new TextRun({
text: "456435234523456435564745673456345456435234523456435564745673456345456435234523456435564745673456345456435234523456435564745673456345456435234523456435564745673456345",
space: SpaceType.PRESERVE,
}),
],
}),
new Paragraph({
children: [
new TextRun(
"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua",
),
new TextRun({
text: "456435234523456435564745673456345456435234523456435564745673456345456435234523456435564745673456345456435234523456435564745673456345456435234523456435564745673456345",
space: SpaceType.PRESERVE,
}),
],
}),
],
},
],
});
Packer.toBuffer(doc).then((buffer) => {
fs.writeFileSync("My Document.docx", buffer);
});

36
demo/73-comments.ts Normal file
View File

@ -0,0 +1,36 @@
// Simple example to add comments to a document
// Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs";
import { Document, Packer, Paragraph, TextRun, CommentRangeStart, CommentRangeEnd, CommentReference } from "../build";
const doc = new Document({
comments: {
children: [{ id: 0, author: "Ray Chen", date: new Date(), text: "comment text content" }],
},
sections: [
{
properties: {},
children: [
new Paragraph({
children: [
new TextRun("Hello World"),
new CommentRangeStart(0),
new TextRun({
text: "Foo Bar",
bold: true,
}),
new CommentRangeEnd(0),
new TextRun({
children: [new CommentReference(0)],
bold: true,
}),
],
}),
],
},
],
});
Packer.toBuffer(doc).then((buffer) => {
fs.writeFileSync("My Document.docx", buffer);
});

30
demo/74-nodejs-stream.ts Normal file
View File

@ -0,0 +1,30 @@
// Exporting the document as a stream
// Import from 'docx' rather than '../build' if you install from npm
import * as fs from "fs";
import { Document, Packer, Paragraph, TextRun } from "../build";
const doc = new Document({
sections: [
{
properties: {},
children: [
new Paragraph({
children: [
new TextRun("Hello World"),
new TextRun({
text: "Foo Bar",
bold: true,
}),
new TextRun({
text: "\tGithub is the best",
bold: true,
}),
],
}),
],
},
],
});
const stream = Packer.toStream(doc);
stream.pipe(fs.createWriteStream("My Document.docx"));

View File

@ -27,7 +27,8 @@ import { Document, Packer, Paragraph, TextRun } from "docx";
// Documents contain sections, you can have multiple sections per document, go here to learn more about sections // Documents contain sections, you can have multiple sections per document, go here to learn more about sections
// This simple example will only contain one section // This simple example will only contain one section
const doc = new Document({ const doc = new Document({
sections: [{ sections: [
{
properties: {}, properties: {},
children: [ children: [
new Paragraph({ new Paragraph({
@ -44,7 +45,8 @@ const doc = new Document({
], ],
}), }),
], ],
}], },
],
}); });
// Used to export the file into a .docx file // Used to export the file into a .docx file
@ -56,6 +58,7 @@ Packer.toBuffer(doc).then((buffer) => {
``` ```
<p align="center"> <p align="center">
<!-- cspell:disable-next-line -->
<img alt="clippy the assistant" src="./clippy.png"> <img alt="clippy the assistant" src="./clippy.png">
</p> </p>

View File

@ -1,37 +1,39 @@
* [Getting Started](/) - [Getting Started](/)
* [Examples](https://github.com/dolanmiu/docx/tree/master/demo) - [Examples](https://github.com/dolanmiu/docx/tree/master/demo)
* API - API
* [Documentation](https://docx.js.org/api/) - [Documentation](https://docx.js.org/api/)
* Usage - Usage
* [Document](usage/document.md) - [Document](usage/document.md)
* [Sections](usage/sections.md) - [Sections](usage/sections.md)
* [Paragraph](usage/paragraph.md) - [Paragraph](usage/paragraph.md)
* [Text](usage/text.md) - [Text](usage/text.md)
* [Image](usage/images.md) - [Image](usage/images.md)
* [Headers & Footers](usage/headers-and-footers.md) - [Headers & Footers](usage/headers-and-footers.md)
* [Bullet Points](usage/bullet-points.md) - [Bullet Points](usage/bullet-points.md)
* [Hyperlinks](usage/hyperlinks.md) - [Hyperlinks](usage/hyperlinks.md)
* [Numbering](usage/numbering.md) - [Numbering](usage/numbering.md)
* [Tables](usage/tables.md) - [Tables](usage/tables.md)
* [Tab Stops](usage/tab-stops.md) - [Tab Stops](usage/tab-stops.md)
* [Table of Contents](usage/table-of-contents.md) - [Table of Contents](usage/table-of-contents.md)
* [Page Numbers](usage/page-numbers.md) - [Page Numbers](usage/page-numbers.md)
* [Change Tracking](usage/change-tracking.md) - [Change Tracking](usage/change-tracking.md)
* [Math](usage/math.md) - [Math](usage/math.md)
* [Text Frames](usage/text-frames.md) - [Text Frames](usage/text-frames.md)
* Styling - Styling
* [Styling with JS](usage/styling-with-js.md) _ [Styling with JS](usage/styling-with-js.md)
* [Styling with XML](usage/styling-with-xml.md) _ [Styling with XML](usage/styling-with-xml.md)
* Exporting
* [Packers](usage/packers.md) - Exporting
* Utility
* [Convenience functions](usage/convenience-functions.md) - [Packers](usage/packers.md)
* [Contribution Guidelines](contribution-guidelines.md) - Utility
- [Convenience functions](usage/convenience-functions.md)
- [Contribution Guidelines](contribution-guidelines.md)

View File

@ -8,11 +8,11 @@
- Follow Prettier standards, and consider using the [Prettier VSCode](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) plugin. - Follow Prettier standards, and consider using the [Prettier VSCode](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode) plugin.
- Follow the `TSLint` rules - Follow the `ESLint` rules
## Always think about the user ## Always think about the user
Put yourself in their position, and imagine how they would feel about your feature you wrote. Put yourself in their position, and imagine how they would feel about the feature you wrote.
1. Is it easy to use? 1. Is it easy to use?
2. Has it been documented well? 2. Has it been documented well?
@ -26,13 +26,15 @@ Please write good commit messages when making a commit: https://chris.beams.io/p
**Do not:** **Do not:**
<!-- cspell:disable -->
``` ```
c // What? c // What?
rtl // Adding acryonyms without explaining anything else is not helpful rtl // Adding acronyms without explaining anything else is not helpful
works! // Glad its working, but the message is not helpful works! // Glad its working, but the message is not helpful
demo updated // Getting better, but capitalize the first letter demo updated // Getting better, but capitalize the first letter
Unesesary coment removed // Make sure to use correct spelling Unesesary coment removed // Make sure to use correct spelling
``` ```
<!-- cspell:enable -->
**Do** **Do**
@ -42,9 +44,9 @@ Unesesary coment removed // Make sure to use correct spelling
public float(tableFloatOptions: ITableFloatOptions): Table public float(tableFloatOptions: ITableFloatOptions): Table
``` ```
## Delcariative API ## Declarative API
Make sure the API is declarative, so no _method calling_ or _mutation_. This is a design decision, consistent with the rest of the project. There are benefits to delcariative code over other styles of code, explained here: https://dzone.com/articles/why-declarative-coding-makes-you-a-better-programm Make sure the API is declarative, so no _method calling_ or _mutation_. This is a design decision, consistent with the rest of the project. There are benefits to declarative code over other styles of code, explained here: https://dzone.com/articles/why-declarative-coding-makes-you-a-better-programm
**Do not:** **Do not:**

View File

@ -16,6 +16,7 @@
<body> <body>
<div id="app"></div> <div id="app"></div>
<script src="//cdn.jsdelivr.net/npm/docsify-plugin-carbon@1/index.min.js"></script>
<script> <script>
window.$docsify = { window.$docsify = {
name: "docx", name: "docx",
@ -24,6 +25,12 @@
subMaxLevel: 2, subMaxLevel: 2,
search: "auto", search: "auto",
coverpage: true, coverpage: true,
plugins: [
// Change to your Carbon property ID
// cSpell:disable
DocsifyCarbon.create("CEAIP237", "docx"),
// cSpell:enable
],
}; };
</script> </script>
<script src="//unpkg.com/docsify/lib/docsify.min.js"></script> <script src="//unpkg.com/docsify/lib/docsify.min.js"></script>

17
docs/usage/comments.md Normal file
View File

@ -0,0 +1,17 @@
# Comments
!> Comments requires an understanding of [Sections](usage/sections.md) and [Paragraphs](usage/paragraph.md).
## Intro
To add comments in `docx`, a `comments` block is specified in the `Document`. This block defines all the comments in your document. Each comment has an `id`, which you then reference later.
In the spot you want to add a comment, you simply add a `CommentRangeStart` and a `CommentRangeEnd` to specify where the comment starts and ends.
Alternatively, you can use `CommentReference` to specify a comment at a specific singular point.
### Example
[Example](https://raw.githubusercontent.com/dolanmiu/docx/master/demo/73-comments.ts ':include')
_Source: https://github.com/dolanmiu/docx/blob/master/demo/73-comments.ts_

View File

@ -42,6 +42,17 @@ Example showing basic header and footer
_Source: https://github.com/dolanmiu/docx/blob/master/demo/8-header-footer.ts_ _Source: https://github.com/dolanmiu/docx/blob/master/demo/8-header-footer.ts_
## Different First Page
To specify `'Different First Page'`, set `titlePage: true` in the sections array as shown below.
```
sections: [
{
properties: {
titlePage: true,
```
## Multiple Headers and Footers ## Multiple Headers and Footers
More headers and footers can be accomplished by creating more `Section`. New headers and footers can be set per `Section` More headers and footers can be accomplished by creating more `Section`. New headers and footers can be set per `Section`

View File

@ -37,7 +37,7 @@ sub-sublists, etc. Each level includes the following properties:
numbers from each numbering level before this one. Thus a level numbers from each numbering level before this one. Thus a level
text of `%d)` with a number format of `lowerLetter` would result in text of `%d)` with a number format of `lowerLetter` would result in
the sequence "a)", "b)", ... the sequence "a)", "b)", ...
* and a few others, which you can see in the OXML spec section 17.9.6 * and a few others, which you can see in the OOXML spec section 17.9.6
## Document-level bullets/numbering definitions (concrete) ## Document-level bullets/numbering definitions (concrete)

View File

@ -121,7 +121,7 @@ Add borders to a `Paragraph`. Good for making the `Paragraph` stand out
| -------- | -------- | -------- | | -------- | -------- | -------- |
| color | `string` | Required | | color | `string` | Required |
| space | `number` | Required | | space | `number` | Required |
| value | `string` | Required | | style | `string` | Required |
| size | `number` | Required | | size | `number` | Required |
**Example:** **Example:**
@ -135,13 +135,13 @@ const paragraph = new Paragraph({
top: { top: {
color: "auto", color: "auto",
space: 1, space: 1,
value: "single", style: "single",
size: 6, size: 6,
}, },
bottom: { bottom: {
color: "auto", color: "auto",
space: 1, space: 1,
value: "single", style: "single",
size: 6, size: 6,
}, },
}, },

View File

@ -146,7 +146,7 @@ const doc = new Document({
}); });
``` ```
**Note**: If you are using the `.headingX` or `.title` methods of paragraphs, you must make sure to define `HeadingX` or `Title` styles for these. Otherwise they'll show up unstyled :(. If you are using the `.bullet` or `.setNumbering` methods, you need to define a `ListParagraph` style or the numbers may not show up. **Note**: If you are using the `.headingX` or `.title` methods of paragraphs, you must make sure to define `HeadingX` or `Title` styles for these. Otherwise they'll show up un-styled :(. If you are using the `.bullet` or `.setNumbering` methods, you need to define a `ListParagraph` style or the numbers may not show up.
### Document defaults ### Document defaults
@ -199,7 +199,7 @@ For these properties, the rules state the following conflict resolution in case
## Examples ## Examples
### Declaritive styles ### Declarative styles
Importing Images from file system path Importing Images from file system path

View File

@ -104,7 +104,7 @@ Here is a list of options you can add to the `table row`:
| children | `Array<TableCell>` | Required | | children | `Array<TableCell>` | Required |
| cantSplit | `boolean` | Optional | | cantSplit | `boolean` | Optional |
| tableHeader | `boolean` | Optional | | tableHeader | `boolean` | Optional |
| height | `{ height: number, rule: HeightRule }` | Optional | | height | `{ value: number, rule: HeightRule }` | Optional |
### Repeat row ### Repeat row

1
mocha.env Normal file
View File

@ -0,0 +1 @@
process.env.TS_NODE_PROJECT = 'tsconfig.spec.json'

15870
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,21 +1,22 @@
{ {
"name": "docx", "name": "docx",
"version": "7.3.0", "version": "7.5.0",
"description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.", "description": "Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.",
"main": "build/index.js", "main": "build/index.js",
"scripts": { "scripts": {
"pretest": "rimraf ./build", "pretest": "rimraf ./build",
"test": "cross-env TS_NODE_PROJECT=\"tsconfig.spec.json\" mocha -r ts-node/register -r tsconfig-paths/register \"src/**/*.ts\"", "test": "mocha --config=.mocharc.json",
"test.coverage": "nyc npm test", "test.coverage": "nyc npm test",
"test.watch": "npm test -- --watch", "test.watch": "npm test -- --watch",
"prepublishOnly": "npm run build --production", "prepublishOnly": "npm run build --production",
"lint": "tslint --project .", "lint": "eslint -c .eslintrc.js --ext .ts src",
"build": "npm run webpack && npm run fix-types", "build": "npm run webpack && npm run fix-types",
"webpack": "rimraf ./build && webpack --config ./webpack.config.ts", "webpack": "rimraf ./build && webpack --config ./webpack.config.ts",
"demo": "npm run build && npm run ts-node --skip-project ./demo", "demo": "npm run build && npm run ts-node --skip-project ./demo",
"typedoc": "rimraf ./build && typedoc src/index.ts --tsconfig tsconfig.typedoc.json", "typedoc": "rimraf ./build && typedoc src/index.ts --tsconfig tsconfig.typedoc.json",
"style": "prettier -l \"src/**/*.ts\"", "style": "prettier -l \"{src,scripts,demo}/**/*.{ts,html}\"",
"style.fix": "npm run style -- --write", "style.fix": "npm run style -- --write",
"cspell": "cspell \"{src,demo,docs,scripts}/**/*.{ts,scss,html,md}\" && cspell \"./*.*\"",
"fix-types": "ts-node --skip-project scripts/types-absolute-fixer.ts", "fix-types": "ts-node --skip-project scripts/types-absolute-fixer.ts",
"e2e": "ts-node scripts/e2e.ts", "e2e": "ts-node scripts/e2e.ts",
"serve.docs": "cd docs && docsify serve", "serve.docs": "cd docs && docsify serve",
@ -49,7 +50,7 @@
], ],
"types": "./build/index.d.ts", "types": "./build/index.d.ts",
"dependencies": { "dependencies": {
"@types/node": "^17.0.0", "@types/node": "^18.0.0",
"jszip": "^3.1.5", "jszip": "^3.1.5",
"nanoid": "^3.1.20", "nanoid": "^3.1.20",
"xml": "^1.0.1", "xml": "^1.0.1",
@ -63,7 +64,7 @@
"homepage": "https://github.com/dolanmiu/docx#readme", "homepage": "https://github.com/dolanmiu/docx#readme",
"devDependencies": { "devDependencies": {
"@types/chai": "^4.2.15", "@types/chai": "^4.2.15",
"@types/glob": "^7.1.4", "@types/glob": "^8.0.0",
"@types/mocha": "^9.0.0", "@types/mocha": "^9.0.0",
"@types/prompt": "^1.1.1", "@types/prompt": "^1.1.1",
"@types/request-promise": "^4.1.42", "@types/request-promise": "^4.1.42",
@ -71,13 +72,22 @@
"@types/sinon": "^10.0.0", "@types/sinon": "^10.0.0",
"@types/unzipper": "^0.10.4", "@types/unzipper": "^0.10.4",
"@types/webpack": "^5.0.0", "@types/webpack": "^5.0.0",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"buffer": "^6.0.3", "buffer": "^6.0.3",
"chai": "^3.5.0", "chai": "^3.5.0",
"cross-env": "^7.0.3", "cspell": "^6.2.2",
"docsify-cli": "^4.3.0", "docsify-cli": "^4.3.0",
"glob": "^7.1.2", "eslint": "^8.23.0",
"eslint-plugin-functional": "^4.3.1",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^39.3.6",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prefer-arrow": "^1.2.3",
"eslint-plugin-unicorn": "^43.0.2",
"glob": "^8.0.1",
"jszip": "^3.1.5", "jszip": "^3.1.5",
"mocha": "^9.0.2", "mocha": "^10.0.0",
"nyc": "^15.1.0", "nyc": "^15.1.0",
"pre-commit": "^1.2.2", "pre-commit": "^1.2.2",
"prettier": "^2.3.1", "prettier": "^2.3.1",
@ -88,15 +98,14 @@
"request-promise": "^4.2.2", "request-promise": "^4.2.2",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"shelljs": "^0.8.4", "shelljs": "^0.8.4",
"sinon": "^12.0.1", "sinon": "^14.0.0",
"stream-browserify": "^3.0.0", "stream-browserify": "^3.0.0",
"ts-loader": "^9.0.0", "ts-loader": "^9.0.0",
"ts-node": "^10.2.1", "ts-node": "^10.2.1",
"tsconfig-paths": "^3.9.0", "tsconfig-paths": "^4.0.0",
"tslint": "^6.1.3", "tsconfig-paths-webpack-plugin": "^4.0.0",
"tslint-immutable": "^6.0.1", "typedoc": "^0.23.2",
"typedoc": "^0.22.3", "typescript": "4.7.4",
"typescript": "4.5.4",
"unzipper": "^0.10.11", "unzipper": "^0.10.11",
"webpack": "^5.28.0", "webpack": "^5.28.0",
"webpack-cli": "^4.6.0" "webpack-cli": "^4.6.0"

View File

@ -6,9 +6,9 @@ const files = glob.sync("build/**/*.d.ts");
for (const file of files) { for (const file of files) {
replaceInFile({ replaceInFile({
files: file, files: file,
from: /"file[a-z/-]*"/gi, from: /"@[a-z/-]*"/gi,
to: (match) => { to: (match) => {
const matchSlug = match.replace(/['"]+/g, "").trim(); const matchSlug = match.replace(/['"]+/g, "").replace(/[@]+/g, "").trim();
const levelCount = file.split("/").length - 2; const levelCount = file.split("/").length - 2;
const backLevels = Array(levelCount).fill("../").join(""); const backLevels = Array(levelCount).fill("../").join("");

View File

@ -1,20 +0,0 @@
import { nanoid } from "nanoid/non-secure";
let currentCount = 0;
// Twip - twentieths of a point
export const convertMillimetersToTwip = (millimeters: number): number => {
return Math.floor((millimeters / 25.4) * 72 * 20);
};
export const convertInchesToTwip = (inches: number): number => {
return Math.floor(inches * 72 * 20);
};
export const uniqueNumericId = (): number => {
return ++currentCount;
};
export const uniqueId = (): string => {
return nanoid().toLowerCase();
};

View File

@ -2,9 +2,9 @@ import { assert, expect } from "chai";
import * as sinon from "sinon"; import * as sinon from "sinon";
import { Formatter } from "@export/formatter"; import { Formatter } from "@export/formatter";
import { Paragraph, TextRun } from "file"; import { CoreProperties } from "@file/core-properties";
import { CoreProperties } from "file/core-properties"; import { Paragraph, TextRun } from "@file/paragraph";
import { Attributes } from "file/xml-components"; import { Attributes } from "@file/xml-components";
describe("Formatter", () => { describe("Formatter", () => {
let formatter: Formatter; let formatter: Formatter;

View File

@ -1,4 +1,4 @@
import { BaseXmlComponent, IContext, IXmlableObject } from "file/xml-components"; import { BaseXmlComponent, IContext, IXmlableObject } from "@file/xml-components";
export class Formatter { export class Formatter {
// tslint:disable-next-line: no-object-literal-type-assertion // tslint:disable-next-line: no-object-literal-type-assertion

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Media } from "file"; import { Media } from "@file/media";
import { ImageReplacer } from "./image-replacer"; import { ImageReplacer } from "./image-replacer";

View File

@ -1,7 +1,7 @@
import { IMediaData, Media } from "file/media"; import { IMediaData, Media } from "@file/media";
export class ImageReplacer { export class ImageReplacer {
public replace(xmlData: string, mediaData: IMediaData[], offset: number): string { public replace(xmlData: string, mediaData: readonly IMediaData[], offset: number): string {
let currentXmlData = xmlData; let currentXmlData = xmlData;
mediaData.forEach((image, i) => { mediaData.forEach((image, i) => {
@ -11,7 +11,7 @@ export class ImageReplacer {
return currentXmlData; return currentXmlData;
} }
public getMediaData(xmlData: string, media: Media): IMediaData[] { public getMediaData(xmlData: string, media: Media): readonly IMediaData[] {
return media.Array.filter((image) => xmlData.search(`{${image.fileName}}`) > 0); return media.Array.filter((image) => xmlData.search(`{${image.fileName}}`) > 0);
} }
} }

View File

@ -2,7 +2,10 @@
import { expect } from "chai"; import { expect } from "chai";
import * as sinon from "sinon"; import * as sinon from "sinon";
import { File, Footer, Header, Paragraph } from "file"; import { File } from "@file/file";
import { Footer, Header } from "@file/header";
import { ImageRun, Paragraph } from "@file/paragraph";
import * as convenienceFunctions from "@util/convenience-functions";
import { Compiler } from "./next-compiler"; import { Compiler } from "./next-compiler";
@ -13,17 +16,28 @@ describe("Compiler", () => {
compiler = new Compiler(); compiler = new Compiler();
}); });
before(() => {
sinon.stub(convenienceFunctions, "uniqueId").callsFake(() => "test");
});
after(() => {
(convenienceFunctions.uniqueId as sinon.SinonStub).restore();
});
describe("#compile()", () => { describe("#compile()", () => {
it("should pack all the content", async function () { it("should pack all the content", function () {
this.timeout(99999999); this.timeout(99999999);
const file = new File({ const file = new File({
sections: [], sections: [],
comments: {
children: [],
},
}); });
const zipFile = compiler.compile(file); const zipFile = compiler.compile(file);
const fileNames = Object.keys(zipFile.files).map((f) => zipFile.files[f].name); const fileNames = Object.keys(zipFile.files).map((f) => zipFile.files[f].name);
expect(fileNames).is.an.instanceof(Array); expect(fileNames).is.an.instanceof(Array);
expect(fileNames).has.length(16); expect(fileNames).has.length(17);
expect(fileNames).to.include("word/document.xml"); expect(fileNames).to.include("word/document.xml");
expect(fileNames).to.include("word/styles.xml"); expect(fileNames).to.include("word/styles.xml");
expect(fileNames).to.include("docProps/core.xml"); expect(fileNames).to.include("docProps/core.xml");
@ -33,29 +47,38 @@ describe("Compiler", () => {
expect(fileNames).to.include("word/footnotes.xml"); expect(fileNames).to.include("word/footnotes.xml");
expect(fileNames).to.include("word/_rels/footnotes.xml.rels"); expect(fileNames).to.include("word/_rels/footnotes.xml.rels");
expect(fileNames).to.include("word/settings.xml"); expect(fileNames).to.include("word/settings.xml");
expect(fileNames).to.include("word/comments.xml");
expect(fileNames).to.include("word/_rels/document.xml.rels"); expect(fileNames).to.include("word/_rels/document.xml.rels");
expect(fileNames).to.include("[Content_Types].xml"); expect(fileNames).to.include("[Content_Types].xml");
expect(fileNames).to.include("_rels/.rels"); expect(fileNames).to.include("_rels/.rels");
}); });
it("should pack all additional headers and footers", async function () { it("should pack all additional headers and footers", function () {
const file = new File({ const file = new File({
sections: [ sections: [
{ {
headers: { headers: {
default: new Header(), default: new Header({
children: [new Paragraph("test")],
}),
}, },
footers: { footers: {
default: new Footer(), default: new Footer({
children: [new Paragraph("test")],
}),
}, },
children: [], children: [],
}, },
{ {
headers: { headers: {
default: new Header(), default: new Header({
children: [new Paragraph("test")],
}),
}, },
footers: { footers: {
default: new Footer(), default: new Footer({
children: [new Paragraph("test")],
}),
}, },
children: [], children: [],
}, },
@ -68,7 +91,7 @@ describe("Compiler", () => {
const fileNames = Object.keys(zipFile.files).map((f) => zipFile.files[f].name); const fileNames = Object.keys(zipFile.files).map((f) => zipFile.files[f].name);
expect(fileNames).is.an.instanceof(Array); expect(fileNames).is.an.instanceof(Array);
expect(fileNames).has.length(24); expect(fileNames).has.length(25);
expect(fileNames).to.include("word/header1.xml"); expect(fileNames).to.include("word/header1.xml");
expect(fileNames).to.include("word/_rels/header1.xml.rels"); expect(fileNames).to.include("word/_rels/header1.xml.rels");
@ -97,7 +120,61 @@ describe("Compiler", () => {
const spy = sinon.spy(compiler["formatter"], "format"); const spy = sinon.spy(compiler["formatter"], "format");
compiler.compile(file); compiler.compile(file);
expect(spy.callCount).to.equal(12); expect(spy.callCount).to.equal(13);
});
it("should work with media datas", () => {
// This test is required because before, there was a case where Document was formatted twice, which was inefficient
// This also caused issues such as running prepForXml multiple times as format() was ran multiple times.
const file = new File({
sections: [
{
headers: {
default: new Header({
children: [new Paragraph("test")],
}),
},
footers: {
default: new Footer({
children: [new Paragraph("test")],
}),
},
children: [
new Paragraph({
children: [
new ImageRun({
data: Buffer.from("", "base64"),
transformation: {
width: 100,
height: 100,
},
}),
],
}),
],
},
],
});
// tslint:disable-next-line: no-string-literal
sinon.stub(compiler["imageReplacer"], "getMediaData").returns([
{
stream: Buffer.from(""),
fileName: "test",
transformation: {
pixels: {
x: 100,
y: 100,
},
emus: {
x: 100,
y: 100,
},
},
},
]);
compiler.compile(file);
}); });
}); });
}); });

View File

@ -1,10 +1,12 @@
import * as JSZip from "jszip"; import * as JSZip from "jszip";
import * as xml from "xml"; import * as xml from "xml";
import { File } from "file"; import { File } from "@file/file";
import { Formatter } from "../formatter"; import { Formatter } from "../formatter";
import { ImageReplacer } from "./image-replacer"; import { ImageReplacer } from "./image-replacer";
import { NumberingReplacer } from "./numbering-replacer"; import { NumberingReplacer } from "./numbering-replacer";
import { PrettifyType } from "./packer";
interface IXmlifyedFile { interface IXmlifyedFile {
readonly data: string; readonly data: string;
@ -18,16 +20,17 @@ interface IXmlifyedFileMapping {
readonly Numbering: IXmlifyedFile; readonly Numbering: IXmlifyedFile;
readonly Relationships: IXmlifyedFile; readonly Relationships: IXmlifyedFile;
readonly FileRelationships: IXmlifyedFile; readonly FileRelationships: IXmlifyedFile;
readonly Headers: IXmlifyedFile[]; readonly Headers: readonly IXmlifyedFile[];
readonly Footers: IXmlifyedFile[]; readonly Footers: readonly IXmlifyedFile[];
readonly HeaderRelationships: IXmlifyedFile[]; readonly HeaderRelationships: readonly IXmlifyedFile[];
readonly FooterRelationships: IXmlifyedFile[]; readonly FooterRelationships: readonly IXmlifyedFile[];
readonly ContentTypes: IXmlifyedFile; readonly ContentTypes: IXmlifyedFile;
readonly CustomProperties: IXmlifyedFile; readonly CustomProperties: IXmlifyedFile;
readonly AppProperties: IXmlifyedFile; readonly AppProperties: IXmlifyedFile;
readonly FootNotes: IXmlifyedFile; readonly FootNotes: IXmlifyedFile;
readonly FootNotesRelationships: IXmlifyedFile; readonly FootNotesRelationships: IXmlifyedFile;
readonly Settings: IXmlifyedFile; readonly Settings: IXmlifyedFile;
readonly Comments?: IXmlifyedFile;
} }
export class Compiler { export class Compiler {
@ -35,24 +38,24 @@ export class Compiler {
private readonly imageReplacer: ImageReplacer; private readonly imageReplacer: ImageReplacer;
private readonly numberingReplacer: NumberingReplacer; private readonly numberingReplacer: NumberingReplacer;
constructor() { public constructor() {
this.formatter = new Formatter(); this.formatter = new Formatter();
this.imageReplacer = new ImageReplacer(); this.imageReplacer = new ImageReplacer();
this.numberingReplacer = new NumberingReplacer(); this.numberingReplacer = new NumberingReplacer();
} }
public compile(file: File, prettifyXml?: boolean): JSZip { public compile(file: File, prettifyXml?: boolean | PrettifyType): JSZip {
const zip = new JSZip(); const zip = new JSZip();
const xmlifiedFileMapping = this.xmlifyFile(file, prettifyXml); const xmlifiedFileMapping = this.xmlifyFile(file, prettifyXml);
const map = new Map<string, IXmlifyedFile | IXmlifyedFile[]>(Object.entries(xmlifiedFileMapping)); const map = new Map<string, IXmlifyedFile | readonly IXmlifyedFile[]>(Object.entries(xmlifiedFileMapping));
for (const [, obj] of map) { for (const [, obj] of map) {
if (Array.isArray(obj)) { if (Array.isArray(obj)) {
for (const subFile of obj) { for (const subFile of obj as readonly IXmlifyedFile[]) {
zip.file(subFile.path, subFile.data); zip.file(subFile.path, subFile.data);
} }
} else { } else {
zip.file(obj.path, obj.data); zip.file((obj as IXmlifyedFile).path, (obj as IXmlifyedFile).data);
} }
} }
@ -64,7 +67,7 @@ export class Compiler {
return zip; return zip;
} }
private xmlifyFile(file: File, prettify?: boolean): IXmlifyedFileMapping { private xmlifyFile(file: File, prettify?: boolean | PrettifyType): IXmlifyedFileMapping {
const documentRelationshipCount = file.Document.Relationships.RelationshipCount + 1; const documentRelationshipCount = file.Document.Relationships.RelationshipCount + 1;
const documentXmlData = xml( const documentXmlData = xml(
@ -112,7 +115,6 @@ export class Compiler {
data: (() => { data: (() => {
const xmlData = this.imageReplacer.replace(documentXmlData, documentMediaDatas, documentRelationshipCount); const xmlData = this.imageReplacer.replace(documentXmlData, documentMediaDatas, documentRelationshipCount);
const referenedXmlData = this.numberingReplacer.replace(xmlData, file.Numbering.ConcreteNumbering); const referenedXmlData = this.numberingReplacer.replace(xmlData, file.Numbering.ConcreteNumbering);
return referenedXmlData; return referenedXmlData;
})(), })(),
path: "word/document.xml", path: "word/document.xml",
@ -279,8 +281,10 @@ export class Compiler {
// TODO: 0 needs to be changed when headers get relationships of their own // TODO: 0 needs to be changed when headers get relationships of their own
const xmlData = this.imageReplacer.replace(tempXmlData, mediaDatas, 0); const xmlData = this.imageReplacer.replace(tempXmlData, mediaDatas, 0);
const referenedXmlData = this.numberingReplacer.replace(xmlData, file.Numbering.ConcreteNumbering);
return { return {
data: xmlData, data: referenedXmlData,
path: `word/header${index + 1}.xml`, path: `word/header${index + 1}.xml`,
}; };
}), }),
@ -301,8 +305,10 @@ export class Compiler {
// TODO: 0 needs to be changed when headers get relationships of their own // TODO: 0 needs to be changed when headers get relationships of their own
const xmlData = this.imageReplacer.replace(tempXmlData, mediaDatas, 0); const xmlData = this.imageReplacer.replace(tempXmlData, mediaDatas, 0);
const referenedXmlData = this.numberingReplacer.replace(xmlData, file.Numbering.ConcreteNumbering);
return { return {
data: xmlData, data: referenedXmlData,
path: `word/footer${index + 1}.xml`, path: `word/footer${index + 1}.xml`,
}; };
}), }),
@ -399,6 +405,22 @@ export class Compiler {
), ),
path: "word/settings.xml", path: "word/settings.xml",
}, },
Comments: {
data: xml(
this.formatter.format(file.Comments, {
viewWrapper: file.Document,
file,
}),
{
indent: prettify,
declaration: {
standalone: "yes",
encoding: "UTF-8",
},
},
),
path: "word/comments.xml",
},
}; };
} }
} }

View File

@ -1,7 +1,7 @@
import { ConcreteNumbering } from "file"; import { ConcreteNumbering } from "@file/numbering";
export class NumberingReplacer { export class NumberingReplacer {
public replace(xmlData: string, concreteNumberings: ConcreteNumbering[]): string { public replace(xmlData: string, concreteNumberings: readonly ConcreteNumbering[]): string {
let currentXmlData = xmlData; let currentXmlData = xmlData;
for (const concreteNumbering of concreteNumberings) { for (const concreteNumbering of concreteNumberings) {

View File

@ -2,7 +2,8 @@
import { assert } from "chai"; import { assert } from "chai";
import { mock, stub } from "sinon"; import { mock, stub } from "sinon";
import { File, HeadingLevel, Paragraph } from "file"; import { File } from "@file/file";
import { HeadingLevel, Paragraph } from "@file/paragraph";
import { Packer } from "./packer"; import { Packer } from "./packer";
@ -36,6 +37,14 @@ describe("Packer", () => {
}); });
}); });
describe("#toString()", () => {
it("should return a non-empty string", async () => {
const result = await Packer.toString(file);
assert.isAbove(result.length, 0);
});
});
describe("#toBuffer()", () => { describe("#toBuffer()", () => {
it("should create a standard docx file", async function () { it("should create a standard docx file", async function () {
this.timeout(99999999); this.timeout(99999999);
@ -46,7 +55,7 @@ describe("Packer", () => {
}); });
it("should handle exception if it throws any", () => { it("should handle exception if it throws any", () => {
// tslint:disable-next-line:no-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
const compiler = stub((Packer as any).compiler, "compile"); const compiler = stub((Packer as any).compiler, "compile");
compiler.throwsException(); compiler.throwsException();
@ -56,7 +65,7 @@ describe("Packer", () => {
}); });
after(() => { after(() => {
// tslint:disable-next-line:no-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
(Packer as any).compiler.compile.restore(); (Packer as any).compiler.compile.restore();
}); });
}); });
@ -71,7 +80,7 @@ describe("Packer", () => {
}); });
it("should handle exception if it throws any", () => { it("should handle exception if it throws any", () => {
// tslint:disable-next-line:no-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
const compiler = stub((Packer as any).compiler, "compile"); const compiler = stub((Packer as any).compiler, "compile");
compiler.throwsException(); compiler.throwsException();
@ -81,14 +90,14 @@ describe("Packer", () => {
}); });
after(() => { after(() => {
// tslint:disable-next-line:no-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
(Packer as any).compiler.compile.restore(); (Packer as any).compiler.compile.restore();
}); });
}); });
describe("#toBlob()", () => { describe("#toBlob()", () => {
it("should create a standard docx file", async () => { it("should create a standard docx file", async () => {
// tslint:disable-next-line: no-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
stub((Packer as any).compiler, "compile").callsFake(() => ({ stub((Packer as any).compiler, "compile").callsFake(() => ({
// tslint:disable-next-line: no-empty // tslint:disable-next-line: no-empty
generateAsync: () => mock({}), generateAsync: () => mock({}),
@ -99,7 +108,7 @@ describe("Packer", () => {
}); });
it("should handle exception if it throws any", () => { it("should handle exception if it throws any", () => {
// tslint:disable-next-line:no-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
const compiler = stub((Packer as any).compiler, "compile"); const compiler = stub((Packer as any).compiler, "compile");
compiler.throwsException(); compiler.throwsException();
@ -109,7 +118,57 @@ describe("Packer", () => {
}); });
afterEach(() => { afterEach(() => {
// tslint:disable-next-line:no-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
(Packer as any).compiler.compile.restore();
});
});
describe("#toStream()", () => {
it("should create a standard docx file", async () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
stub((Packer as any).compiler, "compile").callsFake(() => ({
// tslint:disable-next-line: no-empty
generateNodeStream: () => ({
on: (event: string, cb: () => void) => {
if (event === "end") {
cb();
}
},
}),
}));
const stream = await Packer.toStream(file);
return new Promise((resolve, reject) => {
stream.on("error", () => {
reject(new Error());
});
stream.on("end", () => {
resolve();
});
});
});
it("should handle exception if it throws any", () => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const compiler = stub((Packer as any).compiler, "compile").callsFake(() => ({
// tslint:disable-next-line: no-empty
on: (event: string, cb: () => void) => {
if (event === "error") {
cb();
}
},
}));
compiler.throwsException();
try {
Packer.toStream(file);
} catch (error) {
assert.isDefined(error);
}
});
afterEach(() => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
(Packer as any).compiler.compile.restore(); (Packer as any).compiler.compile.restore();
}); });
}); });

View File

@ -1,8 +1,31 @@
import { File } from "file"; import { Stream } from "stream";
import { File } from "@file/file";
import { Compiler } from "./next-compiler"; import { Compiler } from "./next-compiler";
/**
* Use blanks to prettify
*/
export enum PrettifyType {
NONE = "",
WITH_2_BLANKS = " ",
WITH_4_BLANKS = " ",
WITH_TAB = "\t",
}
export class Packer { export class Packer {
public static async toBuffer(file: File, prettify?: boolean): Promise<Buffer> { public static async toString(file: File, prettify?: boolean | PrettifyType): Promise<string> {
const zip = this.compiler.compile(file, prettify);
const zipData = await zip.generateAsync({
type: "string",
mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
compression: "DEFLATE",
});
return zipData;
}
public static async toBuffer(file: File, prettify?: boolean | PrettifyType): Promise<Buffer> {
const zip = this.compiler.compile(file, prettify); const zip = this.compiler.compile(file, prettify);
const zipData = await zip.generateAsync({ const zipData = await zip.generateAsync({
type: "nodebuffer", type: "nodebuffer",
@ -13,7 +36,7 @@ export class Packer {
return zipData; return zipData;
} }
public static async toBase64String(file: File, prettify?: boolean): Promise<string> { public static async toBase64String(file: File, prettify?: boolean | PrettifyType): Promise<string> {
const zip = this.compiler.compile(file, prettify); const zip = this.compiler.compile(file, prettify);
const zipData = await zip.generateAsync({ const zipData = await zip.generateAsync({
type: "base64", type: "base64",
@ -24,7 +47,7 @@ export class Packer {
return zipData; return zipData;
} }
public static async toBlob(file: File, prettify?: boolean): Promise<Blob> { public static async toBlob(file: File, prettify?: boolean | PrettifyType): Promise<Blob> {
const zip = this.compiler.compile(file, prettify); const zip = this.compiler.compile(file, prettify);
const zipData = await zip.generateAsync({ const zipData = await zip.generateAsync({
type: "blob", type: "blob",
@ -35,5 +58,17 @@ export class Packer {
return zipData; return zipData;
} }
public static toStream(file: File, prettify?: boolean | PrettifyType): Stream {
const zip = this.compiler.compile(file, prettify);
const zipData = zip.generateNodeStream({
type: "nodebuffer",
streamFiles: true,
mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
compression: "DEFLATE",
});
return zipData;
}
private static readonly compiler = new Compiler(); private static readonly compiler = new Compiler();
} }

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class AppPropertiesAttributes extends XmlAttributeComponent<{ export class AppPropertiesAttributes extends XmlAttributeComponent<{
readonly xmlns: string; readonly xmlns: string;

View File

@ -1,8 +1,8 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { AppPropertiesAttributes } from "./app-properties-attributes"; import { AppPropertiesAttributes } from "./app-properties-attributes";
export class AppProperties extends XmlComponent { export class AppProperties extends XmlComponent {
constructor() { public constructor() {
super("Properties"); super("Properties");
this.root.push( this.root.push(

View File

@ -1,7 +1,7 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { BorderStyle } from "file/border"; import { BorderStyle } from "@file/border";
import { BorderElement } from "./border"; import { BorderElement } from "./border";

View File

@ -19,8 +19,8 @@
// <xsd:attribute name="shadow" type="s:ST_OnOff" use="optional"/> // <xsd:attribute name="shadow" type="s:ST_OnOff" use="optional"/>
// <xsd:attribute name="frame" type="s:ST_OnOff" use="optional"/> // <xsd:attribute name="frame" type="s:ST_OnOff" use="optional"/>
// </xsd:complexType> // </xsd:complexType>
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { eighthPointMeasureValue, hexColorValue, pointMeasureValue } from "../values"; import { eighthPointMeasureValue, hexColorValue, pointMeasureValue } from "@util/values";
export interface IBorderOptions { export interface IBorderOptions {
readonly style: BorderStyle; readonly style: BorderStyle;
@ -33,7 +33,7 @@ export interface IBorderOptions {
} }
export class BorderElement extends XmlComponent { export class BorderElement extends XmlComponent {
constructor(elementName: string, { color, size, space, style }: IBorderOptions) { public constructor(elementName: string, { color, size, space, style }: IBorderOptions) {
super(elementName); super(elementName);
this.root.push( this.root.push(
new BordersAttributes({ new BordersAttributes({

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class ContentTypeAttributes extends XmlAttributeComponent<{ export class ContentTypeAttributes extends XmlAttributeComponent<{
readonly xmlns?: string; readonly xmlns?: string;

View File

@ -2,7 +2,7 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { ContentTypes } from "./content-types"; import { ContentTypes } from "./content-types";
@ -102,7 +102,7 @@ describe("ContentTypes", () => {
contentTypes.addFooter(102); contentTypes.addFooter(102);
const tree = new Formatter().format(contentTypes); const tree = new Formatter().format(contentTypes);
expect(tree["Types"][16]).to.deep.equal({ expect(tree["Types"][17]).to.deep.equal({
Override: { Override: {
_attr: { _attr: {
ContentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml", ContentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",
@ -111,7 +111,7 @@ describe("ContentTypes", () => {
}, },
}); });
expect(tree["Types"][17]).to.deep.equal({ expect(tree["Types"][18]).to.deep.equal({
Override: { Override: {
_attr: { _attr: {
ContentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml", ContentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.footer+xml",
@ -128,7 +128,7 @@ describe("ContentTypes", () => {
contentTypes.addHeader(202); contentTypes.addHeader(202);
const tree = new Formatter().format(contentTypes); const tree = new Formatter().format(contentTypes);
expect(tree["Types"][16]).to.deep.equal({ expect(tree["Types"][17]).to.deep.equal({
Override: { Override: {
_attr: { _attr: {
ContentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml", ContentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",
@ -137,7 +137,7 @@ describe("ContentTypes", () => {
}, },
}); });
expect(tree["Types"][17]).to.deep.equal({ expect(tree["Types"][18]).to.deep.equal({
Override: { Override: {
_attr: { _attr: {
ContentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml", ContentType: "application/vnd.openxmlformats-officedocument.wordprocessingml.header+xml",

View File

@ -1,10 +1,10 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { ContentTypeAttributes } from "./content-types-attributes"; import { ContentTypeAttributes } from "./content-types-attributes";
import { Default } from "./default/default"; import { Default } from "./default/default";
import { Override } from "./override/override"; import { Override } from "./override/override";
export class ContentTypes extends XmlComponent { export class ContentTypes extends XmlComponent {
constructor() { public constructor() {
super("Types"); super("Types");
this.root.push( this.root.push(
@ -32,6 +32,7 @@ export class ContentTypes extends XmlComponent {
this.root.push(new Override("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml", "/word/numbering.xml")); this.root.push(new Override("application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml", "/word/numbering.xml"));
this.root.push(new Override("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml", "/word/footnotes.xml")); this.root.push(new Override("application/vnd.openxmlformats-officedocument.wordprocessingml.footnotes+xml", "/word/footnotes.xml"));
this.root.push(new Override("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml", "/word/settings.xml")); this.root.push(new Override("application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml", "/word/settings.xml"));
this.root.push(new Override("application/vnd.openxmlformats-officedocument.wordprocessingml.comments+xml", "/word/comments.xml"));
} }
public addFooter(index: number): void { public addFooter(index: number): void {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class DefaultAttributes extends XmlAttributeComponent<{ export class DefaultAttributes extends XmlAttributeComponent<{
readonly contentType: string; readonly contentType: string;

View File

@ -1,8 +1,8 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { DefaultAttributes } from "./default-attributes"; import { DefaultAttributes } from "./default-attributes";
export class Default extends XmlComponent { export class Default extends XmlComponent {
constructor(contentType: string, extension?: string) { public constructor(contentType: string, extension?: string) {
super("Default"); super("Default");
this.root.push( this.root.push(

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class OverrideAttributes extends XmlAttributeComponent<{ export class OverrideAttributes extends XmlAttributeComponent<{
readonly contentType: string; readonly contentType: string;

View File

@ -1,8 +1,8 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { OverrideAttributes } from "./override-attributes"; import { OverrideAttributes } from "./override-attributes";
export class Override extends XmlComponent { export class Override extends XmlComponent {
constructor(contentType: string, partName?: string) { public constructor(contentType: string, partName?: string) {
super("Override"); super("Override");
this.root.push( this.root.push(

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { CoreProperties } from "./properties"; import { CoreProperties } from "./properties";

View File

@ -1,4 +1,7 @@
import { StringContainer, XmlComponent } from "file/xml-components"; import { ICommentsOptions } from "@file/paragraph/run/comment-run";
import { StringContainer, XmlComponent } from "@file/xml-components";
import { dateTimeValue } from "@util/values";
import { ICustomPropertyOptions } from "../custom-properties"; import { ICustomPropertyOptions } from "../custom-properties";
import { IDocumentBackgroundOptions } from "../document"; import { IDocumentBackgroundOptions } from "../document";
@ -7,10 +10,9 @@ import { ISectionOptions } from "../file";
import { INumberingOptions } from "../numbering"; import { INumberingOptions } from "../numbering";
import { Paragraph } from "../paragraph"; import { Paragraph } from "../paragraph";
import { IStylesOptions } from "../styles"; import { IStylesOptions } from "../styles";
import { dateTimeValue } from "../values";
export interface IPropertiesOptions { export interface IPropertiesOptions {
readonly sections: ISectionOptions[]; readonly sections: readonly ISectionOptions[];
readonly title?: string; readonly title?: string;
readonly subject?: string; readonly subject?: string;
readonly creator?: string; readonly creator?: string;
@ -21,9 +23,10 @@ export interface IPropertiesOptions {
readonly externalStyles?: string; readonly externalStyles?: string;
readonly styles?: IStylesOptions; readonly styles?: IStylesOptions;
readonly numbering?: INumberingOptions; readonly numbering?: INumberingOptions;
readonly comments?: ICommentsOptions;
readonly footnotes?: { readonly footnotes?: {
readonly [key: string]: { readonly [key: string]: {
readonly children: Paragraph[]; readonly children: readonly Paragraph[];
}; };
}; };
readonly background?: IDocumentBackgroundOptions; readonly background?: IDocumentBackgroundOptions;
@ -32,12 +35,13 @@ export interface IPropertiesOptions {
readonly updateFields?: boolean; readonly updateFields?: boolean;
}; };
readonly compatabilityModeVersion?: number; readonly compatabilityModeVersion?: number;
readonly customProperties?: ICustomPropertyOptions[]; readonly customProperties?: readonly ICustomPropertyOptions[];
readonly evenAndOddHeaderAndFooters?: boolean; readonly evenAndOddHeaderAndFooters?: boolean;
} }
// <xs:element name="coreProperties" type="CT_CoreProperties"/> // <xs:element name="coreProperties" type="CT_CoreProperties"/>
/* cSpell:disable */
// <xs:complexType name="CT_CoreProperties"> // <xs:complexType name="CT_CoreProperties">
// <xs:all> // <xs:all>
// <xs:element name="category" minOccurs="0" maxOccurs="1" type="xs:string"/> // <xs:element name="category" minOccurs="0" maxOccurs="1" type="xs:string"/>
@ -57,9 +61,10 @@ export interface IPropertiesOptions {
// <xs:element name="version" minOccurs="0" maxOccurs="1" type="xs:string"/> // <xs:element name="version" minOccurs="0" maxOccurs="1" type="xs:string"/>
// </xs:all> // </xs:all>
// </xs:complexType> // </xs:complexType>
/* cSpell:enable */
export class CoreProperties extends XmlComponent { export class CoreProperties extends XmlComponent {
constructor(options: Omit<IPropertiesOptions, "sections">) { public constructor(options: Omit<IPropertiesOptions, "sections">) {
super("cp:coreProperties"); super("cp:coreProperties");
this.root.push( this.root.push(
new DocumentAttributes({ new DocumentAttributes({
@ -97,7 +102,7 @@ export class CoreProperties extends XmlComponent {
} }
class TimestampElement extends XmlComponent { class TimestampElement extends XmlComponent {
constructor(name: string) { public constructor(name: string) {
super(name); super(name);
this.root.push( this.root.push(
new DocumentAttributes({ new DocumentAttributes({

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class CustomPropertiesAttributes extends XmlAttributeComponent<{ export class CustomPropertiesAttributes extends XmlAttributeComponent<{
readonly xmlns: string; readonly xmlns: string;

View File

@ -1,5 +1,7 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter";
import { Formatter } from "@export/formatter";
import { CustomProperties } from "./custom-properties"; import { CustomProperties } from "./custom-properties";
describe("CustomProperties", () => { describe("CustomProperties", () => {

View File

@ -1,13 +1,14 @@
import { IContext, IXmlableObject, XmlComponent } from "file/xml-components"; import { IContext, IXmlableObject, XmlComponent } from "@file/xml-components";
import { CustomPropertiesAttributes } from "./custom-properties-attributes"; import { CustomPropertiesAttributes } from "./custom-properties-attributes";
import { CustomProperty, ICustomPropertyOptions } from "./custom-property"; import { CustomProperty, ICustomPropertyOptions } from "./custom-property";
export class CustomProperties extends XmlComponent { export class CustomProperties extends XmlComponent {
// tslint:disable-next-line:readonly-keyword // eslint-disable-next-line functional/prefer-readonly-type
private nextId: number; private nextId: number;
// eslint-disable-next-line functional/prefer-readonly-type
private readonly properties: CustomProperty[] = []; private readonly properties: CustomProperty[] = [];
constructor(properties: ICustomPropertyOptions[]) { public constructor(properties: readonly ICustomPropertyOptions[]) {
super("Properties"); super("Properties");
this.root.push( this.root.push(
@ -32,6 +33,7 @@ export class CustomProperties extends XmlComponent {
} }
public addCustomProperty(property: ICustomPropertyOptions): void { public addCustomProperty(property: ICustomPropertyOptions): void {
// eslint-disable-next-line functional/immutable-data
this.properties.push(new CustomProperty(this.nextId++, property)); this.properties.push(new CustomProperty(this.nextId++, property));
} }
} }

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
export class CustomPropertyAttributes extends XmlAttributeComponent<{ export class CustomPropertyAttributes extends XmlAttributeComponent<{
readonly fmtid: string; readonly fmtid: string;

View File

@ -1,4 +1,4 @@
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { CustomPropertyAttributes } from "./custom-property-attributes"; import { CustomPropertyAttributes } from "./custom-property-attributes";
export interface ICustomPropertyOptions { export interface ICustomPropertyOptions {
@ -7,7 +7,7 @@ export interface ICustomPropertyOptions {
} }
export class CustomProperty extends XmlComponent { export class CustomProperty extends XmlComponent {
constructor(id: number, properties: ICustomPropertyOptions) { public constructor(id: number, properties: ICustomPropertyOptions) {
super("property"); super("property");
this.root.push( this.root.push(
new CustomPropertyAttributes({ new CustomPropertyAttributes({
@ -21,7 +21,7 @@ export class CustomProperty extends XmlComponent {
} }
export class CustomPropertyValue extends XmlComponent { export class CustomPropertyValue extends XmlComponent {
constructor(value: string) { public constructor(value: string) {
super("vt:lpwstr"); super("vt:lpwstr");
this.root.push(value); this.root.push(value);
} }

View File

@ -7,9 +7,7 @@ describe("DocumentWrapper", () => {
it("should create", () => { it("should create", () => {
const file = new DocumentWrapper({ background: {} }); const file = new DocumentWrapper({ background: {} });
// tslint:disable-next-line: no-unused-expression
expect(file.View).to.be.ok; expect(file.View).to.be.ok;
// tslint:disable-next-line: no-unused-expression
expect(file.Relationships).to.be.ok; expect(file.Relationships).to.be.ok;
}); });
}); });

View File

@ -13,7 +13,7 @@ export class DocumentWrapper implements IViewWrapper {
private readonly document: Document; private readonly document: Document;
private readonly relationships: Relationships; private readonly relationships: Relationships;
constructor(options: IDocumentOptions) { public constructor(options: IDocumentOptions) {
this.document = new Document(options); this.document = new Document(options);
this.relationships = new Relationships(); this.relationships = new Relationships();
} }

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { Body } from "./body"; import { Body } from "./body";
import { sectionMarginDefaults } from "./section-properties"; import { sectionMarginDefaults } from "./section-properties";

View File

@ -1,12 +1,13 @@
import { IContext, IXmlableObject, XmlComponent } from "file/xml-components"; import { Paragraph, ParagraphProperties } from "@file/paragraph";
import { IContext, IXmlableObject, XmlComponent } from "@file/xml-components";
import { Paragraph, ParagraphProperties } from "../..";
import { ISectionPropertiesOptions, SectionProperties } from "./section-properties/section-properties"; import { ISectionPropertiesOptions, SectionProperties } from "./section-properties/section-properties";
export class Body extends XmlComponent { export class Body extends XmlComponent {
// eslint-disable-next-line functional/prefer-readonly-type
private readonly sections: SectionProperties[] = []; private readonly sections: SectionProperties[] = [];
constructor() { public constructor() {
super("w:body"); super("w:body");
} }
@ -16,6 +17,7 @@ export class Body extends XmlComponent {
* The spec says: * The spec says:
* - section element should be in the last paragraph of the section * - section element should be in the last paragraph of the section
* - last section should be direct child of body * - last section should be direct child of body
*
* @param options new section options * @param options new section options
*/ */
public addSection(options: ISectionPropertiesOptions): void { public addSection(options: ISectionPropertiesOptions): void {

View File

@ -1,5 +1,5 @@
import { twipsMeasureValue } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { twipsMeasureValue } from "@util/values";
export interface IColumnAttributes { export interface IColumnAttributes {
readonly width: number | string; readonly width: number | string;
@ -14,7 +14,7 @@ export class ColumnAttributes extends XmlAttributeComponent<IColumnAttributes> {
} }
export class Column extends XmlComponent { export class Column extends XmlComponent {
constructor({ width, space }: IColumnAttributes) { public constructor({ width, space }: IColumnAttributes) {
super("w:col"); super("w:col");
this.root.push( this.root.push(
new ColumnAttributes({ new ColumnAttributes({

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { Column, Columns } from "."; import { Column, Columns } from ".";
@ -13,6 +13,13 @@ describe("Columns", () => {
expect(tree["w:cols"]).to.deep.equal({ _attr: { "w:num": 3, "w:space": 720 } }); expect(tree["w:cols"]).to.deep.equal({ _attr: { "w:num": 3, "w:space": 720 } });
}); });
it("should create set space and count to undefined if they are undefined", () => {
const columns = new Columns({});
const tree = new Formatter().format(columns);
expect(tree["w:cols"]).to.deep.equal({ _attr: {} });
});
it("should ignore individual column attributes if equalWidth is true", () => { it("should ignore individual column attributes if equalWidth is true", () => {
const unequalColumns = [new Column({ width: 1000, space: 400 }), new Column({ width: 2000 })]; const unequalColumns = [new Column({ width: 1000, space: 400 }), new Column({ width: 2000 })];
const columns = new Columns({ count: 3, space: 720, equalWidth: true, children: unequalColumns }); const columns = new Columns({ count: 3, space: 720, equalWidth: true, children: unequalColumns });

View File

@ -1,5 +1,6 @@
import { decimalNumber, twipsMeasureValue } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { decimalNumber, twipsMeasureValue } from "@util/values";
import { Column } from "./column"; import { Column } from "./column";
// <xsd:complexType name="CT_Columns"> // <xsd:complexType name="CT_Columns">
@ -16,7 +17,7 @@ export interface IColumnsAttributes {
readonly count?: number; readonly count?: number;
readonly separate?: boolean; readonly separate?: boolean;
readonly equalWidth?: boolean; readonly equalWidth?: boolean;
readonly children?: Column[]; readonly children?: readonly Column[];
} }
export class ColumnsAttributes extends XmlAttributeComponent<IColumnsAttributes> { export class ColumnsAttributes extends XmlAttributeComponent<IColumnsAttributes> {
@ -29,7 +30,7 @@ export class ColumnsAttributes extends XmlAttributeComponent<IColumnsAttributes>
} }
export class Columns extends XmlComponent { export class Columns extends XmlComponent {
constructor({ space, count, separate, equalWidth, children }: IColumnsAttributes) { public constructor({ space, count, separate, equalWidth, children }: IColumnsAttributes) {
super("w:cols"); super("w:cols");
this.root.push( this.root.push(
new ColumnsAttributes({ new ColumnsAttributes({

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { DocumentGrid, DocumentGridType } from "."; import { DocumentGrid, DocumentGridType } from ".";

View File

@ -1,5 +1,5 @@
import { decimalNumber } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { decimalNumber } from "@util/values";
// not implemented // not implemented
// <xsd:simpleType name="ST_DocGrid"> // <xsd:simpleType name="ST_DocGrid">
@ -38,7 +38,7 @@ export class DocGridAttributes extends XmlAttributeComponent<IDocGridAttributesP
} }
export class DocumentGrid extends XmlComponent { export class DocumentGrid extends XmlComponent {
constructor(linePitch: number, charSpace?: number, type?: DocumentGridType) { public constructor(linePitch: number, charSpace?: number, type?: DocumentGridType) {
super("w:docGrid"); super("w:docGrid");
this.root.push( this.root.push(

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { HeaderFooterReference, HeaderFooterReferenceType, HeaderFooterType } from "./header-footer-reference"; import { HeaderFooterReference, HeaderFooterReferenceType, HeaderFooterType } from "./header-footer-reference";
describe("HeaderFooterReference", () => { describe("HeaderFooterReference", () => {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
// <xsd:simpleType name="ST_HdrFtr"> // <xsd:simpleType name="ST_HdrFtr">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">
@ -52,7 +52,7 @@ export enum HeaderFooterType {
FOOTER = "w:footerReference", FOOTER = "w:footerReference",
} }
export class HeaderFooterReference extends XmlComponent { export class HeaderFooterReference extends XmlComponent {
constructor(type: HeaderFooterType, options: IHeaderFooterOptions) { public constructor(type: HeaderFooterType, options: IHeaderFooterOptions) {
super(type); super(type);
this.root.push( this.root.push(

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/WPsectionLineNumbering.php // http://officeopenxml.com/WPsectionLineNumbering.php
import { decimalNumber, twipsMeasureValue } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { decimalNumber, twipsMeasureValue } from "@util/values";
// <xsd:simpleType name="ST_LineNumberRestart"> // <xsd:simpleType name="ST_LineNumberRestart">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">
@ -39,7 +39,7 @@ export class LineNumberAttributes extends XmlAttributeComponent<ILineNumberAttri
} }
export class LineNumberType extends XmlComponent { export class LineNumberType extends XmlComponent {
constructor({ countBy, start, restart, distance }: ILineNumberAttributes) { public constructor({ countBy, start, restart, distance }: ILineNumberAttributes) {
super("w:lnNumType"); super("w:lnNumType");
this.root.push( this.root.push(
new LineNumberAttributes({ new LineNumberAttributes({

View File

@ -1,7 +1,7 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { BorderStyle } from "file/border"; import { BorderStyle } from "@file/border";
import { PageBorderDisplay, PageBorders, PageBorderZOrder } from "./page-borders"; import { PageBorderDisplay, PageBorders, PageBorderZOrder } from "./page-borders";

View File

@ -1,6 +1,6 @@
// http://officeopenxml.com/WPsectionBorders.php // http://officeopenxml.com/WPsectionBorders.php
import { BorderElement, IBorderOptions } from "file/border"; import { BorderElement, IBorderOptions } from "@file/border";
import { IgnoreIfEmptyXmlComponent, XmlAttributeComponent } from "file/xml-components"; import { IgnoreIfEmptyXmlComponent, XmlAttributeComponent } from "@file/xml-components";
// <xsd:simpleType name="ST_PageBorderDisplay"> // <xsd:simpleType name="ST_PageBorderDisplay">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">
@ -71,7 +71,7 @@ class PageBordersAttributes extends XmlAttributeComponent<IPageBorderAttributes>
// <xsd:attribute name="offsetFrom" type="ST_PageBorderOffset" use="optional" default="text"/> // <xsd:attribute name="offsetFrom" type="ST_PageBorderOffset" use="optional" default="text"/>
// </xsd:complexType> // </xsd:complexType>
export class PageBorders extends IgnoreIfEmptyXmlComponent { export class PageBorders extends IgnoreIfEmptyXmlComponent {
constructor(options?: IPageBordersOptions) { public constructor(options?: IPageBordersOptions) {
super("w:pgBorders"); super("w:pgBorders");
if (!options) { if (!options) {

View File

@ -1,5 +1,5 @@
import { signedTwipsMeasureValue, twipsMeasureValue } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { signedTwipsMeasureValue, twipsMeasureValue } from "@util/values";
// <xsd:complexType name="CT_PageMar"> // <xsd:complexType name="CT_PageMar">
// <xsd:attribute name="top" type="ST_SignedTwipsMeasure" use="required"/> // <xsd:attribute name="top" type="ST_SignedTwipsMeasure" use="required"/>
@ -33,7 +33,7 @@ export class PageMarginAttributes extends XmlAttributeComponent<IPageMarginAttri
} }
export class PageMargin extends XmlComponent { export class PageMargin extends XmlComponent {
constructor( public constructor(
top: number | string, top: number | string,
right: number | string, right: number | string,
bottom: number | string, bottom: number | string,

View File

@ -1,7 +1,7 @@
// http://officeopenxml.com/WPSectionPgNumType.php // http://officeopenxml.com/WPSectionPgNumType.php
import { NumberFormat } from "file/shared/number-format"; import { NumberFormat } from "@file/shared/number-format";
import { decimalNumber } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { decimalNumber } from "@util/values";
// <xsd:simpleType name="ST_ChapterSep"> // <xsd:simpleType name="ST_ChapterSep">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">
@ -41,7 +41,7 @@ export class PageNumberTypeAttributes extends XmlAttributeComponent<IPageNumberT
}; };
} }
export class PageNumberType extends XmlComponent { export class PageNumberType extends XmlComponent {
constructor({ start, formatType, separator }: IPageNumberTypeAttributes) { public constructor({ start, formatType, separator }: IPageNumberTypeAttributes) {
super("w:pgNumType"); super("w:pgNumType");
this.root.push( this.root.push(
new PageNumberTypeAttributes({ new PageNumberTypeAttributes({

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { PageOrientation, PageSize } from "./page-size"; import { PageOrientation, PageSize } from "./page-size";

View File

@ -1,5 +1,5 @@
import { twipsMeasureValue } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { twipsMeasureValue } from "@util/values";
// <xsd:simpleType name="ST_PageOrientation"> // <xsd:simpleType name="ST_PageOrientation">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">
@ -33,7 +33,7 @@ export class PageSizeAttributes extends XmlAttributeComponent<IPageSizeAttribute
} }
export class PageSize extends XmlComponent { export class PageSize extends XmlComponent {
constructor(width: number | string, height: number | string, orientation: PageOrientation) { public constructor(width: number | string, height: number | string, orientation: PageOrientation) {
super("w:pgSz"); super("w:pgSz");
const flip = orientation === PageOrientation.LANDSCAPE; const flip = orientation === PageOrientation.LANDSCAPE;

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { PageTextDirection, PageTextDirectionType } from "./page-text-direction"; import { PageTextDirection, PageTextDirectionType } from "./page-text-direction";
describe("PageTextDirection", () => { describe("PageTextDirection", () => {

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
export enum PageTextDirectionType { export enum PageTextDirectionType {
LEFT_TO_RIGHT_TOP_TO_BOTTOM = "lrTb", LEFT_TO_RIGHT_TOP_TO_BOTTOM = "lrTb",
@ -10,7 +10,7 @@ class PageTextDirectionAttributes extends XmlAttributeComponent<{ readonly val:
} }
export class PageTextDirection extends XmlComponent { export class PageTextDirection extends XmlComponent {
constructor(value: PageTextDirectionType) { public constructor(value: PageTextDirectionType) {
super("w:textDirection"); super("w:textDirection");
this.root.push( this.root.push(

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { SectionType, Type } from "./section-type"; import { SectionType, Type } from "./section-type";
describe("Type", () => { describe("Type", () => {

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPsection.php // http://officeopenxml.com/WPsection.php
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
// <xsd:simpleType name="ST_SectionMark"> // <xsd:simpleType name="ST_SectionMark">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">
@ -30,7 +30,7 @@ export class SectionTypeAttributes extends XmlAttributeComponent<{
} }
export class Type extends XmlComponent { export class Type extends XmlComponent {
constructor(value: SectionType) { public constructor(value: SectionType) {
super("w:type"); super("w:type");
this.root.push(new SectionTypeAttributes({ val: value })); this.root.push(new SectionTypeAttributes({ val: value }));
} }

View File

@ -1,12 +1,12 @@
import { expect } from "chai"; import { expect } from "chai";
import { convertInchesToTwip } from "convenience-functions"; import { Formatter } from "@export/formatter";
import { Formatter } from "export/formatter"; import { FooterWrapper } from "@file/footer-wrapper";
import { FooterWrapper } from "file/footer-wrapper"; import { HeaderWrapper } from "@file/header-wrapper";
import { HeaderWrapper } from "file/header-wrapper"; import { Media } from "@file/media";
import { Media } from "file/media"; import { NumberFormat } from "@file/shared/number-format";
import { NumberFormat } from "file/shared/number-format"; import { VerticalAlign } from "@file/vertical-align";
import { VerticalAlign } from "file/vertical-align"; import { convertInchesToTwip } from "@util/convenience-functions";
import { PageOrientation } from "./properties"; import { PageOrientation } from "./properties";
import { DocumentGridType } from "./properties/doc-grid"; import { DocumentGridType } from "./properties/doc-grid";

View File

@ -1,10 +1,10 @@
// http://officeopenxml.com/WPsection.php // http://officeopenxml.com/WPsection.php
// tslint:disable: no-unnecessary-initializer // tslint:disable: no-unnecessary-initializer
import { FooterWrapper } from "file/footer-wrapper"; import { FooterWrapper } from "@file/footer-wrapper";
import { HeaderWrapper } from "file/header-wrapper"; import { HeaderWrapper } from "@file/header-wrapper";
import { VerticalAlign, VerticalAlignElement } from "file/vertical-align"; import { VerticalAlign, VerticalAlignElement } from "@file/vertical-align";
import { OnOffElement, XmlComponent } from "file/xml-components"; import { OnOffElement, XmlComponent } from "@file/xml-components";
import { HeaderFooterReference, HeaderFooterReferenceType, HeaderFooterType } from "./properties/header-footer-reference"; import { HeaderFooterReference, HeaderFooterReferenceType, HeaderFooterType } from "./properties/header-footer-reference";
@ -92,7 +92,7 @@ export const sectionPageSizeDefaults = {
}; };
export class SectionProperties extends XmlComponent { export class SectionProperties extends XmlComponent {
constructor({ public constructor({
page: { page: {
size: { size: {
width = sectionPageSizeDefaults.WIDTH, width = sectionPageSizeDefaults.WIDTH,

View File

@ -1,5 +1,6 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
/* cSpell:disable */
export interface IDocumentAttributesProperties { export interface IDocumentAttributesProperties {
readonly wpc?: string; readonly wpc?: string;
readonly mc?: string; readonly mc?: string;
@ -24,7 +25,24 @@ export interface IDocumentAttributesProperties {
readonly dcmitype?: string; readonly dcmitype?: string;
readonly xsi?: string; readonly xsi?: string;
readonly type?: string; readonly type?: string;
readonly cx?: string;
readonly cx1?: string;
readonly cx2?: string;
readonly cx3?: string;
readonly cx4?: string;
readonly cx5?: string;
readonly cx6?: string;
readonly cx7?: string;
readonly cx8?: string;
readonly aink?: string;
readonly am3d?: string;
readonly w16cex?: string;
readonly w16cid?: string;
readonly w16?: string;
readonly w16sdtdh?: string;
readonly w16se?: string;
} }
/* cSpell:enable */
export class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> { export class DocumentAttributes extends XmlAttributeComponent<IDocumentAttributesProperties> {
protected readonly xmlKeys = { protected readonly xmlKeys = {
@ -51,5 +69,21 @@ export class DocumentAttributes extends XmlAttributeComponent<IDocumentAttribute
dcmitype: "xmlns:dcmitype", dcmitype: "xmlns:dcmitype",
xsi: "xmlns:xsi", xsi: "xmlns:xsi",
type: "xsi:type", type: "xsi:type",
cx: "xmlns:cx",
cx1: "xmlns:cx1",
cx2: "xmlns:cx2",
cx3: "xmlns:cx3",
cx4: "xmlns:cx4",
cx5: "xmlns:cx5",
cx6: "xmlns:cx6",
cx7: "xmlns:cx7",
cx8: "xmlns:cx8",
aink: "xmlns:aink",
am3d: "xmlns:am3d",
w16cex: "xmlns:w16cex",
w16cid: "xmlns:w16cid",
w16: "xmlns:w16",
w16sdtdh: "xmlns:w16sdtdh",
w16se: "xmlns:w16se",
}; };
} }

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { DocumentBackground } from "./document-background"; import { DocumentBackground } from "./document-background";

View File

@ -1,7 +1,7 @@
// http://officeopenxml.com/WPdocument.php // http://officeopenxml.com/WPdocument.php
// http://www.datypic.com/sc/ooxml/e-w_background-1.html // http://www.datypic.com/sc/ooxml/e-w_background-1.html
import { hexColorValue, uCharHexNumber } from "file/values"; import { XmlAttributeComponent, XmlComponent } from "@file/xml-components";
import { XmlAttributeComponent, XmlComponent } from "file/xml-components"; import { hexColorValue, uCharHexNumber } from "@util/values";
// <xsd:simpleType name="ST_ThemeColor"> // <xsd:simpleType name="ST_ThemeColor">
// <xsd:restriction base="xsd:string"> // <xsd:restriction base="xsd:string">
@ -63,7 +63,7 @@ export interface IDocumentBackgroundOptions {
// </xsd:complexType> // </xsd:complexType>
export class DocumentBackground extends XmlComponent { export class DocumentBackground extends XmlComponent {
constructor(options: IDocumentBackgroundOptions) { public constructor(options: IDocumentBackgroundOptions) {
super("w:background"); super("w:background");
this.root.push( this.root.push(

View File

@ -1,6 +1,6 @@
import { expect } from "chai"; import { expect } from "chai";
import { Formatter } from "export/formatter"; import { Formatter } from "@export/formatter";
import { Document } from "./document"; import { Document } from "./document";
@ -31,11 +31,27 @@ describe("Document", () => {
"xmlns:w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main", "xmlns:w": "http://schemas.openxmlformats.org/wordprocessingml/2006/main",
"xmlns:w14": "http://schemas.microsoft.com/office/word/2010/wordml", "xmlns:w14": "http://schemas.microsoft.com/office/word/2010/wordml",
"xmlns:w15": "http://schemas.microsoft.com/office/word/2012/wordml", "xmlns:w15": "http://schemas.microsoft.com/office/word/2012/wordml",
"xmlns:w16": "http://schemas.microsoft.com/office/word/2018/wordml",
"xmlns:w16cex": "http://schemas.microsoft.com/office/word/2018/wordml/cex",
"xmlns:w16cid": "http://schemas.microsoft.com/office/word/2016/wordml/cid",
"xmlns:w16sdtdh": "http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",
"xmlns:w16se": "http://schemas.microsoft.com/office/word/2015/wordml/symex",
"xmlns:wpg": "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup", "xmlns:wpg": "http://schemas.microsoft.com/office/word/2010/wordprocessingGroup",
"xmlns:wpi": "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", "xmlns:wpi": "http://schemas.microsoft.com/office/word/2010/wordprocessingInk",
"xmlns:wne": "http://schemas.microsoft.com/office/word/2006/wordml", "xmlns:wne": "http://schemas.microsoft.com/office/word/2006/wordml",
"xmlns:wps": "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", "xmlns:wps": "http://schemas.microsoft.com/office/word/2010/wordprocessingShape",
"mc:Ignorable": "w14 w15 wp14", "mc:Ignorable": "w14 w15 wp14",
"xmlns:aink": "http://schemas.microsoft.com/office/drawing/2016/ink",
"xmlns:am3d": "http://schemas.microsoft.com/office/drawing/2017/model3d",
"xmlns:cx": "http://schemas.microsoft.com/office/drawing/2014/chartex",
"xmlns:cx1": "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",
"xmlns:cx2": "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",
"xmlns:cx3": "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",
"xmlns:cx4": "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",
"xmlns:cx5": "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",
"xmlns:cx6": "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",
"xmlns:cx7": "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",
"xmlns:cx8": "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",
}, },
}, },
{ {

View File

@ -1,5 +1,5 @@
// http://officeopenxml.com/WPdocument.php // http://officeopenxml.com/WPdocument.php
import { XmlComponent } from "file/xml-components"; import { XmlComponent } from "@file/xml-components";
import { ConcreteHyperlink, Paragraph } from "../paragraph"; import { ConcreteHyperlink, Paragraph } from "../paragraph";
import { Table } from "../table"; import { Table } from "../table";
import { TableOfContents } from "../table-of-contents"; import { TableOfContents } from "../table-of-contents";
@ -33,7 +33,7 @@ export interface IDocumentOptions {
export class Document extends XmlComponent { export class Document extends XmlComponent {
private readonly body: Body; private readonly body: Body;
constructor(options: IDocumentOptions) { public constructor(options: IDocumentOptions) {
super("w:document"); super("w:document");
this.root.push( this.root.push(
new DocumentAttributes({ new DocumentAttributes({
@ -53,6 +53,22 @@ export class Document extends XmlComponent {
wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk", wpi: "http://schemas.microsoft.com/office/word/2010/wordprocessingInk",
wne: "http://schemas.microsoft.com/office/word/2006/wordml", wne: "http://schemas.microsoft.com/office/word/2006/wordml",
wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape", wps: "http://schemas.microsoft.com/office/word/2010/wordprocessingShape",
cx: "http://schemas.microsoft.com/office/drawing/2014/chartex",
cx1: "http://schemas.microsoft.com/office/drawing/2015/9/8/chartex",
cx2: "http://schemas.microsoft.com/office/drawing/2015/10/21/chartex",
cx3: "http://schemas.microsoft.com/office/drawing/2016/5/9/chartex",
cx4: "http://schemas.microsoft.com/office/drawing/2016/5/10/chartex",
cx5: "http://schemas.microsoft.com/office/drawing/2016/5/11/chartex",
cx6: "http://schemas.microsoft.com/office/drawing/2016/5/12/chartex",
cx7: "http://schemas.microsoft.com/office/drawing/2016/5/13/chartex",
cx8: "http://schemas.microsoft.com/office/drawing/2016/5/14/chartex",
aink: "http://schemas.microsoft.com/office/drawing/2016/ink",
am3d: "http://schemas.microsoft.com/office/drawing/2017/model3d",
w16cex: "http://schemas.microsoft.com/office/word/2018/wordml/cex",
w16cid: "http://schemas.microsoft.com/office/word/2016/wordml/cid",
w16: "http://schemas.microsoft.com/office/word/2018/wordml",
w16sdtdh: "http://schemas.microsoft.com/office/word/2020/wordml/sdtdatahash",
w16se: "http://schemas.microsoft.com/office/word/2015/wordml/symex",
Ignorable: "w14 w15 wp14", Ignorable: "w14 w15 wp14",
}), }),
); );

View File

@ -1,4 +1,4 @@
import { XmlAttributeComponent } from "file/xml-components"; import { XmlAttributeComponent } from "@file/xml-components";
import { IDistance } from "../drawing"; import { IDistance } from "../drawing";
export interface IAnchorAttributes extends IDistance { export interface IAnchorAttributes extends IDistance {

View File

@ -6,8 +6,8 @@ import { IDrawingOptions } from "../drawing";
import { TextWrappingType } from "../text-wrap"; import { TextWrappingType } from "../text-wrap";
import { Anchor } from "./anchor"; import { Anchor } from "./anchor";
function createAnchor(drawingOptions: IDrawingOptions): Anchor { const createAnchor = (drawingOptions: IDrawingOptions): Anchor =>
return new Anchor( new Anchor(
{ {
fileName: "test.png", fileName: "test.png",
stream: new Buffer(""), stream: new Buffer(""),
@ -34,7 +34,6 @@ function createAnchor(drawingOptions: IDrawingOptions): Anchor {
}, },
drawingOptions, drawingOptions,
); );
}
describe("Anchor", () => { describe("Anchor", () => {
let anchor: Anchor; let anchor: Anchor;

Some files were not shown because too many files have changed in this diff Show More