The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
🚧 place signatures and text signatures
Timur Ercan44884ae648a2
diff --git a/apps/web/components/editor/pdf-signer.tsx b/apps/web/components/editor/pdf-signer.tsxindex b8b32c9bd..f0a672c57 100644--- a/apps/web/components/editor/pdf-signer.tsx+++ b/apps/web/components/editor/pdf-signer.tsx@@ -30,7 +30,7 @@ export default function PDFSigner(props: any) {const signature = {fieldId: dialogField.id,type: dialogResult.type,- name: dialogResult.name,+ typedSignature: dialogResult.typedSignature,signatureImage: dialogResult.signatureImage,};@@ -72,8 +72,6 @@ export default function PDFSigner(props: any) {error: "Could not sign :/",});-- // goto signing done page}return (diff --git a/apps/web/components/editor/readonly-field.tsx b/apps/web/components/editor/readonly-field.tsxindex 95e241a55..34c2b75a5 100644--- a/apps/web/components/editor/readonly-field.tsx+++ b/apps/web/components/editor/readonly-field.tsx@@ -57,7 +57,9 @@ export default function ReadOnlyField(props: FieldPropsType) {hidden={!field?.signature}className="font-qwigley text-5xl m-auto w-auto flex-row-reverse font-medium text-center">- {field?.signature?.type === "type" ? field?.signature.name : ""}+ {field?.signature?.type === "type"+ ? field?.signature.typedSignature+ : ""}{field?.signature?.type === "draw" ? (<img className="w-50 h-20" src={field?.signature?.signatureImage} />) : (diff --git a/apps/web/components/editor/signature-dialog.tsx b/apps/web/components/editor/signature-dialog.tsxindex af935870f..5cd1ed3eb 100644--- a/apps/web/components/editor/signature-dialog.tsx+++ b/apps/web/components/editor/signature-dialog.tsx@@ -6,8 +6,9 @@ import {PencilIcon,TrashIcon,} from "@heroicons/react/24/outline";-import { Fragment, useState } from "react";+import { Fragment, useEffect, useState } from "react";import SignatureCanvas from "react-signature-canvas";+import { localStorage } from "@documenso/lib";const tabs = [{ name: "Type", icon: LanguageIcon, current: true },@@ -16,10 +17,13 @@ const tabs = [export default function SignatureDialog(props: any) {const [currentTab, setCurrentTab] = useState(tabs[0]);- const [typedName, setTypedName] = useState("");+ const [typedSignature, setTypedSignature] = useState("");const [signatureEmpty, setSignatureEmpty] = useState(true);+ let signCanvasRef: any | undefined;- let signCanvas: any | undefined;+ useEffect(() => {+ setTypedSignature(localStorage.getItem("typedSignature") || "");+ });return (<>@@ -82,13 +86,16 @@ export default function SignatureDialog(props: any) {</div>{isCurrentTab("Type") ? (<div>- <div className="my-8">+ <div className="my-8 border-b border-gray-300 mb-3"><input- value={typedName}+ value={typedSignature}onChange={(e) => {- setTypedName(e.target.value);+ setTypedSignature(e.target.value);}}- className="font-qw leading-none h-10 align-bottom font-qwigley mt-14 text-center block border-b w-full border-gray-300 focus:border-neon focus:ring-neon text-2xl"+ className={classNames(+ typedSignature ? "font-qwigley text-4xl" : "",+ "leading-none h-10 align-bottom mt-14 text-center block w-full focus:border-neon focus:ring-neon text-2xl"+ )}placeholder="Kindly type your name"/></div>@@ -101,11 +108,15 @@ export default function SignatureDialog(props: any) {</Button><ButtonclassName="ml-3"- disabled={!typedName}+ disabled={!typedSignature}onClick={() => {+ localStorage.setItem(+ "typedSignature",+ typedSignature+ );props.onClose({type: "type",- name: typedName,+ typedSignature: typedSignature,});}}>@@ -120,7 +131,7 @@ export default function SignatureDialog(props: any) {<div className=""><SignatureCanvasref={(ref) => {- signCanvas = ref;+ signCanvasRef = ref;}}canvasProps={{className:@@ -128,15 +139,15 @@ export default function SignatureDialog(props: any) {}}clearOnResize={true}onEnd={() => {- setSignatureEmpty(signCanvas?.isEmpty());+ setSignatureEmpty(signCanvasRef?.isEmpty());}}/><IconButtonclassName="block float-left"icon={TrashIcon}onClick={() => {- signCanvas?.clear();- setSignatureEmpty(signCanvas?.isEmpty());+ signCanvasRef?.clear();+ setSignatureEmpty(signCanvasRef?.isEmpty());}}></IconButton><div className="mt-10 float-right">@@ -152,7 +163,7 @@ export default function SignatureDialog(props: any) {props.onClose({type: "draw",signatureImage:- signCanvas.toDataURL("image/png"),+ signCanvasRef.toDataURL("image/png"),});}}disabled={signatureEmpty}diff --git a/apps/web/package.json b/apps/web/package.jsonindex 1c283b246..9c1355ae9 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -45,6 +45,7 @@"sass": "^1.57.1","short-uuid": "^4.2.2","string-to-color": "^2.2.2",+ "text2png": "^2.3.0","typescript": "4.8.4"},"devDependencies": {diff --git a/apps/web/pages/api/documents/[id]/sign.ts b/apps/web/pages/api/documents/[id]/sign.tsindex 73a66400a..900e249a4 100644--- a/apps/web/pages/api/documents/[id]/sign.ts+++ b/apps/web/pages/api/documents/[id]/sign.ts@@ -9,10 +9,12 @@ import { SigningStatus, DocumentStatus } from "@prisma/client";import { getDocument } from "@documenso/lib/query";import { Document as PrismaDocument } from "@prisma/client";import { insertImageInPDF, insertTextInPDF } from "@documenso/pdf";+const text2png = require("text2png");async function postHandler(req: NextApiRequest, res: NextApiResponse) {const existingUser = await getUserFromToken(req, res);const { token: recipientToken } = req.query;+ const { signatures: signatures }: { signatures: any[] } = req.body;if (!recipientToken) {return res.status(401).send("Missing recipient token.");@@ -33,8 +35,18 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {);if (!document) res.status(404).end(`No document found.`);-- // todo save signatures from body to db for later use+ // todo insert if not exits+ signatures.forEach(async (signature) => {+ await prisma.signature.create({+ data: {+ recipientId: recipient.id,+ fieldId: signature.fieldId,+ signatureImageAsBase64: signature.signatureImage+ ? signature.signatureImage+ : text2png(signature.typedSignature).toString("base64"),+ },+ });+ });await prisma.recipient.update({where: {@@ -52,26 +64,41 @@ async function postHandler(req: NextApiRequest, res: NextApiResponse) {},});- await prisma.document.update({- where: {- id: recipient.documentId,- },- data: {- status: DocumentStatus.COMPLETED,- },- });-if (unsignedRecipients.length === 0) {// todo if everybody signed insert images and create signature- await prisma.document.update({- where: {- id: recipient.documentId,- },- data: {- status: DocumentStatus.COMPLETED,- },+ const signedFields = await prisma.field.findMany({+ where: { documentId: document.id },+ include: { Signature: true },+ });+ // todo rename .document to documentImageAsBase64 or sth. like that+ let documentWithSignatureImages = document.document;+ let signaturesInserted = 0;+ signedFields.forEach(async (item) => {+ if (!item.Signature) {+ documentWithSignatureImages = document.document;+ throw new Error("Invalid Signature in Field");+ }+ documentWithSignatureImages = await insertImageInPDF(+ documentWithSignatureImages,+ item.Signature ? item.Signature?.signatureImageAsBase64 : "",+ item.positionX,+ item.positionY,+ item.page+ );+ signaturesInserted++;+ if (signaturesInserted == signedFields.length) {+ await prisma.document.update({+ where: {+ id: recipient.documentId,+ },+ data: {+ status: DocumentStatus.COMPLETED,+ document: documentWithSignatureImages,+ },+ });+ }+ // todo send notifications});- // todo send notifications}return res.status(200).end();diff --git a/package-lock.json b/package-lock.jsonindex e733ac2e0..62f7e7e61 100644--- a/package-lock.json+++ b/package-lock.json@@ -81,6 +81,7 @@"sass": "^1.57.1","short-uuid": "^4.2.2","string-to-color": "^2.2.2",+ "text2png": "^2.3.0","typescript": "4.8.4"},"devDependencies": {@@ -319,6 +320,25 @@"@jridgewell/sourcemap-codec": "^1.4.10"}},+ "node_modules/@mapbox/node-pre-gyp": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz",+ "integrity": "sha512-4ySo4CjzStuprMwk35H5pPbkymjv1SF3jGLj6rAHp/xT/RF7TL7bd9CTm1xDY49K2qF7jmR/g7k+SkLETP6opA==",+ "dependencies": {+ "detect-libc": "^2.0.0",+ "https-proxy-agent": "^5.0.0",+ "make-dir": "^3.1.0",+ "node-fetch": "^2.6.7",+ "nopt": "^5.0.0",+ "npmlog": "^5.0.1",+ "rimraf": "^3.0.2",+ "semver": "^7.3.5",+ "tar": "^6.1.11"+ },+ "bin": {+ "node-pre-gyp": "bin/node-pre-gyp"+ }+ },"node_modules/@next/env": {"version": "13.0.3","resolved": "https://registry.npmjs.org/@next/env/-/env-13.0.3.tgz",@@ -1187,6 +1207,11 @@"integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==","peer": true},+ "node_modules/abbrev": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",+ "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="+ },"node_modules/acorn": {"version": "8.8.2","resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",@@ -1244,6 +1269,17 @@"node": ">=0.4.0"}},+ "node_modules/agent-base": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",+ "dependencies": {+ "debug": "4"+ },+ "engines": {+ "node": ">= 6.0.0"+ }+ },"node_modules/ajv": {"version": "6.12.6","resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",@@ -1306,6 +1342,23 @@"node": ">= 8"}},+ "node_modules/aproba": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",+ "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ=="+ },+ "node_modules/are-we-there-yet": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",+ "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",+ "dependencies": {+ "delegates": "^1.0.0",+ "readable-stream": "^3.6.0"+ },+ "engines": {+ "node": ">=10"+ }+ },"node_modules/arg": {"version": "5.0.2","resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",@@ -1647,6 +1700,20 @@}]},+ "node_modules/canvas": {+ "version": "2.11.0",+ "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.11.0.tgz",+ "integrity": "sha512-bdTjFexjKJEwtIo0oRx8eD4G2yWoUOXP9lj279jmQ2zMnTQhT8C3512OKz3s+ZOaQlLbE7TuVvRDYDB3Llyy5g==",+ "hasInstallScript": true,+ "dependencies": {+ "@mapbox/node-pre-gyp": "^1.0.0",+ "nan": "^2.17.0",+ "simple-get": "^3.0.3"+ },+ "engines": {+ "node": ">=6"+ }+ },"node_modules/caseless": {"version": "0.12.0","resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",@@ -1704,6 +1771,14 @@"node": ">= 6"}},+ "node_modules/chownr": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",+ "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==",+ "engines": {+ "node": ">=10"+ }+ },"node_modules/chrome-trace-event": {"version": "1.0.3","resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz",@@ -1747,6 +1822,14 @@"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz","integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="},+ "node_modules/color-support": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",+ "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==",+ "bin": {+ "color-support": "bin.js"+ }+ },"node_modules/colornames": {"version": "1.1.1","resolved": "https://registry.npmjs.org/colornames/-/colornames-1.1.1.tgz",@@ -1774,6 +1857,11 @@"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz","integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="},+ "node_modules/console-control-strings": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",+ "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="+ },"node_modules/cookie": {"version": "0.5.0","resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",@@ -1854,6 +1942,17 @@}}},+ "node_modules/decompress-response": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz",+ "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==",+ "dependencies": {+ "mimic-response": "^2.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/deep-equal": {"version": "2.2.0","resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.0.tgz",@@ -1925,6 +2024,19 @@"node": ">=0.4.0"}},+ "node_modules/delegates": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",+ "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="+ },+ "node_modules/detect-libc": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz",+ "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w==",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/detective": {"version": "5.2.1","resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz",@@ -2794,6 +2906,28 @@"url": "https://www.patreon.com/infusion"}},+ "node_modules/fs-minipass": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",+ "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",+ "dependencies": {+ "minipass": "^3.0.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/fs-minipass/node_modules/minipass": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },"node_modules/fs.realpath": {"version": "1.0.0","resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",@@ -2842,6 +2976,25 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/gauge": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",+ "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",+ "dependencies": {+ "aproba": "^1.0.3 || ^2.0.0",+ "color-support": "^1.1.2",+ "console-control-strings": "^1.0.0",+ "has-unicode": "^2.0.1",+ "object-assign": "^4.1.1",+ "signal-exit": "^3.0.0",+ "string-width": "^4.2.3",+ "strip-ansi": "^6.0.1",+ "wide-align": "^1.1.2"+ },+ "engines": {+ "node": ">=10"+ }+ },"node_modules/get-intrinsic": {"version": "1.2.0","resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz",@@ -3085,6 +3238,11 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/has-unicode": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",+ "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="+ },"node_modules/hex-rgb": {"version": "4.3.0","resolved": "https://registry.npmjs.org/hex-rgb/-/hex-rgb-4.3.0.tgz",@@ -3118,6 +3276,18 @@"npm": ">=1.3.7"}},+ "node_modules/https-proxy-agent": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",+ "dependencies": {+ "agent-base": "6",+ "debug": "4"+ },+ "engines": {+ "node": ">= 6"+ }+ },"node_modules/ignore": {"version": "5.2.4","resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",@@ -3298,6 +3468,14 @@"node": ">=0.10.0"}},+ "node_modules/is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",+ "engines": {+ "node": ">=8"+ }+ },"node_modules/is-glob": {"version": "4.0.3","resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",@@ -3738,6 +3916,28 @@"url": "https://github.com/wojtekmaj/make-cancellable-promise?sponsor=1"}},+ "node_modules/make-dir": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",+ "dependencies": {+ "semver": "^6.0.0"+ },+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },+ "node_modules/make-dir/node_modules/semver": {+ "version": "6.3.0",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==",+ "bin": {+ "semver": "bin/semver.js"+ }+ },"node_modules/make-error": {"version": "1.3.6","resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",@@ -3808,6 +4008,17 @@"node": ">= 0.6"}},+ "node_modules/mimic-response": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz",+ "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==",+ "engines": {+ "node": ">=8"+ },+ "funding": {+ "url": "https://github.com/sponsors/sindresorhus"+ }+ },"node_modules/mini-svg-data-uri": {"version": "1.4.4","resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz",@@ -3835,11 +4046,58 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/minipass": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.0.3.tgz",+ "integrity": "sha512-OW2r4sQ0sI+z5ckEt5c1Tri4xTgZwYDxpE54eqWlQloQRoWtXjqt9udJ5Z4dSv7wK+nfFI7FRXyCpBSft+gpFw==",+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/minizlib": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",+ "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",+ "dependencies": {+ "minipass": "^3.0.0",+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">= 8"+ }+ },+ "node_modules/minizlib/node_modules/minipass": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",+ "dependencies": {+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/mkdirp": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==",+ "bin": {+ "mkdirp": "bin/cmd.js"+ },+ "engines": {+ "node": ">=10"+ }+ },"node_modules/ms": {"version": "2.1.2","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz","integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="},+ "node_modules/nan": {+ "version": "2.17.0",+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz",+ "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ=="+ },"node_modules/nanoid": {"version": "3.3.4","resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",@@ -3950,6 +4208,25 @@"enhanced-resolve": "^5.10.0"}},+ "node_modules/node-fetch": {+ "version": "2.6.9",+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz",+ "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==",+ "dependencies": {+ "whatwg-url": "^5.0.0"+ },+ "engines": {+ "node": "4.x || >=6.0.0"+ },+ "peerDependencies": {+ "encoding": "^0.1.0"+ },+ "peerDependenciesMeta": {+ "encoding": {+ "optional": true+ }+ }+ },"node_modules/node-releases": {"version": "2.0.8","resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.8.tgz",@@ -3971,6 +4248,20 @@"@sendgrid/mail": "^6.2.1"}},+ "node_modules/nopt": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",+ "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",+ "dependencies": {+ "abbrev": "1"+ },+ "bin": {+ "nopt": "bin/nopt.js"+ },+ "engines": {+ "node": ">=6"+ }+ },"node_modules/normalize-path": {"version": "3.0.0","resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",@@ -6624,6 +6915,17 @@"inBundle": true,"license": "ISC"},+ "node_modules/npmlog": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",+ "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",+ "dependencies": {+ "are-we-there-yet": "^2.0.0",+ "console-control-strings": "^1.1.0",+ "gauge": "^3.0.0",+ "set-blocking": "^2.0.0"+ }+ },"node_modules/oauth": {"version": "0.9.15","resolved": "https://registry.npmjs.org/oauth/-/oauth-0.9.15.tgz",@@ -7343,6 +7645,19 @@"pify": "^2.3.0"}},+ "node_modules/readable-stream": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",+ "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",+ "dependencies": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ },+ "engines": {+ "node": ">= 6"+ }+ },"node_modules/readdirp": {"version": "3.6.0","resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",@@ -7617,6 +7932,11 @@"randombytes": "^2.1.0"}},+ "node_modules/set-blocking": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",+ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="+ },"node_modules/shebang-command": {"version": "2.0.0","resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",@@ -7661,6 +7981,40 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="+ },+ "node_modules/simple-concat": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==",+ "funding": [+ {+ "type": "github",+ "url": "https://github.com/sponsors/feross"+ },+ {+ "type": "patreon",+ "url": "https://www.patreon.com/feross"+ },+ {+ "type": "consulting",+ "url": "https://feross.org/support"+ }+ ]+ },+ "node_modules/simple-get": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz",+ "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==",+ "dependencies": {+ "decompress-response": "^4.2.0",+ "once": "^1.3.1",+ "simple-concat": "^1.0.0"+ }+ },"node_modules/slash": {"version": "3.0.0","resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",@@ -7731,6 +8085,14 @@"node": ">= 0.4"}},+ "node_modules/string_decoder": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",+ "dependencies": {+ "safe-buffer": "~5.2.0"+ }+ },"node_modules/string-to-color": {"version": "2.2.2","resolved": "https://registry.npmjs.org/string-to-color/-/string-to-color-2.2.2.tgz",@@ -7744,6 +8106,24 @@"rgb-hex": "^3.0.0"}},+ "node_modules/string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "dependencies": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "engines": {+ "node": ">=8"+ }+ },+ "node_modules/string-width/node_modules/emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="+ },"node_modules/string.prototype.matchall": {"version": "4.0.8","resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz",@@ -7941,6 +8321,22 @@"node": ">=6"}},+ "node_modules/tar": {+ "version": "6.1.13",+ "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz",+ "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==",+ "dependencies": {+ "chownr": "^2.0.0",+ "fs-minipass": "^2.0.0",+ "minipass": "^4.0.0",+ "minizlib": "^2.1.1",+ "mkdirp": "^1.0.3",+ "yallist": "^4.0.0"+ },+ "engines": {+ "node": ">=10"+ }+ },"node_modules/terser": {"version": "5.16.1","resolved": "https://registry.npmjs.org/terser/-/terser-5.16.1.tgz",@@ -8008,6 +8404,23 @@"resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz","integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw=="},+ "node_modules/text2png": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/text2png/-/text2png-2.3.0.tgz",+ "integrity": "sha512-1fCPz0QqWN+bYjXHutINi9gbA7hBslrrr9oDk1c8ilcQz+g+6KhLqb9Oe1l8mdIXBMSr5b/EgAsxMWqSTtCHsA==",+ "dependencies": {+ "canvas": "^2.6.0",+ "commander": "^3.0.1"+ },+ "bin": {+ "text2png": "bin/text2png.js"+ }+ },+ "node_modules/text2png/node_modules/commander": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/commander/-/commander-3.0.2.tgz",+ "integrity": "sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow=="+ },"node_modules/tiny-invariant": {"version": "1.3.1","resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz",@@ -8041,6 +8454,11 @@"node": ">=0.8"}},+ "node_modules/tr46": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="+ },"node_modules/trim-canvas": {"version": "0.1.2","resolved": "https://registry.npmjs.org/trim-canvas/-/trim-canvas-0.1.2.tgz",@@ -8326,6 +8744,11 @@"node": ">= 8"}},+ "node_modules/webidl-conversions": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="+ },"node_modules/webpack": {"version": "5.75.0","resolved": "https://registry.npmjs.org/webpack/-/webpack-5.75.0.tgz",@@ -8404,6 +8827,15 @@"node": ">=4.0"}},+ "node_modules/whatwg-url": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",+ "dependencies": {+ "tr46": "~0.0.3",+ "webidl-conversions": "^3.0.0"+ }+ },"node_modules/which": {"version": "2.0.2","resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",@@ -8466,6 +8898,14 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/wide-align": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",+ "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",+ "dependencies": {+ "string-width": "^1.0.2 || 2 || 3 || 4"+ }+ },"node_modules/word-wrap": {"version": "1.2.3","resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",@@ -8665,6 +9105,7 @@"short-uuid": "^4.2.2","string-to-color": "^2.2.2","tailwindcss": "^3.2.4",+ "text2png": "*","typescript": "4.8.4"},"dependencies": {@@ -8796,6 +9237,22 @@"@jridgewell/sourcemap-codec": "^1.4.10"}},+ "@mapbox/node-pre-gyp": {+ "version": "1.0.10",+ "resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz",+ "integrity": "sha512-4ySo4CjzStuprMwk35H5pPbkymjv1SF3jGLj6rAHp/xT/RF7TL7bd9CTm1xDY49K2qF7jmR/g7k+SkLETP6opA==",+ "requires": {+ "detect-libc": "^2.0.0",+ "https-proxy-agent": "^5.0.0",+ "make-dir": "^3.1.0",+ "node-fetch": "^2.6.7",+ "nopt": "^5.0.0",+ "npmlog": "^5.0.1",+ "rimraf": "^3.0.2",+ "semver": "^7.3.5",+ "tar": "^6.1.11"+ }+ },"@next/env": {"version": "13.0.3","resolved": "https://registry.npmjs.org/@next/env/-/env-13.0.3.tgz",@@ -9449,6 +9906,11 @@"integrity": "sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ==","peer": true},+ "abbrev": {+ "version": "1.1.1",+ "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz",+ "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q=="+ },"acorn": {"version": "8.8.2","resolved": "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz",@@ -9489,6 +9951,14 @@"resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz","integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA=="},+ "agent-base": {+ "version": "6.0.2",+ "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz",+ "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==",+ "requires": {+ "debug": "4"+ }+ },"ajv": {"version": "6.12.6","resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",@@ -9533,6 +10003,20 @@"picomatch": "^2.0.4"}},+ "aproba": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz",+ "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ=="+ },+ "are-we-there-yet": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-2.0.0.tgz",+ "integrity": "sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==",+ "requires": {+ "delegates": "^1.0.0",+ "readable-stream": "^3.6.0"+ }+ },"arg": {"version": "5.0.2","resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",@@ -9772,6 +10256,16 @@"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001448.tgz","integrity": "sha512-tq2YI+MJnooG96XpbTRYkBxLxklZPOdLmNIOdIhvf7SNJan6u5vCKum8iT7ZfCt70m1GPkuC7P3TtX6UuhupuA=="},+ "canvas": {+ "version": "2.11.0",+ "resolved": "https://registry.npmjs.org/canvas/-/canvas-2.11.0.tgz",+ "integrity": "sha512-bdTjFexjKJEwtIo0oRx8eD4G2yWoUOXP9lj279jmQ2zMnTQhT8C3512OKz3s+ZOaQlLbE7TuVvRDYDB3Llyy5g==",+ "requires": {+ "@mapbox/node-pre-gyp": "^1.0.0",+ "nan": "^2.17.0",+ "simple-get": "^3.0.3"+ }+ },"caseless": {"version": "0.12.0","resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz",@@ -9811,6 +10305,11 @@}}},+ "chownr": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz",+ "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ=="+ },"chrome-trace-event": {"version": "1.0.3","resolved": "https://registry.npmjs.org/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz",@@ -9845,6 +10344,11 @@"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz","integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA=="},+ "color-support": {+ "version": "1.1.3",+ "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz",+ "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg=="+ },"colornames": {"version": "1.1.1","resolved": "https://registry.npmjs.org/colornames/-/colornames-1.1.1.tgz",@@ -9869,6 +10373,11 @@"resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz","integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg=="},+ "console-control-strings": {+ "version": "1.1.0",+ "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",+ "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ=="+ },"cookie": {"version": "0.5.0","resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz",@@ -9926,6 +10435,14 @@"ms": "2.1.2"}},+ "decompress-response": {+ "version": "4.2.1",+ "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-4.2.1.tgz",+ "integrity": "sha512-jOSne2qbyE+/r8G1VU+G/82LBs2Fs4LAsTiLSHOCOMZQl2OKZ6i8i4IyHemTe+/yIXOtTcRQMzPcgyhoFlqPkw==",+ "requires": {+ "mimic-response": "^2.0.0"+ }+ },"deep-equal": {"version": "2.2.0","resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-2.2.0.tgz",@@ -9979,6 +10496,16 @@"resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz","integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ=="},+ "delegates": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz",+ "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ=="+ },+ "detect-libc": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.1.tgz",+ "integrity": "sha512-463v3ZeIrcWtdgIg6vI6XUncguvr2TnGl4SzDXinkt9mSLpBJKXT3mW6xT3VQdDN11+WVs29pgvivTc4Lp8v+w=="+ },"detective": {"version": "5.2.1","resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz",@@ -10641,6 +11168,24 @@"integrity": "sha512-MhLuK+2gUcnZe8ZHlaaINnQLl0xRIGRfcGk2yl8xoQAfHrSsL3rYu6FCmBdkdbhc9EPlwyGHewaRsvwRMJtAlA==","dev": true},+ "fs-minipass": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz",+ "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==",+ "requires": {+ "minipass": "^3.0.0"+ },+ "dependencies": {+ "minipass": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",+ "requires": {+ "yallist": "^4.0.0"+ }+ }+ }+ },"fs.realpath": {"version": "1.0.0","resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",@@ -10673,6 +11218,22 @@"resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz","integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ=="},+ "gauge": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/gauge/-/gauge-3.0.2.tgz",+ "integrity": "sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==",+ "requires": {+ "aproba": "^1.0.3 || ^2.0.0",+ "color-support": "^1.1.2",+ "console-control-strings": "^1.0.0",+ "has-unicode": "^2.0.1",+ "object-assign": "^4.1.1",+ "signal-exit": "^3.0.0",+ "string-width": "^4.2.3",+ "strip-ansi": "^6.0.1",+ "wide-align": "^1.1.2"+ }+ },"get-intrinsic": {"version": "1.2.0","resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz",@@ -10838,6 +11399,11 @@"has-symbols": "^1.0.2"}},+ "has-unicode": {+ "version": "2.0.1",+ "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz",+ "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ=="+ },"hex-rgb": {"version": "4.3.0","resolved": "https://registry.npmjs.org/hex-rgb/-/hex-rgb-4.3.0.tgz",@@ -10858,6 +11424,15 @@"sshpk": "^1.7.0"}},+ "https-proxy-agent": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz",+ "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==",+ "requires": {+ "agent-base": "6",+ "debug": "4"+ }+ },"ignore": {"version": "5.2.4","resolved": "https://registry.npmjs.org/ignore/-/ignore-5.2.4.tgz",@@ -10981,6 +11556,11 @@"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz","integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ=="},+ "is-fullwidth-code-point": {+ "version": "3.0.0",+ "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",+ "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg=="+ },"is-glob": {"version": "4.0.3","resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",@@ -11302,6 +11882,21 @@"resolved": "https://registry.npmjs.org/make-cancellable-promise/-/make-cancellable-promise-1.2.0.tgz","integrity": "sha512-sLhwwkWNAtPpvYh1Yen8QRMm6tRReFsheUri2muqIrZEDwEHBPAsQeAD5ezZ4F7wjdmttoZL+w/BDkgmvOQSsA=="},+ "make-dir": {+ "version": "3.1.0",+ "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz",+ "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==",+ "requires": {+ "semver": "^6.0.0"+ },+ "dependencies": {+ "semver": {+ "version": "6.3.0",+ "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz",+ "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw=="+ }+ }+ },"make-error": {"version": "1.3.6","resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",@@ -11354,6 +11949,11 @@"mime-db": "1.52.0"}},+ "mimic-response": {+ "version": "2.1.0",+ "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-2.1.0.tgz",+ "integrity": "sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA=="+ },"mini-svg-data-uri": {"version": "1.4.4","resolved": "https://registry.npmjs.org/mini-svg-data-uri/-/mini-svg-data-uri-1.4.4.tgz",@@ -11372,11 +11972,45 @@"resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.7.tgz","integrity": "sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g=="},+ "minipass": {+ "version": "4.0.3",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-4.0.3.tgz",+ "integrity": "sha512-OW2r4sQ0sI+z5ckEt5c1Tri4xTgZwYDxpE54eqWlQloQRoWtXjqt9udJ5Z4dSv7wK+nfFI7FRXyCpBSft+gpFw=="+ },+ "minizlib": {+ "version": "2.1.2",+ "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz",+ "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==",+ "requires": {+ "minipass": "^3.0.0",+ "yallist": "^4.0.0"+ },+ "dependencies": {+ "minipass": {+ "version": "3.3.6",+ "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz",+ "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==",+ "requires": {+ "yallist": "^4.0.0"+ }+ }+ }+ },+ "mkdirp": {+ "version": "1.0.4",+ "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz",+ "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw=="+ },"ms": {"version": "2.1.2","resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz","integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w=="},+ "nan": {+ "version": "2.17.0",+ "resolved": "https://registry.npmjs.org/nan/-/nan-2.17.0.tgz",+ "integrity": "sha512-2ZTgtl0nJsO0KQCjEpxcIr5D+Yv90plTitZt9JBfQvVJDS5seMl3FOvsh3+9CoYWXf/1l5OaZzzF6nDm4cagaQ=="+ },"nanoid": {"version": "3.3.4","resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.4.tgz",@@ -11443,6 +12077,14 @@"enhanced-resolve": "^5.10.0"}},+ "node-fetch": {+ "version": "2.6.9",+ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.9.tgz",+ "integrity": "sha512-DJm/CJkZkRjKKj4Zi4BsKVZh3ValV5IR5s7LVZnW+6YMh0W1BfNA8XSs6DLMGYlId5F3KnA70uu2qepcR08Qqg==",+ "requires": {+ "whatwg-url": "^5.0.0"+ }+ },"node-releases": {"version": "2.0.8","resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.8.tgz",@@ -11461,6 +12103,14 @@"@sendgrid/mail": "^6.2.1"}},+ "nopt": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz",+ "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==",+ "requires": {+ "abbrev": "1"+ }+ },"normalize-path": {"version": "3.0.0","resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",@@ -13211,6 +13861,17 @@}}},+ "npmlog": {+ "version": "5.0.1",+ "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-5.0.1.tgz",+ "integrity": "sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==",+ "requires": {+ "are-we-there-yet": "^2.0.0",+ "console-control-strings": "^1.1.0",+ "gauge": "^3.0.0",+ "set-blocking": "^2.0.0"+ }+ },"oauth": {"version": "0.9.15","resolved": "https://registry.npmjs.org/oauth/-/oauth-0.9.15.tgz",@@ -13680,6 +14341,16 @@"pify": "^2.3.0"}},+ "readable-stream": {+ "version": "3.6.0",+ "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz",+ "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==",+ "requires": {+ "inherits": "^2.0.3",+ "string_decoder": "^1.1.1",+ "util-deprecate": "^1.0.1"+ }+ },"readdirp": {"version": "3.6.0","resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",@@ -13858,6 +14529,11 @@"randombytes": "^2.1.0"}},+ "set-blocking": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz",+ "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw=="+ },"shebang-command": {"version": "2.0.0","resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",@@ -13890,6 +14566,26 @@"object-inspect": "^1.9.0"}},+ "signal-exit": {+ "version": "3.0.7",+ "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",+ "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ=="+ },+ "simple-concat": {+ "version": "1.0.1",+ "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz",+ "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q=="+ },+ "simple-get": {+ "version": "3.1.1",+ "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-3.1.1.tgz",+ "integrity": "sha512-CQ5LTKGfCpvE1K0n2us+kuMPbk/q0EKl82s4aheV9oXjFEz6W/Y7oQFVJuU6QG77hRT4Ghb5RURteF5vnWjupA==",+ "requires": {+ "decompress-response": "^4.2.0",+ "once": "^1.3.1",+ "simple-concat": "^1.0.0"+ }+ },"slash": {"version": "3.0.0","resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",@@ -13940,6 +14636,14 @@"internal-slot": "^1.0.4"}},+ "string_decoder": {+ "version": "1.3.0",+ "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz",+ "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==",+ "requires": {+ "safe-buffer": "~5.2.0"+ }+ },"string-to-color": {"version": "2.2.2","resolved": "https://registry.npmjs.org/string-to-color/-/string-to-color-2.2.2.tgz",@@ -13953,6 +14657,23 @@"rgb-hex": "^3.0.0"}},+ "string-width": {+ "version": "4.2.3",+ "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",+ "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",+ "requires": {+ "emoji-regex": "^8.0.0",+ "is-fullwidth-code-point": "^3.0.0",+ "strip-ansi": "^6.0.1"+ },+ "dependencies": {+ "emoji-regex": {+ "version": "8.0.0",+ "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",+ "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A=="+ }+ }+ },"string.prototype.matchall": {"version": "4.0.8","resolved": "https://registry.npmjs.org/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz",@@ -14079,6 +14800,19 @@"resolved": "https://registry.npmjs.org/tapable/-/tapable-2.2.1.tgz","integrity": "sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ=="},+ "tar": {+ "version": "6.1.13",+ "resolved": "https://registry.npmjs.org/tar/-/tar-6.1.13.tgz",+ "integrity": "sha512-jdIBIN6LTIe2jqzay/2vtYLlBHa3JF42ot3h1dW8Q0PaAG4v8rm0cvpVePtau5C6OKXGGcgO9q2AMNSWxiLqKw==",+ "requires": {+ "chownr": "^2.0.0",+ "fs-minipass": "^2.0.0",+ "minipass": "^4.0.0",+ "minizlib": "^2.1.1",+ "mkdirp": "^1.0.3",+ "yallist": "^4.0.0"+ }+ },"terser": {"version": "5.16.1","resolved": "https://registry.npmjs.org/terser/-/terser-5.16.1.tgz",@@ -14121,6 +14855,22 @@"resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz","integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw=="},+ "text2png": {+ "version": "2.3.0",+ "resolved": "https://registry.npmjs.org/text2png/-/text2png-2.3.0.tgz",+ "integrity": "sha512-1fCPz0QqWN+bYjXHutINi9gbA7hBslrrr9oDk1c8ilcQz+g+6KhLqb9Oe1l8mdIXBMSr5b/EgAsxMWqSTtCHsA==",+ "requires": {+ "canvas": "^2.6.0",+ "commander": "^3.0.1"+ },+ "dependencies": {+ "commander": {+ "version": "3.0.2",+ "resolved": "https://registry.npmjs.org/commander/-/commander-3.0.2.tgz",+ "integrity": "sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow=="+ }+ }+ },"tiny-invariant": {"version": "1.3.1","resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.1.tgz",@@ -14148,6 +14898,11 @@"punycode": "^2.1.1"}},+ "tr46": {+ "version": "0.0.3",+ "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz",+ "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw=="+ },"trim-canvas": {"version": "0.1.2","resolved": "https://registry.npmjs.org/trim-canvas/-/trim-canvas-0.1.2.tgz",@@ -14350,6 +15105,11 @@"resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz","integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q=="},+ "webidl-conversions": {+ "version": "3.0.1",+ "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz",+ "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ=="+ },"webpack": {"version": "5.75.0","resolved": "https://registry.npmjs.org/webpack/-/webpack-5.75.0.tgz",@@ -14406,6 +15166,15 @@"integrity": "sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w==","peer": true},+ "whatwg-url": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz",+ "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==",+ "requires": {+ "tr46": "~0.0.3",+ "webidl-conversions": "^3.0.0"+ }+ },"which": {"version": "2.0.2","resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",@@ -14450,6 +15219,14 @@"is-typed-array": "^1.1.10"}},+ "wide-align": {+ "version": "1.1.5",+ "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz",+ "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==",+ "requires": {+ "string-width": "^1.0.2 || 2 || 3 || 4"+ }+ },"word-wrap": {"version": "1.2.3","resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",diff --git a/packages/lib/index.ts b/packages/lib/index.tsindex f8628cc70..3535c9ea0 100644--- a/packages/lib/index.ts+++ b/packages/lib/index.ts@@ -1,3 +1,4 @@export { coloredConsole } from "./coloredConsole";export { default as classNames } from "./classNames";export { NEXT_PUBLIC_WEBAPP_URL } from "./constants";+export { localStorage } from "./webstorage";diff --git a/packages/lib/webstorage.ts b/packages/lib/webstorage.tsnew file mode 100644index 000000000..47cbd00e3--- /dev/null+++ b/packages/lib/webstorage.ts@@ -0,0 +1,24 @@+// TODO: In case of an embed if localStorage is not available(third party), use localStorage of parent(first party) that contains the iframe.+export const localStorage = {+ getItem(key: string) {+ try {+ // eslint-disable-next-line @calcom/eslint/avoid-web-storage+ return window.localStorage.getItem(key);+ } catch (e) {+ // In case storage is restricted. Possible reasons+ // 1. Third Party Context in Chrome Incognito mode.+ return null;+ }+ },+ setItem(key: string, value: string) {+ try {+ // eslint-disable-next-line @calcom/eslint/avoid-web-storage+ window.localStorage.setItem(key, value);+ } catch (e) {+ // In case storage is restricted. Possible reasons+ // 1. Third Party Context in Chrome Incognito mode.+ // 2. Storage limit reached+ return;+ }+ },+};diff --git a/packages/pdf/insertImageInPDF.ts b/packages/pdf/insertImageInPDF.tsindex c8ca0ba3e..bd0a1b49c 100644--- a/packages/pdf/insertImageInPDF.ts+++ b/packages/pdf/insertImageInPDF.ts@@ -1,4 +1,4 @@-import { degrees, PDFDocument, PDFImage, rgb, StandardFonts } from "pdf-lib";+import { PDFDocument } from "pdf-lib";export async function insertImageInPDF(pdfAsBase64: string,@@ -12,12 +12,13 @@ export async function insertImageInPDF(const pages = pdfDoc.getPages();const pdfPage = pages[page];const pngImage = await pdfDoc.embedPng(image);+ const drawSize = { width: 213, height: 50 };pdfPage.drawImage(pngImage, {- x: positionX,- y: positionY,- width: pngImage.width,- height: pngImage.height,+ x: pdfPage.getWidth() - positionX - drawSize.width,+ y: pdfPage.getHeight() - positionY - drawSize.height,+ width: drawSize.width,+ height: drawSize.height,});const pdfAsUint8Array = await pdfDoc.save();diff --git a/packages/pdf/insertTextInPDF.ts b/packages/pdf/insertTextInPDF.tsindex 99c685413..8364c5e40 100644--- a/packages/pdf/insertTextInPDF.ts+++ b/packages/pdf/insertTextInPDF.ts@@ -1,4 +1,4 @@-import { degrees, PDFDocument, rgb, StandardFonts } from "pdf-lib";+import { PDFDocument, rgb, StandardFonts } from "pdf-lib";export async function insertTextInPDF(pdfAsBase64: string,@@ -13,10 +13,12 @@ export async function insertTextInPDF(const helveticaFont = await pdfDoc.embedFont(StandardFonts.Helvetica);const pages = pdfDoc.getPages();- const firstPage = pages[page];- firstPage.drawText(text, {- x: positionX,- y: positionY,+ const pdfPage = pages[page];+ const lineHeightEsimate = 25;++ pdfPage.drawText(text, {+ x: pdfPage.getWidth() - positionX,+ y: pdfPage.getHeight() - positionY - lineHeightEsimate,size: 25,font: helveticaFont,color: rgb(0, 0, 0),