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.5.1
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.6.0
Choose a head ref

Commits on Oct 23, 2023

  1. Update Yarn to 4.0.0

    wojtekmaj committed Oct 23, 2023

    Verified

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

    This commit was signed with the committer’s verified signature.
    wojtekmaj Wojciech Maj
    Copy the full SHA
    9bb8a85 View commit details

Commits on Oct 24, 2023

  1. Update links in README

    wojtekmaj committed Oct 24, 2023

    Verified

    This commit was signed with the committer’s verified signature.
    wojtekmaj Wojciech Maj
    Copy the full SHA
    084cd93 View commit details
  2. Standardize .gitignore

    wojtekmaj committed Oct 24, 2023
    2

    Verified

    This commit was signed with the committer’s verified signature.
    wojtekmaj Wojciech Maj
    Copy the full SHA
    63609fd View commit details

Commits on Oct 25, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    wojtekmaj Wojciech Maj
    Copy the full SHA
    6ecc8d3 View commit details

Commits on Oct 30, 2023

  1. Verified

    This commit was signed with the committer’s verified signature.
    wojtekmaj Wojciech Maj
    Copy the full SHA
    147fa29 View commit details

Commits on Nov 8, 2023

  1. Copy the full SHA
    953cf4c View commit details
  2. Improve TypeScript config

    wojtekmaj committed Nov 8, 2023
    Copy the full SHA
    7bd76ed View commit details
  3. Copy the full SHA
    4065713 View commit details

Commits on Nov 17, 2023

  1. Update Vite ecosystem

    wojtekmaj committed Nov 17, 2023
    Copy the full SHA
    0fadcf2 View commit details
  2. Remove Vite 3 sample

    wojtekmaj committed Nov 17, 2023
    Copy the full SHA
    b0b80b0 View commit details
  3. Copy the full SHA
    e3e6f6d View commit details

Commits on Nov 22, 2023

  1. Update CI badge URL

    wojtekmaj committed Nov 22, 2023
    Copy the full SHA
    72a0ef5 View commit details

Commits on Nov 24, 2023

  1. Update Yarn to 4.0.2

    wojtekmaj committed Nov 24, 2023
    Copy the full SHA
    46e3b5b View commit details
  2. Copy the full SHA
    fb9cf60 View commit details
  3. Copy the full SHA
    8b1785a View commit details

Commits on Dec 1, 2023

  1. Bump @adobe/css-tools from 4.3.1 to 4.3.2 (#1675)

    Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.3.1 to 4.3.2.
    - [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
    - [Commits](https://github.com/adobe/css-tools/commits)
    
    ---
    updated-dependencies:
    - dependency-name: "@adobe/css-tools"
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Dec 1, 2023
    Copy the full SHA
    1a8b26e View commit details

Commits on Dec 7, 2023

  1. Improve documentation

    wojtekmaj committed Dec 7, 2023
    Copy the full SHA
    ab83389 View commit details
  2. Add JSDoc documentation

    wojtekmaj committed Dec 7, 2023
    Copy the full SHA
    676127f View commit details

Commits on Dec 9, 2023

  1. Copy the full SHA
    033ecda View commit details
  2. v7.6.0

    wojtekmaj committed Dec 9, 2023
    Copy the full SHA
    eceea62 View commit details
Showing with 12,674 additions and 15,803 deletions.
  1. +12 −12 .github/workflows/ci.yml
  2. +3 −3 .github/workflows/publish.yml
  3. +23 −8 .gitignore
  4. +9 −0 .yarn/plugins/@yarnpkg/plugin-nolyfill.cjs
  5. +0 −28 .yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs
  6. +3 −2 .yarnrc.yml
  7. +0 −3 README.md
  8. +1 −0 README.md
  9. +9 −6 package.json
  10. +51 −48 packages/react-pdf/README.md
  11. +5 −5 packages/react-pdf/package.json
  12. +125 −3 packages/react-pdf/src/Document.tsx
  13. +33 −0 packages/react-pdf/src/Outline.tsx
  14. +211 −0 packages/react-pdf/src/Page.tsx
  15. +16 −0 packages/react-pdf/src/Thumbnail.tsx
  16. +6 −0 packages/react-pdf/tsconfig.build.json
  17. +3 −1 packages/react-pdf/tsconfig.json
  18. +1 −1 packages/react-pdf/vitest.config.ts
  19. +2 −4 packages/react-pdf/vitest.setup.ts
  20. +1 −0 sample/create-react-app-5/package.json
  21. +2 −0 sample/create-react-app-5/tsconfig.json
  22. +4,022 −4,213 sample/create-react-app-5/yarn.lock
  23. +387 −387 sample/next-app/yarn.lock
  24. +415 −415 sample/next-pages/yarn.lock
  25. +2 −0 sample/parcel2/tsconfig.json
  26. +966 −966 sample/parcel2/yarn.lock
  27. 0 sample/{vite3 → vite}/.gitignore
  28. 0 sample/{vite3 → vite}/Sample.css
  29. 0 sample/{vite3 → vite}/Sample.tsx
  30. 0 sample/{vite3 → vite}/index.html
  31. 0 sample/{vite3 → vite}/index.tsx
  32. +3 −3 sample/{vite4 → vite}/package.json
  33. BIN sample/{vite3 → vite}/sample.pdf
  34. +2 −0 sample/{vite3 → vite}/tsconfig.json
  35. 0 sample/{vite3 → vite}/vite.config.ts
  36. +2,573 −0 sample/vite/yarn.lock
  37. +0 −30 sample/vite3/package.json
  38. +0 −2,602 sample/vite3/yarn.lock
  39. +0 −2 sample/vite4/.gitignore
  40. +0 −60 sample/vite4/Sample.css
  41. +0 −79 sample/vite4/Sample.tsx
  42. +0 −12 sample/vite4/index.html
  43. +0 −5 sample/vite4/index.tsx
  44. BIN sample/vite4/sample.pdf
  45. +0 −15 sample/vite4/tsconfig.json
  46. +0 −23 sample/vite4/vite.config.ts
  47. +0 −2,450 sample/vite4/yarn.lock
  48. +2 −0 sample/webpack5/tsconfig.json
  49. +1,747 −1,786 sample/webpack5/yarn.lock
  50. +5 −5 test/package.json
  51. +2 −0 test/tsconfig.json
  52. +2,032 −2,626 yarn.lock
24 changes: 12 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -18,18 +18,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache .yarn/cache
- name: Cache Yarn cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
path: ~/.yarn/berry/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'

@@ -53,18 +53,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache .yarn/cache
- name: Cache Yarn cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
path: ~/.yarn/berry/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'

@@ -88,18 +88,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache .yarn/cache
- name: Cache Yarn cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
path: ~/.yarn/berry/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'

@@ -120,18 +120,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache .yarn/cache
- name: Cache Yarn cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
path: ~/.yarn/berry/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'

6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -19,18 +19,18 @@ jobs:
- name: Checkout
uses: actions/checkout@v4

- name: Cache .yarn/cache
- name: Cache Yarn cache
uses: actions/cache@v3
env:
cache-name: yarn-cache
with:
path: .yarn/cache
path: ~/.yarn/berry/cache
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ env.cache-name }}
- name: Use Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
31 changes: 23 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,35 @@
# Cache and IDE-related files
# OS
.DS_Store

# Cache
.cache
.idea
.playwright
.tmp
*.tsbuildinfo
.eslintcache

# Yarn-related files
# Yarn
.pnp.*
**/.yarn/*
!**/.yarn/releases
!**/.yarn/patches
!**/.yarn/plugins
!**/.yarn/releases
!**/.yarn/sdks
yarn-error.log
!**/.yarn/versions

# Project-generated files and directories
# Project-generated directories and files
coverage
dist
node_modules
playwright-report
test-results
package.tgz

# Other
**/.DS_Store
# Logs
npm-debug.log
yarn-error.log

# .env files
**/.env
**/.env.*
!**/.env.example
9 changes: 9 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-nolyfill.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/* eslint-disable */
//prettier-ignore
module.exports = {
name: "@yarnpkg/plugin-nolyfill",
factory: function (require) {
"use strict";var plugin=(()=>{var p=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var n=Object.prototype.hasOwnProperty;var y=(r=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(r,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):r)(function(r){if(typeof require<"u")return require.apply(this,arguments);throw new Error('Dynamic require of "'+r+'" is not supported')});var c=(r,e)=>{for(var t in e)p(r,t,{get:e[t],enumerable:!0})},g=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of l(e))!n.call(r,o)&&o!==t&&p(r,o,{get:()=>e[o],enumerable:!(s=i(e,o))||s.enumerable});return r};var f=r=>g(p({},"__esModule",{value:!0}),r);var j={};c(j,{default:()=>w});var a=y("@yarnpkg/core"),d=[["array-includes"],["array.prototype.findlastindex"],["array.prototype.findlast"],["array.prototype.at"],["string.prototype.at"],["array.prototype.flat"],["array.prototype.flatmap"],["arraybuffer.prototype.slice"],["function.prototype.name"],["has"],["object-keys"],["object.assign"],["object.entries"],["object.fromentries"],["object.hasown"],["object.values"],["string.prototype.trim"],["string.prototype.trimend"],["string.prototype.trimstart"],["string.prototype.trimleft"],["string.prototype.trimright"],["string.prototype.matchall"],["regexp.prototype.flags"],["globalthis"],["array.prototype.tosorted"],["object.groupby"],["array.prototype.find"],["array.from"],["string.prototype.padend"],["string.prototype.padstart"],["object.getownpropertydescriptors"],["array.prototype.reduce"],["object-is"],["reflect.ownkeys"],["string.prototype.replaceall"],["reflect.getprototypeof"],["es-aggregate-error"],["promise.any",{"@nolyfill/es-aggregate-error":"workspace:*"},">=12.4.0"],["promise.allsettled"]],h=[["has-property-descriptors"],["gopd"],["has-proto"],["get-symbol-description",{"@nolyfill/shared":"workspace:*"}],["is-array-buffer",{"@nolyfill/shared":"workspace:*"}],["is-shared-array-buffer",{"@nolyfill/shared":"workspace:*"}],["typed-array-buffer",{"@nolyfill/shared":"workspace:*"}],["typed-array-byte-length",{"@nolyfill/shared":"workspace:*"}],["typed-array-byte-offset",{"@nolyfill/shared":"workspace:*"}],["typed-array-length",{"@nolyfill/shared":"workspace:*"}],["harmony-reflect"],["array-buffer-byte-length",{"@nolyfill/is-array-buffer":"workspace:*","@nolyfill/shared":"workspace:*"}],["iterator.prototype"],["available-typed-arrays"],["which-typed-array",{"@nolyfill/shared":"workspace:*"}],["which-boxed-primitive"],["unbox-primitive"],["is-regex"],["safe-regex-test"],["safe-array-concat"],["asynciterator.prototype"],["is-weakref"],["is-symbol"],["is-string"],["is-date-object"],["es-set-tostringtag"],["define-properties",{"@nolyfill/shared":"workspace:*"}],["deep-equal",{dequal:"2.0.3"}],["is-arguments"],["is-generator-function"],["side-channel"],["internal-slot"]],m=["function-bind","has-tostringtag","has-symbols","es-iterator-helpers"],u=[...m,...d.map(r=>r[0]),...h.map(r=>r[0])].sort(),b=new Map(u.map(r=>[a.structUtils.makeIdent(null,r).identHash,a.structUtils.makeIdent("nolyfill",r)])),k={hooks:{reduceDependency:async r=>{let e=b.get(r.identHash);if(e){let t=a.structUtils.makeDescriptor(e,"latest"),s=a.structUtils.makeRange({protocol:"npm:",source:null,selector:a.structUtils.stringifyDescriptor(t),params:null});return a.structUtils.makeDescriptor(r,s)}return r}}},w=k;return f(j);})();
return plugin;
}
};
Loading