html-react-parser
Advanced tools
Comparing version 5.1.3 to 5.1.4
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import type { JSX } from 'react'; | ||
import type { DOMNode } from 'html-dom-parser'; | ||
@@ -3,0 +3,0 @@ import type { HTMLReactParserOptions } from './types'; |
@@ -7,3 +7,4 @@ import htmlToDOM from 'html-dom-parser'; | ||
export type { DOMNode } from 'html-dom-parser'; | ||
export { HTMLReactParserOptions, attributesToProps, domToReact, htmlToDOM }; | ||
export type { HTMLReactParserOptions }; | ||
export { attributesToProps, domToReact, htmlToDOM }; | ||
/** | ||
@@ -10,0 +11,0 @@ * Converts HTML string to React elements. |
import type { DomHandlerOptions } from 'domhandler'; | ||
import type { DOMNode } from 'html-dom-parser'; | ||
import type { ParserOptions } from 'htmlparser2'; | ||
import type { ReactNode } from 'react'; | ||
import type { JSX, ReactNode } from 'react'; | ||
export interface HTMLReactParserOptions { | ||
@@ -6,0 +6,0 @@ htmlparser2?: ParserOptions & DomHandlerOptions; |
{ | ||
"name": "html-react-parser", | ||
"version": "5.1.3", | ||
"version": "5.1.4", | ||
"description": "HTML to React parser.", | ||
@@ -5,0 +5,0 @@ "author": "Mark <mark@remarkablemark.org> (https://remarkablemark.org)", |
import { cloneElement, createElement, isValidElement } from 'react'; | ||
import type { JSX } from 'react'; | ||
import type { Element, DOMNode, Text } from 'html-dom-parser'; | ||
@@ -3,0 +4,0 @@ |
@@ -10,3 +10,4 @@ import htmlToDOM from 'html-dom-parser'; | ||
export { HTMLReactParserOptions, attributesToProps, domToReact, htmlToDOM }; | ||
export type { HTMLReactParserOptions }; | ||
export { attributesToProps, domToReact, htmlToDOM }; | ||
@@ -13,0 +14,0 @@ const domParserOptions = { lowerCaseAttributeNames: false } as const; |
import type { DomHandlerOptions } from 'domhandler'; | ||
import type { DOMNode } from 'html-dom-parser'; | ||
import type { ParserOptions } from 'htmlparser2'; | ||
import type { ReactNode } from 'react'; | ||
import type { JSX, ReactNode } from 'react'; | ||
@@ -6,0 +6,0 @@ export interface HTMLReactParserOptions { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
464585
3666