@jasy/vue 1.0.0-alpha.3 → 1.0.0-alpha.5

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.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +6 -1
  3. package/package.json +13 -13
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
@@ -63,7 +63,9 @@ pnpm add @jasy/vue @jasy/pdf vue
63
63
  </TableRow>
64
64
  <TableRow v-for="item in items" :key="item.desc">
65
65
  <TableCell>{{ item.desc }}</TableCell>
66
- <TableCell><Text align="right">{{ item.amount }}</Text></TableCell>
66
+ <TableCell
67
+ ><Text align="right">{{ item.amount }}</Text></TableCell
68
+ >
67
69
  </TableRow>
68
70
  </Table>
69
71
  </Page>
@@ -113,6 +115,9 @@ const props = defineProps<{ font: Uint8Array; logo: Uint8Array }>();
113
115
 
114
116
  - `renderToPdf(root, props?, options?) => Promise<Uint8Array>` - the PDF bytes. Browser or Node.
115
117
  - `renderToPdfString(root, props?, options?) => Promise<string>` - the raw PDF string.
118
+ - `options` are the `@jasy/pdf` `RenderOptions` and flow straight through - e.g.
119
+ `renderToPdf(Doc, props, { encrypt: { userPassword: "secret" } })` for AES-256 password protection (also
120
+ `fonts`, `compress`, `onOverflow`, …).
116
121
  - `toDocumentDescriptor(root, props?)` - the framework-agnostic descriptor (the seam a Node service can
117
122
  receive from the browser).
118
123
  - `jasyVue` - the global-registration plugin (`{ prefix }`).
package/package.json CHANGED
@@ -1,19 +1,22 @@
1
1
  {
2
2
  "name": "@jasy/vue",
3
- "version": "1.0.0-alpha.3",
3
+ "version": "1.0.0-alpha.5",
4
4
  "description": "Author PDFs as Vue components - a thin Vue custom renderer over @jasy/pdf.",
5
5
  "keywords": [
6
- "vue",
7
- "vue3",
6
+ "declarative",
7
+ "invoice",
8
+ "jasy",
8
9
  "pdf",
9
10
  "pdf-generation",
10
- "declarative",
11
11
  "renderer",
12
- "invoice",
13
- "jasy"
12
+ "vue",
13
+ "vue3"
14
14
  ],
15
15
  "license": "MIT",
16
16
  "author": "Florian Heuberger",
17
+ "files": [
18
+ "dist"
19
+ ],
17
20
  "type": "module",
18
21
  "main": "dist/index.js",
19
22
  "types": "dist/index.d.ts",
@@ -27,14 +30,8 @@
27
30
  "import": "./dist/node.js"
28
31
  }
29
32
  },
30
- "files": [
31
- "dist"
32
- ],
33
33
  "dependencies": {
34
- "@jasy/pdf": "1.0.0-alpha.3"
35
- },
36
- "peerDependencies": {
37
- "vue": "^3.4.0"
34
+ "@jasy/pdf": "1.0.0-alpha.5"
38
35
  },
39
36
  "devDependencies": {
40
37
  "@types/node": "^25.9.3",
@@ -44,6 +41,9 @@
44
41
  "vue": "^3.5.13",
45
42
  "vue-pdf-embed": "^2.1.5"
46
43
  },
44
+ "peerDependencies": {
45
+ "vue": "^3.4.0"
46
+ },
47
47
  "scripts": {
48
48
  "build": "tsc",
49
49
  "play": "vite playground --open",