Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
chore(pdfjs): get to actually render something
Elian Doran855d4d139d11
diff --git a/packages/pdfjs-viewer/scripts/build.ts b/packages/pdfjs-viewer/scripts/build.tsindex 07be98ff04..c1c29c6686 100644--- a/packages/pdfjs-viewer/scripts/build.ts+++ b/packages/pdfjs-viewer/scripts/build.ts@@ -3,7 +3,9 @@ import BuildHelper from "../../../scripts/build-utils";const build = new BuildHelper("packages/pdfjs-viewer");async function main() {- build.copy("viewer", "");+ build.copy("viewer", "web");+ build.copy("/node_modules/pdfjs-dist/build/pdf.mjs", "build/pdf.mjs");+ build.copy("/node_modules/pdfjs-dist/build/pdf.worker.mjs", "build/pdf.worker.mjs");}main();diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 5690957c92..062328944a 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -1373,7 +1373,11 @@ importers:specifier: 1.2.0version: 1.2.0- packages/pdfjs-viewer: {}+ packages/pdfjs-viewer:+ devDependencies:+ pdfjs-dist:+ specifier: 5.4.530+ version: 5.4.530packages/share-theme:dependencies:@@ -3789,6 +3793,76 @@ packages:resolution: {integrity: sha512-wK+5pLK5XFmgtH3aQ2YVvA3HohS3xqV/OxuVOdNx9Wpnz7VE/fnC+e1A7ln6LFYeck7gOJ/dsZV6OLplOtAJ2w==}engines: {node: '>=18'}+ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-KEaClPnZuVxJ8smUWjV1wWFkByBO/D+vy4lN+Dm5DFH514oqwukxKGeck9xcKJhaWJGjfruGmYGiwRe//+/zQQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [android]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-Xgywz0dDxOKSgx3eZnK85WgGMmGrQEW7ZLA/E7raZdlEE+xXCozobgqz2ZvYigpB6DJFYkqnwHjqCOTSDGlFdg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [darwin]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-Yz4wSCIQOUgNucgk+8NFtQxQxZV5NO8VKRl9ePKE6XoNyNVC8JDqtvhh3b3TPqKK8W5p2EQpAr1rjjm0mfBxdg==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [darwin]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-9gQM2SlTo76hYhxHi2XxWTAqpTOb+JtxMPEIr+H5nAhHhyEtNmTSDRtz93SP7mGd2G3Ojf2oF5tP9OdgtgXyKg==}+ engines: {node: '>= 10'}+ cpu: [arm]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-7qgaOBMXuVRk9Fzztzr3BchQKXDxGbY+nwsovD3I/Sx81e+sX0ReEDYHTItNb0Je4NHbAl7D0MKyd4SvUc04sg==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-kYyNrUsHLkoGHBc77u4Unh067GrfiCUMbGHC2+OTxbeWfZkPt2o32UOQkhnSswKd9Fko/wSqqGkY956bIUzruA==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-HVuH7QgzB0yavYdNZDRyAsn/ejoXB0hn8twwFnOqUbCCdkV+REna7RXjSR7+PdfW0qMQ2YYWsLvVBT5iL/mGpw==}+ engines: {node: '>= 10'}+ cpu: [riscv64]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-hvcvKIcPEQrvvJtJnwD35B3qk6umFJ8dFIr8bSymfrSMem0EQsfn1ztys8ETIFndTwdNWJKWluvxztA41ivsEw==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-eSMpGYY2xnZSQ6UxYJ6plDboxq4KeJ4zT5HaVkUnbObNN6DlbJe0Mclh3wifAmquXfrlgTZt6zhHsUgz++AK6g==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-qcIFfEgHrchyYqRrxsCeTQgpJZ/GqHiqPcU/Fvw/ARVlQeDX1VyFH+X+0gCR2tca6UJrq96vnW+5o7buCq+erA==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [win32]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-ROVqbfS4QyZxYkqmaIBBpbz/BQvAR+05FXM5PAtTYVc0uyY8Y4BHJSMdGAaMf6TdIVRsQsiq+FG/dH9XhvWCFQ==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [win32]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-/p08f93LEbsL5mDZFQ3DBxcPv/I4QG9EDYRRq1WNlCOXVfAHBTHMSVMwxlqG/AtnSfUr9+vgfN7MKiyDo0+Weg==}+ engines: {node: '>= 10'}+'@napi-rs/[email protected]':resolution: {integrity: sha512-Fq6DJW+Bb5jaWE69/qOE0D1TUN9+6uWhCeZpdnSBk14pjLcCWR7Q8n49PTSPHazM37JqrsdpEthXy2xn6jWWiA==}@@ -11172,6 +11246,10 @@ packages:resolution: {integrity: sha512-XDF38WCH3z5OV/OVa8GKUNtLAyneuzbCisx7QUCF8Q6Nutx0WnJrQe5O+kOtBlLfRNUws98Y58Lblp+NJG5T4Q==}hasBin: true+ resolution: {integrity: sha512-r1hWsSIGGmyYUAHR26zSXkxYWLXLMd6AwqcaFYG9YUZ0GBf5GvcjJSeo512tabM4GYFhxhl5pMCmPr7Q72Rq2Q==}+ engines: {node: '>=20.16.0 || >=22.3.0'}+resolution: {integrity: sha512-nh39Mo1eGWmZS7y+mK/dQIqg7S1lp38DpRxkyoHf0ZcUs/HDc+yyTjuOtTvSMZHmfSLuSQaX945u05Y2Q6UWZg==}engines: {node: '>=14', npm: '>=7'}@@ -15238,8 +15316,6 @@ snapshots:'@ckeditor/ckeditor5-core': 47.3.0'@ckeditor/ckeditor5-utils': 47.3.0ckeditor5: 47.3.0- transitivePeerDependencies:- - supports-color'@ckeditor/[email protected](patch_hash=2361d8caad7d6b5bddacc3a3b4aa37dbfba260b1c1b22a450413a79c1bb1ce95)':dependencies:@@ -15430,8 +15506,6 @@ snapshots:'@ckeditor/ckeditor5-utils': 47.3.0ckeditor5: 47.3.0es-toolkit: 1.39.5- transitivePeerDependencies:- - supports-color'@ckeditor/[email protected]':dependencies:@@ -15441,6 +15515,8 @@ snapshots:'@ckeditor/ckeditor5-utils': 47.3.0ckeditor5: 47.3.0es-toolkit: 1.39.5+ transitivePeerDependencies:+ - supports-color'@ckeditor/[email protected]':dependencies:@@ -15459,8 +15535,6 @@ snapshots:'@ckeditor/ckeditor5-utils': 47.3.0ckeditor5: 47.3.0es-toolkit: 1.39.5- transitivePeerDependencies:- - supports-color'@ckeditor/[email protected]':dependencies:@@ -15483,6 +15557,8 @@ snapshots:'@ckeditor/ckeditor5-table': 47.3.0'@ckeditor/ckeditor5-utils': 47.3.0ckeditor5: 47.3.0+ transitivePeerDependencies:+ - supports-color'@ckeditor/[email protected]':dependencies:@@ -15968,8 +16044,6 @@ snapshots:'@ckeditor/ckeditor5-ui': 47.3.0'@ckeditor/ckeditor5-utils': 47.3.0ckeditor5: 47.3.0- transitivePeerDependencies:- - supports-color'@ckeditor/[email protected]':dependencies:@@ -16056,8 +16130,6 @@ snapshots:'@ckeditor/ckeditor5-ui': 47.3.0'@ckeditor/ckeditor5-utils': 47.3.0ckeditor5: 47.3.0- transitivePeerDependencies:- - supports-color'@ckeditor/[email protected]':dependencies:@@ -18208,6 +18280,54 @@ snapshots:strict-event-emitter: 0.5.1optional: true+ '@napi-rs/[email protected]':+ optional: true++ '@napi-rs/[email protected]':+ optional: true++ '@napi-rs/[email protected]':+ optional: true++ '@napi-rs/[email protected]':+ optional: true++ '@napi-rs/[email protected]':+ optional: true++ '@napi-rs/[email protected]':+ optional: true++ '@napi-rs/[email protected]':+ optional: true++ '@napi-rs/[email protected]':+ optional: true++ '@napi-rs/[email protected]':+ optional: true++ '@napi-rs/[email protected]':+ optional: true++ '@napi-rs/[email protected]':+ optional: true++ '@napi-rs/[email protected]':+ optionalDependencies:+ '@napi-rs/canvas-android-arm64': 0.1.88+ '@napi-rs/canvas-darwin-arm64': 0.1.88+ '@napi-rs/canvas-darwin-x64': 0.1.88+ '@napi-rs/canvas-linux-arm-gnueabihf': 0.1.88+ '@napi-rs/canvas-linux-arm64-gnu': 0.1.88+ '@napi-rs/canvas-linux-arm64-musl': 0.1.88+ '@napi-rs/canvas-linux-riscv64-gnu': 0.1.88+ '@napi-rs/canvas-linux-x64-gnu': 0.1.88+ '@napi-rs/canvas-linux-x64-musl': 0.1.88+ '@napi-rs/canvas-win32-arm64-msvc': 0.1.88+ '@napi-rs/canvas-win32-x64-msvc': 0.1.88+ optional: true+'@napi-rs/[email protected]':dependencies:'@emnapi/core': 1.7.1@@ -27416,6 +27536,10 @@ snapshots:ieee754: 1.2.1resolve-protobuf-schema: 2.1.0+ optionalDependencies:+ '@napi-rs/canvas': 0.1.88+