react-markdown
Advanced tools
Comparing version 7.1.1 to 7.1.2
@@ -13,2 +13,7 @@ /** | ||
export type ComponentType<T> = import('react').ComponentType<T> | ||
/** | ||
* <T> | ||
*/ | ||
export type ComponentPropsWithoutRef<T> = | ||
import('react').ComponentPropsWithoutRef<T> | ||
export type ReactNode = import('react').ReactNode | ||
@@ -54,11 +59,11 @@ export type Position = import('unist').Position | ||
export type ReactMarkdownNames = keyof JSX.IntrinsicElements | ||
export type CodeProps = JSX.IntrinsicElements['code'] & | ||
export type CodeProps = ComponentPropsWithoutRef<'code'> & | ||
ReactMarkdownProps & { | ||
inline?: boolean | ||
} | ||
export type HeadingProps = JSX.IntrinsicElements['h1'] & | ||
export type HeadingProps = ComponentPropsWithoutRef<'h1'> & | ||
ReactMarkdownProps & { | ||
level: number | ||
} | ||
export type LiProps = JSX.IntrinsicElements['li'] & | ||
export type LiProps = ComponentPropsWithoutRef<'li'> & | ||
ReactMarkdownProps & { | ||
@@ -69,3 +74,3 @@ checked: boolean | null | ||
} | ||
export type OrderedListProps = JSX.IntrinsicElements['ol'] & | ||
export type OrderedListProps = ComponentPropsWithoutRef<'ol'> & | ||
ReactMarkdownProps & { | ||
@@ -75,3 +80,3 @@ depth: number | ||
} | ||
export type TableCellProps = JSX.IntrinsicElements['table'] & | ||
export type TableCellProps = ComponentPropsWithoutRef<'table'> & | ||
ReactMarkdownProps & { | ||
@@ -81,7 +86,7 @@ style?: Record<string, unknown> | ||
} | ||
export type TableRowProps = JSX.IntrinsicElements['tr'] & | ||
export type TableRowProps = ComponentPropsWithoutRef<'tr'> & | ||
ReactMarkdownProps & { | ||
isHeader: boolean | ||
} | ||
export type UnorderedListProps = JSX.IntrinsicElements['ul'] & | ||
export type UnorderedListProps = ComponentPropsWithoutRef<'ul'> & | ||
ReactMarkdownProps & { | ||
@@ -88,0 +93,0 @@ depth: number |
@@ -7,2 +7,7 @@ /** | ||
/** | ||
* @template T | ||
* @typedef {import('react').ComponentPropsWithoutRef<T>} ComponentPropsWithoutRef<T> | ||
*/ | ||
/** | ||
* @typedef {import('react').ReactNode} ReactNode | ||
@@ -53,9 +58,9 @@ * @typedef {import('unist').Position} Position | ||
* | ||
* @typedef {JSX.IntrinsicElements['code'] & ReactMarkdownProps & {inline?: boolean}} CodeProps | ||
* @typedef {JSX.IntrinsicElements['h1'] & ReactMarkdownProps & {level: number}} HeadingProps | ||
* @typedef {JSX.IntrinsicElements['li'] & ReactMarkdownProps & {checked: boolean|null, index: number, ordered: boolean}} LiProps | ||
* @typedef {JSX.IntrinsicElements['ol'] & ReactMarkdownProps & {depth: number, ordered: true}} OrderedListProps | ||
* @typedef {JSX.IntrinsicElements['table'] & ReactMarkdownProps & {style?: Record<string, unknown>, isHeader: boolean}} TableCellProps | ||
* @typedef {JSX.IntrinsicElements['tr'] & ReactMarkdownProps & {isHeader: boolean}} TableRowProps | ||
* @typedef {JSX.IntrinsicElements['ul'] & ReactMarkdownProps & {depth: number, ordered: false}} UnorderedListProps | ||
* @typedef {ComponentPropsWithoutRef<'code'> & ReactMarkdownProps & {inline?: boolean}} CodeProps | ||
* @typedef {ComponentPropsWithoutRef<'h1'> & ReactMarkdownProps & {level: number}} HeadingProps | ||
* @typedef {ComponentPropsWithoutRef<'li'> & ReactMarkdownProps & {checked: boolean|null, index: number, ordered: boolean}} LiProps | ||
* @typedef {ComponentPropsWithoutRef<'ol'> & ReactMarkdownProps & {depth: number, ordered: true}} OrderedListProps | ||
* @typedef {ComponentPropsWithoutRef<'table'> & ReactMarkdownProps & {style?: Record<string, unknown>, isHeader: boolean}} TableCellProps | ||
* @typedef {ComponentPropsWithoutRef<'tr'> & ReactMarkdownProps & {isHeader: boolean}} TableRowProps | ||
* @typedef {ComponentPropsWithoutRef<'ul'> & ReactMarkdownProps & {depth: number, ordered: false}} UnorderedListProps | ||
* | ||
@@ -62,0 +67,0 @@ * @typedef {ComponentType<CodeProps>} CodeComponent |
@@ -1,2 +0,2 @@ | ||
import type {ReactNode, ComponentType} from 'react' | ||
import type {ReactNode, ComponentType, ComponentPropsWithoutRef} from 'react' | ||
import type {Position} from 'unist' | ||
@@ -23,3 +23,3 @@ import type {Element} from 'hast' | ||
| keyof JSX.IntrinsicElements | ||
| ComponentType<JSX.IntrinsicElements[TagName] & ReactMarkdownProps> | ||
| ComponentType<ComponentPropsWithoutRef<TagName> & ReactMarkdownProps> | ||
} |
@@ -1,2 +0,2 @@ | ||
import type {ReactNode, ComponentType} from 'react' | ||
import type {ReactNode, ComponentType, ComponentPropsWithoutRef} from 'react' | ||
import type {Position} from 'unist' | ||
@@ -27,3 +27,3 @@ import type {Element} from 'hast' | ||
| keyof JSX.IntrinsicElements | ||
| ComponentType<JSX.IntrinsicElements[TagName] & ReactMarkdownProps> | ||
| ComponentType<ComponentPropsWithoutRef<TagName> & ReactMarkdownProps> | ||
} |
{ | ||
"name": "react-markdown", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"description": "React component to render markdown", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
Sorry, the diff of this file is too big to display
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
179525
1421