pretext-pdf 1.7.2 → 1.8.0
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.
- package/CHANGELOG.md +29 -0
- package/dist/compat.js +1 -1
- package/dist/compat.js.map +1 -1
- package/dist/font-key.d.ts +15 -0
- package/dist/font-key.d.ts.map +1 -0
- package/dist/font-key.js +17 -0
- package/dist/font-key.js.map +1 -0
- package/dist/fonts.js +1 -1
- package/dist/fonts.js.map +1 -1
- package/dist/measure-blocks/image.js +1 -1
- package/dist/measure-blocks/image.js.map +1 -1
- package/dist/measure-blocks/index.js +1 -1
- package/dist/measure-blocks/index.js.map +1 -1
- package/dist/measure-blocks/list.js +1 -1
- package/dist/measure-blocks/list.js.map +1 -1
- package/dist/measure-blocks/simple-blocks.js +1 -1
- package/dist/measure-blocks/simple-blocks.js.map +1 -1
- package/dist/measure-blocks/table/measure.js +1 -1
- package/dist/measure-blocks/table/measure.js.map +1 -1
- package/dist/measure-blocks/text-blocks.js +1 -1
- package/dist/measure-blocks/text-blocks.js.map +1 -1
- package/dist/measure.d.ts +1 -5
- package/dist/measure.d.ts.map +1 -1
- package/dist/measure.js +2 -7
- package/dist/measure.js.map +1 -1
- package/dist/render-blocks/footnote.js +1 -1
- package/dist/render-blocks/footnote.js.map +1 -1
- package/dist/render-utils.d.ts.map +1 -1
- package/dist/render-utils.js +1 -4
- package/dist/render-utils.js.map +1 -1
- package/dist/rich-text.js +1 -1
- package/dist/rich-text.js.map +1 -1
- package/dist/schema.d.ts +12 -0
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +3 -0
- package/dist/schema.js.map +1 -1
- package/dist/types-public/document.d.ts +15 -0
- package/dist/types-public/document.d.ts.map +1 -1
- package/dist/types-public/elements-block.d.ts +8 -1
- package/dist/types-public/elements-block.d.ts.map +1 -1
- package/dist/url-utils.d.ts +12 -0
- package/dist/url-utils.d.ts.map +1 -0
- package/dist/url-utils.js +12 -0
- package/dist/url-utils.js.map +1 -0
- package/dist/validate/helpers.d.ts +2 -2
- package/dist/validate/helpers.d.ts.map +1 -1
- package/dist/validate/helpers.js +10 -6
- package/dist/validate/helpers.js.map +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/validate/helpers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"helpers.js","sourceRoot":"","sources":["../../src/validate/helpers.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,CAAA;AAE1B,8EAA8E;AAC9E,MAAM,CAAC,MAAM,oBAAoB,GAAG,EAAE,CAAA;AAuBtC;;;;;;;;GAQG;AACH,MAAM,UAAU,cAAc,CAC5B,IAAqB,EACrB,IAAO,EACP,KAAa,EACb,IAAY,EACZ,EAAc;IAEd,IAAI,KAAK,GAAG,oBAAoB,EAAE,CAAC;QACjC,MAAM,IAAI,eAAe,CAAC,kBAAkB,EAAE,GAAG,IAAI,2BAA2B,oBAAoB,EAAE,CAAC,CAAA;IACzG,CAAC;IACD,IAAI,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC;QACnB,MAAM,IAAI,eAAe,CAAC,kBAAkB,EAAE,GAAG,IAAI,6BAA6B,CAAC,CAAA;IACrF,CAAC;IACD,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAA;IACd,IAAI,CAAC;QAAC,EAAE,EAAE,CAAA;IAAC,CAAC;YAAS,CAAC;QAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAAC,CAAC;AAC5C,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,aAAa,CAAC,KAAa,EAAE,IAAY;IACvD,IAAI,KAAK,GA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,IAAI,eAAe,CAAC,kBAAkB,EAAE,aAAa,IAAI,CAAC,MAAM,4BAA4B,MAAM,CAAC,QAAQ,uDAAuD,CAAC,CAAA;QAC3K,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,kFAAkF;YAClF,IAAI,GAAG,YAAY,eAAe;gBAAE,MAAM,GAAG,CAAA;QAC/C,CAAC;IACH,CAAC;AACH,CAAC;AAED,yEAAyE;AACzE,SAAS,cAAc,CAAC,CAAS;IAC/B,OAAO,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACvD,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pretext-pdf",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Generate PDFs from JSON — declarative, serverless, no Chromium. TypeScript-first with professional typography. Ideal for invoices, reports, and AI agents.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"pdf",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"test:10d": "tsx --test test/templates.test.ts",
|
|
101
101
|
"test:phase-4": "tsx --test test/footnotes.test.ts",
|
|
102
102
|
"test:phase-5": "tsx --test test/image-floats.test.ts",
|
|
103
|
-
"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/signatures-snapshot.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/security-ipv4-bypass.test.ts test/markdown-gfm.test.ts test/assets-dns-dedup.test.ts test/measure-text-cache.test.ts test/public-api-surface.test.ts test/assets-split-tripwire.test.ts test/assets-concurrency.test.ts test/assets-errorcode-stability.test.ts test/assets-perf-coldstart.test.ts test/svg-sanitizer.test.ts",
|
|
103
|
+
"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/signatures-snapshot.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/security-ipv4-bypass.test.ts test/markdown-gfm.test.ts test/assets-dns-dedup.test.ts test/measure-text-cache.test.ts test/public-api-surface.test.ts test/assets-split-tripwire.test.ts test/assets-concurrency.test.ts test/assets-errorcode-stability.test.ts test/assets-perf-coldstart.test.ts test/svg-sanitizer.test.ts test/error-coverage.test.ts",
|
|
104
104
|
"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",
|
|
105
105
|
"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",
|
|
106
106
|
"test:8d": "tsx --test test/callout.test.ts",
|