react-live
Advanced tools
Comparing version 2.2.1 to 2.2.2
{ | ||
"name": "react-live", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "A production-focused playground for live editing React code", | ||
@@ -26,6 +26,6 @@ "main": "dist/react-live.cjs.js", | ||
"dom-iterator": "^1.0.0", | ||
"prism-react-renderer": "^0.1.0", | ||
"prism-react-renderer": "^1.0.1", | ||
"prop-types": "^15.5.8", | ||
"react-simple-code-editor": "^0.10.0", | ||
"unescape": "^0.2.0" | ||
"unescape": "^1.0.1" | ||
}, | ||
@@ -32,0 +32,0 @@ "devDependencies": { |
@@ -1,2 +0,2 @@ | ||
import { ComponentClass, StatelessComponent, HTMLProps, ComponentType } from 'react' | ||
import { ComponentClass, StatelessComponent, HTMLProps, ComponentType, Context } from 'react' | ||
import { PrismTheme, Language } from 'prism-react-renderer'; | ||
@@ -35,2 +35,13 @@ | ||
// Context | ||
export interface ContextProps { | ||
code?: string; | ||
language?: Language; | ||
theme: PrismTheme; | ||
disabled?: boolean; | ||
error?: string; | ||
} | ||
export const LiveContext: Context<ContextProps>; | ||
// LiveEditor | ||
@@ -37,0 +48,0 @@ export type LiveEditorProps = EditorProps; |
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
84740
1905
+ Addedextend-shallow@2.0.1(transitive)
+ Addedis-extendable@0.1.1(transitive)
+ Addedprism-react-renderer@1.3.5(transitive)
+ Addedunescape@1.0.1(transitive)
- Removedprism-react-renderer@0.1.7(transitive)
- Removedunescape@0.2.0(transitive)
Updatedprism-react-renderer@^1.0.1
Updatedunescape@^1.0.1