qrdx 0.0.60 → 0.0.61

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.
Files changed (46) hide show
  1. package/README.md +1 -1
  2. package/dist/core.js +7 -7
  3. package/dist/core.js.map +1 -1
  4. package/dist/core.mjs +7 -7
  5. package/dist/core.mjs.map +1 -1
  6. package/dist/index.js +7 -7
  7. package/dist/index.js.map +1 -1
  8. package/dist/index.mjs +7 -7
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/node.js +2 -2
  11. package/dist/node.js.map +1 -1
  12. package/dist/node.mjs +2 -2
  13. package/dist/node.mjs.map +1 -1
  14. package/dist/qr-code-canvas.js +1 -1
  15. package/dist/qr-code-canvas.js.map +1 -1
  16. package/dist/qr-code-canvas.mjs +1 -1
  17. package/dist/qr-code-canvas.mjs.map +1 -1
  18. package/dist/src/api.d.ts +2 -3
  19. package/dist/src/api.d.ts.map +1 -1
  20. package/dist/src/qr-code-canvas.d.ts +2 -8
  21. package/dist/src/qr-code-canvas.d.ts.map +1 -1
  22. package/dist/src/qr-code-svg.d.ts +2 -3
  23. package/dist/src/qr-code-svg.d.ts.map +1 -1
  24. package/dist/src/qr-code.d.ts +2 -2
  25. package/dist/src/qr-code.d.ts.map +1 -1
  26. package/dist/src/qr-frame-svg.d.ts +2 -3
  27. package/dist/src/qr-frame-svg.d.ts.map +1 -1
  28. package/dist/src/rasterize.d.ts +8 -0
  29. package/dist/src/rasterize.d.ts.map +1 -1
  30. package/dist/src/react-elements.d.ts.map +1 -1
  31. package/dist/src/scan-score.d.ts +34 -0
  32. package/dist/src/scan-score.d.ts.map +1 -1
  33. package/dist/types/react.d.ts +21 -3
  34. package/dist/types/react.d.ts.map +1 -1
  35. package/dist/vanilla.browser.mjs +12 -12
  36. package/dist/vanilla.browser.mjs.map +1 -1
  37. package/package.json +4 -6
  38. package/src/api.tsx +3 -4
  39. package/src/qr-code-canvas.tsx +34 -27
  40. package/src/qr-code-svg.tsx +3 -4
  41. package/src/qr-code.tsx +7 -5
  42. package/src/qr-frame-svg.tsx +3 -4
  43. package/src/rasterize.ts +14 -1
  44. package/src/react-elements.ts +40 -2
  45. package/src/scan-score.ts +220 -47
  46. package/types/react.ts +22 -3
package/README.md CHANGED
@@ -11,7 +11,7 @@ npm install qrdx
11
11
  # or: pnpm add qrdx / yarn add qrdx
12
12
  ```
13
13
 
14
- `react` and `react-dom` (18 or newer) are optional peer dependencies: the React components need them, and [`qrdx/vanilla` and `qrdx/core`](#without-react-qrdxvanilla-and-qrdxcore) don't. PDF export also needs the optional `jspdf` peer, and PNG export in Node (`getQRAsPNG`, imported from `qrdx/node`) needs one of the optional rasterizer peers (`@resvg/resvg-js` draws the SVG — logos included — the way browsers do; `sharp` also works):
14
+ `react` (16.8 or newer) is an optional peer dependency: the React components need it, and [`qrdx/vanilla` and `qrdx/core`](#without-react-qrdxvanilla-and-qrdxcore) don't. qrdx never imports `react-dom`. PDF export also needs the optional `jspdf` peer, and PNG export in Node (`getQRAsPNG`, imported from `qrdx/node`) needs one of the optional rasterizer peers (`@resvg/resvg-js` draws the SVG — logos included — the way browsers do; `sharp` also works):
15
15
 
16
16
  ```bash
17
17
  npm install jspdf