diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 5e4fb0b..be833e9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -404,7 +404,7 @@ jobs: retention-days: 7 - name: Verify downloadable playground projects run: | - python -m pip install fullbleed==2.5.11 pypdf==6.19.0 + python -m pip install fullbleed==2.5.22 pypdf==6.19.0 node tools/verify_project_export.mjs python -I tools/verify_project_export.py - uses: actions/upload-artifact@v4 @@ -592,6 +592,14 @@ jobs: retention-days: 14 - run: python -m mkdocs build --strict - run: python tools/check_site.py site + - name: Verify the built playground PDF and project downloads + run: python tools/check_playground_ui.py --site site --out output/playground-ui --browser chrome + - uses: actions/upload-artifact@v4 + if: always() + with: + name: playground-browser-verification + path: output/playground-ui/ + retention-days: 14 - name: Include search notification ownership file if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' env: diff --git a/docs/assets/browser-starter/project.zip b/docs/assets/browser-starter/project.zip index 45d32cf..746d2b6 100644 Binary files a/docs/assets/browser-starter/project.zip and b/docs/assets/browser-starter/project.zip differ diff --git a/docs/assets/browser-starter/source.json b/docs/assets/browser-starter/source.json index 59fb3b3..b0d6dc7 100644 --- a/docs/assets/browser-starter/source.json +++ b/docs/assets/browser-starter/source.json @@ -1,19 +1,19 @@ { "source_repository": "https://github.com/fullbleed-engine/fullbleed-node", - "source_commit": "ae6e301ebc129a15aab89378f44beb81d63d4475", + "source_commit": "eb66f753e58e0264a59d9cfc6a3dec7003231b8a", "source_directory": "examples/browser", - "package_version": "0.3.2", - "engine_version": "2.5.11", - "package_integrity": "sha512-bzbTUn6Hcxu0YZoP38wkrJ/nZ33+rQfZq5itdpQUl7lIO9mR1m9LC5n/2KLxjj+7dAb8IhpYoVTSmbuhQyA5Vg==", - "zip_bytes": 23698, - "zip_sha256": "4989b21ca73687aa02611437a17c60e567f537e1a127582ffc10362dff8c32bf", + "package_version": "0.4.1", + "engine_version": "2.5.22", + "package_integrity": "sha512-vP/U/gxv/5M0xGwg8itmh0HtMmwP8qpKdDTZRIDQpAnndjt/Yu4quoLvt1O/FJvmIEVF1ClsioCQnpu4FMmvLA==", + "zip_bytes": 23704, + "zip_sha256": "081dcd1a8ee958d205ea2fda962c8224189c53abfb1f987037464b98935dc70b", "files": { "fullbleed-browser-starter/.gitignore": "c023fec2bf12476cb47709e859f1fbb785aeb1e03281e52141e0bee1ee7dad72", "fullbleed-browser-starter/LICENSE": "36a2115938f6e68cf0d87eccff7a6a3e57c17017e909cbd640d51aff1fa0c5a9", - "fullbleed-browser-starter/README.md": "6b5bec007619b8d1776dc668b4f16d2204e4ad9f92dd9b7e38352e534f1bcd13", + "fullbleed-browser-starter/README.md": "adc51fb28fcf7db005d31c810fe9e0ba69c33b004152f0239cd59c3ef0c84e55", "fullbleed-browser-starter/index.html": "79baecb0b24716e78799893fc0076d88b2c026354f9f31acdf799c8f305c954b", - "fullbleed-browser-starter/package-lock.json": "b1f81db73d867f963443fbc2415f352297ee4d9c962f0ba601d9cdc3457e4bd5", - "fullbleed-browser-starter/package.json": "6dbc4b39b8daa889493125b5d1c091941dd8f994a26274153ffc4298e532cd18", + "fullbleed-browser-starter/package-lock.json": "cb74c22fe1b49cf8f31c979a56975dbd1e390dd899d8bc4cf2186a819482a2f6", + "fullbleed-browser-starter/package.json": "b67511c1509889ac90928909dc8a268ddc96c763828611409c779f1b73ef673a", "fullbleed-browser-starter/public/favicon.svg": "3eed6dcf1013e48bc64886fed4cf815c609ed06b404742bdacdc44c1df8d3118", "fullbleed-browser-starter/src/invoice.css": "0b310ce0f2964fd6b9b68e4afafa9307b4ff8c6b2f1fc753367dc755620ce427", "fullbleed-browser-starter/src/invoice.html": "1f065ad6694021649e61b3f666cba6dc01aacdcbd8e80e97425b383e60d7d2fe", @@ -23,6 +23,6 @@ "fullbleed-browser-starter/src/style.css": "5005045f66a84a038a0f7a0f7e15b8b5e9eac2489f9717d4a581fec5075bf6f4", "fullbleed-browser-starter/vite.config.js": "ec725922705a3c5ba2df191a564c54c0cac6e8997ecd3d00b8a42c647bec8e74" }, - "local_ui_evidence": "https://github.com/fullbleed-engine/fullbleed-node/blob/ae6e301ebc129a15aab89378f44beb81d63d4475/verification/starters-032.json", - "source_verification_run": "https://github.com/fullbleed-engine/fullbleed-node/actions/runs/37569111713" + "local_ui_evidence": "https://github.com/fullbleed-engine/fullbleed-node/blob/eb66f753e58e0264a59d9cfc6a3dec7003231b8a/verification/starters-041.json", + "source_verification_run": "https://github.com/fullbleed-engine/fullbleed-node/actions/runs/37910537954" } diff --git a/docs/assets/nextjs/project.zip b/docs/assets/nextjs/project.zip index b1a54e5..9ac7608 100644 Binary files a/docs/assets/nextjs/project.zip and b/docs/assets/nextjs/project.zip differ diff --git a/docs/assets/nextjs/source.json b/docs/assets/nextjs/source.json index 7e6b055..73ef67f 100644 --- a/docs/assets/nextjs/source.json +++ b/docs/assets/nextjs/source.json @@ -1,11 +1,11 @@ { "sourceRepository": "https://github.com/fullbleed-engine/fullbleed-node", - "sourceCommit": "ae6e301ebc129a15aab89378f44beb81d63d4475", + "sourceCommit": "eb66f753e58e0264a59d9cfc6a3dec7003231b8a", "files": 18, "assets": [ { "file": "project.zip", - "sha256": "6a4a589bc0153c0ca006a571e576ba8681dac5ae8fa683fc33e2f336322df6d6", + "sha256": "19465ff97c1408d7ac20b4f9ab56acb227551282536b9a90bf4fe0c437471afc", "bytes": 104790 }, { @@ -22,15 +22,15 @@ "fileHashes": { "fullbleed-nextjs/.gitignore": "b4abc38d76926640e3f2cbe3bf25c8f5aec6cc43dd978c48d3ad5cc20d964f66", "fullbleed-nextjs/LICENSE": "36a2115938f6e68cf0d87eccff7a6a3e57c17017e909cbd640d51aff1fa0c5a9", - "fullbleed-nextjs/README.md": "96de8ae1580d61c0c34274c3fafe70a81338aa2bd927d22900874c367ae9158c", + "fullbleed-nextjs/README.md": "b8aad9a871e7e36796e644a34b4bce463bad86e7968966b60c29d58c35d7ba4f", "fullbleed-nextjs/app/api/invoices/[id]/route.js": "d6348ce64b44feac7010e21fb0f55723e0858c7867222ae831c45d3440a3b052", "fullbleed-nextjs/app/globals.css": "02e0b545a14eaf15e6d3d8fc8c0e8c0f1c5ce5c1b8dc461b4343d330f291233e", "fullbleed-nextjs/app/layout.js": "2df89bff0d2f002b432b3fdb73fd64edf59c57641d9ea6df3f0051cf2329cf27", "fullbleed-nextjs/app/page.js": "24c7996f8172992f925cdb1e47455d0095397d0832f747c90ecb409f2a1d460c", "fullbleed-nextjs/lib/invoice.mjs": "fd87dd082fa19659ec572d97255c1902e1e728e43ebbc3e0ade9891fa7736cf2", "fullbleed-nextjs/next.config.mjs": "e93613419f5aaa6264f0405e5afbb6f5eea4c956e42e7ebf30a6c85a4d9d89b3", - "fullbleed-nextjs/package-lock.json": "f5d9b10c7546f8df1c08b0cdb489647289f91b1c89d065c3f1a133478d5fcfbf", - "fullbleed-nextjs/package.json": "e31ff035bd4d340ca73a5ee95319ee85ec4ae1d3651a6193bf2a6f0174a39e9c", + "fullbleed-nextjs/package-lock.json": "3ce9260ce12072255c15241f11e25a8b84ab389464a56b08f98ccd3255b22fdf", + "fullbleed-nextjs/package.json": "50b24d13ec5d29fcd372806b5790d12a9aa319a9c402d931b894f70936f59d6f", "fullbleed-nextjs/public/invoice.png": "72420749ccc3deaa8025daf7baffcdf79be716b6e8e93ed605effebed01e86c7", "fullbleed-nextjs/templates/invoice.css": "cda22b39ab1f7a1eeac7cd76d162b05cd3568c2430c099123ba30a2fbd58a296", "fullbleed-nextjs/templates/invoice.html": "d9a5b1950ddab61f08628b0fcc773cb36f05d9401bb3d87273bca02452b1835e", @@ -39,7 +39,7 @@ "fullbleed-nextjs/tools/start.mjs": "4c185a0801ca4f89a30a0c1e75710f1c22c84463d29477900162b05a8bc52eab", "fullbleed-nextjs/tools/verify.mjs": "54623914ff28a47ea63a553d063ac50a206df0424270dacb3f3a99054982a888" }, - "packageVersion": "0.3.2", - "engineVersion": "2.5.11", - "sourceVerificationRun": "https://github.com/fullbleed-engine/fullbleed-node/actions/runs/37569111697" + "packageVersion": "0.4.1", + "engineVersion": "2.5.22", + "sourceVerificationRun": "https://github.com/fullbleed-engine/fullbleed-node/actions/runs/37910537960" } diff --git a/docs/assets/nextjs/verification.json b/docs/assets/nextjs/verification.json index 55146cb..46a190f 100644 --- a/docs/assets/nextjs/verification.json +++ b/docs/assets/nextjs/verification.json @@ -1,8 +1,8 @@ { "ok": true, - "checkedAt": "2026-10-07T04:06:45.541502+00:00", - "sourceCommit": "ae6e301ebc129a15aab89378f44beb81d63d4475", - "sourceRun": "https://github.com/fullbleed-engine/fullbleed-node/actions/runs/37569111697", + "checkedAt": "2026-10-09T09:30:53.024903+00:00", + "sourceCommit": "eb66f753e58e0264a59d9cfc6a3dec7003231b8a", + "sourceRun": "https://github.com/fullbleed-engine/fullbleed-node/actions/runs/37910537960", "checks": [ { "name": "standalone artifact is isolated from the source application", @@ -75,14 +75,14 @@ ], "ciResults": [ { - "checkedAt": "2026-10-07T03:57:17.033Z", - "node": "v22.23.3", + "checkedAt": "2026-10-09T09:19:57.971Z", + "node": "v24.21.0", "platform": "linux", "next": "16.3.8", - "nodePackage": "0.3.2", - "engineVersion": "2.5.11", + "nodePackage": "0.4.1", + "engineVersion": "2.5.22", "isolation": "process", - "packageLockSha256": "f5d9b10c7546f8df1c08b0cdb489647289f91b1c89d065c3f1a133478d5fcfbf", + "packageLockSha256": "3ce9260ce12072255c15241f11e25a8b84ab389464a56b08f98ccd3255b22fdf", "pages": 1, "pdfSha256": "3078d155f30536f5ad721f7be3c241cd78661ae41249131fc0fd65f37f23e408", "burst": [ @@ -100,19 +100,19 @@ 503 ], "scope": "Real next build standalone server with released Fullbleed npm package and fictional data; HTTP recovery after deliberate child failure. No hosted platform or application-authentication claim.", - "artifact": "nextjs-ubuntu-latest-22", "checksPassed": 17, - "previewSha256": "72420749ccc3deaa8025daf7baffcdf79be716b6e8e93ed605effebed01e86c7" + "previewSha256": "72420749ccc3deaa8025daf7baffcdf79be716b6e8e93ed605effebed01e86c7", + "artifact": "nextjs-ubuntu-latest-24" }, { - "checkedAt": "2026-10-07T03:57:25.042Z", + "checkedAt": "2026-10-09T09:20:29.359Z", "node": "v24.21.0", - "platform": "linux", + "platform": "win32", "next": "16.3.8", - "nodePackage": "0.3.2", - "engineVersion": "2.5.11", + "nodePackage": "0.4.1", + "engineVersion": "2.5.22", "isolation": "process", - "packageLockSha256": "f5d9b10c7546f8df1c08b0cdb489647289f91b1c89d065c3f1a133478d5fcfbf", + "packageLockSha256": "3ce9260ce12072255c15241f11e25a8b84ab389464a56b08f98ccd3255b22fdf", "pages": 1, "pdfSha256": "3078d155f30536f5ad721f7be3c241cd78661ae41249131fc0fd65f37f23e408", "burst": [ @@ -130,19 +130,19 @@ 503 ], "scope": "Real next build standalone server with released Fullbleed npm package and fictional data; HTTP recovery after deliberate child failure. No hosted platform or application-authentication claim.", - "artifact": "nextjs-ubuntu-latest-24", "checksPassed": 17, - "previewSha256": "72420749ccc3deaa8025daf7baffcdf79be716b6e8e93ed605effebed01e86c7" + "previewSha256": "72420749ccc3deaa8025daf7baffcdf79be716b6e8e93ed605effebed01e86c7", + "artifact": "nextjs-windows-latest-24" }, { - "checkedAt": "2026-10-07T03:57:52.511Z", - "node": "v24.21.0", - "platform": "win32", + "checkedAt": "2026-10-09T09:20:05.405Z", + "node": "v22.23.3", + "platform": "linux", "next": "16.3.8", - "nodePackage": "0.3.2", - "engineVersion": "2.5.11", + "nodePackage": "0.4.1", + "engineVersion": "2.5.22", "isolation": "process", - "packageLockSha256": "f5d9b10c7546f8df1c08b0cdb489647289f91b1c89d065c3f1a133478d5fcfbf", + "packageLockSha256": "3ce9260ce12072255c15241f11e25a8b84ab389464a56b08f98ccd3255b22fdf", "pages": 1, "pdfSha256": "3078d155f30536f5ad721f7be3c241cd78661ae41249131fc0fd65f37f23e408", "burst": [ @@ -160,22 +160,22 @@ 503 ], "scope": "Real next build standalone server with released Fullbleed npm package and fictional data; HTTP recovery after deliberate child failure. No hosted platform or application-authentication claim.", - "artifact": "nextjs-windows-latest-24", "checksPassed": 17, - "previewSha256": "72420749ccc3deaa8025daf7baffcdf79be716b6e8e93ed605effebed01e86c7" + "previewSha256": "72420749ccc3deaa8025daf7baffcdf79be716b6e8e93ed605effebed01e86c7", + "artifact": "nextjs-ubuntu-latest-22" } ], "downloadedStarter": { "ok": true, - "checkedAt": "2026-10-07T04:02:35.480164+00:00", - "sourceCommit": "ae6e301ebc129a15aab89378f44beb81d63d4475", + "checkedAt": "2026-10-09T09:25:01.422197+00:00", + "sourceCommit": "eb66f753e58e0264a59d9cfc6a3dec7003231b8a", "downloadFiles": 18, - "projectZipSha256": "6a4a589bc0153c0ca006a571e576ba8681dac5ae8fa683fc33e2f336322df6d6", + "projectZipSha256": "19465ff97c1408d7ac20b4f9ab56acb227551282536b9a90bf4fe0c437471afc", "node": "v22.23.3", "platform": "win32", "next": "16.3.8", - "nodePackage": "0.3.2", - "engineVersion": "2.5.11", + "nodePackage": "0.4.1", + "engineVersion": "2.5.22", "isolation": "process", "commands": [ { @@ -271,10 +271,10 @@ }, "browser": { "ok": true, - "checkedAt": "2026-10-07T04:04:43.258437+00:00", + "checkedAt": "2026-10-09T09:30:34.053843+00:00", "browser": "154.0.8037.98", - "packageVersion": "0.3.2", - "engineVersion": "2.5.11", + "packageVersion": "0.4.1", + "engineVersion": "2.5.22", "records": [ { "width": 1440, diff --git a/docs/assets/playground/LICENSES.txt b/docs/assets/playground/LICENSES.txt index c1eb13d..ff95ab6 100644 --- a/docs/assets/playground/LICENSES.txt +++ b/docs/assets/playground/LICENSES.txt @@ -1,4 +1,4 @@ -fullbleed 2.5.11 — MIT +fullbleed 2.5.22 / LICENSE MIT License @@ -23,7 +23,143 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -fullbleed_audit_contract 0.1.3 — MIT +fullbleed 2.5.22 / THIRD_PARTY_LICENSES.md + + +# Third-Party Licenses + +Schema: `fullbleed.third_party_licenses.v1` +Last updated: 2026-10-06 +Scope: third-party artifacts directly redistributed by this repository and wheel package. + +## Bundled Artifacts + +| Component | Bundled Path | License | Upstream | License Text | +| --- | --- | --- | --- | --- | +| Bootstrap CSS `v5.0.0` | `python/fullbleed_assets/bootstrap.min.css` | `MIT` | `https://getbootstrap.com/` | `https://github.com/twbs/bootstrap/blob/v5.0.0/LICENSE` | +| Bootstrap Icons SVG Sprite `v1.11.3` | `python/fullbleed_assets/icons/bootstrap-icons.svg` | `MIT` | `https://icons.getbootstrap.com/` | `https://raw.githubusercontent.com/twbs/icons/v1.11.3/LICENSE` | +| Inter Variable | `python/fullbleed_assets/fonts/Inter-Variable.ttf` | `OFL-1.1` | `https://fonts.google.com/specimen/Inter` | `https://raw.githubusercontent.com/google/fonts/main/ofl/inter/OFL.txt` | +| Noto Sans Regular | `python/fullbleed_assets/fonts/NotoSans-Regular.ttf` | `OFL-1.1` | `https://fonts.google.com/noto` | `https://raw.githubusercontent.com/google/fonts/main/ofl/notosans/OFL.txt` | +| Noto Sans Math Regular | `python/fullbleed_assets/fonts/NotoSansMath-Regular.ttf` | `OFL-1.1` | `https://fonts.google.com/noto` | `https://raw.githubusercontent.com/google/fonts/main/ofl/notosansmath/OFL.txt` | +| Noto Sans Symbols Regular | `python/fullbleed_assets/fonts/NotoSansSymbols-Regular.ttf` | `OFL-1.1` | `https://fonts.google.com/noto` | `https://raw.githubusercontent.com/google/fonts/main/ofl/notosanssymbols/OFL.txt` | +| Noto Sans Symbols2 Regular | `python/fullbleed_assets/fonts/NotoSansSymbols2-Regular.ttf` | `OFL-1.1` | `https://fonts.google.com/noto` | `https://raw.githubusercontent.com/google/fonts/main/ofl/notosanssymbols2/OFL.txt` | +| Adobe Core 14 metrics | `src/base14_metrics_data.rs`; originals in `tools/data/base14/*.afm` | Adobe AFM permission below | Pinned Apache PDFBox mirror | `tools/data/base14/MustRead.html` | +| Adobe Glyph List | `src/base14_metrics_data.rs`; originals in `tools/data/base14/agl-*.txt` | BSD-3-Clause | `https://github.com/adobe-type-tools/agl-aglfn` | `tools/data/base14/agl-LICENSE.md` and copyright notices below | +| Fullbleed Preview Sans, Serif and Mono, derived from Liberation 2.1.5 | `src/preview_fonts/FullbleedPreview{Sans,Serif,Mono}-*.ttf`, compiled into the native preview renderer | OFL-1.1 | `https://github.com/liberationfonts/liberation-fonts/releases/tag/2.1.5` | `src/preview_fonts/LICENSE-Liberation.txt` | +| Fullbleed Preview Symbol and Dingbats, derived from Noto and Liberation | `src/preview_fonts/FullbleedPreview{Symbol,Dingbats}-Regular.ttf`, compiled into the native preview renderer | OFL-1.1 | Existing bundled Noto assets above and Liberation 2.1.5 | `src/preview_fonts/LICENSE-*.txt` | + +The native renderer's Standard 14 preview substitutes are modified derivatives: +subsets with renamed families, decomposed unhinted outlines, Adobe AFM advances, +and preview-only aliases for legacy Adobe character mappings. Symbol assembly +pieces are fitted to their AFM glyph bounds. Original copyright +notices and complete license texts are retained in `src/preview_fonts/LICENSE-*.txt` +and in the Python wheel's license directory. `tools/generate_preview_fonts.py` +reproduces the fonts from the pinned inputs in `tools/data/preview_fonts/sources.json`; +output hashes and the single unsupported vendor-private logo are recorded in +`src/preview_fonts/sources.json`. These are substitute designs, not original +Standard 14 font programs. They do not change a PDF's font resources or text. + +## Remote-Installable Asset Registry + +`fullbleed assets install ` supports additional remote fonts. + +- Current audit artifacts: + - `FONT_LICENSE_AUDIT.md` + - `FONT_LICENSE_AUDIT.json` +- Audit summary (2026-07-28): + - `39` fonts checked + - `39` passed + - Allowed license set: `OFL-1.1`, `Apache-2.0`, `UFL-1.0`, `MIT` + - Includes barcode families: `libre-barcode-128`, `libre-barcode-128-text`, `libre-barcode-39`, `libre-barcode-39-text`, `libre-barcode-39-extended`, `libre-barcode-ean13-text` + +## Compliance Policy Semantics + +Machine/readable policy identifier: `fullbleed.cli_compliance.v1` + +- `LIC_MISSING_NOTICE`: bundled third-party artifact missing an entry in this document. +- `LIC_DISALLOWED`: artifact license is outside allowlist. +- `LIC_UNKNOWN`: artifact license cannot be determined. +- `LIC_AUDIT_STALE`: remote asset audit artifacts are missing or stale. +- `LIC_ASSET_UNMAPPED`: asset exists in distribution but has no license mapping. + +## Notes + +- This file focuses on directly redistributed static assets (CSS/fonts/font metrics) and remote asset registry policy. +- USPS IMB fonts are currently treated as manual user-supplied assets pending explicit redistribution policy sign-off. +- For project license terms, see `LICENSE`. +- For licensing questions, email `info@fullbleed.dev` or visit `fullbleed.dev`. + + +## Adobe Core 14 metrics + +The original AFM files and accompanying `MustRead.html` are retained unchanged in +`tools/data/base14`. Their source commits, SHA-256 hashes, and byte lengths are +recorded in `sources.json`. The generated Rust tables are modified derivatives: +Fullbleed extracts and reorganizes advances, glyph names, and character mappings +for native PDF preview. They contain no font programs or glyph outlines. + +Original copyright and trademark notices: + +Copyright (c) 1985, 1987, 1988, 1989, 1997 Adobe Systems Incorporated. All Rights Reserved. + +Copyright (c) 1985, 1987, 1988, 1989, 1997 Adobe Systems Incorporated. All Rights Reserved.ITC Zapf Dingbats is a registered trademark of International Typeface Corporation. + +Copyright (c) 1985, 1987, 1989, 1990, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved. + +Copyright (c) 1985, 1987, 1989, 1990, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved.Times is a trademark of Linotype-Hell AG and/or its subsidiaries. + +Copyright (c) 1985, 1987, 1989, 1990, 1997 Adobe Systems Incorporated. All Rights Reserved. + +Copyright (c) 1985, 1987, 1989, 1990, 1997 Adobe Systems Incorporated. All Rights Reserved.Helvetica is a trademark of Linotype-Hell AG and/or its subsidiaries. + +Copyright (c) 1985, 1987, 1989, 1990, 1997 Adobe Systems Incorporated. All rights reserved. + +Copyright (c) 1989, 1990, 1991, 1992, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved. + +Copyright (c) 1989, 1990, 1991, 1993, 1997 Adobe Systems Incorporated. All Rights Reserved. + +Original redistribution permission (unchanged): + +This file and the 14 PostScript(R) AFM files it accompanies may be used, copied, and distributed for any purpose and without charge, with or without modification, provided that all copyright notices are retained; that the AFM files are not distributed without this file; that all modifications to this file or any of the AFM files are prominently noted in the modified file(s); and that this paragraph is not modified. Adobe Systems has no responsibility or obligation to support the use of the AFM files. + +## Adobe Glyph List + +Copyright 2002-2019 Adobe (http://www.adobe.com/). + +The generated character mappings derive from the Adobe Glyph List and its Zapf +Dingbats list. Original source files and license text are retained unchanged in +`tools/data/base14`. The redistribution terms below also apply to the derived +mappings in source and binary distributions. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: + +Redistributions of source code must retain the above copyright notice, +this list of conditions and the following disclaimer. + +Redistributions in binary form must reproduce the above copyright +notice, this list of conditions and the following disclaimer in the +documentation and/or other materials provided with the distribution. + +Neither the name of Adobe nor the names of its contributors may be +used to endorse or promote products derived from this software without +specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + +fullbleed_audit_contract 0.1.3 / LICENSE MIT License @@ -48,7 +184,186 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -rustc-hash 2.1.3 — MIT +rustc-hash 2.1.3 / LICENSE-APACHE + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +rustc-hash 2.1.3 / LICENSE-MIT Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated @@ -74,7 +389,187 @@ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -subsetter 0.2.6 — MIT +subsetter 0.2.6 / LICENSE-APACHE + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + + +subsetter 0.2.6 / LICENSE-MIT MIT License @@ -97,7 +592,212 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -unicode-bidi 0.3.18 — MIT +unicode-bidi 0.3.18 / LICENSE-APACHE + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + +2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + +3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + +4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + +5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + +6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + +8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + +END OF TERMS AND CONDITIONS + +APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + +Copyright [yyyy] [name of copyright owner] + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. + + +unicode-bidi 0.3.18 / LICENSE-MIT Copyright (c) 2015 The Rust Project Developers @@ -126,7 +826,7 @@ IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -fullbleed 2.5.11 / src/preview_fonts/LICENSE-Liberation.txt +fullbleed 2.5.22 / src/preview_fonts/LICENSE-Liberation.txt Digitized data copyright (c) 2010 Google Corporation with Reserved Font Arimo, Tinos and Cousine. @@ -232,7 +932,7 @@ DEALINGS IN THE FONT SOFTWARE. -fullbleed 2.5.11 / src/preview_fonts/LICENSE-NotoSans.txt +fullbleed 2.5.22 / src/preview_fonts/LICENSE-NotoSans.txt Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic) @@ -331,7 +1031,7 @@ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -fullbleed 2.5.11 / src/preview_fonts/LICENSE-NotoSansMath.txt +fullbleed 2.5.22 / src/preview_fonts/LICENSE-NotoSansMath.txt Copyright 2018 Google LLC. All Rights Reserved. @@ -430,7 +1130,7 @@ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -fullbleed 2.5.11 / src/preview_fonts/LICENSE-NotoSansSymbols.txt +fullbleed 2.5.22 / src/preview_fonts/LICENSE-NotoSansSymbols.txt Copyright 2016 Google LLC. All Rights Reserved. @@ -529,7 +1229,7 @@ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE. -fullbleed 2.5.11 / src/preview_fonts/LICENSE-NotoSansSymbols2.txt +fullbleed 2.5.22 / src/preview_fonts/LICENSE-NotoSansSymbols2.txt Copyright 2017 Google Inc. All Rights Reserved. diff --git a/docs/assets/playground/app.js b/docs/assets/playground/app.js index 7ad215b..7807659 100644 --- a/docs/assets/playground/app.js +++ b/docs/assets/playground/app.js @@ -37,7 +37,7 @@ function clearOutput() { el('placeholder').hidden = false; el('placeholder').textContent = 'Render your document to see it here.'; el('page-count').textContent = '—'; - el('result').textContent = 'Fullbleed 2.5.11'; + el('result').textContent = 'Fullbleed 2.5.22'; el('previous').disabled = el('next').disabled = true; setDownload(false); } diff --git a/docs/assets/react-starter/baseline/verification.json b/docs/assets/react-starter/baseline/verification.json index 76bbfde..6b28133 100644 --- a/docs/assets/react-starter/baseline/verification.json +++ b/docs/assets/react-starter/baseline/verification.json @@ -1,6 +1,6 @@ { - "package": "0.3.2", - "engine": "2.5.11", + "package": "0.4.1", + "engine": "2.5.22", "node": "v22.23.3", "records": [ { diff --git a/docs/assets/react-starter/project.zip b/docs/assets/react-starter/project.zip index 2c30e39..bfa86e3 100644 Binary files a/docs/assets/react-starter/project.zip and b/docs/assets/react-starter/project.zip differ diff --git a/docs/assets/react-starter/source.json b/docs/assets/react-starter/source.json index 57c7fcf..e3edfda 100644 --- a/docs/assets/react-starter/source.json +++ b/docs/assets/react-starter/source.json @@ -1,20 +1,20 @@ { "source_repository": "https://github.com/fullbleed-engine/fullbleed-node", - "source_commit": "ae6e301ebc129a15aab89378f44beb81d63d4475", + "source_commit": "eb66f753e58e0264a59d9cfc6a3dec7003231b8a", "source_directory": "examples/react", - "package_version": "0.3.2", - "engine_version": "2.5.11", + "package_version": "0.4.1", + "engine_version": "2.5.22", "react_version": "19.3.0", - "package_integrity": "sha512-bzbTUn6Hcxu0YZoP38wkrJ/nZ33+rQfZq5itdpQUl7lIO9mR1m9LC5n/2KLxjj+7dAb8IhpYoVTSmbuhQyA5Vg==", - "zip_bytes": 29613, - "zip_sha256": "f8c7759e4d321e0c7bc9faab41da345ee9f9638d15e718e8a762c58a3b59d56d", + "package_integrity": "sha512-vP/U/gxv/5M0xGwg8itmh0HtMmwP8qpKdDTZRIDQpAnndjt/Yu4quoLvt1O/FJvmIEVF1ClsioCQnpu4FMmvLA==", + "zip_bytes": 29622, + "zip_sha256": "12d0f83168add744f10dfb0d7b890bbf02ff616e5d036e1fa792c8edfbd7d6e7", "files": { "fullbleed-react-starter/.gitignore": "25d896ffa2be7ed008ad87c3956a0a88f54167d04a7cef5cf774d6989d3b5a7b", "fullbleed-react-starter/LICENSE": "36a2115938f6e68cf0d87eccff7a6a3e57c17017e909cbd640d51aff1fa0c5a9", - "fullbleed-react-starter/README.md": "9b20e8bd9a23d22e4733012b94cc8ab645fa08cb70327aa2ab1027e0b85a4081", + "fullbleed-react-starter/README.md": "b479fe05000f772eecf9c3536561c7fb613932857803f5ebe44797e7b2e09188", "fullbleed-react-starter/index.html": "cadf48a3476088b2efbe9012bb4b2d21fa24f1dd3e99f974f444c88fbf1ee165", - "fullbleed-react-starter/package-lock.json": "c28b7d70a675e27cfcf0c68c06ca1ecc7f640f43f35261f20274f02e48947ce3", - "fullbleed-react-starter/package.json": "ef11b5673e83c8c9222b7b7b6f2ea7c9ca7f0c99e809eb675d7c08cc6173dd14", + "fullbleed-react-starter/package-lock.json": "0c9de5ad9fa94d946f4e9205567f167f7a066e3d20a37807b1f77c96163723b1", + "fullbleed-react-starter/package.json": "a374a5201b8f75685d46d78d6cf12f449c1908af6e06ae83cc55003497334168", "fullbleed-react-starter/public/favicon.svg": "3eed6dcf1013e48bc64886fed4cf815c609ed06b404742bdacdc44c1df8d3118", "fullbleed-react-starter/src/App.tsx": "5dbcd45d570a3e4d69f12237d252e30afe71f52cb8411c3ffe094dc72f559b9f", "fullbleed-react-starter/src/invoice.css": "0b310ce0f2964fd6b9b68e4afafa9307b4ff8c6b2f1fc753367dc755620ce427", @@ -28,6 +28,6 @@ "fullbleed-react-starter/vite.config.js": "4b74d0189e7f58a4c75d168367e9b8a53000555dd3de594c497f70fb5e02fff0" }, "verification_workflow": "https://github.com/fullbleed-engine/fullbleed-node/actions/workflows/react-starter.yml", - "source_verification_run": "https://github.com/fullbleed-engine/fullbleed-node/actions/runs/37569111695", - "local_ui_evidence": "https://github.com/fullbleed-engine/fullbleed-node/blob/ae6e301ebc129a15aab89378f44beb81d63d4475/verification/starters-032.json" + "source_verification_run": "https://github.com/fullbleed-engine/fullbleed-node/actions/runs/37910538060", + "local_ui_evidence": "https://github.com/fullbleed-engine/fullbleed-node/blob/eb66f753e58e0264a59d9cfc6a3dec7003231b8a/verification/starters-041.json" } diff --git a/docs/assets/rust-starter/project.zip b/docs/assets/rust-starter/project.zip index 44f6756..49fc715 100644 Binary files a/docs/assets/rust-starter/project.zip and b/docs/assets/rust-starter/project.zip differ diff --git a/docs/assets/rust-starter/source.json b/docs/assets/rust-starter/source.json index c0ff08e..541e63b 100644 --- a/docs/assets/rust-starter/source.json +++ b/docs/assets/rust-starter/source.json @@ -1,7 +1,10 @@ { "schema": "fullbleed.rust-starter.v1", "repository": "https://github.com/fullbleed-engine/docs", - "engine": "2.5.11", + "engine": "2.5.22", + "engine_features": [ + "svg_raster" + ], "prefix": "fullbleed-rust-starter/", "files": [ { @@ -14,13 +17,13 @@ "path": "Cargo.lock", "source": "examples/rust/Cargo.lock", "bytes": 1299, - "sha256": "48e97f97f7ff701bebbbc391b29114b6f5f45611a3824220243cbea5834e99f2" + "sha256": "f1e21c882e6a704857196bea018271b05811525f65060730bd31d9ed3c58c008" }, { "path": "Cargo.toml", "source": "examples/rust/Cargo.toml", - "bytes": 272, - "sha256": "be5886957217168275d1a771b759974cf7d85dde29910d7c741ca8dc0d510be1" + "bytes": 313, + "sha256": "b808494b3fe21d7241b76d7d7f12e5b43412ab5de87cdd802cb8f9256e52fd40" }, { "path": "LICENSE", @@ -31,8 +34,8 @@ { "path": "README.md", "source": "examples/rust/STARTER.md", - "bytes": 3177, - "sha256": "851609cca16a16f8edff04c18077f71317e9057e1a63631fe790d880d0b213af" + "bytes": 3228, + "sha256": "8042911c0b4f7108be67a9548b6e6a756a612fac1d37bd5b5340116f7bfac3b8" }, { "path": "fonts/BebasNeue-OFL.txt", @@ -113,6 +116,6 @@ "sha256": "46b0e975d43914c8b4492218feae09ea0ad684091a9f9ee3b18f66a87202e521" } ], - "zip_bytes": 587627, - "zip_sha256": "1747ac09391cae27c644a48bec9986d105f450884571238165b68eb445794b56" + "zip_bytes": 587685, + "zip_sha256": "1e55d4a448cf324112b04158ffe3da1e0eb443d67ce8355c6bd7a339df0c6b93" } diff --git a/docs/assets/vue-starter/baseline/verification.json b/docs/assets/vue-starter/baseline/verification.json index 76bbfde..6b28133 100644 --- a/docs/assets/vue-starter/baseline/verification.json +++ b/docs/assets/vue-starter/baseline/verification.json @@ -1,6 +1,6 @@ { - "package": "0.3.2", - "engine": "2.5.11", + "package": "0.4.1", + "engine": "2.5.22", "node": "v22.23.3", "records": [ { diff --git a/docs/assets/vue-starter/project.zip b/docs/assets/vue-starter/project.zip index 9a07610..b33544e 100644 Binary files a/docs/assets/vue-starter/project.zip and b/docs/assets/vue-starter/project.zip differ diff --git a/docs/assets/vue-starter/source.json b/docs/assets/vue-starter/source.json index d5e8261..489b5bd 100644 --- a/docs/assets/vue-starter/source.json +++ b/docs/assets/vue-starter/source.json @@ -1,20 +1,20 @@ { "source_repository": "https://github.com/fullbleed-engine/fullbleed-node", - "source_commit": "ae6e301ebc129a15aab89378f44beb81d63d4475", + "source_commit": "eb66f753e58e0264a59d9cfc6a3dec7003231b8a", "source_directory": "examples/vue", - "package_version": "0.3.2", - "engine_version": "2.5.11", + "package_version": "0.4.1", + "engine_version": "2.5.22", "vue_version": "3.5.43", - "package_integrity": "sha512-bzbTUn6Hcxu0YZoP38wkrJ/nZ33+rQfZq5itdpQUl7lIO9mR1m9LC5n/2KLxjj+7dAb8IhpYoVTSmbuhQyA5Vg==", - "zip_bytes": 30293, - "zip_sha256": "8fd2f6beacc82e1b4baacad6713c8c69b3bc8a035c8e3fc42477a4e41b61d1b6", + "package_integrity": "sha512-vP/U/gxv/5M0xGwg8itmh0HtMmwP8qpKdDTZRIDQpAnndjt/Yu4quoLvt1O/FJvmIEVF1ClsioCQnpu4FMmvLA==", + "zip_bytes": 30296, + "zip_sha256": "b5fa3e1b4236aec32b11880d465205b0960e69382fdfdda7a9e079e629d33838", "files": { "fullbleed-vue-starter/.gitignore": "c023fec2bf12476cb47709e859f1fbb785aeb1e03281e52141e0bee1ee7dad72", "fullbleed-vue-starter/LICENSE": "36a2115938f6e68cf0d87eccff7a6a3e57c17017e909cbd640d51aff1fa0c5a9", - "fullbleed-vue-starter/README.md": "b157b91e6a93417c279b565f2b5ecb96c8299c3e0524b7531704348ba0bbe4e8", + "fullbleed-vue-starter/README.md": "fcc4050735c6ffe57465bc52b7b8bce54cc10f8680fde2685a887d23982bfd58", "fullbleed-vue-starter/index.html": "30d46eb1b5147bd3d9c580e7adaed5b5202f9b97ab598e189efda7c3d2d405be", - "fullbleed-vue-starter/package-lock.json": "72269d20bb6fabb34779eac61bea9d2b9eaadf5afff09e5e968053c2418fe3c4", - "fullbleed-vue-starter/package.json": "262a2d42ec0067ff76d4c80398b01de7c2fc84c455f66fd7bb62517b30669c90", + "fullbleed-vue-starter/package-lock.json": "980166f69be36389fb07b15c21d9a86cb7f2c17d09d75e21ad114e1e40caea54", + "fullbleed-vue-starter/package.json": "298311f0ea393af93d40b37832c3441df0ccf13b4e892fe4be9df20e23969925", "fullbleed-vue-starter/public/favicon.svg": "3eed6dcf1013e48bc64886fed4cf815c609ed06b404742bdacdc44c1df8d3118", "fullbleed-vue-starter/src/App.vue": "0afa15196ccedd0b0f91293cc5e362799149a2752c59deaa377f4533825ea2af", "fullbleed-vue-starter/src/DocumentEditor.vue": "a3f3f8096d194e1eed6cd0cf2fb0a0606a04d40823ff7b794b9b1a0dbfd8c28a", @@ -29,6 +29,6 @@ "fullbleed-vue-starter/vite.config.js": "dfcc6c065fb26ada03802def672108735f4c2c35e0f30d11965ddfa796b8a0c0" }, "verification_workflow": "https://github.com/fullbleed-engine/fullbleed-node/actions/workflows/vue-starter.yml", - "local_ui_evidence": "https://github.com/fullbleed-engine/fullbleed-node/blob/ae6e301ebc129a15aab89378f44beb81d63d4475/verification/starters-032.json", - "source_verification_run": "https://github.com/fullbleed-engine/fullbleed-node/actions/runs/37569111733" + "local_ui_evidence": "https://github.com/fullbleed-engine/fullbleed-node/blob/eb66f753e58e0264a59d9cfc6a3dec7003231b8a/verification/starters-041.json", + "source_verification_run": "https://github.com/fullbleed-engine/fullbleed-node/actions/runs/37910538005" } diff --git a/docs/getting-started/rust.md b/docs/getting-started/rust.md index 21bbc30..f8bb4ec 100644 --- a/docs/getting-started/rust.md +++ b/docs/getting-started/rust.md @@ -18,7 +18,7 @@ With Rust 1.85 or newer and a working native Rust toolchain: ```bash cargo new invoice-demo cd invoice-demo -cargo add fullbleed@=2.5.19 +cargo add fullbleed@=2.5.22 --features svg_raster ``` Replace `src/main.rs` with: @@ -85,7 +85,7 @@ cargo run --release --locked --bin from-files -- templates/report.html templates Edit the files in `templates/` to customize the content and design. Render to a new output directory after edits, so previews from a longer previous document do not remain. The first Cargo build downloads dependencies and needs internet -access. These examples pin Fullbleed 2.5.11 and include a Cargo lockfile; the ZIP +access. These examples pin Fullbleed 2.5.22 and include a Cargo lockfile; the ZIP is compiled and rendered on Windows and Linux with Rust 1.97.0. For the service notice or your own edits, choose **Download project** in the @@ -131,7 +131,7 @@ playground font files. The `register_font_file` and `register_font_dir` helpers are also available, but skip unreadable or invalid files. A glyph report can find missing characters; it does not prove that the intended typeface loaded. The -[API font guide](https://docs.rs/fullbleed/2.5.19/fullbleed/#supply-fonts-explicitly) +[API font guide](https://docs.rs/fullbleed/2.5.22/fullbleed/#supply-fonts-explicitly) explains these choices. For one PNG per page, preview the PDF you just wrote at your chosen DPI: @@ -151,11 +151,11 @@ For a Rust web application, [download the Axum PDF starter](../guides/axum-pdf.m It turns invoice JSON into a styled download with editable HTML/CSS, bundled fonts, a browser form, and bounded rendering work. -Use [the hosted Rust API reference](https://docs.rs/fullbleed/2.5.19/fullbleed/) +Use [the hosted Rust API reference](https://docs.rs/fullbleed/2.5.22/fullbleed/) for the first-PDF program, method selection, fonts, and executable examples of -fixed-layout and reflowing templates. The quickstart above uses 2.5.19; the -downloadable designed starter remains pinned to 2.5.11 and matches the -[2.5.11 source](https://github.com/fullbleed-engine/fullbleed-official/blob/v2.5.11/src/lib.rs). +fixed-layout and reflowing templates. The quickstart and downloadable designed +starter both pin 2.5.22 with SVG rendering enabled and match the +[2.5.22 source](https://github.com/fullbleed-engine/fullbleed-official/blob/v2.5.22/src/lib.rs). Check [CSS coverage](../css-coverage.md) before adapting a web layout, and inspect your actual output when changing fonts or content. These examples use trusted diff --git a/docs/guides/browser-pdf.md b/docs/guides/browser-pdf.md index ae6d29c..7146ec7 100644 --- a/docs/guides/browser-pdf.md +++ b/docs/guides/browser-pdf.md @@ -18,20 +18,19 @@ Change the customer, reference, and ink color, or open **Edit the HTML & CSS** t paste your own template. Generate a preview, then download the actual PDF. All sample names, organizations, and amounts are fictional. -The downloadable starter uses **npm package 0.3.2**, wrapping **Fullbleed engine 2.5.11**. +The downloadable starter uses **npm package 0.4.1**, wrapping **Fullbleed engine 2.5.22**. The browser and Node entries share the pinned engine and bundled fonts. -This starter version fixes blank PNG previews for unembedded Helvetica, Times, and -Courier faces, including templates pasted into the starter. -The [font-preview guide](https://github.com/fullbleed-engine/fullbleed-node/blob/v0.3.2/docs/standard-font-previews.md) +Unembedded Helvetica, Times, and Courier faces produce visible PNG previews, +including in templates pasted into the starter. +The [font-preview guide](https://github.com/fullbleed-engine/fullbleed-node/blob/v0.4.1/docs/standard-font-previews.md) explains the substitute designs and upgrade checks. Run the asset-copy command again after upgrading so the browser receives the matching runtime and notices. Package **0.4.1** uses engine **2.5.22** and includes fixes for counters, clipping, border images, and floated initials. For an existing project, follow the [current browser installation guide](https://github.com/fullbleed-engine/fullbleed-node/blob/v0.4.1/docs/browser.md) -and recopy the browser runtime after upgrading. The starter below retains its -separately verified 0.3.2 lockfile. +and recopy the browser runtime after upgrading. ## Edit the project online @@ -73,7 +72,7 @@ Install the package and copy its runtime into the directory your framework serves as static files: ```sh -npm install --save-exact fullbleed@0.3.2 +npm install --save-exact fullbleed@0.4.1 npx fullbleed-browser-assets public/fullbleed ``` @@ -137,7 +136,7 @@ completion or cancellation requests worker termination before the promise settle Browsers do not expose a native thread-exit promise. Keep concurrent jobs bounded for the devices you support, especially when generating page previews. -The [0.3.2 release evidence](https://github.com/fullbleed-engine/fullbleed-node/releases/tag/v0.3.2) +The [0.4.1 release evidence](https://github.com/fullbleed-engine/fullbleed-node/releases/tag/v0.4.1) retains checks in Chrome, Firefox, and Playwright WebKit, including PDF/PNG comparison with the installed Node package, independent PDF text checks, cancellation, damaged assets, and recovery. Playwright WebKit is not branded @@ -154,3 +153,7 @@ with a reusable composable, reactive previews, and component cleanup. It connects form changes to automatic PDF previews and includes a hook that cancels stale work and releases output URLs when inputs change or a component unmounts. + +The editor checks also paste templates for sibling counter resets, nested clipping, +SVG border-image centers, and decorated floated initials. They inspect downloaded +PDF text and independently specified colors in both the PDF and its preview. diff --git a/docs/guides/nextjs-pdf.md b/docs/guides/nextjs-pdf.md index d7a2a83..a63562c 100644 --- a/docs/guides/nextjs-pdf.md +++ b/docs/guides/nextjs-pdf.md @@ -34,8 +34,8 @@ Open `http://127.0.0.1:3000` and select **Download sample PDF**. The route `/api/invoices/NS-1042` returns the invoice as an attachment. The browser stays on the starter page. Use `npm run dev` while editing the app. -The lockfile pins Next.js 16.3.8, React 19.3.0 and Fullbleed Node 0.3.2, powered -by engine 2.5.11. Fullbleed is installed from npm. The registry tarball is +The lockfile pins Next.js 16.3.8, React 19.3.0 and Fullbleed Node 0.4.1, powered +by engine 2.5.22. Fullbleed is installed from npm. The registry tarball is byte-identical to the verified GitHub release. For an existing Node application, start with the [Node.js quickstart](../getting-started/node.md). diff --git a/docs/guides/react-pdf.md b/docs/guides/react-pdf.md index 2f5575a..6c492b1 100644 --- a/docs/guides/react-pdf.md +++ b/docs/guides/react-pdf.md @@ -48,7 +48,7 @@ color and wait for **Ready**. **Download PDF** saves the generated document. Turn off **Update automatically** to generate only when you choose **Generate PDF**. **Cancel** stops a pending preview or active render. -The lockfile pins Fullbleed npm **0.3.2** / engine **2.5.11**, React **19.3.0**, +The lockfile pins Fullbleed npm **0.4.1** / engine **2.5.22**, React **19.3.0**, TypeScript **7.0.2**, and Vite **8.3.2**. The ZIP includes its source and lockfile; the build downloads the published dependencies and copies their verified runtime. @@ -79,7 +79,7 @@ through the SDK's `fonts` and `assets` options. Install the package and copy its runtime into your app's static directory: ```sh -npm install --save-exact fullbleed@0.3.2 +npm install --save-exact fullbleed@0.4.1 npx fullbleed-browser-assets public/fullbleed ``` @@ -157,3 +157,7 @@ promise. Bound concurrently mounted renderers for the devices you support. This browser entry provides ordinary PDFs and previews, not PDF/A, PDF/UA, PDF/X, or VDP options. For a server-side React framework route, use the [Next.js PDF download starter](nextjs-pdf.md). + +The editor checks also paste templates for sibling counter resets, nested clipping, +SVG border-image centers, and decorated floated initials. They inspect downloaded +PDF text and independently specified colors in both the PDF and its preview. diff --git a/docs/guides/vue-pdf.md b/docs/guides/vue-pdf.md index 38aa05d..44d6ffd 100644 --- a/docs/guides/vue-pdf.md +++ b/docs/guides/vue-pdf.md @@ -47,7 +47,7 @@ color and wait for **Ready**, then choose **Download PDF**. Turn off **Update automatically** to generate on demand. **Cancel** stops a pending preview or active render. **Close editor** releases its resources; reopening starts fresh. -The lockfile pins Fullbleed npm **0.3.2** / engine **2.5.11**, Vue **3.5.43**, +The lockfile pins Fullbleed npm **0.4.1** / engine **2.5.22**, Vue **3.5.43**, TypeScript **6.0.3**, and Vite **8.3.2**. The build downloads the published dependencies and copies their verified runtime. TypeScript 6 is pinned for compatibility with the project's `vue-tsc` type checker. @@ -82,7 +82,7 @@ through the SDK's `fonts` and `assets` options. Install the package and copy its runtime into your static directory: ```sh -npm install --save-exact fullbleed@0.3.2 +npm install --save-exact fullbleed@0.4.1 npx fullbleed-browser-assets public/fullbleed ``` @@ -169,3 +169,7 @@ instances for the devices you support. This browser entry provides ordinary PDFs and previews. It does not expose PDF/A, PDF/UA, PDF/X, or VDP options. For React, use the [React PDF starter](react-pdf.md). + +The editor checks also paste templates for sibling counter resets, nested clipping, +SVG border-image centers, and decorated floated initials. They inspect downloaded +PDF text and independently specified colors in both the PDF and its preview. diff --git a/docs/index.md b/docs/index.md index 5ea69c3..93a8cb2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -159,7 +159,7 @@ Pick your application stack. Generate a PDF locally or download one from the bro ```bash cargo new invoice-demo cd invoice-demo - cargo add fullbleed@=2.5.19 + cargo add fullbleed@=2.5.22 --features svg_raster ``` Replace `src/main.rs` with: @@ -277,6 +277,6 @@ Fullbleed uses static HTML/CSS as its layout language. Read the [CSS coverage](c ## Open source, with inspectable evidence -Fullbleed is [MIT licensed](https://github.com/fullbleed-engine/fullbleed-official/blob/master/LICENSE). The [2.5.19 release](https://github.com/fullbleed-engine/fullbleed-official/releases/tag/v2.5.19) links the published engine packages and retained engineering evidence. See the [smaller-PDF before/after check](guides/pdf-size.md) and the [performance report](guides/performance.md) for specific measured workloads and their limits. +Fullbleed is [MIT licensed](https://github.com/fullbleed-engine/fullbleed-official/blob/master/LICENSE). The [2.5.22 release](https://github.com/fullbleed-engine/fullbleed-official/releases/tag/v2.5.22) links the published engine packages and retained engineering evidence. See the [smaller-PDF before/after check](guides/pdf-size.md) and the [performance report](guides/performance.md) for specific measured workloads and their limits. [Read the Python API](engine/pdf-engine.md) · [Set up a coding agent](guides/ai-agents.md) · [Report an issue](https://github.com/fullbleed-engine/fullbleed-official/issues) · [Support Fullbleed](support.md) diff --git a/docs/playground.md b/docs/playground.md index 8fa7b07..92439d8 100644 --- a/docs/playground.md +++ b/docs/playground.md @@ -6,7 +6,7 @@ hide: - toc --- - +
@@ -28,7 +28,7 @@ hide:
THE PRINTED PAGE
—

Preparing your first PDF…

- +

Loading the examples…

@@ -51,7 +51,7 @@ python render.py Open `output/document.pdf`; PNG previews are in `output/preview/`. Edit `input.html` or `style.css`, then run the script again. The project uses Fullbleed -2.5.11 to match this demo. Use a Python 3.10 or newer virtual environment. The ZIP +2.5.22 to match this demo. Use a Python 3.10 or newer virtual environment. The ZIP is assembled on your device, using the source present when you click the button. It does not upload your document. @@ -72,7 +72,7 @@ or `notice`. You can keep editing and add `--watch` to rebuild after each save. [Run the Python notebook](getting-started/notebook.md){ .md-button } [CSS support](css-coverage.md){ .md-button } -The playground uses the released **Fullbleed 2.5.11** Rust engine, compiled to +The playground uses the released **Fullbleed 2.5.22** Rust engine, compiled to WebAssembly. Page previews are rendered from the same PDF you download, including the report's gradient chart fills. It accepts static HTML/CSS, with Inter, DM Serif Display, and Bebas Neue embedded fonts. JavaScript @@ -93,7 +93,7 @@ fictional. · [Project download checks](assets/playground/project-verification.json) · [Third-party licenses](assets/playground/LICENSES.txt) - + Build this into your own web app: [download the browser SDK starter](guides/browser-pdf.md), with editable templates and local PDF downloads. diff --git a/examples/rust/Cargo.lock b/examples/rust/Cargo.lock index 49c8cc8..4d02bfa 100644 --- a/examples/rust/Cargo.lock +++ b/examples/rust/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "fullbleed" -version = "2.5.11" +version = "2.5.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a672e0401fb42234b2e5a619adbe3a431db646780bf3398a44c70d8855c63270" +checksum = "103bc98750b704511b10460a91d6a05e8138648eaecac6c7dc96415aab75b455" dependencies = [ "fullbleed_audit_contract", "subsetter", diff --git a/examples/rust/Cargo.toml b/examples/rust/Cargo.toml index 0e74c4c..426f2c0 100644 --- a/examples/rust/Cargo.toml +++ b/examples/rust/Cargo.toml @@ -7,7 +7,7 @@ license = "MIT" publish = false [dependencies] -fullbleed = "=2.5.11" +fullbleed = { version = "=2.5.22", features = ["svg_raster"] } [[bin]] name = "hello" diff --git a/examples/rust/README.md b/examples/rust/README.md index d1fa353..26c03b5 100644 --- a/examples/rust/README.md +++ b/examples/rust/README.md @@ -1,6 +1,7 @@ # Fullbleed from Rust -These examples use the published `fullbleed` 2.5.11 crate. They require Rust +These examples use the published `fullbleed` 2.5.22 crate with `svg_raster` +enabled to match downloaded playground projects. They require Rust 1.85 or newer and a working native Rust toolchain; they do not require Python. For a standalone project with the templates, fonts, and license notices, use the diff --git a/examples/rust/STARTER.md b/examples/rust/STARTER.md index cbbd06e..5a2874b 100644 --- a/examples/rust/STARTER.md +++ b/examples/rust/STARTER.md @@ -64,7 +64,8 @@ PDF bytes from your handler or write them to your storage. Use the full [Rust walkthrough](https://docs.fullbleed.dev/getting-started/rust/) for font registration and preview details. -The project pins the published `fullbleed` crate to 2.5.11. `Cargo.lock` records +The project pins the published `fullbleed` crate to 2.5.22 with `svg_raster` +enabled, matching the playground. `Cargo.lock` records the resolved dependency versions. No local Fullbleed checkout is required. The code and templates are MIT licensed; the fonts are SIL OFL 1.1. diff --git a/playground/README.md b/playground/README.md index 569a72f..dad62fc 100644 --- a/playground/README.md +++ b/playground/README.md @@ -1,7 +1,7 @@ # Fullbleed browser playground -An optional static website adapter for the unchanged published `fullbleed = 2.5.11` -Rust crate. It compiles to `wasm32-wasip1` and runs inside a Web Worker using +An optional static website adapter for the unchanged published `fullbleed = 2.5.22` +Rust crate with the `svg_raster` feature. It compiles to `wasm32-wasip1` and runs inside a Web Worker using `@bjorn3/browser_wasi_shim` 0.4.2. It adds no dependencies to the Python wheel or the core Rust crate. The engine produces the PDF, then renders PNG page previews from that finalized file. Downloaded Python projects use the same preview path. @@ -23,15 +23,22 @@ python tools/build_playground.py node tools/verify_playground.mjs python -m mkdocs build --strict python tools/check_site.py site +python -m pip install -r tools/browser-requirements.txt +python -m playwright install chrome +python tools/check_playground_ui.py --site site --out output/playground-ui ``` The build uses both lockfiles, publishes a toolchain/hash record, and retains the generated verification report next to the browser assets. The verification script compares native and WASI PDF and PNG bytes for the invoice, report, and notice, an edited invoice, three gradient cases, and all 12 unembedded Latin -standard font faces; checks expected gradient colors and visible text in every +standard font faces, plus sibling counter resets, nested clipping, SVG border-image +centers, and a decorated floated initial; checks expected gradient colors and visible text in every standard-font row; and exercises source/page limits and -recovery. The browser UI is additionally reviewed with actual downloaded PDFs. +recovery. `tools/check_playground_ui.py` exercises the built page, checks the four +layout cases against independent PDF text and color probes, downloads edited +PDFs and a project ZIP, and verifies pagination, source/page limits, cancellation, +recovery, and 1440/390/320px layouts. CI retains the PDFs, previews, and screenshots. These checks establish the recorded fixtures only, not universal platform parity or ISO conformance. @@ -50,7 +57,7 @@ are checked against the existing attribution manifest before export. After building the playground, verify the complete handoff with: ```sh -python -m pip install fullbleed==2.5.11 pypdf==6.19.0 +python -m pip install fullbleed==2.5.22 pypdf==6.19.0 node tools/verify_project_export.mjs python -I tools/verify_project_export.py ``` @@ -58,7 +65,7 @@ python -I tools/verify_project_export.py The verifier checks ZIP integrity, exact source and font/license bytes, export replay, failure recovery, and Python/WASI PDF and PNG equality for the invoice, report, notice, an edited invoice, three gradient cases, and the standard-font -fixture. An independent PDF reader verifies that all 12 font faces remain +fixture, plus the four layout cases above. An independent PDF reader verifies that all 12 font faces remain unembedded and their text is intact. Extracted projects run from paths with spaces and a different current working directory. Results are retained in `playground/project-verification`. diff --git a/playground/engine/Cargo.lock b/playground/engine/Cargo.lock index 9f0fbf1..822e022 100644 --- a/playground/engine/Cargo.lock +++ b/playground/engine/Cargo.lock @@ -4,9 +4,9 @@ version = 4 [[package]] name = "fullbleed" -version = "2.5.11" +version = "2.5.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a672e0401fb42234b2e5a619adbe3a431db646780bf3398a44c70d8855c63270" +checksum = "103bc98750b704511b10460a91d6a05e8138648eaecac6c7dc96415aab75b455" dependencies = [ "fullbleed_audit_contract", "subsetter", diff --git a/playground/engine/Cargo.toml b/playground/engine/Cargo.toml index 0ddd9cd..4801b31 100644 --- a/playground/engine/Cargo.toml +++ b/playground/engine/Cargo.toml @@ -6,7 +6,7 @@ license = "MIT" publish = false [dependencies] -fullbleed = "=2.5.11" +fullbleed = { version = "=2.5.22", features = ["svg_raster"] } [profile.release] lto = true diff --git a/playground/engine/src/main.rs b/playground/engine/src/main.rs index 3b5c573..a23b610 100644 --- a/playground/engine/src/main.rs +++ b/playground/engine/src/main.rs @@ -36,7 +36,7 @@ fn render() -> Result<(), Box> { std::fs::write( "result.json", format!( - "{{\"engine\":\"2.5.11\",\"pages\":{},\"missing_glyphs\":{}}}", + "{{\"engine\":\"2.5.22\",\"pages\":{},\"missing_glyphs\":{}}}", pages.len(), glyphs.missing().len() ), diff --git a/tools/browser-requirements.txt b/tools/browser-requirements.txt index 8e8037d..45d854d 100644 --- a/tools/browser-requirements.txt +++ b/tools/browser-requirements.txt @@ -1,2 +1,4 @@ playwright==1.63.0 pypdf==6.19.0 +pypdfium2==5.14.0 +pillow==12.3.0 diff --git a/tools/build_browser_starter.py b/tools/build_browser_starter.py index 20172ac..6d8a9b2 100644 --- a/tools/build_browser_starter.py +++ b/tools/build_browser_starter.py @@ -49,7 +49,7 @@ project = workspace / 'fullbleed-browser-starter' package = json.loads((project / 'package.json').read_text()) lock = json.loads((project / 'package-lock.json').read_text()) -assert package['dependencies']['fullbleed'] == manifest['package_version'] == '0.3.2' +assert package['dependencies']['fullbleed'] == manifest['package_version'] == '0.4.1' assert package['devDependencies']['vite'] == '8.3.2' assert lock['packages']['node_modules/fullbleed']['integrity'] == manifest['package_integrity'] assert lock['packages']['node_modules/fullbleed']['resolved'].startswith('https://registry.npmjs.org/') @@ -64,7 +64,8 @@ installed = project / 'node_modules/fullbleed' assert json.loads((installed / 'package.json').read_text())['version'] == manifest['package_version'] runtime = json.loads((project / 'dist/fullbleed/build.json').read_text()) -assert runtime['packageVersion'] == manifest['package_version'] and runtime['engineVersion'] == '2.5.11' +assert runtime['packageVersion'] == manifest['package_version'] and runtime['engineVersion'] == '2.5.22' +assert runtime['engineFeatures'] == ['svg_raster'] for name, expected in runtime['files'].items(): value = (project / 'dist/fullbleed' / name).read_bytes() assert len(value) == expected['bytes'] and digest(value) == expected['sha256'] @@ -75,7 +76,8 @@ launcher_path = write_online_launcher(ROOT, 'browser', manifest, project_files) record = dict(ok=True, checked_at=datetime.now(timezone.utc).isoformat(), zip_sha256=manifest['zip_sha256'], source_commit=manifest['source_commit'], - package_version=manifest['package_version'], package_integrity=manifest['package_integrity'], + package_version=manifest['package_version'], engine_version=runtime['engineVersion'], + engine_features=runtime['engineFeatures'], package_integrity=manifest['package_integrity'], online_editor_path='assets/browser-starter/edit-online.html', online_editor_sha256=digest(launcher_path.read_bytes()), online_editor_files=len(project_files), node=subprocess.check_output([str(node), '--version'], text=True).strip(), diff --git a/tools/build_playground.py b/tools/build_playground.py index 3e8e7ee..acfcc7b 100644 --- a/tools/build_playground.py +++ b/tools/build_playground.py @@ -3,6 +3,7 @@ import hashlib import json import os +import re import shutil import subprocess import zipfile @@ -25,17 +26,20 @@ def run(args, cwd): core = next(package for package in metadata['packages'] if package['name'] == 'fullbleed') if not core['source'] or not core['source'].startswith('registry+'): raise SystemExit('The playground must use the unchanged published Fullbleed crate.') +features = sorted(next(node for node in metadata['resolve']['nodes'] if node['id'] == core['id'])['features']) +if features != ['svg_raster']: + raise SystemExit('The playground must include the native SVG fallback.') license_parts = [] for package in metadata['packages']: if package['source'] is None: continue folder = Path(package['manifest_path']).parent - license_file = folder / 'LICENSE-MIT' - if not license_file.exists(): - license_file = folder / 'LICENSE' - if not license_file.exists(): + notices = sorted(path for path in folder.iterdir() if path.is_file() and ( + re.match(r'LICEN[CS]E(?:$|[-_.])', path.name, re.I) or path.name == 'THIRD_PARTY_LICENSES.md')) + if not notices: raise SystemExit(f"Missing bundled license for {package['name']}") - license_parts.append(f"{package['name']} {package['version']} — MIT\n\n" + license_file.read_text(encoding='utf-8')) + for notice in notices: + license_parts.append(f"{package['name']} {package['version']} / {notice.name}\n\n" + notice.read_text(encoding='utf-8')) for name in ['Liberation', 'NotoSans', 'NotoSansMath', 'NotoSansSymbols', 'NotoSansSymbols2']: # Font programs are compiled into the engine; retain their own licenses. relative = f'src/preview_fonts/LICENSE-{name}.txt' @@ -52,7 +56,9 @@ def run(args, cwd): info.external_attr = 0o644 << 16 archive.writestr(info, path.read_bytes()) record = { - 'engine': {'name': 'fullbleed', 'version': core['version'], 'source': f"https://crates.io/crates/fullbleed/{core['version']}", 'core_changes': False}, + 'engine': {'name': 'fullbleed', 'version': core['version'], 'source': f"https://crates.io/crates/fullbleed/{core['version']}", 'features': features, 'core_changes': False}, + 'dependencies': [{'name': package['name'], 'version': package['version'], 'license': package['license']} + for package in metadata['packages'] if package['source']], 'adapter': 'playground/engine', 'target': 'wasm32-wasip1', 'preview_source': 'finalized_pdf', diff --git a/tools/build_react_starter.py b/tools/build_react_starter.py index 0a3f669..737e20e 100644 --- a/tools/build_react_starter.py +++ b/tools/build_react_starter.py @@ -49,7 +49,7 @@ project = workspace / 'fullbleed-react-starter' package = json.loads((project / 'package.json').read_text()) lock = json.loads((project / 'package-lock.json').read_text()) -assert package['dependencies']['fullbleed'] == manifest['package_version'] == '0.3.2' +assert package['dependencies']['fullbleed'] == manifest['package_version'] == '0.4.1' assert package['devDependencies']['vite'] == '8.3.2' assert package['dependencies']['react'] == package['dependencies']['react-dom'] == manifest['react_version'] assert lock['packages']['node_modules/fullbleed']['integrity'] == manifest['package_integrity'] @@ -65,7 +65,8 @@ installed = project / 'node_modules/fullbleed' assert json.loads((installed / 'package.json').read_text())['version'] == manifest['package_version'] runtime = json.loads((project / 'dist/fullbleed/build.json').read_text()) -assert runtime['packageVersion'] == manifest['package_version'] and runtime['engineVersion'] == '2.5.11' +assert runtime['packageVersion'] == manifest['package_version'] and runtime['engineVersion'] == '2.5.22' +assert runtime['engineFeatures'] == ['svg_raster'] for name, expected in runtime['files'].items(): value = (project / 'dist/fullbleed' / name).read_bytes() assert len(value) == expected['bytes'] and digest(value) == expected['sha256'] @@ -76,7 +77,8 @@ launcher_path = write_online_launcher(ROOT, 'react', manifest, project_files) record = dict(ok=True, checked_at=datetime.now(timezone.utc).isoformat(), zip_sha256=manifest['zip_sha256'], source_commit=manifest['source_commit'], - package_version=manifest['package_version'], package_integrity=manifest['package_integrity'], + package_version=manifest['package_version'], engine_version=runtime['engineVersion'], + engine_features=runtime['engineFeatures'], package_integrity=manifest['package_integrity'], online_editor_path='assets/react-starter/edit-online.html', online_editor_sha256=digest(launcher_path.read_bytes()), online_editor_files=len(project_files), node=subprocess.check_output([str(node), '--version'], text=True).strip(), diff --git a/tools/build_rust_starter.py b/tools/build_rust_starter.py index fffda24..476037f 100644 --- a/tools/build_rust_starter.py +++ b/tools/build_rust_starter.py @@ -46,7 +46,8 @@ def main(): cargo = tomllib.loads((ROOT / SOURCES['Cargo.toml']).read_text(encoding='utf-8')) manifest = {'schema': 'fullbleed.rust-starter.v1', 'repository': 'https://github.com/fullbleed-engine/docs', - 'engine': cargo['dependencies']['fullbleed'].removeprefix('='), + 'engine': cargo['dependencies']['fullbleed']['version'].removeprefix('='), + 'engine_features': cargo['dependencies']['fullbleed']['features'], 'prefix': PREFIX, 'files': files, 'zip_bytes': archive_path.stat().st_size, 'zip_sha256': sha256(archive_path.read_bytes()).hexdigest()} diff --git a/tools/build_vue_starter.py b/tools/build_vue_starter.py index f2b74bd..795eae5 100644 --- a/tools/build_vue_starter.py +++ b/tools/build_vue_starter.py @@ -49,7 +49,7 @@ project = workspace / 'fullbleed-vue-starter' package = json.loads((project / 'package.json').read_text()) lock = json.loads((project / 'package-lock.json').read_text()) -assert package['dependencies']['fullbleed'] == manifest['package_version'] == '0.3.2' +assert package['dependencies']['fullbleed'] == manifest['package_version'] == '0.4.1' assert package['devDependencies']['vite'] == '8.3.2' assert package['devDependencies']['typescript'] == '6.0.3' assert package['devDependencies']['vue-tsc'] == '3.3.12' @@ -67,7 +67,8 @@ installed = project / 'node_modules/fullbleed' assert json.loads((installed / 'package.json').read_text())['version'] == manifest['package_version'] runtime = json.loads((project / 'dist/fullbleed/build.json').read_text()) -assert runtime['packageVersion'] == manifest['package_version'] and runtime['engineVersion'] == '2.5.11' +assert runtime['packageVersion'] == manifest['package_version'] and runtime['engineVersion'] == '2.5.22' +assert runtime['engineFeatures'] == ['svg_raster'] for name, expected in runtime['files'].items(): value = (project / 'dist/fullbleed' / name).read_bytes() assert len(value) == expected['bytes'] and digest(value) == expected['sha256'] @@ -78,7 +79,8 @@ launcher_path = write_online_launcher(ROOT, 'vue', manifest, project_files) record = dict(ok=True, checked_at=datetime.now(timezone.utc).isoformat(), zip_sha256=manifest['zip_sha256'], source_commit=manifest['source_commit'], - package_version=manifest['package_version'], package_integrity=manifest['package_integrity'], + package_version=manifest['package_version'], engine_version=runtime['engineVersion'], + engine_features=runtime['engineFeatures'], package_integrity=manifest['package_integrity'], online_editor_path='assets/vue-starter/edit-online.html', online_editor_sha256=digest(launcher_path.read_bytes()), online_editor_files=len(project_files), node=subprocess.check_output([str(node), '--version'], text=True).strip(), diff --git a/tools/check_browser_starter.py b/tools/check_browser_starter.py index 89f06dd..b75fdf0 100644 --- a/tools/check_browser_starter.py +++ b/tools/check_browser_starter.py @@ -12,6 +12,7 @@ from playwright.sync_api import sync_playwright, expect from pypdf import PdfReader from starter_standard_fonts import verify_edited_preview +from starter_engine_fixes import verify_engine_fixes parser=argparse.ArgumentParser(description=__doc__) parser.add_argument('--dist',type=Path,required=True) @@ -96,6 +97,7 @@ def download(name,pages,text): check('document script does not run on the page',page.evaluate('window.documentScriptExecuted !== true')) verify_edited_preview(page, path, out, check) page.screenshot(path=str(out/'edited-template.png'),full_page=True) + verify_engine_fixes(page, out, check, ready, manual=True) page.locator('#kind').select_option('report');page.locator('#generate').click();ready() download('report',3,['COMMON','1,240','420,000.00']) check('multi-page preview displays all report pages',page.locator('#preview img').count()==3) diff --git a/tools/check_playground_ui.py b/tools/check_playground_ui.py new file mode 100644 index 0000000..775ebc1 --- /dev/null +++ b/tools/check_playground_ui.py @@ -0,0 +1,208 @@ +"""Exercise the built homepage playground with real PDFs and project downloads.""" +import argparse +from datetime import datetime, timezone +import hashlib +from http.server import SimpleHTTPRequestHandler, ThreadingHTTPServer +from importlib.metadata import version +import json +from pathlib import Path +import re +import threading +from urllib.parse import unquote, urlsplit +import zipfile + +from playwright.sync_api import expect, sync_playwright +from pypdf import PdfReader +from starter_engine_fixes import verify_engine_fixes + + +parser = argparse.ArgumentParser(description=__doc__) +parser.add_argument('--site', type=Path, required=True) +parser.add_argument('--out', type=Path, required=True) +parser.add_argument('--browser', choices=['chrome', 'firefox', 'webkit'], default='chrome') +args = parser.parse_args() +root = args.site.resolve() +out = args.out.resolve() +out.mkdir(parents=True, exist_ok=False) +manifest = json.loads((root / 'assets/playground/build.json').read_text(encoding='utf-8')) +reference = json.loads((root / 'assets/playground/verification.json').read_text(encoding='utf-8')) +prefix = '/nested/docs/' +checks, network, errors, documents = [], [], [], [] +paused, requested, released = threading.Event(), threading.Event(), threading.Event() + + +class Handler(SimpleHTTPRequestHandler): + def __init__(self, *a, **kw): + super().__init__(*a, directory=str(root), **kw) + + def translate_path(self, path): + name = unquote(urlsplit(path).path) + if not name.startswith(prefix): + return str(root / 'not-found') + resolved = (root / name[len(prefix):]).resolve() + return str(resolved if resolved.is_relative_to(root) else root / 'not-found') + + def end_headers(self): + self.send_header('Cache-Control', 'no-store') + super().end_headers() + + def do_GET(self): + if paused.is_set() and urlsplit(self.path).path.endswith('/playground/fullbleed.wasm'): + requested.set() + released.wait(15) + super().do_GET() + + def copyfile(self, source, outputfile): + try: + super().copyfile(source, outputfile) + except (BrokenPipeError, ConnectionResetError, ConnectionAbortedError): + pass + + def log_message(self, *a): + pass + + +def check(name, passed): + assert passed, name + checks.append(name) + print(name + ': passed', flush=True) + + +server = ThreadingHTTPServer(('127.0.0.1', 0), Handler) +thread = threading.Thread(target=server.serve_forever, daemon=True) +thread.start() +url = f'http://127.0.0.1:{server.server_port}{prefix}' +try: + with sync_playwright() as pw: + browser = pw.chromium.launch(channel='chrome') if args.browser == 'chrome' else getattr(pw, args.browser).launch() + context = browser.new_context(viewport={'width': 1440, 'height': 1000}, accept_downloads=True) + page = context.new_page() + page.on('pageerror', lambda error: errors.append(str(error))) + page.on('request', lambda request: network.append({'url': request.url, 'method': request.method, 'body': request.post_data})) + + def ready(): + expect(page.locator('#pg-download')).to_have_attribute('href', re.compile(r'^blob:'), timeout=120000) + expect(page.locator('#pg-status')).to_contain_text('Your PDF is ready.') + expect(page.locator('#pg-result')).to_contain_text('Fullbleed ' + manifest['engine']['version']) + + def edit(html, css): + page.locator('#pg-html-tab').click() + page.locator('#pg-html').fill(html) + page.locator('#pg-css-tab').click() + page.locator('#pg-css').fill(css) + + def download(name, pages): + with page.expect_download() as event: + page.locator('#pg-download').click() + path = out / (name + '.pdf') + event.value.save_as(path) + check(name + ': actual downloaded PDF has the required pages', len(PdfReader(path).pages) == pages) + digest = hashlib.sha256(path.read_bytes()).hexdigest() + documents.append({'name': name, 'pages': pages, 'sha256': digest, 'filename': event.value.suggested_filename}) + return path, digest + + try: + page.goto(url + 'playground/', wait_until='domcontentloaded') + ready() + check('playground uses the current published engine with SVG rendering', + manifest['engine']['version'] == '2.5.22' and manifest['engine']['features'] == ['svg_raster']) + check('playground retains its bounded runtime', manifest['limits'] == + {'source_bytes': 200000, 'pages': 6, 'wasm_memory_bytes': 268435456, 'render_seconds': 30}) + for name, pages in [('invoice', 1), ('report', 3), ('notice', 1)]: + if name != 'invoice': + page.locator('#pg-example').select_option(name) + ready() + _, digest = download(name, pages) + expected = next(item for item in reference['fixtures'] if item['name'] == name) + check(name + ': browser download matches native/WASI verification', digest == expected['hashes']['output.pdf']) + expect(page.locator('#pg-page-count')).to_have_text(f'1 / {pages}') + if pages > 1: + first = page.locator('#pg-preview').get_attribute('src') + page.locator('#pg-next').click() + expect(page.locator('#pg-page-count')).to_have_text('2 / 3') + check('report pagination displays a different PDF page', page.locator('#pg-preview').get_attribute('src') != first) + page.locator('#pg-previous').click() + expect(page.locator('#pg-page-count')).to_have_text('1 / 3') + page.locator('#pg-example').select_option('invoice') + ready() + for width, height in [(1440, 1000), (390, 844), (320, 760)]: + page.set_viewport_size({'width': width, 'height': height}) + check(f'{width}px: page fits the viewport', page.evaluate('document.documentElement.scrollWidth <= innerWidth')) + page.screenshot(path=str(out / f'width-{width}.png'), full_page=True) + page.set_viewport_size({'width': 1440, 'height': 1000}) + verify_engine_fixes(page, out, check, ready, manual=True, + html_selector='#pg-html', css_selector='#pg-css', + render_selector='#pg-render', download_selector='#pg-download', + preview_selector='#pg-preview', edit_sources=edit) + html = page.locator('#pg-html').input_value().replace('Maple & Finch', 'Cedar & Stone') + html = html.replace('', '') + css = page.locator('#pg-css').input_value().replace('#17382e', '#17315a') + edit(html, css) + check('edited source disables the previous PDF download', page.locator('#pg-download').get_attribute('href') is None) + page.locator('#pg-render').click() + ready() + edited, _ = download('edited-invoice', 1) + check('pasted HTML changes the downloaded text', 'Cedar & Stone' in PdfReader(edited).pages[0].extract_text()) + check('document JavaScript is not executed in the page', page.evaluate('window.documentScriptExecuted !== true')) + with page.expect_download() as event: + page.locator('#pg-project').click() + project = out / 'edited-project.zip' + event.value.save_as(project) + with zipfile.ZipFile(project) as archive: + check('downloaded project has a valid ZIP CRC and unique paths', archive.testzip() is None and len(archive.namelist()) == len(set(archive.namelist()))) + check('project download preserves the actual HTML and CSS edits', archive.read('input.html').decode('utf-8') == html and archive.read('style.css').decode('utf-8') == css) + check('project pins the engine used in the browser', archive.read('requirements.txt').decode('utf-8') == 'fullbleed==2.5.22\n') + record = json.loads(archive.read('project.json')) + check('project manifest verifies each exported source, font and license', + all(hashlib.sha256(archive.read(item['path'])).hexdigest() == item['sha256'] + and len(archive.read(item['path'])) == item['bytes'] for item in record['files'])) + page.screenshot(path=str(out / 'edited-template.png'), full_page=True) + edit('x' * 200001, '') + page.locator('#pg-render').click() + expect(page.locator('#pg-status')).to_contain_text('200 KB') + check('oversized source leaves no stale download', page.locator('#pg-download').get_attribute('href') is None) + edit('
Page
' * 7, '@page{size:A4}div{break-after:page}') + page.locator('#pg-render').click() + expect(page.locator('#pg-status')).to_contain_text('1 to 6 pages', timeout=45000) + check('page limit failure leaves the editor usable', page.locator('#pg-render').is_enabled() and page.locator('#pg-download').get_attribute('href') is None) + edit(html, css) + paused.set() + page.locator('#pg-render').click() + assert requested.wait(8), 'Expected a held engine request before cancellation.' + page.locator('#pg-cancel').click() + expect(page.locator('#pg-status')).to_contain_text('canceled') + check('cancellation preserves source and restores controls', page.locator('#pg-html').input_value() == html and page.locator('#pg-render').is_enabled()) + paused.clear() + released.set() + page.locator('#pg-render').click() + ready() + recovered, _ = download('recovered', 1) + check('rendering recovers after source/page errors and cancellation', recovered.read_bytes() == edited.read_bytes()) + blob_origin = f'blob:http://127.0.0.1:{server.server_port}/' + # The shared docs header fetches these two fixed public GitHub URLs. + # Neither endpoint accepts the editor source or any variable query. + header_metadata = {'https://api.github.com/repos/fullbleed-engine/fullbleed-official', + 'https://api.github.com/repos/fullbleed-engine/fullbleed-official/releases/latest'} + check('document requests stay local; only fixed header metadata queries leave the site', + all(item['method'] == 'GET' and not item['body'] and + (item['url'].startswith((url, blob_origin)) or item['url'] in header_metadata) + for item in network)) + check('no uncaught page errors', not errors) + result = {'ok': True, 'checkedAt': datetime.now(timezone.utc).isoformat(), + 'browser': browser.version, 'browserEngine': args.browser, 'playwright': version('playwright'), + 'engine': manifest['engine'], 'checks': checks, 'documents': documents, + 'projectSha256': hashlib.sha256(project.read_bytes()).hexdigest(), 'network': network, 'errors': errors, + 'scope': 'Owned browser, synthetic source, real built page at a nested path; downloaded PDFs and project ZIP.'} + (out / 'verification.json').write_text(json.dumps(result, indent=2) + '\n', encoding='utf-8', newline='\n') + except Exception: + page.screenshot(path=str(out / 'failure.png'), full_page=True) + (out / 'failure.json').write_text(json.dumps({'checks': checks, 'network': network, 'errors': errors}, indent=2) + '\n', encoding='utf-8') + raise + finally: + context.close() + browser.close() +finally: + released.set() + server.shutdown() + server.server_close() + thread.join(timeout=5) diff --git a/tools/check_react_starter.py b/tools/check_react_starter.py index 349b1d6..b411772 100644 --- a/tools/check_react_starter.py +++ b/tools/check_react_starter.py @@ -1,6 +1,6 @@ """Check the production React ZIP's PDF downloads and component cleanup. -Adapted from fullbleed-node ae6e301ebc129a15aab89378f44beb81d63d4475. +Adapted from fullbleed-node eb66f753e58e0264a59d9cfc6a3dec7003231b8a. The source repository separately qualifies development StrictMode. """ import argparse @@ -17,6 +17,7 @@ from playwright.sync_api import sync_playwright, expect from pypdf import PdfReader from starter_standard_fonts import verify_edited_preview +from starter_engine_fixes import verify_engine_fixes parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('--dist', type=Path, required=True) @@ -181,6 +182,7 @@ def download(name, count, text): check('document scripts are not executed in the app', page.evaluate('window.documentScriptExecuted !== true')) verify_edited_preview(page, edited, out, check) page.screenshot(path=str(out / 'edited-template.png'), full_page=True) + verify_engine_fixes(page, out, check, ready) page.locator('#kind').select_option('report') ready() report = download('report', 3, ['COMMON', '1,240', '420,000.00']) diff --git a/tools/check_vue_starter.py b/tools/check_vue_starter.py index 9ce29b0..6c396a1 100644 --- a/tools/check_vue_starter.py +++ b/tools/check_vue_starter.py @@ -1,4 +1,4 @@ -"""Check the exact Vue ZIP; adapted from fullbleed-node ae6e301ebc129a15aab89378f44beb81d63d4475.""" +"""Check the exact Vue ZIP; adapted from fullbleed-node eb66f753e58e0264a59d9cfc6a3dec7003231b8a.""" import argparse from datetime import datetime, timezone import hashlib @@ -13,6 +13,7 @@ from playwright.sync_api import sync_playwright, expect from pypdf import PdfReader from starter_standard_fonts import verify_edited_preview +from starter_engine_fixes import verify_engine_fixes parser = argparse.ArgumentParser(description=__doc__) parser.add_argument('--dist', type=Path, required=True) @@ -192,6 +193,7 @@ def previews_match(name, count): check('document scripts are not executed in the app', page.evaluate('window.documentScriptExecuted !== true')) verify_edited_preview(page, edited, out, check) page.screenshot(path=str(out / 'edited-template.png'), full_page=True) + verify_engine_fixes(page, out, check, ready) page.locator('#kind').select_option('report') ready() report = download('report', 3, ['COMMON', '1,240', '420,000.00']) diff --git a/tools/starter-engine-2.5.22.json b/tools/starter-engine-2.5.22.json new file mode 100644 index 0000000..c3b6960 --- /dev/null +++ b/tools/starter-engine-2.5.22.json @@ -0,0 +1,178 @@ +{ + "schema": "fullbleed.starter.engine-fixes.v1", + "upstreamRelease": "2.5.22", + "upstreamCommit": "e41c1b4b4395c9bd3c024935c926ba46cb791440", + "sourceFixture": "test/fixtures/engine-2.5.22.json", + "sourceSha256": "ef9f11edfbf30060e088e86c02f2420ef38f78502218d894856e503900fea721", + "sources": [ + { + "path": "tests/fixtures/first-letter-floats/chrome.json", + "sha256": "08052b68e932fe981520ea53463360dde0faf72e63b0a4498e218708b77604ee", + "url": "https://github.com/fullbleed-engine/fullbleed-official/blob/e41c1b4b4395c9bd3c024935c926ba46cb791440/tests/fixtures/first-letter-floats/chrome.json" + }, + { + "path": "tools/smoke_counter_scopes.py", + "sha256": "19fd1b5b196b53992fa301caa5ed8dd874acd1e539987707d64478a9f82324f4", + "url": "https://github.com/fullbleed-engine/fullbleed-official/blob/e41c1b4b4395c9bd3c024935c926ba46cb791440/tools/smoke_counter_scopes.py" + }, + { + "path": "tools/smoke_filtered_overflow.py", + "sha256": "411f6251170eb17a1bc2a97565d96b5066270605576223c1fee8977928f9f487", + "url": "https://github.com/fullbleed-engine/fullbleed-official/blob/e41c1b4b4395c9bd3c024935c926ba46cb791440/tools/smoke_filtered_overflow.py" + }, + { + "path": "tools/smoke_border_image_tiling.py", + "sha256": "0f5b3c035fba92318f8b7dfc160741494f1be62bfa441b3cd7d3fc48d32e6340", + "url": "https://github.com/fullbleed-engine/fullbleed-official/blob/e41c1b4b4395c9bd3c024935c926ba46cb791440/tools/smoke_border_image_tiling.py" + } + ], + "cases": [ + { + "name": "engine-counter-sibling-reset", + "family": "counter", + "html": "

Record Ada

Alpha
One
Two
Beta
Three
", + "css": "@page { size: 400pt 500pt; margin: 24pt; }\n* { margin: 0; padding: 0; }\nbody { font: 12pt Inter; line-height: 1.5; }\nbody { counter-reset: chapter; } .chapter { counter-increment: chapter; counter-reset: section; } .section { counter-increment: section; } .section::before { content: 'CNT' counter(chapter) '.' counter(section) 'END'; }", + "pages": 1, + "previewDpi": 96, + "expected": { + "labels": [ + "1.1", + "1.2", + "2.1" + ] + } + }, + { + "name": "engine-overflow-nested-clips", + "family": "overflow", + "html": "
", + "css": "@page { size: 240px 180px; margin: 0; }\n* { margin: 0; padding: 0; box-sizing: border-box; }\nhtml, body { background: white; }\n.parent { position: absolute; left: 20px; top: 20px; width: 100px; height: 50px;\n overflow: hidden; border: 4px solid #003366; border-radius: 12px; background: #ddeeff; }\n.child { width: 60px; height: 70px; margin: 20px 10px 0; background: red; filter: contrast(1.1); }\n\n .parent { width: 100px; height: 60px; border: 0; border-radius: 0; background: lime; }\n .inner { width: 50px; height: 60px; margin: 20px; overflow: hidden; background: blue; }\n .child { width: 80px; height: 80px; margin: 10px; }\n ", + "pages": 1, + "previewDpi": 96, + "expected": { + "probes": [ + { + "x": 60, + "y": 60, + "expected": [ + 255, + 0, + 0 + ] + }, + { + "x": 100, + "y": 60, + "expected": [ + 0, + 255, + 0 + ] + }, + { + "x": 60, + "y": 90, + "expected": [ + 255, + 255, + 255 + ] + } + ], + "size": [ + 240, + 180 + ] + } + }, + { + "name": "engine-border-center-zero-top-falls-back-bottom-svg", + "family": "border-image", + "html": "
", + "css": "@page { size: 140px 130px; margin: 0; }\n* { box-sizing: border-box; margin: 0; padding: 0; }\nhtml, body { background: white; }\n.box { position: absolute; left: 20px; top: 20px; width: 60px; height: 70px;\n background: white; border: 10px solid red; border-image-source: url(\"data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2230%22%20height%3D%2230%22%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23ff0000%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%230000ff%22%2F%3E%3Crect%20x%3D%2220%22%20y%3D%220%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23ff0000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2210%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23ff8000%22%2F%3E%3Crect%20x%3D%2220%22%20y%3D%2210%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23ff8000%22%2F%3E%3Crect%20x%3D%220%22%20y%3D%2220%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23ff0000%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2220%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%230000ff%22%2F%3E%3Crect%20x%3D%2220%22%20y%3D%2220%22%20width%3D%2210%22%20height%3D%2210%22%20fill%3D%22%23ff0000%22%2F%3E%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%225%22%20height%3D%2210%22%20fill%3D%22%2300b400%22%2F%3E%3Crect%20x%3D%2215%22%20y%3D%2210%22%20width%3D%225%22%20height%3D%2210%22%20fill%3D%22%238000b4%22%2F%3E%3C%2Fsvg%3E\");\n border-image-slice: 10 fill; border-image-width: 0 10px 20px 10px; border-image-repeat: repeat stretch; }\n", + "pages": 1, + "previewDpi": 96, + "expected": { + "probes": [ + { + "x": 35, + "y": 35, + "expected": [ + 128, + 0, + 180 + ] + }, + { + "x": 45, + "y": 35, + "expected": [ + 0, + 180, + 0 + ] + }, + { + "x": 55, + "y": 35, + "expected": [ + 128, + 0, + 180 + ] + }, + { + "x": 65, + "y": 35, + "expected": [ + 0, + 180, + 0 + ] + } + ], + "size": [ + 140, + 130 + ] + } + }, + { + "name": "engine-first-letter-decorated-left", + "family": "first-letter", + "html": "

Drop cap leads this short paragraph while the remaining text wraps beside the enlarged initial letter.

", + "css": "@page{size:432px 208px;margin:0}*{margin:0;box-sizing:border-box}p{margin:24px;width:300px;font-family:\"Inter\";font-size:20px;line-height:1.35;color:#283618;}p::first-letter{color:#bc6c25;float:left;font-size:44px;line-height:1;padding:3px 7px;border:2px solid #e04020;background:#ffe080;margin:2px 5px 4px 3px;}", + "pages": 1, + "previewDpi": 96, + "expected": { + "size": [ + 432, + 208 + ], + "text": "Drop cap leads this short paragraph while the remaining text wraps beside the enlarged initial letter.", + "probes": [ + { + "x": 28, + "y": 27, + "expected": [ + 224, + 64, + 32 + ] + }, + { + "x": 32, + "y": 31, + "expected": [ + 255, + 224, + 128 + ] + } + ] + }, + "adaptation": "Uses the existing bundled Inter font. Color probes are inside the CSS border (24px paragraph margin + 3px left / 2px top float margin) and padding; upstream Noto Sans glyph geometry is not reused." + } + ], + "scope": "Four focused editor cases. Independent counter labels and interior color probes in actual downloaded PDFs and displayed finalized-PDF previews; no universal browser parity or conformance claim." +} diff --git a/tools/starter_engine_fixes.py b/tools/starter_engine_fixes.py new file mode 100644 index 0000000..f4da1cd --- /dev/null +++ b/tools/starter_engine_fixes.py @@ -0,0 +1,119 @@ +"""Check released layout fixes through real HTML/CSS editors and PDF downloads. + +Expectations come from upstream regression fixtures or the explicit CSS box +coordinates, never from a second rendering of the candidate engine. +""" +import base64 +import hashlib +from importlib.metadata import version +import json +from pathlib import Path +import re + +from PIL import Image +from playwright.sync_api import expect +from pypdf import PdfReader +import pypdfium2 as pdfium + + +FIXTURES = Path(__file__).with_name('starter-engine-2.5.22.json') + + +def inspect_outputs(case, pdf_path, preview_path, out, check): + """Independently inspect a downloaded PDF and its displayed preview.""" + name = case['name'] + reader = PdfReader(pdf_path) + check(name + ': downloaded PDF has the expected page count', len(reader.pages) == case['pages']) + text = '\n'.join(page.extract_text() for page in reader.pages) + expected = case['expected'] + record = {'name': name, 'pages': len(reader.pages), 'text': text, 'probes': []} + if 'labels' in expected: + labels = re.findall(r'CNT([0-9.]+)END', text) + check(name + ': sibling counter resets produce the required labels', labels == expected['labels']) + record['labels'] = labels + if 'text' in expected: + check(name + ': decorated initial preserves the paragraph text', + re.sub(r'\s+', '', text) == re.sub(r'\s+', '', expected['text'])) + if 'probes' in expected: + document = pdfium.PdfDocument(pdf_path) + try: + pdf_page = document[0] + try: + bitmap = pdf_page.render(scale=case['previewDpi'] / 72) + try: + raster = bitmap.to_pil().convert('RGB') + raster.save(out / (name + '-pdfium.png')) + finally: + bitmap.close() + finally: + pdf_page.close() + finally: + document.close() + with Image.open(preview_path) as displayed: + preview = displayed.convert('RGB') + for source, image in [('downloaded PDF', raster), ('displayed preview', preview)]: + check(name + ': ' + source + ' has the expected dimensions', list(image.size) == expected['size']) + probes = [] + for probe in expected['probes']: + actual = list(image.getpixel((probe['x'], probe['y']))) + probes.append({**probe, 'actual': actual}) + record['probes'].append({'source': source, 'values': probes}) + check(name + ': ' + source + ' matches independent color probes', + all(max(abs(a - b) for a, b in zip(p['actual'], p['expected'])) <= 3 for p in probes)) + record.update(pdfSha256=hashlib.sha256(pdf_path.read_bytes()).hexdigest(), + previewSha256=hashlib.sha256(preview_path.read_bytes()).hexdigest()) + return record + + +def verify_engine_fixes(page, out, check, ready, *, manual=False, + html_selector='#html-source', css_selector='#css-source', + render_selector='#render-source', download_selector='#download', + preview_selector='#preview img', edit_sources=None): + """Paste focused cases, inspect actual downloads, then restore the editor.""" + fixtures = json.loads(FIXTURES.read_text(encoding='utf-8')) + evidence = out / 'engine-fixes' + evidence.mkdir(exist_ok=False) + original_html = page.locator(html_selector).input_value() + original_css = page.locator(css_selector).input_value() + def edit(html, css): + if edit_sources is not None: + edit_sources(html, css) + else: + page.locator(html_selector).fill(html) + page.locator(css_selector).fill(css) + records = [] + for case in fixtures['cases']: + name = case['name'] + (evidence / (name + '.html')).write_text(case['html'], encoding='utf-8', newline='\n') + (evidence / (name + '.css')).write_text(case['css'], encoding='utf-8', newline='\n') + edit(case['html'], case['css']) + if manual: + page.locator(render_selector).click() + ready() + with page.expect_download() as event: + page.locator(download_selector).click() + pdf_path = evidence / (name + '.pdf') + event.value.save_as(pdf_path) + displayed = page.locator(preview_selector) + expect(displayed).to_have_count(case['pages']) + encoded = displayed.first.evaluate('''async image => { + await image.decode(); + const canvas = document.createElement('canvas'); + canvas.width = image.naturalWidth; canvas.height = image.naturalHeight; + canvas.getContext('2d').drawImage(image, 0, 0); + return canvas.toDataURL('image/png').split(',')[1]; + }''') + preview_path = evidence / (name + '-preview.png') + preview_path.write_bytes(base64.b64decode(encoded, validate=True)) + record = inspect_outputs(case, pdf_path, preview_path, evidence, check) + record['suggestedFilename'] = event.value.suggested_filename + records.append(record) + edit(original_html, original_css) + if manual: + page.locator(render_selector).click() + ready() + result = {'ok': True, 'fixturesSha256': hashlib.sha256(FIXTURES.read_bytes()).hexdigest(), + 'readers': {package: version(package) for package in ['pypdf', 'pypdfium2', 'pillow']}, + 'scope': fixtures['scope'], 'cases': records} + (evidence / 'verification.json').write_text(json.dumps(result, indent=2) + '\n', encoding='utf-8', newline='\n') + return result diff --git a/tools/verify_playground.mjs b/tools/verify_playground.mjs index aeca8e8..a3d4873 100644 --- a/tools/verify_playground.mjs +++ b/tools/verify_playground.mjs @@ -100,6 +100,11 @@ for (const gradient of gradientFixtures) { report.checks.push('Linear, translucent, and hard radial gradient interiors match expected colors'); await fixture(standardFontFixture.name, standardFontFixture.html, standardFontFixture.css, 1, null, true); report.checks.push('All 12 unembedded Latin standard font faces have visible preview text'); +const editorCases = JSON.parse(await readFile(join(root, 'tools/starter-engine-2.5.22.json'), 'utf8')).cases; +for (const item of editorCases) { + await fixture(item.name, item.html, item.css, item.pages); +} +report.checks.push('Four released layout cases preserve native/WASI and repeat equality; independent PDF/preview checks run in the browser gate'); await assert.rejects(render(module, { ...fonts, 'input.html': Buffer.from('x'.repeat(200001)), 'style.css': Buffer.from('') }), /200 KB/); report.checks.push('Oversized source rejected by the Rust adapter'); await assert.rejects(render(module, { ...fonts, 'input.html': Buffer.from('
Page
'.repeat(7)), 'style.css': Buffer.from('@page {size:A4} div{break-after:page}') }), /1 to 6 pages/); diff --git a/tools/verify_project_export.mjs b/tools/verify_project_export.mjs index 778c824..675d1d0 100644 --- a/tools/verify_project_export.mjs +++ b/tools/verify_project_export.mjs @@ -26,12 +26,15 @@ const cases = []; const fixtures = [['invoice', 1], ['report', 3], ['notice', 1], ['invoice-edited', 1]].map(([name, pages]) => ({ name, pages })); fixtures.push(...gradientFixtures); fixtures.push(standardFontFixture); +const editorCases = JSON.parse(await readFile(join(root, 'tools/starter-engine-2.5.22.json'), 'utf8')).cases; +fixtures.push(...editorCases); for (const fixture of fixtures) { const { name, pages } = fixture; const gradient = Boolean(fixture.probes); const standardFonts = name === standardFontFixture.name; - const example = gradient ? 'report' : (name === 'invoice-edited' || standardFonts) ? 'invoice' : name; - let { html, css } = gradient || standardFonts ? fixture : prepareExample(example, + const editedLayout = name.startsWith('engine-'); + const example = gradient ? 'report' : (name === 'invoice-edited' || standardFonts || editedLayout) ? 'invoice' : name; + let { html, css } = gradient || standardFonts || editedLayout ? fixture : prepareExample(example, await readFile(join(root, `docs/assets/showcase/${example}.html`), 'utf8'), await readFile(join(root, `docs/assets/showcase/${example}.css`), 'utf8')); if (name === 'invoice-edited') { diff --git a/tools/verify_rust_examples.py b/tools/verify_rust_examples.py index 6be8419..fe57661 100644 --- a/tools/verify_rust_examples.py +++ b/tools/verify_rust_examples.py @@ -44,9 +44,14 @@ def sha256(path): core = next(package for package in metadata["packages"] if package["name"] == "fullbleed") assert core["source"].startswith("registry+") assert playground["ok"] and playground["engine"] == core["version"] +features = sorted(next(node for node in metadata['resolve']['nodes'] if node['id'] == core['id'])['features']) +assert features == ['svg_raster'] +install = f"cargo add fullbleed@={core['version']} --features svg_raster" +assert install in guide and install in home, 'Documented Cargo install must match the compiled example.' report = { "ok": True, "engine": core["version"], + "engine_features": features, "preview_source": "finalized_pdf", "rustc": run(["rustc", "--version"]).stdout.strip(), "platform": os.name, @@ -83,6 +88,10 @@ def sha256(path): "name": name, "pages": expected_pages, "matches_playground_pdf_and_pngs": True, "sha256": hashes, }) -assert len(report["fixtures"]) == len(playground["fixtures"]) == 8 +layout_cases = json.loads((ROOT / 'tools/starter-engine-2.5.22.json').read_text(encoding='utf-8'))['cases'] +expected_names = {'invoice', 'invoice-edited', 'report', 'notice', 'linear-gradient', + 'translucent-gradient', 'hard-radial-gradient', 'standard-fonts'} | {case['name'] for case in layout_cases} +assert {fixture['name'] for fixture in report['fixtures']} == expected_names +assert len(report['fixtures']) == len(playground['fixtures']) == len(expected_names) (EVIDENCE / "verification.json").write_text(json.dumps(report, indent=2) + "\n", encoding="utf-8") print(json.dumps(report, indent=2)) diff --git a/tools/verify_rust_starter.py b/tools/verify_rust_starter.py index 3c79c8d..44a4565 100644 --- a/tools/verify_rust_starter.py +++ b/tools/verify_rust_starter.py @@ -103,8 +103,12 @@ def inspect(name, pages, markers=()): core = next(package for package in metadata['packages'] if package['name'] == 'fullbleed') check('published pinned crate, no local engine path', core['version'] == manifest['engine'] and core['source'].startswith('registry+')) + features = sorted(next(node for node in metadata['resolve']['nodes'] if node['id'] == core['id'])['features']) + check('download includes the SVG support used in playground projects', + features == manifest['engine_features'] == ['svg_raster']) check('Cargo lockfile unchanged', digest(project / 'Cargo.lock') == lock_hash) report['engine'] = core['version'] + report['engine_features'] = features report['rustc'] = run('rustc', ['rustc', '--version'], project).stdout.strip() report['source_zip_sha256'] = manifest['zip_sha256'] target = Path(metadata['target_directory']) / 'release'