@jasy/nuxt 1.0.0-alpha.2 → 1.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +15 -0
- package/dist/module.json +1 -1
- package/package.json +3 -3
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Florian Heuberger
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -92,6 +92,21 @@ export default definePdfHandler(build, { cache: { maxAge: 3600 } });
|
|
|
92
92
|
|
|
93
93
|
Expired entries re-render fresh (`swr` is off by default) - a stale invoice is never served.
|
|
94
94
|
|
|
95
|
+
### Password protection
|
|
96
|
+
|
|
97
|
+
`usePdf` and `definePdfHandler` / `sendPdf` forward `@jasy/pdf` render options via `renderOptions` - so
|
|
98
|
+
AES-256 password protection is one option away, client or server:
|
|
99
|
+
|
|
100
|
+
```ts
|
|
101
|
+
// client
|
|
102
|
+
const { download } = usePdf(Invoice, { renderOptions: { encrypt: { userPassword: "secret" } } });
|
|
103
|
+
|
|
104
|
+
// server
|
|
105
|
+
export default definePdfHandler(build, { renderOptions: { encrypt: { userPassword: "secret" } } });
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
`ownerPassword` + `permissions` are optional. (AES-256 ≠ PDF/A, so this is not for ZUGFeRD invoices.)
|
|
109
|
+
|
|
95
110
|
## What the module sets up
|
|
96
111
|
|
|
97
112
|
- **Components** for templates: `Document` · `Page` · `Column` · `Row` · `Box` · `Padding` · `Text` ·
|
package/dist/module.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jasy/nuxt",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.4",
|
|
4
4
|
"description": "Author PDFs as Vue components in Nuxt - client or server, zero config.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Florian Heuberger",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@nuxt/kit": "^4.4.8",
|
|
31
|
-
"@jasy/pdf": "1.0.0-alpha.
|
|
32
|
-
"@jasy/vue": "1.0.0-alpha.
|
|
31
|
+
"@jasy/pdf": "1.0.0-alpha.5",
|
|
32
|
+
"@jasy/vue": "1.0.0-alpha.5"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@nuxt/devtools": "^3.2.4",
|