{"_id":"@aoexl/sign-vue","_rev":"2-b6ff6ff1dd149abe3ab9a3547ac9525b","name":"@aoexl/sign-vue","dist-tags":{"latest":"1.2.1"},"versions":{"1.0.0":{"name":"@aoexl/sign-vue","version":"1.0.0","license":"UNLICENSED","_id":"@aoexl/sign-vue@1.0.0","maintainers":[{"name":"aoexlpdf","email":"rails2track@gmail.com"}],"dist":{"shasum":"b6291266040400ebcbd4de6468e1cb5c4be979b2","tarball":"https://registry.npmjs.org/@aoexl/sign-vue/-/sign-vue-1.0.0.tgz","fileCount":7,"integrity":"sha512-WQcl6knfDDPq3FVMSq4BaILQn8gSGTtQ77B4L4SHQYPAStmt1fsAS3jRwfNmvROETU6ZBG6DEzOt7j2OEz6Bcw==","signatures":[{"sig":"MEUCIQDUI/Yo/K0iQePEzx4AVHn5MW979NjYvyIbB8FFIrVtcQIga5aqbldvMl21ClOQlmvOvoDCEijRmi93bxO1oY/JARk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17782},"main":"dist/aoexl-sign-vue.cjs","types":"src/index.d.ts","module":"dist/aoexl-sign-vue.js","exports":{".":{"import":"./dist/aoexl-sign-vue.js","require":"./dist/aoexl-sign-vue.cjs"}},"gitHead":"d6527e2b01d9ec3abe63c9d11ce665cfcad5bb6e","private":false,"scripts":{"build":"vite build","prepublishOnly":"npm run build"},"_npmUser":{"name":"aoexlpdf","email":"rails2track@gmail.com"},"_npmVersion":"11.11.1","description":"Vue 3 integration for Aoexl Sign PDF eSignature SDK","directories":{},"_nodeVersion":"25.8.2","dependencies":{"@aoexl/sign":"^1.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"vue":"^3.5.30","vite":"^5.4.2","@vitejs/plugin-vue":"^5.2.4"},"peerDependencies":{"vue":">=3"},"_npmOperationalInternal":{"tmp":"tmp/sign-vue_1.0.0_1775790603507_0.7004970443727763","host":"s3://npm-registry-packages-npm-production"}},"1.2.1":{"name":"@aoexl/sign-vue","version":"1.2.1","description":"Vue 3 integration for Aoexl Sign PDF eSignature SDK","main":"dist/aoexl-sign-vue.cjs","module":"dist/aoexl-sign-vue.js","types":"src/index.d.ts","exports":{".":{"import":"./dist/aoexl-sign-vue.js","require":"./dist/aoexl-sign-vue.cjs"}},"scripts":{"build":"vite build","prepublishOnly":"npm run build"},"peerDependencies":{"vue":">=3"},"dependencies":{"@aoexl/sign":"^1.2.1"},"devDependencies":{"@vitejs/plugin-vue":"^5.2.4","vite":"^5.4.2","vue":"^3.5.30"},"license":"UNLICENSED","private":false,"publishConfig":{"access":"public"},"_id":"@aoexl/sign-vue@1.2.1","gitHead":"e82ea1aaf9fd6dd32a4a93cde388bf27d13779a9","_nodeVersion":"22.19.0","_npmVersion":"10.9.3","dist":{"integrity":"sha512-yJVGEo1ALHEWIWFeb2GqJjyqOY3FTaMFHd9xLZ4gOoAlHk0vLqd8LymI2LKzVAQ6jxsrfkXPl1kmGA4P57V1Iw==","shasum":"18ffe14e1fed6281ed05207a75bf0e854524ab06","tarball":"https://registry.npmjs.org/@aoexl/sign-vue/-/sign-vue-1.2.1.tgz","fileCount":7,"unpackedSize":27068,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICvsFWbJzKdLCPwP1DgutMyymQFBBeBXh+HFrzG4FAx9AiAoud+vq5yxuBAZI10bTrE0+Mv6CuJe9b7XsjY8gwjS0g=="}]},"_npmUser":{"name":"aoexlpdf","email":"rails2track@gmail.com"},"directories":{},"maintainers":[{"name":"aoexlpdf","email":"rails2track@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sign-vue_1.2.1_1776186763401_0.609632082819278"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-10T03:10:03.408Z","modified":"2026-04-14T17:12:43.637Z","1.0.0":"2026-04-10T03:10:03.635Z","1.2.1":"2026-04-14T17:12:43.531Z"},"license":"UNLICENSED","description":"Vue 3 integration for Aoexl Sign PDF eSignature SDK","maintainers":[{"name":"aoexlpdf","email":"rails2track@gmail.com"}],"readme":"# @aoexl/sign-vue\n\nVue 3 integration for the [Aoexl Sign](https://aoexl.com) PDF eSignature SDK.\n\n---\n\n## Installation\n\n```bash\nnpm install @aoexl/sign-vue @aoexl/sign\n# peer dep\nnpm install vue\n```\n\n---\n\n## Quick start\n\n```vue\n<script setup>\nimport { AoexlSign } from '@aoexl/sign-vue'\n\nconst signers = [{ name: 'Jane Doe', email: 'jane@example.com', role: 'signer' }]\n\nfunction onComplete({ signedPdfBytes, fields }) {\n  console.log('Signing complete', fields)\n  // upload signedPdfBytes to your server\n}\n\nfunction onError(err) {\n  console.error('Signing error', err)\n}\n</script>\n\n<template>\n  <AoexlSign\n    license-key=\"pk_live_xxxxxxxxxxxx\"\n    pdf-url=\"https://your-server.com/contract.pdf\"\n    mode=\"sign\"\n    :signers=\"signers\"\n    @complete=\"onComplete\"\n    @error=\"onError\"\n    style=\"height: 700px; display: block;\"\n  />\n</template>\n```\n\n---\n\n## Global registration (Vue plugin)\n\n```ts\n// main.ts\nimport { createApp } from 'vue'\nimport AoexlSignPlugin from '@aoexl/sign-vue'\nimport App from './App.vue'\n\ncreateApp(App).use(AoexlSignPlugin).mount('#app')\n```\n\nNow `<AoexlSign>` is available in every component without importing.\n\n---\n\n## Props\n\n| Prop | Type | Default | Description |\n|------|------|---------|-------------|\n| `licenseKey` | `string` | — | **Required.** Your Aoexl license key. |\n| `pdfUrl` | `string` | — | **Required.** URL or data-URL of the PDF. |\n| `mode` | `'prepare' \\| 'sign' \\| 'view'` | `'sign'` | Viewer mode. |\n| `signers` | `Signer[]` | `[]` | Signer definitions. |\n| `fields` | `Field[]` | `[]` | Pre-placed fields (required in `sign`/`view` mode). |\n| `theme` | `{ primary?: string; accent?: string }` | `{}` | Color overrides. |\n| `workerSrc` | `string` | — | Custom PDF.js worker URL. |\n\n## Events\n\n| Event | Payload | Description |\n|-------|---------|-------------|\n| `complete` | `CompleteResult` | Fired when the user finishes signing / preparing. |\n| `error` | `Error` | Fired on any error (license, PDF load, etc.). |\n\n---\n\n## Modes\n\n| Mode | Description |\n|------|-------------|\n| `prepare` | Drag and drop fields onto the PDF; emits `complete` with the field layout and signer list. |\n| `sign` | Present pre-placed fields for the signer to fill and sign. |\n| `view` | Read-only rendering of a signed PDF. |\n\n---\n\n## TypeScript\n\n```ts\nimport type { AoexlSignProps, Field, Signer, CompleteResult } from '@aoexl/sign-vue'\n```\n\n---\n\n## Building\n\n```bash\nnpm run build   # outputs dist/aoexl-sign-vue.js (ESM) + dist/aoexl-sign-vue.cjs (CJS)\n```\n\n---\n\n## License\n\nUNLICENSED — contact [Aoexl](https://aoexl.com) for a commercial license.\n","readmeFilename":"README.md"}