The minimalistic document archiving platform.
feat(documents): added document page with preview and download (#8)
Corentin THOMASSET1ca1d021b438
diff --git a/apps/papra-client/package.json b/apps/papra-client/package.jsonindex b63b3a01..fd626261 100644--- a/apps/papra-client/package.json+++ b/apps/papra-client/package.json@@ -30,6 +30,7 @@"dependencies": {"@corentinth/chisels": "^1.0.2","@kobalte/core": "^0.13.4",+ "@pdfslick/solid": "^2.0.0","@solid-primitives/i18n": "^2.1.1","@solid-primitives/storage": "^4.2.1","@solidjs/router": "^0.14.3",diff --git a/apps/papra-client/src/modules/documents/components/document-preview.component.tsx b/apps/papra-client/src/modules/documents/components/document-preview.component.tsxnew file mode 100644index 00000000..4bba0783--- /dev/null+++ b/apps/papra-client/src/modules/documents/components/document-preview.component.tsx@@ -0,0 +1,33 @@+import type { Document } from '../documents.types';+import { createQuery } from '@tanstack/solid-query';+import { type Component, Match, Suspense, Switch } from 'solid-js';+import { fetchDocumentFile } from '../documents.services';+import { PdfViewer } from './pdf-viewer.component';++const imageMimeType = ['image/jpeg', 'image/png', 'image/gif', 'image/webp'];+const pdfMimeType = ['application/pdf'];++export const DocumentPreview: Component<{ document: Document }> = (props) => {+ const getIsImage = () => imageMimeType.includes(props.document.mimeType);+ const getIsPdf = () => pdfMimeType.includes(props.document.mimeType);++ const query = createQuery(() => ({+ queryKey: ['organizations', props.document.organizationId, 'documents', props.document.id, 'file'],+ queryFn: () => fetchDocumentFile({ documentId: props.document.id, organizationId: props.document.organizationId }),+ }));++ return (+ <Suspense>+ <Switch>+ <Match when={getIsImage() && query.data}>+ <div>+ <img src={URL.createObjectURL(query.data!)} class="w-full h-full object-contain" />+ </div>+ </Match>+ <Match when={getIsPdf() && query.data}>+ <PdfViewer url={URL.createObjectURL(query.data!)} />+ </Match>+ </Switch>+ </Suspense>+ );+};diff --git a/apps/papra-client/src/modules/documents/components/document-upload-area.component.tsx b/apps/papra-client/src/modules/documents/components/document-upload-area.component.tsxindex 17e35d98..8413ffb8 100644--- a/apps/papra-client/src/modules/documents/components/document-upload-area.component.tsx+++ b/apps/papra-client/src/modules/documents/components/document-upload-area.component.tsx@@ -1,4 +1,5 @@import type { Component } from 'solid-js';+import { promptUploadFiles } from '@/modules/shared/files/upload';import { queryClient } from '@/modules/shared/query/query-client';import { cn } from '@/modules/shared/style/cn';import { Button } from '@/modules/ui/components/button';@@ -23,18 +24,9 @@ export const DocumentUploadArea: Component<{ organizationId?: string }> = (props});};- const promptImport = () => {- const input = document.createElement('input');- input.type = 'file';- input.accept = '.pdf';- input.multiple = true;- input.onchange = async () => {- if (!input.files) {- return;- }- await uploadFiles({ files: [...input.files] });- };- input.click();+ const promptImport = async () => {+ const { files } = await promptUploadFiles();+ await uploadFiles({ files });};const handleDragOver = (event: DragEvent) => {diff --git a/apps/papra-client/src/modules/documents/components/pdf-viewer.component.tsx b/apps/papra-client/src/modules/documents/components/pdf-viewer.component.tsxnew file mode 100644index 00000000..ecf5a3d6--- /dev/null+++ b/apps/papra-client/src/modules/documents/components/pdf-viewer.component.tsx@@ -0,0 +1,18 @@+import type { Component } from 'solid-js';+import { usePDFSlick } from '@pdfslick/solid';++import '@pdfslick/solid/dist/pdf_viewer.css';++export const PdfViewer: Component<{ url: string }> = (props) => {+ const {+ viewerRef,+ pdfSlickStore: store,+ PDFSlickViewer,+ } = usePDFSlick(props.url);++ return (+ <div class="pdfSlick relative w-full h-full">+ <PDFSlickViewer {...{ store, viewerRef }} />+ </div>+ );+};diff --git a/apps/papra-client/src/modules/documents/documents.services.ts b/apps/papra-client/src/modules/documents/documents.services.tsindex bb9059b2..d6967c71 100644--- a/apps/papra-client/src/modules/documents/documents.services.ts+++ b/apps/papra-client/src/modules/documents/documents.services.ts@@ -70,7 +70,7 @@ export async function deleteDocument({});}-export async function getDocument({+export async function fetchDocument({documentId,organizationId,}: {@@ -90,3 +90,19 @@ export async function getDocument({},};}++export async function fetchDocumentFile({+ documentId,+ organizationId,+}: {+ documentId: string;+ organizationId: string;+}) {+ const blob = await apiClient<Blob>({+ method: 'GET',+ path: `/api/organizations/${organizationId}/documents/${documentId}/file`,+ responseType: 'blob',+ });++ return blob;+}diff --git a/apps/papra-client/src/modules/documents/pages/document.page.tsx b/apps/papra-client/src/modules/documents/pages/document.page.tsxnew file mode 100644index 00000000..6af91492--- /dev/null+++ b/apps/papra-client/src/modules/documents/pages/document.page.tsx@@ -0,0 +1,89 @@+import { timeAgo } from '@/modules/shared/date/time-ago';+import { downloadFile } from '@/modules/shared/files/download';+import { Button } from '@/modules/ui/components/button';+import { useParams } from '@solidjs/router';+import { createQueries } from '@tanstack/solid-query';+import { type Component, Show, Suspense } from 'solid-js';+import { DocumentPreview } from '../components/document-preview.component';+import { fetchDocument, fetchDocumentFile } from '../documents.services';+import '@pdfslick/solid/dist/pdf_viewer.css';++const KeyValues: Component<{ data: Record<string, any> }> = (props) => {+ return (+ <div class="flex flex-col gap-2">+ <table>+ {Object.entries(props.data).map(([key, value]) => (+ <tr>+ <td class="py-1 pr-2 text-sm text-muted-foreground">{key}</td>+ <td class="py-1 pl-2 text-sm">{value}</td>+ </tr>+ ))}+ </table>+ </div>+ );+};++export const DocumentPage: Component = () => {+ const params = useParams();++ const queries = createQueries(() => ({+ queries: [+ {+ queryKey: ['organizations', params.organizationId, 'documents', params.documentId],+ queryFn: () => fetchDocument({ documentId: params.documentId, organizationId: params.organizationId }),+ },+ {+ queryKey: ['organizations', params.organizationId, 'documents', params.documentId, 'file'],+ queryFn: () => fetchDocumentFile({ documentId: params.documentId, organizationId: params.organizationId }),+ },+ ],+ }));++ const getDataUrl = () => queries[1].data ? URL.createObjectURL(queries[1].data) : undefined;++ return (+ <div class="p-6 flex gap-6 h-full flex-col md:flex-row">+ <Suspense>+ <div class="md:flex-1">+ <Show when={queries[0].data?.document}>+ {getDocument => (+ <div class="flex gap-4">+ <div class="flex-1">+ <h1 class="text-xl font-semibold">{getDocument().name}</h1>+ <p class="text-sm text-muted-foreground mb-6">{getDocument().id}</p>+ <Button+ onClick={() => downloadFile({+ fileName: getDocument().name,+ url: getDataUrl()!,+ })}+ variant="default"+ class="mb-4"+ >+ <div class="i-tabler-download mr-2"></div>+ Download+ </Button>++ <KeyValues data={{+ 'ID': getDocument().id,+ 'Name': getDocument().name,+ 'Created At': timeAgo({ date: getDocument().createdAt }),+ 'Updated At': getDocument().updatedAt ? timeAgo({ date: getDocument().updatedAt! }) : <span class="text-muted-foreground">Never</span>,+ }}+ />+ </div>+ </div>+ )}+ </Show>+ </div>++ <div class="flex-1 min-h-50vh">+ <Show when={queries[0].data?.document}>+ {getDocument => (+ <DocumentPreview document={getDocument()} />+ )}+ </Show>+ </div>+ </Suspense>+ </div>+ );+};diff --git a/apps/papra-client/src/modules/shared/files/download.ts b/apps/papra-client/src/modules/shared/files/download.tsnew file mode 100644index 00000000..5e57a53a--- /dev/null+++ b/apps/papra-client/src/modules/shared/files/download.ts@@ -0,0 +1,6 @@+export function downloadFile({ url, fileName = 'file' }: { url: string; fileName?: string }) {+ const link = document.createElement('a');+ link.href = url;+ link.download = fileName;+ link.click();+}diff --git a/apps/papra-client/src/modules/shared/files/upload.ts b/apps/papra-client/src/modules/shared/files/upload.tsnew file mode 100644index 00000000..586defec--- /dev/null+++ b/apps/papra-client/src/modules/shared/files/upload.ts@@ -0,0 +1,21 @@+export function promptUploadFiles({+ acceptedTypes,+}: {+ acceptedTypes?: string;+} = {}): Promise<{ files: File[] }> {+ return new Promise((resolve) => {+ const input = document.createElement('input');+ input.type = 'file';+ input.multiple = true;++ if (acceptedTypes) {+ input.accept = acceptedTypes;+ }++ input.onchange = () => {+ resolve({ files: [...input.files ?? []] });+ };++ input.click();+ });+}diff --git a/apps/papra-client/src/modules/shared/http/http-client.ts b/apps/papra-client/src/modules/shared/http/http-client.tsindex d9099e35..ab66b699 100644--- a/apps/papra-client/src/modules/shared/http/http-client.ts+++ b/apps/papra-client/src/modules/shared/http/http-client.ts@@ -13,6 +13,7 @@ async function apiClient<T>({formData,queryParams,impersonatedUserId,+ responseType = 'json',}: {path: string;method: string;@@ -20,6 +21,7 @@ async function apiClient<T>({formData?: Record<string, unknown>;queryParams?: Record<string, string | number>;impersonatedUserId?: string;+ responseType?: 'json' | 'blob';}): Promise<T> {const url = buildUrl({path,@@ -59,6 +61,10 @@ async function apiClient<T>({return {} as T;}+ if (responseType === 'blob') {+ return response.blob() as unknown as T;+ }+return response.json();}diff --git a/apps/papra-client/src/modules/ui/layouts/organization.layout.tsx b/apps/papra-client/src/modules/ui/layouts/organization.layout.tsxindex ef337a0c..b91c28d0 100644--- a/apps/papra-client/src/modules/ui/layouts/organization.layout.tsx+++ b/apps/papra-client/src/modules/ui/layouts/organization.layout.tsx@@ -3,12 +3,13 @@ import type { Organization } from '@/modules/organizations/organizations.types';import { authStore } from '@/modules/auth/auth.store';import { uploadDocument } from '@/modules/documents/documents.services';import { fetchOrganizations } from '@/modules/organizations/organizations.services';+import { promptUploadFiles } from '@/modules/shared/files/upload';import { queryClient } from '@/modules/shared/query/query-client';import { cn } from '@/modules/shared/style/cn';import { useThemeStore } from '@/modules/theme/theme.store';import { Button } from '@/modules/ui/components/button';-import { useCurrentUser } from '@/modules/users/composables/useCurrentUser';+import { useCurrentUser } from '@/modules/users/composables/useCurrentUser';import { A, useNavigate, useParams } from '@solidjs/router';import { createQuery } from '@tanstack/solid-query';import { type Component, createEffect, type ParentComponent, Show, Suspense } from 'solid-js';@@ -42,7 +43,7 @@ const MenuItemButton: Component<MenuItem> = (props) => {</Show><Show when={!props.onClick}>- <Button class="block dark:text-muted-foreground" as={A} href={props.href!} variant="ghost" activeClass="bg-accent/50! text-accent-foreground! ">+ <Button class="block dark:text-muted-foreground" as={A} href={props.href!} variant="ghost" activeClass="bg-accent/50! text-accent-foreground!"><div class="flex items-center gap-2"><div class={cn(props.icon, 'size-5')}></div><div>{props.label}</div>@@ -202,26 +203,17 @@ export const OrganizationLayout: ParentComponent = (props) => {}});- const promptImport = () => {- const input = document.createElement('input');- input.type = 'file';- input.accept = '.pdf';- input.multiple = true;- input.onchange = async () => {- if (!input.files) {- return;- }-- for (const file of Array.from(input.files)) {- await uploadDocument({ file, organizationId: params.organizationId });- }-- queryClient.invalidateQueries({- queryKey: ['organizations', params.organizationId, 'documents'],- refetchType: 'all',- });- };- input.click();+ const promptImport = async () => {+ const { files } = await promptUploadFiles();++ for (const file of files) {+ await uploadDocument({ file, organizationId: params.organizationId });+ }++ queryClient.invalidateQueries({+ queryKey: ['organizations', params.organizationId, 'documents'],+ refetchType: 'all',+ });};return (diff --git a/apps/papra-client/src/routes.tsx b/apps/papra-client/src/routes.tsxindex e4a81027..d4aff95b 100644--- a/apps/papra-client/src/routes.tsx+++ b/apps/papra-client/src/routes.tsx@@ -4,6 +4,7 @@ import { ConfirmPage } from './modules/auth/pages/confirm.page';import { GenericAuthPage } from './modules/auth/pages/generic-auth.page';import { MagicLinkSentPage } from './modules/auth/pages/magic-link-sent.page';import { PendingMagicLinkPage } from './modules/auth/pages/verify-magic-link.page';+import { DocumentPage } from './modules/documents/pages/document.page';import { DocumentsPage } from './modules/documents/pages/documents.page';import { CreateOrganizationPage } from './modules/organizations/pages/create-organization.page';import { OrganizationsPage } from './modules/organizations/pages/organizations.page';@@ -27,7 +28,7 @@ export const routes: RouteDefinition[] = [<>{getLatestOrganizationId()? <Navigate href={`/organizations/${getLatestOrganizationId()}`} />- : <Navigate href="/organizations/create" />}+ : <Navigate href="/organizations" />}</>);@@ -58,6 +59,19 @@ export const routes: RouteDefinition[] = [path: '/',component: DocumentsPage,},++ {+ path: '/documents/:documentId',+ component: DocumentPage,+ },+ // {+ // path: '/documents',+ // component: () => {+ // const params = useParams();++ // return <Navigate href={`/organizations/${params.organizationId}`} />;+ // },+ // },],},{diff --git a/apps/papra-client/vite.config.ts b/apps/papra-client/vite.config.tsindex 951d69fc..139356fe 100644--- a/apps/papra-client/vite.config.ts+++ b/apps/papra-client/vite.config.ts@@ -19,6 +19,9 @@ export default defineConfig({'@': path.resolve(__dirname, './src'),},},+ optimizeDeps: {+ exclude: ['@pdfslick/solid'],+ },// test: {// exclude: [...configDefaults.exclude, '**/*.e2e.test.ts'],// },diff --git a/apps/papra-server/src/modules/documents/documents.repository.ts b/apps/papra-server/src/modules/documents/documents.repository.tsindex dcc69de8..f446575c 100644--- a/apps/papra-server/src/modules/documents/documents.repository.ts+++ b/apps/papra-server/src/modules/documents/documents.repository.ts@@ -33,7 +33,10 @@ async function getOrganizationDocumentsCount({ organizationId, db }: { organizat}).from(documentsTable).where(- eq(documentsTable.organizationId, organizationId),+ and(+ eq(documentsTable.organizationId, organizationId),+ eq(documentsTable.isDeleted, false),+ ),);return { documentsCount };diff --git a/apps/papra-server/src/modules/documents/documents.routes.ts b/apps/papra-server/src/modules/documents/documents.routes.tsindex ba03287e..10a70fd6 100644--- a/apps/papra-server/src/modules/documents/documents.routes.ts+++ b/apps/papra-server/src/modules/documents/documents.routes.ts@@ -17,6 +17,7 @@ export function registerDocumentsPrivateRoutes({ app }: { app: ServerInstance })setupGetDocumentsRoute({ app });setupGetDocumentRoute({ app });setupDeleteDocumentRoute({ app });+ setupGetDocumentFileRoute({ app });}function setupCreateDocumentRoute({ app }: { app: ServerInstance }) {@@ -205,3 +206,56 @@ function setupDeleteDocumentRoute({ app }: { app: ServerInstance }) {},);}++function setupGetDocumentFileRoute({ app }: { app: ServerInstance }) {+ app.get(+ '/api/organizations/:organizationId/documents/:documentId/file',+ validateParams(z.object({+ organizationId: z.string().regex(organizationIdRegex),+ documentId: z.string(),+ })),+ async (context) => {+ const { userId } = getAuthUserId({ context });+ const { db } = getDb({ context });+ const { config } = getConfig({ context });++ const { organizationId, documentId } = context.req.valid('param');++ const documentsRepository = createDocumentsRepository({ db });+ const organizationsRepository = createOrganizationsRepository({ db });++ const { isInOrganization } = await organizationsRepository.isUserInOrganization({ userId, organizationId });++ if (!isInOrganization) {+ throw createError({+ message: 'You are not part of this organization.',+ code: 'user.not_in_organization',+ statusCode: 403,+ });+ }++ const { document } = await documentsRepository.getDocumentById({ documentId });++ if (!document) {+ throw createError({+ message: 'Document not found.',+ code: 'document.not_found',+ statusCode: 404,+ });+ }++ const documentsStorageService = await createDocumentStorageService({ config });++ const { fileStream } = await documentsStorageService.getFileStream({ storageKey: document.storageKey });++ return context.body(+ fileStream,+ 200,+ {+ 'Content-Type': document.mimeType,+ 'Content-Disposition': `inline; filename="${document.name}"`,+ },+ );+ },+ );+}diff --git a/apps/papra-server/src/modules/documents/storage/documents.storage.services.ts b/apps/papra-server/src/modules/documents/storage/documents.storage.services.tsindex f6fd541b..f733fcd2 100644--- a/apps/papra-server/src/modules/documents/storage/documents.storage.services.ts+++ b/apps/papra-server/src/modules/documents/storage/documents.storage.services.ts@@ -30,6 +30,7 @@ export async function createDocumentStorageService({ config }: { config: Configreturn injectArguments({saveFile,+ getFileStream,}, {storageDriver,});@@ -46,3 +47,13 @@ async function saveFile({}) {return storageDriver.saveFile({ file, organizationId });}++async function getFileStream({+ storageKey,+ storageDriver,+}: {+ storageKey: string;+ storageDriver: StorageDriver;+}) {+ return storageDriver.getFileStream({ storageKey });+}diff --git a/apps/papra-server/src/modules/documents/storage/drivers/drivers.models.ts b/apps/papra-server/src/modules/documents/storage/drivers/drivers.models.tsindex b6683373..19bcf582 100644--- a/apps/papra-server/src/modules/documents/storage/drivers/drivers.models.ts+++ b/apps/papra-server/src/modules/documents/storage/drivers/drivers.models.ts@@ -1,3 +1,4 @@+import type { ReadableStream } from 'node:stream/web';import type { Config } from '../../../config/config.types';export type StorageDriver = {@@ -6,6 +7,10 @@ export type StorageDriver = {file: File;organizationId: string;}) => Promise<{ storageKey: string }>;++ getFileStream: (args: { storageKey: string }) => Promise<{+ fileStream: ReadableStream;+ }>;};export type StorageDriverFactory = (args: { config: Config }) => Promise<StorageDriver>;diff --git a/apps/papra-server/src/modules/documents/storage/drivers/fs/fs.storage-driver.ts b/apps/papra-server/src/modules/documents/storage/drivers/fs/fs.storage-driver.tsindex 3ef7f562..a3f3c4f6 100644--- a/apps/papra-server/src/modules/documents/storage/drivers/fs/fs.storage-driver.ts+++ b/apps/papra-server/src/modules/documents/storage/drivers/fs/fs.storage-driver.ts@@ -49,5 +49,20 @@ export const fsStorageDriverFactory = defineStorageDriver(async ({ config }) =>});});},+ getFileStream: async ({ storageKey }) => {+ const storagePath = `${root}/${storageKey}`;++ const fileExists = await checkFileExists({ path: storagePath });++ if (!fileExists) {+ throw new Error('File not found');+ }++ const readStream = fs.createReadStream(storagePath);++ return {+ fileStream: stream.Readable.toWeb(readStream),+ };+ },};});diff --git a/apps/papra-server/src/modules/documents/storage/drivers/s3/s3.storage-driver.ts b/apps/papra-server/src/modules/documents/storage/drivers/s3/s3.storage-driver.tsindex 9628c245..5244d472 100644--- a/apps/papra-server/src/modules/documents/storage/drivers/s3/s3.storage-driver.ts+++ b/apps/papra-server/src/modules/documents/storage/drivers/s3/s3.storage-driver.ts@@ -1,4 +1,4 @@-import { S3Client } from '@aws-sdk/client-s3';+import { GetObjectCommand, S3Client } from '@aws-sdk/client-s3';import { Upload } from '@aws-sdk/lib-storage';import { defineStorageDriver } from '../drivers.models';@@ -36,5 +36,17 @@ export const s3StorageDriverFactory = defineStorageDriver(async ({ config }) =>return { storageKey };},+ getFileStream: async ({ storageKey }) => {+ const { Body } = await s3Client.send(new GetObjectCommand({+ Bucket: bucketName,+ Key: storageKey,+ }));++ if (!Body) {+ throw new Error('File not found or has no content');+ }++ return { fileStream: Body.transformToWebStream() };+ },};});diff --git a/pnpm-lock.yaml b/pnpm-lock.yamlindex 6331ccfe..94c006b2 100644--- a/pnpm-lock.yaml+++ b/pnpm-lock.yaml@@ -34,6 +34,9 @@ importers:'@kobalte/core':specifier: ^0.13.4version: 0.13.7([email protected])+ '@pdfslick/solid':+ specifier: ^2.0.0'@solid-primitives/i18n':specifier: ^2.1.1version: 2.1.1([email protected])@@ -160,7 +163,7 @@ importers:version: 4.1.0drizzle-orm:specifier: ^0.38.3- version: 0.38.3(@libsql/[email protected])+ version: 0.38.3(@libsql/[email protected])([email protected])esbuild:specifier: ^0.24.2version: 0.24.2@@ -1428,6 +1431,70 @@ packages:cpu: [x64]os: [win32]+ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-ZYwqFYEKcT5Zr8lbiaJNJj/poLaeK2TncolY914r+gD2TJNeP7ZqvE7A2SX/1C9MB4E3DQEwm3YhL3WEf0x3MQ==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [android]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-Pg1pfiJEyDIsX+V0QaJPRWvXbw5zmWAk3bivFCvt/5pwZb37/sT6E/RqPHT9NnqpDyKW6SriwY9ypjljysUA1Q==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [darwin]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-3Tr+/HjdJN7Z/VKIcsxV2DvDIibZCExgfYTgljCkUSFuoI7iNkOE6Dc1Q6j212EB9PeO8KmfrViBqHYT6IwWkA==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [darwin]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-3KP+dYObH7CVkZMZWwk1WX9jRjL+EKdQtD43H8MOI+illf+dwqLlecdQ4d9bQRIxELKJ8dyPWY4fOp/Ngufrdg==}+ engines: {node: '>= 10'}+ cpu: [arm]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-Ka3StKz7Dq7kjTF3nNJCq43UN/VlANS7qGE3dWkn1d+tQNsCRy/wRmyt1TUFzIjRqcTFMQNRbgYq84+53UBA0A==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-O4xMASm2JrmqYoiDyxVWi+z5C14H+oVEag2rZ5iIA67dhWqYZB+iO7wCFpBYRj31JPBR29FOsu6X9zL+DwBFdw==}+ engines: {node: '>= 10'}+ cpu: [arm64]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-dblWDaA59ZU8bPbkfM+riSke7sFbNZ70LEevUdI5rgiFEUzYUQlU34gSBzemTACj5rCWt1BYeu0GfkLSjNMBSw==}+ engines: {node: '>= 10'}+ cpu: [riscv64]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-wsp+atutw13OJXGU3DDkdngtBDoEg01IuK5xMe0L6VFPV8maGkh17CXze078OD5QJOc6kFyw3DDscMLOPF8+oA==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-odX+nN+IozWzhdj31INcHz3Iy9+EckNw+VqsZcaUxZOTu7/3FmktRNI6aC1qe5minZNv1m05YOS1FVf7fvmjlA==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [linux]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-RZQX3luWnlNWgdMnLMQ1hyfQraeAn9lnxWWVCHuUM4tAWEV8UDdeb7cMwmJW7eyt8kAosmjeHt3cylQMHOxGFg==}+ engines: {node: '>= 10'}+ cpu: [x64]+ os: [win32]++ '@napi-rs/[email protected]':+ resolution: {integrity: sha512-YcFhXQcp+b2d38zFOJNbpyPHnIL7KAEkhJQ+UeeKI5IpE9B8Cpf/M6RiHPQXSsSqnYbrfFylnW49dyh2oeSblQ==}+ engines: {node: '>= 10'}+'@neon-rs/[email protected]':resolution: {integrity: sha512-kTPhdZyTQxB+2wpiRcFWrDcejc4JI6tkPuS7UZCG4l6Zvc5kU/gGQ/ozvHTh1XR5tS+UlfAfGuPajjzQjCiHCw==}@@ -1450,6 +1517,14 @@ packages:'@paralleldrive/[email protected]':resolution: {integrity: sha512-ZOBkgDwEdoYVlSeRbYYXs0S9MejQofiVYoTbKzy/6GQa39/q5tQU2IX46+shYnUkpEl3wc+J6wRlar7r2EK2xA==}+ '@pdfslick/[email protected]':+ resolution: {integrity: sha512-MIrAj5Qhn/3G3XZU8LmKVl7gjol+9Jf/jzZo2mNdHpmVHEhXzkD5yJBvtZ3cAZLup7yg73z+ijkQ8hqD8rDu2w==}++ '@pdfslick/[email protected]':+ resolution: {integrity: sha512-uE4QbcVlMOJ8l7O5HhdLBBMm46UAi48qbFr/0RRDK9YWW79FTcgkWjd78GJFMUDxODdDb78PXhRLgyTDzttOhA==}+ peerDependencies:+ solid-js: '>=1.5.0'+'@pkgr/[email protected]':resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==}engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0}@@ -3180,6 +3255,10 @@ packages:resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==}+ resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==}+ hasBin: true+resolution: {integrity: sha512-23I4pFZHmAemUnz8WZXbYRSKYj801VDaNv9ETuMh7IrMc7VuVVSo+Z9iLE3ni30+U48iDWfi30d3twAXBYmnCg==}@@ -3468,6 +3547,10 @@ packages:resolution: {integrity: sha512-vE7JKRyES09KiunauX7nd2Q9/L7lhok4smP9RZTDeD4MVs72Dp2qNFVz39Nz5a0FVEW0BJR6C0DYrq6unoziZA==}engines: {node: '>= 14.16'}+ resolution: {integrity: sha512-/Y3fcFrXEAsMjJXeL9J8+ZG9U01LbuWaYypvDW2ycW1jL269L3js3DVBjDJ0Up9Np1uqDXsDrRihHANhZOlwdQ==}+ engines: {node: '>=20'}+resolution: {integrity: sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==}@@ -3527,6 +3610,10 @@ packages:resolution: {integrity: sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==}+ resolution: {integrity: sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==}+ engines: {node: '>=0.10.0'}+resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==}engines: {node: '>=8'}@@ -3925,6 +4012,11 @@ packages:resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==}+ resolution: {integrity: sha512-PElTlVMwpblvbNqQ82d2n6RjStvdSoNe9FG28kNfz3WiXilJm4DdNkEzRhCZuIDwY8U08WVihhGR5iRqAwfDiw==}+ peerDependencies:+ react: ^16.8.0 || ^17.0.0 || ^18.0.0+resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}@@ -4138,6 +4230,21 @@ packages:resolution: {integrity: sha512-muH7gBL9sI1nciMZV67X5fTKKBLtwpZ5VBp1vsOQzj1MhrBZ4wlVCm3gedKZWLp0Oyel8sIGfeiz54Su+OVT+A==}+ resolution: {integrity: sha512-+0PALYNJNgK6hldkgDq2vLrw5f6g/jCInz52n9RTpropGgeAf/ioFUCdtsjCqu4gNhW9D01rUQBROoRjdzyn2Q==}+ engines: {node: '>=12.7.0'}+ peerDependencies:+ '@types/react': '>=16.8'+ immer: '>=9.0.6'+ react: '>=16.8'+ peerDependenciesMeta:+ '@types/react':+ optional: true+ immer:+ optional: true+ react:+ optional: true+resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==}@@ -5483,6 +5590,50 @@ snapshots:'@libsql/[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.65+ '@napi-rs/canvas-darwin-arm64': 0.1.65+ '@napi-rs/canvas-darwin-x64': 0.1.65+ '@napi-rs/canvas-linux-arm-gnueabihf': 0.1.65+ '@napi-rs/canvas-linux-arm64-gnu': 0.1.65+ '@napi-rs/canvas-linux-arm64-musl': 0.1.65+ '@napi-rs/canvas-linux-riscv64-gnu': 0.1.65+ '@napi-rs/canvas-linux-x64-gnu': 0.1.65+ '@napi-rs/canvas-linux-x64-musl': 0.1.65+ '@napi-rs/canvas-win32-x64-msvc': 0.1.65+ optional: true+'@neon-rs/[email protected]': {}'@noble/[email protected]': {}@@ -5503,6 +5654,44 @@ snapshots:dependencies:'@noble/hashes': 1.6.1+ dependencies:+ pdfjs-dist: 4.10.38+ vite: 5.4.11(@types/[email protected])+ zustand: 4.5.5([email protected])+ transitivePeerDependencies:+ - '@types/node'+ - '@types/react'+ - immer+ - less+ - lightningcss+ - react+ - sass+ - sass-embedded+ - stylus+ - sugarss+ - terser++ dependencies:+ '@pdfslick/core': 2.0.0(@types/[email protected])([email protected])+ '@solid-primitives/resize-observer': 2.0.26([email protected])+ solid-js: 1.9.3+ vite: 5.4.11(@types/[email protected])+ zustand: 4.5.5([email protected])+ transitivePeerDependencies:+ - '@types/node'+ - '@types/react'+ - immer+ - less+ - lightningcss+ - react+ - sass+ - sass-embedded+ - stylus+ - sugarss+ - terser+'@pkgr/[email protected]': {}'@playwright/[email protected]':@@ -6735,9 +6924,10 @@ snapshots:transitivePeerDependencies:- supports-color- [email protected](@libsql/[email protected]):optionalDependencies:'@libsql/client': 0.14.0+ react: 18.3.1@@ -7558,6 +7748,10 @@ snapshots:+ dependencies:+ js-tokens: 4.0.0+@@ -8023,6 +8217,10 @@ snapshots:+ optionalDependencies:+ '@napi-rs/canvas': 0.1.65+@@ -8070,6 +8268,10 @@ snapshots:+ dependencies:+ loose-envify: 1.4.0+dependencies:find-up: 4.1.0@@ -8496,6 +8698,10 @@ snapshots:dependencies:punycode: 2.3.1+ dependencies:+ react: 18.3.1+@@ -8759,4 +8965,10 @@ snapshots:+ dependencies:+ use-sync-external-store: 1.2.2([email protected])+ optionalDependencies:+ react: 18.3.1+