Socket
Socket
Sign inDemoInstall

svelte-pdfjs

Package Overview
Dependencies
68
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.5.0 to 0.6.0

6

CHANGELOG.md
# svelte-pdfjs
## 0.6.0
### Minor Changes
- update to pdf.js v3
## 0.5.0

@@ -4,0 +10,0 @@

6

package.json
{
"name": "svelte-pdfjs",
"version": "0.5.0",
"version": "0.6.0",
"engines": {

@@ -36,5 +36,5 @@ "node": ">=16.0.0"

"peerDependencies": {
"svelte": "^3.46.4",
"pdfjs-dist": "2.16.105"
"svelte": "^3.54.0",
"pdfjs-dist": "3.0.279"
}
}

@@ -18,3 +18,2 @@ import { SvelteComponentTyped } from "svelte";

};
getters: {};
events: {

@@ -27,5 +26,5 @@ /** Dispatched when a document is successfully loaded. */

};
export declare type DocumentProps = typeof __propDef.props;
export declare type DocumentEvents = typeof __propDef.events;
export declare type DocumentSlots = typeof __propDef.slots;
export type DocumentProps = typeof __propDef.props;
export type DocumentEvents = typeof __propDef.events;
export type DocumentSlots = typeof __propDef.slots;
/**

@@ -32,0 +31,0 @@ * Renderless component responsible for just loading the document and providing it to

@@ -35,5 +35,5 @@ import { SvelteComponentTyped } from "svelte";

};
export declare type PageProps = typeof __propDef.props;
export declare type PageEvents = typeof __propDef.events;
export declare type PageSlots = typeof __propDef.slots;
export type PageProps = typeof __propDef.props;
export type PageEvents = typeof __propDef.events;
export type PageSlots = typeof __propDef.slots;
/** Render a page from a PDF document. Must be a child of a `Document` component. */

@@ -40,0 +40,0 @@ export default class Page extends SvelteComponentTyped<PageProps, PageEvents, PageSlots> {

/** @typedef {typeof __propDef.props} AnnotLayerProps */
/** @typedef {typeof __propDef.events} AnnotLayerEvents */
/** @typedef {typeof __propDef.slots} AnnotLayerSlots */
export default class AnnotLayer extends SvelteComponentTyped<{}, {
export default class AnnotLayer extends SvelteComponentTyped<{
[x: string]: never;
}, {
[evt: string]: CustomEvent<any>;

@@ -13,3 +15,5 @@ }, {}> {

declare const __propDef: {
props: {};
props: {
[x: string]: never;
};
events: {

@@ -16,0 +20,0 @@ [evt: string]: CustomEvent<any>;

@@ -15,7 +15,7 @@ import { SvelteComponentTyped } from "svelte";

};
export declare type PageCanvasProps = typeof __propDef.props;
export declare type PageCanvasEvents = typeof __propDef.events;
export declare type PageCanvasSlots = typeof __propDef.slots;
export type PageCanvasProps = typeof __propDef.props;
export type PageCanvasEvents = typeof __propDef.events;
export type PageCanvasSlots = typeof __propDef.slots;
export default class PageCanvas extends SvelteComponentTyped<PageCanvasProps, PageCanvasEvents, PageCanvasSlots> {
}
export {};
/** @typedef {typeof __propDef.props} PageSvgProps */
/** @typedef {typeof __propDef.events} PageSvgEvents */
/** @typedef {typeof __propDef.slots} PageSvgSlots */
export default class PageSvg extends SvelteComponentTyped<{}, {
export default class PageSvg extends SvelteComponentTyped<{
[x: string]: never;
}, {
[evt: string]: CustomEvent<any>;

@@ -13,3 +15,5 @@ }, {}> {

declare const __propDef: {
props: {};
props: {
[x: string]: never;
};
events: {

@@ -16,0 +20,0 @@ [evt: string]: CustomEvent<any>;

@@ -13,7 +13,7 @@ import { SvelteComponentTyped } from "svelte";

};
export declare type TextLayerProps = typeof __propDef.props;
export declare type TextLayerEvents = typeof __propDef.events;
export declare type TextLayerSlots = typeof __propDef.slots;
export type TextLayerProps = typeof __propDef.props;
export type TextLayerEvents = typeof __propDef.events;
export type TextLayerSlots = typeof __propDef.slots;
export default class TextLayer extends SvelteComponentTyped<TextLayerProps, TextLayerEvents, TextLayerSlots> {
}
export {};

@@ -12,6 +12,2 @@ ## svelte-pdfjs

## Treeshaking
Because of how pdfjs-dist is bundled with webpack, automatic treeshaking isn't possible like it is with ES modules. You can manually patch your installation of `pdfjs-dist` to ignore unused parts and reduce your bundle size if you so wish. [Example](patches/pdfjs-dist%402.16.105.patch)
## SSR

@@ -18,0 +14,0 @@

import type { PDFPageProxy } from 'pdfjs-dist';
import type { PageViewport } from 'pdfjs-dist/types/src/display/display_utils.js';
export declare type MultipleOf90 = 0 | 90 | 180 | 270;
export declare type CalcViewport = (page: PDFPageProxy, rotation: MultipleOf90) => PageViewport;
export type MultipleOf90 = 0 | 90 | 180 | 270;
export type CalcViewport = (page: PDFPageProxy, rotation: MultipleOf90) => PageViewport;
/**

@@ -6,0 +6,0 @@ * A function that returns another function that returns a PageViewport with the given width.

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc