@vivliostyle/print 2.44.1 → 2.45.1

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/index.d.ts ADDED
@@ -0,0 +1,9 @@
1
+ export interface PrintHTMLConfig {
2
+ title?: string;
3
+ printCallback?: (iframeWindow: Window) => void;
4
+ errorCallback?: (message: string) => void;
5
+ hideIframe?: boolean;
6
+ removeIframe?: boolean;
7
+ }
8
+
9
+ export function printHTML(htmlDoc: string, config?: PrintHTMLConfig): void;
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@vivliostyle/print",
3
- "version": "2.44.1",
3
+ "version": "2.45.1",
4
4
  "description": "Allows page-layouting using the vivliostyle for printing within a website without destroying the original layout",
5
5
  "main": "dist/index.cjs.js",
6
6
  "jsnext:main": "dist/index.es6.js",
7
7
  "module": "dist/index.es6.js",
8
+ "types": "index.d.ts",
8
9
  "scripts": {
9
10
  "prebuild": "npm run lint",
10
11
  "build": "esbuild src/index.js --bundle --outfile=dist/index.cjs.js --format=cjs --minify --sourcemap && esbuild src/index.js --bundle --outfile=dist/index.es6.js --format=esm --minify --sourcemap",
@@ -36,7 +37,7 @@
36
37
  "homepage": "https://github.com/vivliostyle/vivliostyle-print#readme",
37
38
  "devDependencies": {
38
39
  "@eslint/js": "^10.0.1",
39
- "@vivliostyle/core": "^2.44.1",
40
+ "@vivliostyle/core": "^2.45.1",
40
41
  "esbuild": "^0.28.1",
41
42
  "eslint": "^10.5.0",
42
43
  "gh-pages": "^6.3.0",