@signiphi/pdf-compose 0.1.0-beta.6 → 0.1.0-beta.7

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.
@@ -0,0 +1 @@
1
+ export {};
@@ -1,7 +1,7 @@
1
1
  import type { JSONContent } from '@tiptap/core';
2
2
  import { type FormFieldPosition, type DocumentGeneratorField } from '../types';
3
3
  export interface PdfGenerationResult {
4
- pdfBytes: Uint8Array;
4
+ pdfBytes: Uint8Array<ArrayBuffer>;
5
5
  fieldPositions: Map<string, FormFieldPosition>;
6
6
  /** Non-fatal warnings about fields that failed to create */
7
7
  fieldWarnings?: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"pdf-generator.d.ts","sourceRoot":"","sources":["../../src/utils/pdf-generator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAiB,KAAK,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC;AA4jD9F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,UAAU,CAAC;IACrB,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC/C,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC,2EAA2E;IAC3E,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,0EAA0E;IAC1E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kFAAkF;IAClF,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACnC;AAED;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,mBAAmB,CAAC,CAsE9B"}
1
+ {"version":3,"file":"pdf-generator.d.ts","sourceRoot":"","sources":["../../src/utils/pdf-generator.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAiB,KAAK,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,UAAU,CAAC;AA4jD9F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAClC,cAAc,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC;IAC/C,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,oBAAoB;IACnC,2EAA2E;IAC3E,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,0EAA0E;IAC1E,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,kFAAkF;IAClF,MAAM,CAAC,EAAE,sBAAsB,EAAE,CAAC;CACnC;AAED;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAC1C,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE,oBAAyB,GACjC,OAAO,CAAC,mBAAmB,CAAC,CAsE9B"}
@@ -1,6 +1,6 @@
1
1
  import type { JSONContent } from '@tiptap/core';
2
2
  export interface HeadlessPdfResult {
3
- pdfBytes: Uint8Array;
3
+ pdfBytes: Uint8Array<ArrayBuffer>;
4
4
  }
5
5
  /**
6
6
  * Generate a PDF from TipTap JSON content with variable values applied.
@@ -1 +1 @@
1
- {"version":3,"file":"template-pipeline.d.ts","sourceRoot":"","sources":["../../src/utils/template-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAMhD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,UAAU,CAAC;CACtB;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,OAAO,CAAC,iBAAiB,CAAC,CAa5B;AAED;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,OAAO,CAAC,iBAAiB,CAAC,CAG5B"}
1
+ {"version":3,"file":"template-pipeline.d.ts","sourceRoot":"","sources":["../../src/utils/template-pipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAMhD,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;CACnC;AAED;;;;;GAKG;AACH,wBAAsB,qBAAqB,CACzC,OAAO,EAAE,WAAW,EACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,OAAO,CAAC,iBAAiB,CAAC,CAa5B;AAED;;;;;;;GAOG;AACH,wBAAsB,uBAAuB,CAC3C,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAC7B,OAAO,CAAC,iBAAiB,CAAC,CAG5B"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signiphi/pdf-compose",
3
- "version": "0.1.0-beta.6",
3
+ "version": "0.1.0-beta.7",
4
4
  "description": "Markdown-based document composer with field placeholders for the signiphi signing pipeline",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.mjs",
@@ -16,7 +16,11 @@
16
16
  "require": "./dist/index.js",
17
17
  "default": "./dist/index.js"
18
18
  },
19
- "./styles": "./dist/styles/index.css",
19
+ "./styles": {
20
+ "types": "./dist/styles/index.d.ts",
21
+ "import": "./dist/styles/index.css",
22
+ "default": "./dist/styles/index.css"
23
+ },
20
24
  "./styles/source": "./src/styles/index.css",
21
25
  "./src/styles/index.css": "./src/styles/index.css",
22
26
  "./dist/styles/index.css": "./dist/styles/index.css"
@@ -27,7 +31,7 @@
27
31
  "README.md"
28
32
  ],
29
33
  "scripts": {
30
- "build": "tsup && tsc --emitDeclarationOnly --declaration --outDir dist && node -e \"require('fs').mkdirSync('dist/styles', {recursive: true})\" && postcss src/styles/index.css -o dist/styles/index.css",
34
+ "build": "tsup && tsc --emitDeclarationOnly --declaration --outDir dist && node -e \"require('fs').mkdirSync('dist/styles', {recursive: true})\" && postcss src/styles/index.css -o dist/styles/index.css && node -e \"require('fs').copyFileSync('src/styles/index.d.ts','dist/styles/index.d.ts')\"",
31
35
  "dev": "tsup --watch",
32
36
  "type-check": "tsc --noEmit"
33
37
  },
@@ -0,0 +1 @@
1
+ export {};