react-quilljs
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -9,3 +9,3 @@ import { RefObject } from 'react'; | ||
export declare const useQuill: (options?: QuillOptions | undefined) => { | ||
Quill: any; | ||
Quill: any | undefined; | ||
quillRef: RefObject<any>; | ||
@@ -12,0 +12,0 @@ quill: Quill | undefined; |
@@ -59,3 +59,3 @@ import { useRef, useState, useEffect } from 'react'; | ||
export const useQuill = (options = { theme, modules, formats }) => { | ||
const quillRef = useRef(); | ||
const quillRef = useRef(null); | ||
const [isLoaded, setIsLoaded] = useState(false); | ||
@@ -62,0 +62,0 @@ const [obj, setObj] = useState({ |
@@ -9,3 +9,3 @@ import { RefObject } from 'react'; | ||
export declare const useQuill: (options?: QuillOptions | undefined) => { | ||
Quill: any; | ||
Quill: any | undefined; | ||
quillRef: RefObject<any>; | ||
@@ -12,0 +12,0 @@ quill: Quill | undefined; |
@@ -62,3 +62,3 @@ "use strict"; | ||
const useQuill = (options = { theme, modules, formats }) => { | ||
const quillRef = (0, react_1.useRef)(); | ||
const quillRef = (0, react_1.useRef)(null); | ||
const [isLoaded, setIsLoaded] = (0, react_1.useState)(false); | ||
@@ -65,0 +65,0 @@ const [obj, setObj] = (0, react_1.useState)({ |
{ | ||
"name": "react-quilljs", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "React Hook Wrapper for Quill, powerful rich text editor", | ||
@@ -39,10 +39,10 @@ "license": "MIT", | ||
"peerDependencies": { | ||
"quill": "^2.0.2", | ||
"react": "^17.0.2 || ^18.0.0-0", | ||
"react-dom": "^17.0.2 || ^18.0.0-0" | ||
"quill": "^2.0.3", | ||
"react": "17 - 19", | ||
"react-dom": "17 - 19" | ||
}, | ||
"devDependencies": { | ||
"@types/react": "^18.3.3", | ||
"@types/quill": "2.0.2", | ||
"@types/node": "20.12.13", | ||
"@types/react": "^19.0.1", | ||
"@types/quill": "2.0.14", | ||
"@types/node": "22.10.2", | ||
"tslint": "6.1.3", | ||
@@ -53,3 +53,3 @@ "tslint-config-prettier": "1.18.0", | ||
"tslint-react": "5.0.0", | ||
"typescript": "5.4.5" | ||
"typescript": "5.7.2" | ||
}, | ||
@@ -56,0 +56,0 @@ "scripts": { |
@@ -297,4 +297,2 @@ # react-quilljs [](https://travis-ci.org/gtgalone/react-quilljs) | ||
[{ color: [] }, { background: [] }], | ||
['clean'], | ||
], | ||
@@ -318,3 +316,2 @@ clipboard: { | ||
'color', 'background', | ||
'clean', | ||
] | ||
@@ -321,0 +318,0 @@ ``` |
17460
348