@jasy/vue 1.0.0-alpha.1 → 1.0.0-alpha.2

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/README.md CHANGED
@@ -9,7 +9,7 @@
9
9
  </p>
10
10
 
11
11
  React has [`@react-pdf/renderer`](https://react-pdf.org). Vue had nothing. This is it: a thin Vue custom
12
- renderer over the [`@jasy/pdf`](https://www.npmjs.com/package/@jasy/pdf) engine. You write a component
12
+ renderer over the [`@jasy/pdf`](https://npmx.dev/@jasy/pdf) engine. You write a component
13
13
  tree, you get a real PDF - no headless browser, no server round-trip, no Java.
14
14
 
15
15
  ```vue
@@ -1,4 +1,4 @@
1
- import { type Plugin, type PropType } from "vue";
1
+ import { type PropType } from "vue";
2
2
  import type { ColorInput, Insets, ImageSource, FontSource, PageSizeInput, ColumnWidth } from "@jasy/pdf";
3
3
  export declare const Document: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
4
  align: PropType<"left" | "center" | "right">;
@@ -373,4 +373,3 @@ export declare const DefaultTextStyle: import("vue").DefineComponent<import("vue
373
373
  bold: boolean;
374
374
  italic: boolean;
375
375
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
376
- export declare const jasyVue: Plugin;
@@ -208,33 +208,3 @@ export const DefaultTextStyle = defineComponent({
208
208
  props: defaultTextStyleProps,
209
209
  setup: fwd("default-text-style"),
210
210
  });
211
- const components = {
212
- Document,
213
- Page,
214
- Column,
215
- Row,
216
- Box,
217
- Padding,
218
- Expanded,
219
- Spacer,
220
- Divider,
221
- Image,
222
- Text,
223
- Paragraph,
224
- Span,
225
- Table,
226
- TableRow,
227
- TableCell,
228
- Positioned,
229
- DefaultTextStyle,
230
- };
231
- // Register the components globally, optionally under a `prefix` to avoid name clashes with a UI library:
232
- // `app.use(jasyVue, { prefix: "Pdf" })` → `<PdfRow>`, `<PdfText>`, …
233
- export const jasyVue = {
234
- install(app, options = {}) {
235
- const prefix = options.prefix ?? "";
236
- for (const [name, comp] of Object.entries(components)) {
237
- app.component(prefix + name, comp);
238
- }
239
- },
240
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jasy/vue",
3
- "version": "1.0.0-alpha.1",
3
+ "version": "1.0.0-alpha.2",
4
4
  "description": "Author PDFs as Vue components - a thin Vue custom renderer over @jasy/pdf.",
5
5
  "keywords": [
6
6
  "vue",