Comparing version 1.0.51 to 1.0.52
@@ -1,2 +0,12 @@ | ||
/******/ (function(modules) { // webpackBootstrap | ||
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(); | ||
else if(typeof define === 'function' && define.amd) | ||
define([], factory); | ||
else if(typeof exports === 'object') | ||
exports["printJS"] = factory(); | ||
else | ||
root["printJS"] = factory(); | ||
})(window, function() { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
/******/ // The module cache | ||
@@ -111,9 +121,9 @@ /******/ var installedModules = {}; | ||
var printjs = _init2.default.init; | ||
var printJS = _init2.default.init; | ||
if (typeof window !== 'undefined') { | ||
window.printJS = printjs; | ||
window.printJS = printJS; | ||
} | ||
exports.default = printjs; | ||
exports.default = printJS; | ||
@@ -1103,3 +1113,4 @@ /***/ }), | ||
/******/ }); | ||
/******/ })["default"]; | ||
}); | ||
//# sourceMappingURL=print.map |
@@ -1,33 +0,31 @@ | ||
import 'print-js/dist/print'; | ||
declare type PrintTypes = 'pdf' | 'html' | 'image' | 'json'; | ||
export interface Configuration { | ||
printable: any; | ||
fallbackPrintable?: string; | ||
type?: string; | ||
documentTitle?: string; | ||
header?: any; | ||
headerStyle?: string; | ||
maxWidth?: number; | ||
font?: string; | ||
font_size?: string; | ||
honorMarginPadding?: boolean; | ||
honorColor?: boolean; | ||
targetStyle?: string | string[]; | ||
targetStyles?: string | string[]; | ||
properties?: any; | ||
gridHeaderStyle?: string; | ||
gridStyle?: string; | ||
showModal?: boolean; | ||
onLoadingStart?: () => void; | ||
onLoadingEnd?: () => void; | ||
modalMessage?: string; | ||
frameId?: string; | ||
ignoreElements?: string | string[]; | ||
imageStyle?: string; | ||
repeatTableHeader?: boolean; | ||
css?: string | string[]; | ||
style?: string; | ||
scanStyles?: boolean; | ||
printable: any; | ||
fallbackPrintable?: string; | ||
type?: PrintTypes; | ||
documentTitle?: string; | ||
header?: any; | ||
headerStyle?: string; | ||
maxWidth?: number; | ||
font?: string; | ||
font_size?: string; | ||
honorMarginPadding?: boolean; | ||
honorColor?: boolean; | ||
targetStyle?: string | string[]; | ||
targetStyles?: string | string[]; | ||
properties?: any; | ||
gridHeaderStyle?: string; | ||
gridStyle?: string; | ||
showModal?: boolean; | ||
onLoadingStart?: () => void; | ||
onLoadingEnd?: () => void; | ||
modalMessage?: string; | ||
frameId?: string; | ||
ignoreElements?: string | string[]; | ||
imageStyle?: string; | ||
repeatTableHeader?: boolean; | ||
css?: string | string[]; | ||
style?: string; | ||
scanStyles?: boolean; | ||
} | ||
@@ -34,0 +32,0 @@ |
@@ -5,4 +5,5 @@ { | ||
"description": "A tiny javascript library to help printing from the web.", | ||
"version": "1.0.51", | ||
"version": "1.0.52", | ||
"main": "dist/print.js", | ||
"types": "./index.d.ts", | ||
"repository": "https://github.com/crabbly/Print.js", | ||
@@ -9,0 +10,0 @@ "license": "MIT", |
@@ -29,3 +29,3 @@ # Print.js | ||
``` | ||
import print from 'print-js' | ||
import printJS from 'print-js' | ||
``` | ||
@@ -32,0 +32,0 @@ |
import './sass/index.scss' | ||
import print from './js/init' | ||
const printjs = print.init | ||
const printJS = print.init | ||
if (typeof window !== 'undefined') { | ||
window.printJS = printjs | ||
window.printJS = printJS | ||
} | ||
export default printjs | ||
export default printJS |
@@ -11,5 +11,8 @@ const path = require('path') | ||
output: { | ||
library: 'printJS', | ||
libraryTarget: 'umd', | ||
path: path.resolve(__dirname, 'dist'), | ||
filename: 'print.js', | ||
sourceMapFilename: 'print.map' | ||
sourceMapFilename: 'print.map', | ||
libraryExport: 'default' | ||
}, | ||
@@ -16,0 +19,0 @@ module: { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1728
412046