Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: wojtekmaj/react-pdf
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v7.3.2
Choose a base ref
...
head repository: wojtekmaj/react-pdf
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v7.3.3
Choose a head ref
  • 2 commits
  • 10 files changed
  • 1 contributor

Commits on Aug 1, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    wojtekmaj Wojciech Maj
    Copy the full SHA
    c0d1387 View commit details
  2. v7.3.3

    wojtekmaj committed Aug 1, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    wojtekmaj Wojciech Maj
    Copy the full SHA
    e8398bb View commit details
Showing with 16 additions and 9 deletions.
  1. +1 −1 package.json
  2. +1 −1 src/Document.tsx
  3. +1 −1 src/Page/AnnotationLayer.tsx
  4. +1 −1 src/Page/PageCanvas.tsx
  5. +1 −1 src/Page/PageSVG.tsx
  6. +1 −1 src/Page/TextLayer.tsx
  7. +1 −1 src/index.test.ts
  8. +1 −1 src/index.ts
  9. +7 −0 src/pdfjs.ts
  10. +1 −1 src/shared/propTypes.ts
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-pdf",
"version": "7.3.2",
"version": "7.3.3",
"description": "Display PDFs in your React app as easily as if they were images.",
"type": "module",
"sideEffects": [
2 changes: 1 addition & 1 deletion src/Document.tsx
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ import makeCancellable from 'make-cancellable-promise';
import clsx from 'clsx';
import invariant from 'tiny-invariant';
import warning from 'tiny-warning';
import * as pdfjs from 'pdfjs-dist';
import pdfjs from './pdfjs.js';

import DocumentContext from './DocumentContext.js';

2 changes: 1 addition & 1 deletion src/Page/AnnotationLayer.tsx
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import makeCancellable from 'make-cancellable-promise';
import clsx from 'clsx';
import invariant from 'tiny-invariant';
import warning from 'tiny-warning';
import * as pdfjs from 'pdfjs-dist';
import pdfjs from '../pdfjs.js';

import useDocumentContext from '../shared/hooks/useDocumentContext.js';
import usePageContext from '../shared/hooks/usePageContext.js';
2 changes: 1 addition & 1 deletion src/Page/PageCanvas.tsx
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import React, { useCallback, useEffect, useMemo, useRef } from 'react';
import mergeRefs from 'merge-refs';
import invariant from 'tiny-invariant';
import warning from 'tiny-warning';
import * as pdfjs from 'pdfjs-dist';
import pdfjs from '../pdfjs.js';

import StructTree from '../StructTree.js';

2 changes: 1 addition & 1 deletion src/Page/PageSVG.tsx
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ import React, { useEffect, useMemo } from 'react';
import makeCancellable from 'make-cancellable-promise';
import invariant from 'tiny-invariant';
import warning from 'tiny-warning';
import * as pdfjs from 'pdfjs-dist';
import pdfjs from '../pdfjs.js';

import usePageContext from '../shared/hooks/usePageContext.js';
import useResolver from '../shared/hooks/useResolver.js';
2 changes: 1 addition & 1 deletion src/Page/TextLayer.tsx
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ import makeCancellable from 'make-cancellable-promise';
import clsx from 'clsx';
import invariant from 'tiny-invariant';
import warning from 'tiny-warning';
import * as pdfjs from 'pdfjs-dist';
import pdfjs from '../pdfjs.js';

import usePageContext from '../shared/hooks/usePageContext.js';
import useResolver from '../shared/hooks/useResolver.js';
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as pdfjs from 'pdfjs-dist';
import pdfjs from './pdfjs.js';

import Document from './Document.js';
import Outline from './Outline.js';
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as pdfjs from 'pdfjs-dist';
import pdfjs from './pdfjs.js';

import Document from './Document.js';
import Outline from './Outline.js';
7 changes: 7 additions & 0 deletions src/pdfjs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import * as pdfjsModule from 'pdfjs-dist';

const pdfjs = (
'default' in pdfjsModule ? pdfjsModule['default'] : pdfjsModule
) as typeof pdfjsModule;

export default pdfjs;
2 changes: 1 addition & 1 deletion src/shared/propTypes.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import PropTypes from 'prop-types';
import { allEvents } from 'make-event-props';
import * as pdfjs from 'pdfjs-dist';
import pdfjs from '../pdfjs.js';

import { isDefined } from './utils.js';