@monaco-editor/react
Advanced tools
Comparing version 4.3.0 to 4.3.1
### Versions | ||
## 4.3.1 | ||
###### *Oct 3, 2021* | ||
- types: update types according to the new `loader` version and the new `wrapperProps` property | ||
## 4.3.0 | ||
@@ -4,0 +9,0 @@ ###### *Oct 3, 2021* |
@@ -127,5 +127,5 @@ // TODO: the whole content should be improved in the next version. | ||
/** | ||
* Class name for the editor container wrapper | ||
* Props applied to the wrapper element | ||
*/ | ||
wrapperClassName?: string; | ||
wrapperProps?: object; | ||
@@ -267,5 +267,5 @@ /** | ||
/** | ||
* Class name for the editor container wrapper | ||
* Props applied to the wrapper element | ||
*/ | ||
wrapperClassName?: string; | ||
wrapperProps?: object; | ||
@@ -299,4 +299,10 @@ /** | ||
// loader | ||
// TODO (Suren): import loader namespace from @monaco-editor/loader | ||
interface CancelablePromise<T> extends Promise<T> { | ||
cancel: () => void; | ||
} | ||
declare namespace loader { | ||
function init(): Promise<Monaco>; | ||
function init(): CancelablePromise<Monaco>; | ||
function config(params: { | ||
@@ -309,5 +315,6 @@ paths?: { | ||
}, | ||
}): void | ||
}): void; | ||
function __getMonacoInstance(): Monaco | null; | ||
} | ||
export { loader }; |
{ | ||
"name": "@monaco-editor/react", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "Monaco Editor for React - use the monaco-editor in any React application without needing to use webpack (or rollup/parcel/etc) configuration files / plugins", | ||
@@ -5,0 +5,0 @@ "author": "Suren Atoyan <contact@surenatoyan.com>", |
138612
2008