prism-react-renderer
Advanced tools
Comparing version 2.0.5 to 2.0.6
import * as react from 'react'; | ||
import { CSSProperties } from 'react'; | ||
import Prism__default from 'prismjs'; | ||
import Prism__default, { Grammar, Token as Token$1 } from 'prismjs'; | ||
import * as Prism from 'prismjs'; | ||
@@ -8,2 +8,3 @@ export { Prism }; | ||
type Language = string; | ||
type PrismGrammar = Grammar; | ||
type PrismLib = typeof Prism__default; | ||
@@ -15,2 +16,8 @@ type Token = { | ||
}; | ||
type EnvConfig = { | ||
code: string; | ||
grammar: PrismGrammar; | ||
language: Language; | ||
tokens: (string | Token$1)[]; | ||
}; | ||
type StyleObj = CSSProperties; | ||
@@ -141,2 +148,2 @@ type LineInputProps = { | ||
export { Highlight, index as themes }; | ||
export { EnvConfig, Highlight, HighlightProps, InternalHighlightProps, Language, LineInputProps, LineOutputProps, PrismGrammar, PrismLib, PrismTheme, PrismThemeEntry, RenderProps, StyleObj, Token, TokenInputProps, TokenOutputProps, index as themes }; |
{ | ||
"name": "prism-react-renderer", | ||
"version": "2.0.5", | ||
"version": "2.0.6", | ||
"description": "Renders highlighted Prism output using React", | ||
@@ -5,0 +5,0 @@ "sideEffects": true, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
681432
6009