New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-quilljs

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-quilljs - npm Package Compare versions

Comparing version 1.3.4 to 2.0.0

4

esm/index.d.ts
import { RefObject } from 'react';
import Quill, { QuillOptionsStatic } from 'quill';
import Quill, { QuillOptions } from 'quill';
/**

@@ -8,3 +8,3 @@ *

*/
export declare const useQuill: (options?: QuillOptionsStatic | undefined) => {
export declare const useQuill: (options?: QuillOptions | undefined) => {
Quill: any;

@@ -11,0 +11,0 @@ quillRef: RefObject<any>;

@@ -72,3 +72,3 @@ import { useRef, useState, useEffect } from 'react';

if (!obj.Quill) {
setObj(function (prev) { return assign(prev, { Quill: require('quill') }); });
setObj(function (prev) { return assign(prev, { Quill: require('quill').default }); });
}

@@ -75,0 +75,0 @@ if (obj.Quill && !obj.quill && quillRef && quillRef.current && isLoaded) {

import { RefObject } from 'react';
import Quill, { QuillOptionsStatic } from 'quill';
import Quill, { QuillOptions } from 'quill';
/**

@@ -8,3 +8,3 @@ *

*/
export declare const useQuill: (options?: QuillOptionsStatic | undefined) => {
export declare const useQuill: (options?: QuillOptions | undefined) => {
Quill: any;

@@ -11,0 +11,0 @@ quillRef: RefObject<any>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useQuill = void 0;
var react_1 = require("react");

@@ -61,7 +62,7 @@ var theme = 'snow';

*/
exports.useQuill = function (options) {
var useQuill = function (options) {
if (options === void 0) { options = { theme: theme, modules: modules, formats: formats }; }
var quillRef = react_1.useRef();
var _a = react_1.useState(false), isLoaded = _a[0], setIsLoaded = _a[1];
var _b = react_1.useState({
var quillRef = (0, react_1.useRef)();
var _a = (0, react_1.useState)(false), isLoaded = _a[0], setIsLoaded = _a[1];
var _b = (0, react_1.useState)({
Quill: undefined,

@@ -73,5 +74,5 @@ quillRef: quillRef,

}), obj = _b[0], setObj = _b[1];
react_1.useEffect(function () {
(0, react_1.useEffect)(function () {
if (!obj.Quill) {
setObj(function (prev) { return assign(prev, { Quill: require('quill') }); });
setObj(function (prev) { return assign(prev, { Quill: require('quill').default }); });
}

@@ -91,1 +92,2 @@ if (obj.Quill && !obj.quill && quillRef && quillRef.current && isLoaded) {

};
exports.useQuill = useQuill;

@@ -0,0 +0,0 @@ The MIT License (MIT)

{
"name": "react-quilljs",
"version": "1.3.4",
"description": "React Hook Wrapper for Quill, powerful rich text editor",
"license": "MIT",
"repository": "gtgalone/react-quilljs",
"author": {
"name": "Jehun Seem",
"email": "jehunseem@gmail.com",
"url": "https://github.com/gtgalone"
},
"scripts": {
"build:cjs": "tsc",
"build:esm": "tsc -m esNext --outDir esm",
"build": "yarn build:cjs && yarn build:esm"
},
"main": "lib/index.js",
"module": "esm/index.js",
"types": "lib/index.d.ts",
"typings": "lib/index.d.ts",
"files": [
"lib",
"esm"
],
"keywords": [
"react quill",
"react quilljs",
"react-quill",
"react-quilljs",
"quill",
"quilljs",
"react-hook-quill",
"react-hook-quilljs",
"react-editor",
"text-editor",
"rich-text-editor"
],
"peerDependencies": {
"quill": "^1.3.7 || ^2.0.2",
"react": "^17.0.2 || ^18.0.0-0",
"react-dom": "^17.0.2 || ^18.0.0-0"
},
"devDependencies": {
"@types/node": "12.12.18",
"@types/quill": "2.0.14",
"@types/react": "^17.0.2",
"tslint": "5.20.1",
"tslint-config-prettier": "1.18.0",
"tslint-eslint-rules": "5.4.0",
"tslint-plugin-prettier": "2.0.1",
"tslint-react": "4.1.0",
"typescript": "3.7.3"
},
"packageManager": "yarn@1.22.22+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
}
"name": "react-quilljs",
"version": "2.0.0",
"description": "React Hook Wrapper for Quill, powerful rich text editor",
"license": "MIT",
"repository": "gtgalone/react-quilljs",
"author": {
"name": "Jehun Seem",
"email": "jehunseem@gmail.com",
"url": "https://github.com/gtgalone"
},
"main": "lib/index.js",
"module": "esm/index.js",
"types": "lib/index.d.ts",
"typings": "lib/index.d.ts",
"files": [
"lib",
"esm"
],
"keywords": [
"react quill",
"react quilljs",
"react-quill",
"react-quilljs",
"quill",
"quilljs",
"react-hook-quill",
"react-hook-quilljs",
"react-editor",
"text-editor",
"rich-text-editor"
],
"peerDependencies": {
"quill": "^2.0.2",
"react": "^17.0.2 || ^18.0.0-0",
"react-dom": "^17.0.2 || ^18.0.0-0"
},
"devDependencies": {
"@types/react": "^18.3.3",
"@types/quill": "2.0.2",
"@types/node": "20.12.13",
"tslint": "6.1.3",
"tslint-config-prettier": "1.18.0",
"tslint-eslint-rules": "5.4.0",
"tslint-plugin-prettier": "2.3.0",
"tslint-react": "5.0.0",
"typescript": "5.4.5"
},
"scripts": {
"build:cjs": "tsc",
"build:esm": "tsc -m esNext --outDir esm",
"build": "pnpm build:cjs && pnpm build:esm"
}
}

@@ -27,2 +27,4 @@ # react-quilljs [![Build Status](https://travis-ci.org/gtgalone/react-quilljs.svg?branch=master)](https://travis-ci.org/gtgalone/react-quilljs)

$ pnpm add react-quilljs quill
or
$ yarn add react-quilljs quill

@@ -35,3 +37,3 @@ or

$ yarn add -D @types/quill
$ pnpm add -D @types/quill
```

@@ -38,0 +40,0 @@ ---

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc