next-qrcode
Advanced tools
Comparing version 2.4.1 to 2.5.0
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from 'react'; | ||
export interface Colors { | ||
@@ -30,5 +30,5 @@ dark?: string; | ||
export declare function useQRCode(): { | ||
Image: <T extends HTMLImageElement>({ text, options, }: IQRCode) => JSX.Element; | ||
Canvas: <T_1 extends HTMLCanvasElement>({ text, options, logo, }: IQRCode) => JSX.Element; | ||
SVG: <T_2 extends HTMLDivElement>({ text, options, }: IQRCode) => JSX.Element; | ||
Image: <T extends HTMLImageElement>({ text, options, }: IQRCode) => React.JSX.Element; | ||
Canvas: <T_1 extends HTMLCanvasElement>({ text, options, logo, }: IQRCode) => React.JSX.Element; | ||
SVG: <T_2 extends HTMLDivElement>({ text, options, }: IQRCode) => React.JSX.Element; | ||
}; |
{ | ||
"name": "next-qrcode", | ||
"version": "2.4.1", | ||
"version": "2.5.0", | ||
"description": "React hooks for generating QR code for your next React apps.", | ||
@@ -71,3 +71,3 @@ "author": "Bunlong <bunlong.van@gmail.com>", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.32.1", | ||
"rollup-plugin-typescript2": "^0.35.0", | ||
"ts-jest": "^27.0.5", | ||
@@ -74,0 +74,0 @@ "tslib": "^2.3.1", |
@@ -16,3 +16,3 @@ # next-qrcode | ||
[Live Demo](https://next-qrcode.js.org) | ||
[Live Demo](https://next-qrcode.js.org/demo) | ||
@@ -30,3 +30,3 @@ ## š§ Install | ||
```js | ||
yarn add next-qrcode | ||
yarn add next-qrcode --save | ||
``` | ||
@@ -454,5 +454,5 @@ | ||
Latest version 2.4.1 (2023-02-28): | ||
Latest version 2.5.0 (2023-07-05): | ||
* Fix setting logo to center | ||
* Upgrade dependencies | ||
@@ -459,0 +459,0 @@ Details changes for each release are documented in the [CHANGELOG.md](https://github.com/Bunlong/next-qrcode/blob/master/CHANGELOG.md). |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21107