@embedpdf/plugin-print 2.0.0 → 2.0.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.
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sources":["../../src/svelte/hooks/use-print.svelte.ts","../../src/svelte/components/print.svelte","../../src/svelte/index.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/svelte';\nimport { PrintPlugin, PrintScope } from '@embedpdf/plugin-print';\n\n/**\n * Hook to get the raw print plugin instance.\n * Useful for accessing plugin-specific properties or methods not exposed in the capability.\n */\nexport const usePrintPlugin = () => usePlugin<PrintPlugin>(PrintPlugin.id);\n\n/**\n * Hook to get the print plugin's capability API.\n * This provides methods for initiating print operations.\n */\nexport const usePrintCapability = () => useCapability<PrintPlugin>(PrintPlugin.id);\n\n// Define the return type explicitly to maintain type safety\ninterface UsePrintReturn {\n provides: PrintScope | null;\n}\n\n/**\n * Hook for print capability for a specific document\n * @param getDocumentId Function that returns the document ID\n */\nexport const usePrint = (getDocumentId: () => string | null): UsePrintReturn => {\n const capability = usePrintCapability();\n\n // Reactive documentId\n const documentId = $derived(getDocumentId());\n\n // Scoped capability for current docId\n const scopedProvides = $derived(\n capability.provides && documentId ? capability.provides.forDocument(documentId) : null,\n );\n\n return {\n get provides() {\n return scopedProvides;\n },\n };\n};\n","<script lang=\"ts\">\n import { usePrintCapability, usePrintPlugin } from '../hooks';\n\n const printCapability = usePrintCapability();\n const printPlugin = usePrintPlugin();\n\n let iframeRef = $state<HTMLIFrameElement | null>(null);\n let urlRef: string | null = null;\n\n $effect(() => {\n if (!printCapability.provides || !printPlugin.plugin) return;\n\n const unsubscribe = printPlugin.plugin.onPrintRequest(({ buffer, task }) => {\n const iframe = iframeRef;\n if (!iframe) return;\n\n // cleanup old URL\n if (urlRef) {\n URL.revokeObjectURL(urlRef);\n urlRef = null;\n }\n\n const url = URL.createObjectURL(new Blob([buffer], { type: 'application/pdf' }));\n urlRef = url;\n\n iframe.onload = () => {\n if (iframe.src === url) {\n task.progress({ stage: 'iframe-ready', message: 'Ready to print' });\n iframe.contentWindow?.focus();\n iframe.contentWindow?.print();\n task.progress({ stage: 'printing', message: 'Print dialog opened' });\n task.resolve(buffer);\n }\n };\n\n iframe.src = url;\n });\n\n return () => {\n unsubscribe();\n if (urlRef) {\n URL.revokeObjectURL(urlRef);\n urlRef = null;\n }\n };\n });\n</script>\n\n<iframe\n bind:this={iframeRef}\n title=\"Print Document\"\n src=\"about:blank\"\n style=\"position: absolute; display: none;\"\n>\n</iframe>\n","export * from './hooks';\nexport * from './components';\nexport * from '@embedpdf/plugin-print';\n\nimport { createPluginPackage } from '@embedpdf/core';\nimport { PrintPluginPackage as BasePrintPackage } from '@embedpdf/plugin-print';\nimport { PrintFrame } from './components';\n\n/**\n * Build a Svelte-flavoured package by adding the Svelte PrintFrame utility.\n * Keeps heavy logic inside the plugin; framework layer just wires the component.\n */\nexport const PrintPluginPackage = createPluginPackage(BasePrintPackage)\n .addUtility(PrintFrame)\n .build();\n"],"names":["usePrintPlugin","usePlugin","PrintPlugin","id","usePrintCapability","useCapability","printCapability","printPlugin","iframeRef","urlRef","$","user_effect","provides","plugin","unsubscribe","onPrintRequest","buffer","task","iframe","URL","revokeObjectURL","url","createObjectURL","Blob","type","onload","src","progress","stage","message","_a","contentWindow","focus","_b","print","resolve","bind_this","iframe_1","$$value","set","PrintPluginPackage","createPluginPackage","BasePrintPackage","addUtility","PrintFrame","build","getDocumentId","capability","documentId","scopedProvides","derived","forDocument"],"mappings":"uiBAOaA,EAAA,IAAuBC,YAAuBC,EAAAA,YAAYC,IAM1DC,EAAA,IAA2BC,gBAA2BH,EAAAA,YAAYC,4JCVvE,MAAAG,EAAkBF,IAClBG,EAAcP,IAEhB,IAAAQ,UAA6C,MAC7CC,EAAwB,KAE5BC,EAAAC,YAAO,KACA,IAAAL,EAAgBM,WAAaL,EAAYM,OAAM,aAE9CC,EAAcP,EAAYM,OAAOE,eAAc,EAAIC,SAAQC,WACzD,MAAAC,QAASV,OACVU,EAAM,OAGPT,IACFU,IAAIC,gBAAgBX,GACpBA,EAAS,YAGLY,EAAMF,IAAIG,gBAAe,IAAKC,KAAI,CAAEP,GAAM,CAAKQ,KAAM,qBAC3Df,EAASY,EAETH,EAAOO,OAAM,aACPP,EAAOQ,MAAQL,IACjBJ,EAAKU,SAAQ,CAAGC,MAAO,eAAgBC,QAAS,mBAChD,OAAAC,EAAAZ,EAAOa,gBAAPD,EAAsBE,QACtB,OAAAC,EAAAf,EAAOa,gBAAPE,EAAsBC,QACtBjB,EAAKU,SAAQ,CAAGC,MAAO,WAAYC,QAAS,wBAC5CZ,EAAKkB,QAAQnB,KAIjBE,EAAOQ,IAAML,IAGF,MAAA,KACXP,IACIL,IACFU,IAAIC,gBAAgBX,GACpBA,EAAS,mBAOJC,EAAA0B,UAAAC,EAAAC,GAAA5B,EAAA6B,IAAA/B,eAAAA,yBAHb,CClCO,MAAMgC,EAAqBC,EAAAA,oBAAoBC,EAAAA,oBACnDC,WAAWC,GACXC,2EFUsBC,IACjB,MAAAC,EAAa3C,IAGb4C,YAAsBF,GAGtBG,EAAAvC,EAAAwC,QAAA,IACJH,EAAWnC,gBAAYoC,GAAaD,EAAWnC,SAASuC,kBAAYH,IAAc,aAI9E,YAAApC,gBACKqC,EACT"}
1
+ {"version":3,"file":"index.cjs","sources":["../../src/svelte/hooks/use-print.svelte.ts","../../src/svelte/components/print.svelte","../../src/svelte/index.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/svelte';\nimport { PrintPlugin, PrintScope } from '@embedpdf/plugin-print';\n\n/**\n * Hook to get the raw print plugin instance.\n * Useful for accessing plugin-specific properties or methods not exposed in the capability.\n */\nexport const usePrintPlugin = () => usePlugin<PrintPlugin>(PrintPlugin.id);\n\n/**\n * Hook to get the print plugin's capability API.\n * This provides methods for initiating print operations.\n */\nexport const usePrintCapability = () => useCapability<PrintPlugin>(PrintPlugin.id);\n\n// Define the return type explicitly to maintain type safety\ninterface UsePrintReturn {\n provides: PrintScope | null;\n}\n\n/**\n * Hook for print capability for a specific document\n * @param getDocumentId Function that returns the document ID\n */\nexport const usePrint = (getDocumentId: () => string | null): UsePrintReturn => {\n const capability = usePrintCapability();\n\n // Reactive documentId\n const documentId = $derived(getDocumentId());\n\n // Scoped capability for current docId\n const scopedProvides = $derived(\n capability.provides && documentId ? capability.provides.forDocument(documentId) : null,\n );\n\n return {\n get provides() {\n return scopedProvides;\n },\n };\n};\n","<script lang=\"ts\">\n import { usePrintCapability, usePrintPlugin } from '../hooks';\n\n const printCapability = usePrintCapability();\n const printPlugin = usePrintPlugin();\n\n let iframeRef = $state<HTMLIFrameElement | null>(null);\n let urlRef: string | null = null;\n\n $effect(() => {\n if (!printCapability.provides || !printPlugin.plugin) return;\n\n const unsubscribe = printPlugin.plugin.onPrintRequest(({ buffer, task }) => {\n const iframe = iframeRef;\n if (!iframe) return;\n\n // cleanup old URL\n if (urlRef) {\n URL.revokeObjectURL(urlRef);\n urlRef = null;\n }\n\n const url = URL.createObjectURL(new Blob([buffer], { type: 'application/pdf' }));\n urlRef = url;\n\n iframe.onload = () => {\n if (iframe.src === url) {\n task.progress({ stage: 'iframe-ready', message: 'Ready to print' });\n iframe.contentWindow?.focus();\n iframe.contentWindow?.print();\n task.progress({ stage: 'printing', message: 'Print dialog opened' });\n task.resolve(buffer);\n }\n };\n\n iframe.src = url;\n });\n\n return () => {\n unsubscribe();\n if (urlRef) {\n URL.revokeObjectURL(urlRef);\n urlRef = null;\n }\n };\n });\n</script>\n\n<iframe\n bind:this={iframeRef}\n title=\"Print Document\"\n src=\"about:blank\"\n style=\"position: absolute; display: none;\"\n>\n</iframe>\n","export * from './hooks';\nexport * from './components';\nexport * from '@embedpdf/plugin-print';\n\nimport { createPluginPackage } from '@embedpdf/core';\nimport { PrintPluginPackage as BasePrintPackage } from '@embedpdf/plugin-print';\nimport { PrintFrame } from './components';\n\n/**\n * Build a Svelte-flavoured package by adding the Svelte PrintFrame utility.\n * Keeps heavy logic inside the plugin; framework layer just wires the component.\n */\nexport const PrintPluginPackage = createPluginPackage(BasePrintPackage)\n .addUtility(PrintFrame)\n .build();\n"],"names":["usePrintPlugin","usePlugin","PrintPlugin","id","usePrintCapability","useCapability","printCapability","printPlugin","iframeRef","$","state","urlRef","user_effect","provides","plugin","unsubscribe","onPrintRequest","buffer","task","iframe","URL","revokeObjectURL","url","createObjectURL","Blob","type","onload","src","progress","stage","message","_a","contentWindow","focus","_b","print","resolve","iframe_1","root","$$value","set","get","PrintPluginPackage","createPluginPackage","BasePrintPackage","addUtility","PrintFrame","build","getDocumentId","capability","documentId","scopedProvides","derived","forDocument"],"mappings":"uiBAOaA,EAAA,IAAuBC,YAAuBC,EAAAA,YAAYC,IAM1DC,EAAA,IAA2BC,gBAA2BH,EAAAA,YAAYC,4JCVvE,MAAAG,EAAkBF,IAClBG,EAAcP,QAEhBQ,EAAYC,EAAAC,MAAiC,MAC7CC,EAAwB,KAE5BF,EAAAG,YAAO,KACA,IAAAN,EAAgBO,WAAaN,EAAYO,OAAM,aAE9CC,EAAcR,EAAYO,OAAOE,eAAc,EAAIC,SAAQC,WACzD,MAAAC,QAASX,OACVW,EAAM,OAGPR,IACFS,IAAIC,gBAAgBV,GACpBA,EAAS,YAGLW,EAAMF,IAAIG,gBAAe,IAAKC,KAAI,CAAEP,GAAM,CAAKQ,KAAM,qBAC3Dd,EAASW,EAETH,EAAOO,OAAM,aACPP,EAAOQ,MAAQL,IACjBJ,EAAKU,SAAQ,CAAGC,MAAO,eAAgBC,QAAS,mBAChD,OAAAC,EAAAZ,EAAOa,gBAAPD,EAAsBE,QACtB,OAAAC,EAAAf,EAAOa,gBAAPE,EAAsBC,QACtBjB,EAAKU,SAAQ,CAAGC,MAAO,WAAYC,QAAS,wBAC5CZ,EAAKkB,QAAQnB,KAIjBE,EAAOQ,IAAML,IAGF,MAAA,KACXP,IACIJ,IACFS,IAAIC,gBAAgBV,GACpBA,EAAS,aAMhB0B,EAAKC,gBAALD,EAAKE,GAAA9B,EAAA+B,IACOhC,EAAS+B,GAAA,IAAA9B,EAAAgC,IAATjC,eADZ6B,UAFD,CClCO,MAAMK,EAAqBC,EAAAA,oBAAoBC,EAAAA,oBACnDC,WAAWC,GACXC,2EFUsBC,IACjB,MAAAC,EAAa7C,IAGb8C,YAAsBF,GAGtBG,EAAA1C,EAAA2C,QAAA,IACJH,EAAWpC,gBAAYqC,GAAaD,EAAWpC,SAASwC,kBAAYH,IAAc,aAI9E,YAAArC,gBACKsC,EACT"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/svelte/hooks/use-print.svelte.ts","../../src/svelte/components/print.svelte","../../src/svelte/index.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/svelte';\nimport { PrintPlugin, PrintScope } from '@embedpdf/plugin-print';\n\n/**\n * Hook to get the raw print plugin instance.\n * Useful for accessing plugin-specific properties or methods not exposed in the capability.\n */\nexport const usePrintPlugin = () => usePlugin<PrintPlugin>(PrintPlugin.id);\n\n/**\n * Hook to get the print plugin's capability API.\n * This provides methods for initiating print operations.\n */\nexport const usePrintCapability = () => useCapability<PrintPlugin>(PrintPlugin.id);\n\n// Define the return type explicitly to maintain type safety\ninterface UsePrintReturn {\n provides: PrintScope | null;\n}\n\n/**\n * Hook for print capability for a specific document\n * @param getDocumentId Function that returns the document ID\n */\nexport const usePrint = (getDocumentId: () => string | null): UsePrintReturn => {\n const capability = usePrintCapability();\n\n // Reactive documentId\n const documentId = $derived(getDocumentId());\n\n // Scoped capability for current docId\n const scopedProvides = $derived(\n capability.provides && documentId ? capability.provides.forDocument(documentId) : null,\n );\n\n return {\n get provides() {\n return scopedProvides;\n },\n };\n};\n","<script lang=\"ts\">\n import { usePrintCapability, usePrintPlugin } from '../hooks';\n\n const printCapability = usePrintCapability();\n const printPlugin = usePrintPlugin();\n\n let iframeRef = $state<HTMLIFrameElement | null>(null);\n let urlRef: string | null = null;\n\n $effect(() => {\n if (!printCapability.provides || !printPlugin.plugin) return;\n\n const unsubscribe = printPlugin.plugin.onPrintRequest(({ buffer, task }) => {\n const iframe = iframeRef;\n if (!iframe) return;\n\n // cleanup old URL\n if (urlRef) {\n URL.revokeObjectURL(urlRef);\n urlRef = null;\n }\n\n const url = URL.createObjectURL(new Blob([buffer], { type: 'application/pdf' }));\n urlRef = url;\n\n iframe.onload = () => {\n if (iframe.src === url) {\n task.progress({ stage: 'iframe-ready', message: 'Ready to print' });\n iframe.contentWindow?.focus();\n iframe.contentWindow?.print();\n task.progress({ stage: 'printing', message: 'Print dialog opened' });\n task.resolve(buffer);\n }\n };\n\n iframe.src = url;\n });\n\n return () => {\n unsubscribe();\n if (urlRef) {\n URL.revokeObjectURL(urlRef);\n urlRef = null;\n }\n };\n });\n</script>\n\n<iframe\n bind:this={iframeRef}\n title=\"Print Document\"\n src=\"about:blank\"\n style=\"position: absolute; display: none;\"\n>\n</iframe>\n","export * from './hooks';\nexport * from './components';\nexport * from '@embedpdf/plugin-print';\n\nimport { createPluginPackage } from '@embedpdf/core';\nimport { PrintPluginPackage as BasePrintPackage } from '@embedpdf/plugin-print';\nimport { PrintFrame } from './components';\n\n/**\n * Build a Svelte-flavoured package by adding the Svelte PrintFrame utility.\n * Keeps heavy logic inside the plugin; framework layer just wires the component.\n */\nexport const PrintPluginPackage = createPluginPackage(BasePrintPackage)\n .addUtility(PrintFrame)\n .build();\n"],"names":["BasePrintPackage","PrintFrame"],"mappings":";;;;;;AAOa,MAAA,iBAAA,MAAuB,UAAuB,YAAY,EAAE;AAM5D,MAAA,qBAAA,MAA2B,cAA2B,YAAY,EAAE;MAWpE,WAAA,CAAY,kBAAuD;AACxE,QAAA,aAAa,mBAAA;AAGb,QAAA,uBAAsB,aAAA;AAGtB,QAAA,iBAAA,EAAA,QAAA,MACJ,WAAW,kBAAY,UAAA,IAAa,WAAW,SAAS,kBAAY,UAAU,CAAA,IAAI,IAAA;;IAI9E,IAAA,WAAW;mBACN,cAAA;AAAA,IACT;AAAA;AAEJ;;kCCxCA;;AAGQ,QAAA,kBAAkB,mBAAkB;AACpC,QAAA,cAAc,eAAc;AAE9B,MAAA,oBAA6C,IAAI;AACjD,MAAA,SAAwB;AAE5B,IAAA,YAAO,MAAO;AACP,QAAA,CAAA,gBAAgB,YAAQ,CAAK,YAAY,OAAM;UAE9C,cAAc,YAAY,OAAO,eAAc,CAAA,EAAI,QAAQ,WAAW;AACpE,YAAA,eAAS,SAAS;WACnB,OAAM;AAGP,UAAA,QAAQ;AACV,YAAI,gBAAgB,MAAM;AAC1B,iBAAS;AAAA,MACX;YAEM,MAAM,IAAI,gBAAe,IAAK,KAAI,CAAE,MAAM,GAAA,EAAK,MAAM,kBAAiB,CAAA,CAAA;AAC5E,eAAS;AAET,aAAO,SAAM,MAAS;;AAChB,YAAA,OAAO,QAAQ,KAAK;AACtB,eAAK,SAAQ,EAAG,OAAO,gBAAgB,SAAS,kBAAgB;AAChE,uBAAO,kBAAP,mBAAsB;AACtB,uBAAO,kBAAP,mBAAsB;AACtB,eAAK,SAAQ,EAAG,OAAO,YAAY,SAAS,uBAAqB;AACjE,eAAK,QAAQ,MAAM;AAAA,QACrB;AAAA,MACF;AAEA,aAAO,MAAM;AAAA,IACf,CAAC;AAEY,WAAA,MAAA;AACX,kBAAW;AACP,UAAA,QAAQ;AACV,YAAI,gBAAgB,MAAM;AAC1B,iBAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF,CAAC;;AAIU,IAAA,UAAA,UAAA,CAAA,YAAA,EAAA,IAAA,iCAAA,SAAS,CAAA;;;AAHtB;AClCO,MAAM,qBAAqB,oBAAoBA,oBAAgB,EACnE,WAAWC,KAAU,EACrB,MAAA;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/svelte/hooks/use-print.svelte.ts","../../src/svelte/components/print.svelte","../../src/svelte/index.ts"],"sourcesContent":["import { useCapability, usePlugin } from '@embedpdf/core/svelte';\nimport { PrintPlugin, PrintScope } from '@embedpdf/plugin-print';\n\n/**\n * Hook to get the raw print plugin instance.\n * Useful for accessing plugin-specific properties or methods not exposed in the capability.\n */\nexport const usePrintPlugin = () => usePlugin<PrintPlugin>(PrintPlugin.id);\n\n/**\n * Hook to get the print plugin's capability API.\n * This provides methods for initiating print operations.\n */\nexport const usePrintCapability = () => useCapability<PrintPlugin>(PrintPlugin.id);\n\n// Define the return type explicitly to maintain type safety\ninterface UsePrintReturn {\n provides: PrintScope | null;\n}\n\n/**\n * Hook for print capability for a specific document\n * @param getDocumentId Function that returns the document ID\n */\nexport const usePrint = (getDocumentId: () => string | null): UsePrintReturn => {\n const capability = usePrintCapability();\n\n // Reactive documentId\n const documentId = $derived(getDocumentId());\n\n // Scoped capability for current docId\n const scopedProvides = $derived(\n capability.provides && documentId ? capability.provides.forDocument(documentId) : null,\n );\n\n return {\n get provides() {\n return scopedProvides;\n },\n };\n};\n","<script lang=\"ts\">\n import { usePrintCapability, usePrintPlugin } from '../hooks';\n\n const printCapability = usePrintCapability();\n const printPlugin = usePrintPlugin();\n\n let iframeRef = $state<HTMLIFrameElement | null>(null);\n let urlRef: string | null = null;\n\n $effect(() => {\n if (!printCapability.provides || !printPlugin.plugin) return;\n\n const unsubscribe = printPlugin.plugin.onPrintRequest(({ buffer, task }) => {\n const iframe = iframeRef;\n if (!iframe) return;\n\n // cleanup old URL\n if (urlRef) {\n URL.revokeObjectURL(urlRef);\n urlRef = null;\n }\n\n const url = URL.createObjectURL(new Blob([buffer], { type: 'application/pdf' }));\n urlRef = url;\n\n iframe.onload = () => {\n if (iframe.src === url) {\n task.progress({ stage: 'iframe-ready', message: 'Ready to print' });\n iframe.contentWindow?.focus();\n iframe.contentWindow?.print();\n task.progress({ stage: 'printing', message: 'Print dialog opened' });\n task.resolve(buffer);\n }\n };\n\n iframe.src = url;\n });\n\n return () => {\n unsubscribe();\n if (urlRef) {\n URL.revokeObjectURL(urlRef);\n urlRef = null;\n }\n };\n });\n</script>\n\n<iframe\n bind:this={iframeRef}\n title=\"Print Document\"\n src=\"about:blank\"\n style=\"position: absolute; display: none;\"\n>\n</iframe>\n","export * from './hooks';\nexport * from './components';\nexport * from '@embedpdf/plugin-print';\n\nimport { createPluginPackage } from '@embedpdf/core';\nimport { PrintPluginPackage as BasePrintPackage } from '@embedpdf/plugin-print';\nimport { PrintFrame } from './components';\n\n/**\n * Build a Svelte-flavoured package by adding the Svelte PrintFrame utility.\n * Keeps heavy logic inside the plugin; framework layer just wires the component.\n */\nexport const PrintPluginPackage = createPluginPackage(BasePrintPackage)\n .addUtility(PrintFrame)\n .build();\n"],"names":["BasePrintPackage","PrintFrame"],"mappings":";;;;;;AAOa,MAAA,iBAAA,MAAuB,UAAuB,YAAY,EAAE;AAM5D,MAAA,qBAAA,MAA2B,cAA2B,YAAY,EAAE;MAWpE,WAAA,CAAY,kBAAuD;AACxE,QAAA,aAAa,mBAAA;AAGb,QAAA,uBAAsB,aAAA;AAGtB,QAAA,iBAAA,EAAA,QAAA,MACJ,WAAW,kBAAY,UAAA,IAAa,WAAW,SAAS,kBAAY,UAAU,CAAA,IAAI,IAAA;;IAI9E,IAAA,WAAW;mBACN,cAAA;AAAA,IACT;AAAA;AAEJ;;kCCxCA;;AAGQ,QAAA,kBAAkB,mBAAkB;AACpC,QAAA,cAAc,eAAc;MAE9B,YAAY,EAAA,MAAiC,IAAI;AACjD,MAAA,SAAwB;AAE5B,IAAA,YAAO,MAAO;AACP,QAAA,CAAA,gBAAgB,YAAQ,CAAK,YAAY,OAAM;UAE9C,cAAc,YAAY,OAAO,eAAc,CAAA,EAAI,QAAQ,WAAW;AACpE,YAAA,eAAS,SAAS;WACnB,OAAM;AAGP,UAAA,QAAQ;AACV,YAAI,gBAAgB,MAAM;AAC1B,iBAAS;AAAA,MACX;YAEM,MAAM,IAAI,gBAAe,IAAK,KAAI,CAAE,MAAM,GAAA,EAAK,MAAM,kBAAiB,CAAA,CAAA;AAC5E,eAAS;AAET,aAAO,SAAM,MAAS;;AAChB,YAAA,OAAO,QAAQ,KAAK;AACtB,eAAK,SAAQ,EAAG,OAAO,gBAAgB,SAAS,kBAAgB;AAChE,uBAAO,kBAAP,mBAAsB;AACtB,uBAAO,kBAAP,mBAAsB;AACtB,eAAK,SAAQ,EAAG,OAAO,YAAY,SAAS,uBAAqB;AACjE,eAAK,QAAQ,MAAM;AAAA,QACrB;AAAA,MACF;AAEA,aAAO,MAAM;AAAA,IACf,CAAC;AAEY,WAAA,MAAA;AACX,kBAAW;AACP,UAAA,QAAQ;AACV,YAAI,gBAAgB,MAAM;AAC1B,iBAAS;AAAA,MACX;AAAA,IACF;AAAA,EACF,CAAC;MAGF,WAAK,KAAA;cAAL,UAAK,CAAA,YAAA,EAAA,IACO,WAAS,OAAA,GAAA,MAAA,EAAA,IAAT,SAAS,CAAA;qBADrB,QAAK;;AAFN;AClCO,MAAM,qBAAqB,oBAAoBA,oBAAgB,EACnE,WAAWC,KAAU,EACrB,MAAA;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@embedpdf/plugin-print",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.cjs",
@@ -34,14 +34,14 @@
34
34
  }
35
35
  },
36
36
  "dependencies": {
37
- "@embedpdf/models": "2.0.0"
37
+ "@embedpdf/models": "2.0.1"
38
38
  },
39
39
  "devDependencies": {
40
40
  "@types/react": "^18.2.0",
41
41
  "@types/react-dom": "^18.2.0",
42
42
  "typescript": "^5.0.0",
43
43
  "@embedpdf/build": "1.1.0",
44
- "@embedpdf/core": "2.0.0"
44
+ "@embedpdf/core": "2.0.1"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "react": ">=18.0.0",
@@ -49,7 +49,7 @@
49
49
  "preact": "^10.26.4",
50
50
  "vue": ">=3.2.0",
51
51
  "svelte": ">=5 <6",
52
- "@embedpdf/core": "2.0.0"
52
+ "@embedpdf/core": "2.0.1"
53
53
  },
54
54
  "files": [
55
55
  "dist",