@ztimson/momentum 0.17.0 → 0.19.0

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/dist/pdf.d.ts ADDED
@@ -0,0 +1,24 @@
1
+ import { Api } from './api';
2
+ import { TypedEmitter, TypedEvents } from '@ztimson/utils';
3
+
4
+ export type PdfEvents = TypedEvents & {
5
+ CREATE: (pdf: Blob) => any;
6
+ };
7
+ export declare class Pdf extends TypedEmitter<PdfEvents> {
8
+ private readonly api;
9
+ constructor(api: Api | string);
10
+ private handleResponse;
11
+ fromHtml(html: string, opts?: {
12
+ download?: boolean;
13
+ 'fileName'?: string;
14
+ }): Promise<Blob>;
15
+ fromUrl(url: string, opts?: {
16
+ download?: boolean;
17
+ 'fileName'?: string;
18
+ }): Promise<Blob>;
19
+ fromTemplate(template: string, data: string, opts?: {
20
+ download?: boolean;
21
+ 'fileName'?: string;
22
+ }): Promise<Blob>;
23
+ }
24
+ //# sourceMappingURL=pdf.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pdf.d.ts","sourceRoot":"","sources":["../src/pdf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAW,YAAY,EAAE,KAAK,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAExE,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG;IACrC,MAAM,EAAE,CAAC,GAAG,EAAE,IAAI,KAAK,GAAG,CAAC;CAC3B,CAAA;AAED,qBAAa,GAAI,SAAQ,YAAY,CAAC,SAAS,CAAC;IAC/C,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAO;gBAEf,GAAG,EAAE,GAAG,GAAG,MAAM;YAKf,cAAc;IAW5B,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAM;IAK3E,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,GAAE;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAM;IAKzE,YAAY,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAA;KAAM;CAKjG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ztimson/momentum",
3
- "version": "0.17.0",
3
+ "version": "0.19.0",
4
4
  "description": "Client library for momentum",
5
5
  "keywords": [
6
6
  "Momentum"
@@ -20,7 +20,7 @@
20
20
  "watch": "npx vite build --watch"
21
21
  },
22
22
  "dependencies": {
23
- "@ztimson/utils": "^0.9.0",
23
+ "@ztimson/utils": "^0.10.4",
24
24
  "rxjs": "^7.8.1"
25
25
  },
26
26
  "devDependencies": {