pretext-pdf 0.9.3 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (106) hide show
  1. package/CHANGELOG.md +141 -1
  2. package/README.md +874 -795
  3. package/dist/allowed-props.d.ts +1 -0
  4. package/dist/allowed-props.d.ts.map +1 -1
  5. package/dist/allowed-props.js +2 -0
  6. package/dist/allowed-props.js.map +1 -1
  7. package/dist/assets.d.ts +4 -2
  8. package/dist/assets.d.ts.map +1 -1
  9. package/dist/assets.js +22 -1
  10. package/dist/assets.js.map +1 -1
  11. package/dist/benchmarks/corpora.d.ts +11 -0
  12. package/dist/benchmarks/corpora.d.ts.map +1 -0
  13. package/dist/benchmarks/corpora.js +228 -0
  14. package/dist/benchmarks/corpora.js.map +1 -0
  15. package/dist/builder.d.ts +10 -2
  16. package/dist/builder.d.ts.map +1 -1
  17. package/dist/builder.js +12 -4
  18. package/dist/builder.js.map +1 -1
  19. package/dist/cli.js +19 -19
  20. package/dist/element-types.d.ts +16 -0
  21. package/dist/element-types.d.ts.map +1 -0
  22. package/dist/element-types.js +16 -0
  23. package/dist/element-types.js.map +1 -0
  24. package/dist/errors.d.ts +8 -1
  25. package/dist/errors.d.ts.map +1 -1
  26. package/dist/errors.js +4 -0
  27. package/dist/errors.js.map +1 -1
  28. package/dist/fonts.d.ts +2 -1
  29. package/dist/fonts.d.ts.map +1 -1
  30. package/dist/fonts.js.map +1 -1
  31. package/dist/index.d.ts +21 -17
  32. package/dist/index.d.ts.map +1 -1
  33. package/dist/index.js +25 -309
  34. package/dist/index.js.map +1 -1
  35. package/dist/layout-state.d.ts +39 -0
  36. package/dist/layout-state.d.ts.map +1 -0
  37. package/dist/layout-state.js +46 -0
  38. package/dist/layout-state.js.map +1 -0
  39. package/dist/measure-blocks.d.ts +2 -1
  40. package/dist/measure-blocks.d.ts.map +1 -1
  41. package/dist/measure-blocks.js.map +1 -1
  42. package/dist/measure.d.ts +4 -2
  43. package/dist/measure.d.ts.map +1 -1
  44. package/dist/measure.js +15 -5
  45. package/dist/measure.js.map +1 -1
  46. package/dist/page-sizes.d.ts +1 -0
  47. package/dist/page-sizes.d.ts.map +1 -1
  48. package/dist/page-sizes.js.map +1 -1
  49. package/dist/paginate.d.ts +1 -1
  50. package/dist/paginate.d.ts.map +1 -1
  51. package/dist/paginate.js +11 -2
  52. package/dist/paginate.js.map +1 -1
  53. package/dist/pipeline-footnotes.d.ts +18 -0
  54. package/dist/pipeline-footnotes.d.ts.map +1 -0
  55. package/dist/pipeline-footnotes.js +98 -0
  56. package/dist/pipeline-footnotes.js.map +1 -0
  57. package/dist/pipeline-toc.d.ts +11 -0
  58. package/dist/pipeline-toc.d.ts.map +1 -0
  59. package/dist/pipeline-toc.js +28 -0
  60. package/dist/pipeline-toc.js.map +1 -0
  61. package/dist/pipeline.d.ts +24 -0
  62. package/dist/pipeline.d.ts.map +1 -0
  63. package/dist/pipeline.js +116 -0
  64. package/dist/pipeline.js.map +1 -0
  65. package/dist/plugin-registry.d.ts +40 -0
  66. package/dist/plugin-registry.d.ts.map +1 -0
  67. package/dist/plugin-registry.js +104 -0
  68. package/dist/plugin-registry.js.map +1 -0
  69. package/dist/plugin-types.d.ts +185 -0
  70. package/dist/plugin-types.d.ts.map +1 -0
  71. package/dist/plugin-types.js +27 -0
  72. package/dist/plugin-types.js.map +1 -0
  73. package/dist/post-process.d.ts +16 -0
  74. package/dist/post-process.d.ts.map +1 -0
  75. package/dist/post-process.js +80 -0
  76. package/dist/post-process.js.map +1 -0
  77. package/dist/render-blocks.d.ts +2 -1
  78. package/dist/render-blocks.d.ts.map +1 -1
  79. package/dist/render-blocks.js.map +1 -1
  80. package/dist/render-extras.d.ts +2 -2
  81. package/dist/render-extras.d.ts.map +1 -1
  82. package/dist/render-extras.js.map +1 -1
  83. package/dist/render.d.ts +4 -2
  84. package/dist/render.d.ts.map +1 -1
  85. package/dist/render.js +23 -4
  86. package/dist/render.js.map +1 -1
  87. package/dist/types-internal.d.ts +302 -0
  88. package/dist/types-internal.d.ts.map +1 -0
  89. package/dist/types-internal.js +9 -0
  90. package/dist/types-internal.js.map +1 -0
  91. package/dist/types-public.d.ts +1031 -0
  92. package/dist/types-public.d.ts.map +1 -0
  93. package/dist/types-public.js +2 -0
  94. package/dist/types-public.js.map +1 -0
  95. package/dist/types.d.ts +6 -1224
  96. package/dist/types.d.ts.map +1 -1
  97. package/dist/types.js +7 -0
  98. package/dist/types.js.map +1 -1
  99. package/dist/validate.d.ts +6 -4
  100. package/dist/validate.d.ts.map +1 -1
  101. package/dist/validate.js +50 -17
  102. package/dist/validate.js.map +1 -1
  103. package/package.json +192 -184
  104. package/docs/screenshots/showcase-invoice.png +0 -0
  105. package/docs/screenshots/showcase-report.png +0 -0
  106. package/docs/screenshots/showcase-resume.png +0 -0
package/package.json CHANGED
@@ -1,184 +1,192 @@
1
- {
2
- "name": "pretext-pdf",
3
- "version": "0.9.3",
4
- "description": "Declarative JSON → PDF generation with professional typography. Built on pretext's precision text layout engine.",
5
- "keywords": [
6
- "pdf",
7
- "pdf-generation",
8
- "pretext",
9
- "typography",
10
- "invoice",
11
- "report",
12
- "document",
13
- "typescript",
14
- "nodejs",
15
- "type-safe",
16
- "forms",
17
- "rtl",
18
- "hyphenation"
19
- ],
20
- "author": "Himanshu Jain <himanshu@antigravity.dev>",
21
- "license": "MIT",
22
- "homepage": "https://github.com/Himaan1998Y/pretext-pdf#readme",
23
- "bugs": {
24
- "url": "https://github.com/Himaan1998Y/pretext-pdf/issues"
25
- },
26
- "repository": {
27
- "type": "git",
28
- "url": "git+https://github.com/Himaan1998Y/pretext-pdf.git"
29
- },
30
- "engines": {
31
- "node": ">=18.0.0"
32
- },
33
- "sideEffects": false,
34
- "type": "module",
35
- "main": "./dist/index.js",
36
- "types": "./dist/index.d.ts",
37
- "bin": {
38
- "pretext-pdf": "dist/cli.js"
39
- },
40
- "files": [
41
- "dist/",
42
- "fonts/",
43
- "docs/screenshots/",
44
- "README.md",
45
- "LICENSE",
46
- "CHANGELOG.md"
47
- ],
48
- "exports": {
49
- ".": {
50
- "types": "./dist/index.d.ts",
51
- "import": "./dist/index.js"
52
- },
53
- "./markdown": {
54
- "types": "./dist/markdown.d.ts",
55
- "import": "./dist/markdown.js"
56
- },
57
- "./templates": {
58
- "types": "./dist/templates.d.ts",
59
- "import": "./dist/templates.js"
60
- },
61
- "./compat": {
62
- "types": "./dist/compat.d.ts",
63
- "import": "./dist/compat.js"
64
- },
65
- "./package.json": "./package.json"
66
- },
67
- "scripts": {
68
- "build": "tsc",
69
- "test:unit": "cross-env NODE_OPTIONS=--max-old-space-size=4096 tsx --test test/validate.test.ts test/builder.test.ts test/rich-text.test.ts",
70
- "test:validate": "cross-env NODE_OPTIONS=--max-old-space-size=4096 tsx --test test/validate.test.ts test/builder.test.ts",
71
- "test:e2e": "tsx --test test/e2e.test.ts",
72
- "test:phase-3": "tsx --test test/phase-3-signatures.test.ts",
73
- "test:10a": "tsx --test test/phase-10a-qr-barcode.test.ts",
74
- "test:10b": "tsx --test test/phase-10b-charts.test.ts",
75
- "test:10c": "tsx --test test/phase-10c-markdown.test.ts",
76
- "test:10d": "tsx --test test/phase-10d-templates.test.ts",
77
- "test:phase-4": "tsx --test test/phase-4-footnotes.test.ts",
78
- "test:phase-5": "tsx --test test/phase-5-image-float.test.ts",
79
- "test:phases": "tsx --test test/phase-4-footnotes.test.ts test/phase-5-image-float.test.ts test/phase-7a.test.ts test/phase-7b.test.ts test/phase-7c.test.ts test/phase-7d-toc.test.ts test/phase-7e-svg.test.ts test/phase-7f-rtl.test.ts test/phase-7g.test.ts test/phase-7-integration.test.ts test/phase-8g-hyperlinks.test.ts test/phase-8h-inline-formatting.test.ts test/phase-8a-annotations.test.ts test/phase-8c-assembly.test.ts test/phase-8f-metadata.test.ts test/phase-8e-signatures.test.ts test/phase-8b-forms.test.ts test/phase-8d-callout.test.ts test/phase-9a-crypto-signatures.test.ts test/phase-9b-float-groups.test.ts test/phase-9c-font-subsetting.test.ts test/phase-2-performance.test.ts test/phase-3-signatures.test.ts test/phase-11-enhancements.test.ts test/phase-10a-qr-barcode.test.ts test/phase-10b-charts.test.ts test/phase-10c-markdown.test.ts test/phase-10d-templates.test.ts test/v0.8.3-ssrf.test.ts test/v0.9.0-features.test.ts",
80
- "test:phase-7": "tsx --test test/phase-7a.test.ts test/phase-7b.test.ts test/phase-7c.test.ts test/phase-7d-toc.test.ts test/phase-7e-svg.test.ts test/phase-7f-rtl.test.ts test/phase-7g.test.ts test/phase-7-integration.test.ts",
81
- "test:phase-8": "tsx --test test/phase-8g-hyperlinks.test.ts test/phase-8h-inline-formatting.test.ts test/phase-8a-annotations.test.ts test/phase-8c-assembly.test.ts test/phase-8b-forms.test.ts test/phase-8d-callout.test.ts test/phase-8e-signatures.test.ts test/phase-8f-metadata.test.ts",
82
- "test:8d": "tsx --test test/phase-8d-callout.test.ts",
83
- "test:8f": "tsx --test test/phase-8f-metadata.test.ts",
84
- "test:8e": "tsx --test test/phase-8e-signatures.test.ts",
85
- "test:8b": "tsx --test test/phase-8b-forms.test.ts",
86
- "test:contract": "tsx --test test/pretext-api-contract.test.ts",
87
- "test:2f": "cross-env NODE_OPTIONS=--max-old-space-size=4096 tsx --test test/phase-2f-stress.test.ts",
88
- "test": "npm run test:contract && npm run test:unit && npm run test:e2e && npm run test:phases && npm run test:2f",
89
- "verify:badges": "cross-env SKIP_TEST_RUN=1 node scripts/verify-badges.js",
90
- "verify:badges:full": "node scripts/verify-badges.js",
91
- "test:rich": "tsx --test test/rich-text.test.ts",
92
- "test:visual": "tsx --test test/visual/visual.test.ts",
93
- "test:visual:update": "cross-env UPDATE_BASELINES=1 tsx test/visual/visual.test.ts",
94
- "example": "tsx examples/invoice.ts",
95
- "example:watermark": "tsx examples/phase7-watermark.ts",
96
- "example:bookmarks": "tsx examples/phase7-bookmarks.ts",
97
- "example:toc": "tsx examples/phase7-toc.ts",
98
- "example:rtl": "tsx examples/phase7-rtl.ts",
99
- "example:encryption": "tsx examples/phase7-encryption.ts",
100
- "example:hyperlinks": "tsx examples/phase8-hyperlinks.ts",
101
- "example:annotations": "tsx examples/phase8-annotations.ts",
102
- "example:assembly": "tsx examples/phase8-assembly.ts",
103
- "example:inline": "tsx examples/phase8-inline.ts",
104
- "example:forms": "tsx examples/phase8-forms.ts",
105
- "example:callout": "tsx examples/phase8-callout.ts",
106
- "example:gst": "tsx examples/gst-invoice-india.ts",
107
- "example:floats": "tsx examples/phase9b-float-groups.ts",
108
- "example:showcase-invoice": "tsx examples/showcase-invoice.ts",
109
- "example:showcase-report": "tsx examples/showcase-report.ts",
110
- "example:showcase-resume": "tsx examples/showcase-resume.ts",
111
- "screenshots": "npm run example:showcase-invoice && npm run example:showcase-report && npm run example:showcase-resume && node scripts/screenshot.cjs",
112
- "typecheck": "tsc --noEmit"
113
- },
114
- "dependencies": {
115
- "@cantoo/pdf-lib": "^2.6.5",
116
- "@chenglou/pretext": "^0.0.6",
117
- "@fontsource-variable/inter": "^5.2.8",
118
- "@fontsource/inter": "^5.0.0",
119
- "@pdf-lib/fontkit": "^1.1.1",
120
- "bidi-js": "^1.0.3",
121
- "hyphenation.en-us": "^0.2.1",
122
- "hypher": "^0.2.5"
123
- },
124
- "peerDependencies": {
125
- "@napi-rs/canvas": "^0.1.57",
126
- "@signpdf/signpdf": "^3.3.0",
127
- "bwip-js": "^4.0.0",
128
- "highlight.js": "^11.0.0",
129
- "marked": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
130
- "qrcode": "^1.5.0",
131
- "vega": "^5.0.0 || ^6.0.0",
132
- "vega-lite": "^5.0.0 || ^6.0.0"
133
- },
134
- "peerDependenciesMeta": {
135
- "@napi-rs/canvas": {
136
- "optional": true
137
- },
138
- "@signpdf/signpdf": {
139
- "optional": true
140
- },
141
- "highlight.js": {
142
- "optional": true
143
- },
144
- "qrcode": {
145
- "optional": true
146
- },
147
- "bwip-js": {
148
- "optional": true
149
- },
150
- "marked": {
151
- "optional": true
152
- },
153
- "vega": {
154
- "optional": true
155
- },
156
- "vega-lite": {
157
- "optional": true
158
- }
159
- },
160
- "devDependencies": {
161
- "@signpdf/signpdf": "^3.3.0",
162
- "@types/bwip-js": "^3.2.3",
163
- "@types/node": "^22.0.0",
164
- "@types/pixelmatch": "^5.2.6",
165
- "@types/pngjs": "^6.0.5",
166
- "@types/qrcode": "^1.5.6",
167
- "bwip-js": "^4.9.2",
168
- "cross-env": "^10.1.0",
169
- "highlight.js": "^11.11.1",
170
- "marked": "^18.0.2",
171
- "pdfjs-dist": "^5.6.205",
172
- "qrcode": "^1.5.4",
173
- "ts-node": "^10.9.2",
174
- "tsx": "^4.7.0",
175
- "typescript": "^5.5.0",
176
- "vega": "^6.2.0",
177
- "vega-lite": "^6.4.2"
178
- },
179
- "optionalDependencies": {
180
- "@napi-rs/canvas": "^0.1.57",
181
- "pixelmatch": "^7.1.0",
182
- "pngjs": "^7.0.0"
183
- }
184
- }
1
+ {
2
+ "name": "pretext-pdf",
3
+ "version": "1.0.1",
4
+ "description": "Declarative JSON → PDF generation with professional typography. Built on pretext's precision text layout engine.",
5
+ "keywords": [
6
+ "pdf",
7
+ "pdf-generation",
8
+ "pretext",
9
+ "typography",
10
+ "invoice",
11
+ "report",
12
+ "document",
13
+ "typescript",
14
+ "nodejs",
15
+ "type-safe",
16
+ "forms",
17
+ "rtl",
18
+ "hyphenation"
19
+ ],
20
+ "author": "Himanshu Jain <himanshu@antigravity.dev>",
21
+ "license": "MIT",
22
+ "homepage": "https://github.com/Himaan1998Y/pretext-pdf#readme",
23
+ "bugs": {
24
+ "url": "https://github.com/Himaan1998Y/pretext-pdf/issues"
25
+ },
26
+ "repository": {
27
+ "type": "git",
28
+ "url": "git+https://github.com/Himaan1998Y/pretext-pdf.git"
29
+ },
30
+ "engines": {
31
+ "node": ">=18.0.0"
32
+ },
33
+ "sideEffects": false,
34
+ "type": "module",
35
+ "main": "./dist/index.js",
36
+ "types": "./dist/index.d.ts",
37
+ "bin": {
38
+ "pretext-pdf": "dist/cli.js"
39
+ },
40
+ "files": [
41
+ "dist/",
42
+ "fonts/",
43
+ "README.md",
44
+ "LICENSE",
45
+ "CHANGELOG.md"
46
+ ],
47
+ "exports": {
48
+ ".": {
49
+ "types": "./dist/index.d.ts",
50
+ "import": "./dist/index.js"
51
+ },
52
+ "./markdown": {
53
+ "types": "./dist/markdown.d.ts",
54
+ "import": "./dist/markdown.js"
55
+ },
56
+ "./templates": {
57
+ "types": "./dist/templates.d.ts",
58
+ "import": "./dist/templates.js"
59
+ },
60
+ "./compat": {
61
+ "types": "./dist/compat.d.ts",
62
+ "import": "./dist/compat.js"
63
+ },
64
+ "./plugin-types": {
65
+ "types": "./dist/plugin-types.d.ts",
66
+ "import": "./dist/plugin-types.js"
67
+ },
68
+ "./package.json": "./package.json"
69
+ },
70
+ "scripts": {
71
+ "build": "tsc",
72
+ "api:extract": "api-extractor run --local",
73
+ "api:check": "api-extractor run",
74
+ "test:unit": "tsx --test test/validate.test.ts test/builder.test.ts test/rich-text.test.ts test/layout-contract.test.ts test/hard-text-contract.test.ts test/validate-strict.test.ts",
75
+ "test:validate": "tsx --test test/validate.test.ts test/builder.test.ts",
76
+ "test:e2e": "tsx --test test/e2e.test.ts",
77
+ "test:phase-3": "tsx --test test/signatures-validation.test.ts",
78
+ "test:10a": "tsx --test test/qr-barcode.test.ts",
79
+ "test:10b": "tsx --test test/charts.test.ts",
80
+ "test:10c": "tsx --test test/markdown-entry.test.ts",
81
+ "test:10d": "tsx --test test/templates.test.ts",
82
+ "test:phase-4": "tsx --test test/footnotes.test.ts",
83
+ "test:phase-5": "tsx --test test/image-floats.test.ts",
84
+ "test:phases": "tsx --test test/footnotes.test.ts test/image-floats.test.ts test/bookmarks.test.ts test/watermarks.test.ts test/hyphenation.test.ts test/toc.test.ts test/svg.test.ts test/rtl.test.ts test/encryption.test.ts test/integration.test.ts test/hyperlinks.test.ts test/inline-formatting.test.ts test/annotations.test.ts test/assembly.test.ts test/metadata.test.ts test/signatures-visual.test.ts test/forms.test.ts test/callout.test.ts test/signatures-crypto.test.ts test/float-groups.test.ts test/font-subsetting.test.ts test/performance.test.ts test/signatures-validation.test.ts test/cross-cutting.test.ts test/qr-barcode.test.ts test/charts.test.ts test/markdown-entry.test.ts test/templates.test.ts test/security-ssrf.test.ts test/markdown-gfm.test.ts",
85
+ "test:phase-7": "tsx --test test/bookmarks.test.ts test/watermarks.test.ts test/hyphenation.test.ts test/toc.test.ts test/svg.test.ts test/rtl.test.ts test/encryption.test.ts test/integration.test.ts",
86
+ "test:phase-8": "tsx --test test/hyperlinks.test.ts test/inline-formatting.test.ts test/annotations.test.ts test/assembly.test.ts test/forms.test.ts test/callout.test.ts test/signatures-visual.test.ts test/metadata.test.ts",
87
+ "test:8d": "tsx --test test/callout.test.ts",
88
+ "test:8f": "tsx --test test/metadata.test.ts",
89
+ "test:8e": "tsx --test test/signatures-visual.test.ts",
90
+ "test:8b": "tsx --test test/forms.test.ts",
91
+ "test:plugin": "tsx --test test/plugin-registry.test.ts",
92
+ "test:contract": "tsx --test test/pretext-api-contract.test.ts test/benchmark-baseline.test.ts test/drift-guards.test.ts test/plugin-registry.test.ts test/benchmark-corpora.test.ts test/smoke-staging.test.ts test/table-determinism.test.ts",
93
+ "test:2f": "cross-env NODE_OPTIONS=--max-old-space-size=4096 tsx --test test/stress.test.ts",
94
+ "test": "npm run test:contract && npm run test:unit && npm run test:e2e && npm run test:phases",
95
+ "verify:badges": "cross-env SKIP_TEST_RUN=1 node scripts/verify-badges.js",
96
+ "verify:badges:full": "node scripts/verify-badges.js",
97
+ "test:rich": "tsx --test test/rich-text.test.ts",
98
+ "test:visual": "tsx --test test/visual/visual.test.ts",
99
+ "test:visual:update": "cross-env UPDATE_BASELINES=1 tsx test/visual/visual.test.ts",
100
+ "example": "tsx examples/invoice.ts",
101
+ "example:watermark": "tsx examples/phase7-watermark.ts",
102
+ "example:bookmarks": "tsx examples/phase7-bookmarks.ts",
103
+ "example:toc": "tsx examples/phase7-toc.ts",
104
+ "example:rtl": "tsx examples/phase7-rtl.ts",
105
+ "example:encryption": "tsx examples/phase7-encryption.ts",
106
+ "example:hyperlinks": "tsx examples/phase8-hyperlinks.ts",
107
+ "example:annotations": "tsx examples/phase8-annotations.ts",
108
+ "example:assembly": "tsx examples/phase8-assembly.ts",
109
+ "example:inline": "tsx examples/phase8-inline.ts",
110
+ "example:forms": "tsx examples/phase8-forms.ts",
111
+ "example:callout": "tsx examples/phase8-callout.ts",
112
+ "example:gst": "tsx examples/gst-invoice-india.ts",
113
+ "example:plugin": "tsx examples/plugin-custom-element.ts",
114
+ "example:floats": "tsx examples/phase9b-float-groups.ts",
115
+ "example:showcase-invoice": "tsx examples/showcase-invoice.ts",
116
+ "example:showcase-report": "tsx examples/showcase-report.ts",
117
+ "example:showcase-resume": "tsx examples/showcase-resume.ts",
118
+ "screenshots": "npm run example:showcase-invoice && npm run example:showcase-report && npm run example:showcase-resume && node scripts/screenshot.cjs",
119
+ "typecheck": "tsc --noEmit"
120
+ },
121
+ "dependencies": {
122
+ "@cantoo/pdf-lib": "^2.6.5",
123
+ "@chenglou/pretext": "^0.0.6",
124
+ "@fontsource-variable/inter": "^5.2.8",
125
+ "@fontsource/inter": "^5.0.0",
126
+ "@pdf-lib/fontkit": "^1.1.1",
127
+ "bidi-js": "^1.0.3",
128
+ "hyphenation.en-us": "^0.2.1",
129
+ "hypher": "^0.2.5"
130
+ },
131
+ "peerDependencies": {
132
+ "@napi-rs/canvas": "^0.1.57",
133
+ "@signpdf/signpdf": "^3.3.0",
134
+ "bwip-js": "^4.0.0",
135
+ "highlight.js": "^11.0.0",
136
+ "marked": "^9.0.0 || ^10.0.0 || ^11.0.0 || ^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0",
137
+ "qrcode": "^1.5.0",
138
+ "vega": "^5.0.0 || ^6.0.0",
139
+ "vega-lite": "^5.0.0 || ^6.0.0"
140
+ },
141
+ "peerDependenciesMeta": {
142
+ "@napi-rs/canvas": {
143
+ "optional": true
144
+ },
145
+ "@signpdf/signpdf": {
146
+ "optional": true
147
+ },
148
+ "highlight.js": {
149
+ "optional": true
150
+ },
151
+ "qrcode": {
152
+ "optional": true
153
+ },
154
+ "bwip-js": {
155
+ "optional": true
156
+ },
157
+ "marked": {
158
+ "optional": true
159
+ },
160
+ "vega": {
161
+ "optional": true
162
+ },
163
+ "vega-lite": {
164
+ "optional": true
165
+ }
166
+ },
167
+ "devDependencies": {
168
+ "@microsoft/api-extractor": "^7.58.7",
169
+ "@signpdf/signpdf": "^3.3.0",
170
+ "@types/bwip-js": "^3.2.3",
171
+ "@types/node": "^22.0.0",
172
+ "@types/pixelmatch": "^5.2.6",
173
+ "@types/pngjs": "^6.0.5",
174
+ "@types/qrcode": "^1.5.6",
175
+ "bwip-js": "^4.9.2",
176
+ "cross-env": "^10.1.0",
177
+ "highlight.js": "^11.11.1",
178
+ "marked": "^18.0.2",
179
+ "pdfjs-dist": "^5.6.205",
180
+ "qrcode": "^1.5.4",
181
+ "ts-node": "^10.9.2",
182
+ "tsx": "^4.7.0",
183
+ "typescript": "^5.5.0",
184
+ "vega": "^6.2.0",
185
+ "vega-lite": "^6.4.2"
186
+ },
187
+ "optionalDependencies": {
188
+ "@napi-rs/canvas": "^0.1.57",
189
+ "pixelmatch": "^7.1.0",
190
+ "pngjs": "^7.0.0"
191
+ }
192
+ }