react-markdown
Advanced tools
Comparing version 8.0.5 to 8.0.6
@@ -16,3 +16,3 @@ /** | ||
*/ | ||
export type ComponentPropsWithoutRef<T> = | ||
export type ComponentPropsWithoutRef<T extends React.ElementType<any>> = | ||
import('react').ComponentPropsWithoutRef<T> | ||
@@ -125,20 +125,12 @@ export type ReactNode = import('react').ReactNode | ||
export type Options = { | ||
sourcePos?: boolean | undefined | ||
rawSourcePos?: boolean | undefined | ||
skipHtml?: boolean | undefined | ||
includeElementIndex?: boolean | undefined | ||
transformLinkUri?: false | TransformLink | null | undefined | ||
transformImageUri?: TransformImage | undefined | ||
linkTarget?: React.HTMLAttributeAnchorTarget | TransformLinkTarget | undefined | ||
components?: | ||
| Partial< | ||
Omit< | ||
import('./complex-types.js').NormalComponents, | ||
keyof SpecialComponents | ||
> & | ||
SpecialComponents | ||
> | ||
| undefined | ||
sourcePos?: boolean | ||
rawSourcePos?: boolean | ||
skipHtml?: boolean | ||
includeElementIndex?: boolean | ||
transformLinkUri?: null | false | TransformLink | ||
transformImageUri?: TransformImage | ||
linkTarget?: TransformLinkTargetType | TransformLinkTarget | ||
components?: Components | ||
} | ||
import React from 'react' | ||
import style from 'style-to-object' |
@@ -7,3 +7,3 @@ /** | ||
/** | ||
* @template T | ||
* @template {import('react').ElementType} T | ||
* @typedef {import('react').ComponentPropsWithoutRef<T>} ComponentPropsWithoutRef<T> | ||
@@ -10,0 +10,0 @@ */ |
@@ -44,8 +44,8 @@ /** | ||
export type PluginOptions = { | ||
remarkPlugins?: import('unified').PluggableList | undefined | ||
rehypePlugins?: import('unified').PluggableList | undefined | ||
remarkPlugins?: import('unified').PluggableList | ||
rehypePlugins?: import('unified').PluggableList | ||
remarkRehypeOptions?: import('remark-rehype').Options | undefined | ||
} | ||
export type LayoutOptions = { | ||
className?: string | undefined | ||
className?: string | ||
} | ||
@@ -59,4 +59,4 @@ export type ReactMarkdownOptions = CoreOptions & | ||
id: string | ||
to?: string | undefined | ||
to?: string | ||
} | ||
import PropTypes from 'prop-types' |
@@ -16,6 +16,6 @@ export default function rehypeFilter( | ||
export type Options = { | ||
allowedElements?: string[] | undefined | ||
disallowedElements?: string[] | undefined | ||
allowElement?: AllowElement | undefined | ||
unwrapDisallowed?: boolean | undefined | ||
allowedElements?: Array<string> | ||
disallowedElements?: Array<string> | ||
allowElement?: AllowElement | ||
unwrapDisallowed?: boolean | ||
} |
{ | ||
"name": "react-markdown", | ||
"version": "8.0.5", | ||
"version": "8.0.6", | ||
"description": "React component to render markdown", | ||
@@ -122,5 +122,4 @@ "license": "MIT", | ||
"remark-toc": "^8.0.0", | ||
"rimraf": "^3.0.0", | ||
"type-coverage": "^2.0.0", | ||
"typescript": "^4.0.0", | ||
"typescript": "^5.0.0", | ||
"xo": "^0.53.0" | ||
@@ -127,0 +126,0 @@ }, |
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
182764
22
1441