mirror of
https://github.com/microsoft/monaco-editor.git
synced 2025-12-22 10:25:42 +01:00
Compare commits
2 commits
d678c1d32d
...
516f350bda
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
516f350bda | ||
|
|
9221aa0ef8 |
5 changed files with 10 additions and 6 deletions
2
.nvmrc
2
.nvmrc
|
|
@ -1 +1 @@
|
||||||
22.18.0
|
22.20.0
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,9 @@
|
||||||
# Monaco Editor Changelog
|
# Monaco Editor Changelog
|
||||||
|
|
||||||
|
## [0.55.1]
|
||||||
|
|
||||||
|
- Fixes missing language exports (monaco.json/typescript/...) due to wrong "types" path - [#5123](https://github.com/microsoft/monaco-editor/issues/5123)
|
||||||
|
|
||||||
## [0.55.0]
|
## [0.55.0]
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "monaco-editor",
|
"name": "monaco-editor",
|
||||||
"version": "0.55.0",
|
"version": "0.55.1",
|
||||||
"vscodeRef": "86f5a62f058e3905f74a9fa65d04b2f3b533408e",
|
"vscodeRef": "86f5a62f058e3905f74a9fa65d04b2f3b533408e",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "A browser based code editor",
|
"description": "A browser based code editor",
|
||||||
|
|
@ -38,7 +38,7 @@
|
||||||
"module": "./esm/vs/editor/editor.main.js",
|
"module": "./esm/vs/editor/editor.main.js",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
"types": "./esm/vs/editor/editor.api.d.ts",
|
"types": "./esm/vs/editor/editor.main.d.ts",
|
||||||
"import": "./esm/vs/editor/editor.main.js",
|
"import": "./esm/vs/editor/editor.main.js",
|
||||||
"require": "./min/vs/editor/editor.main.js"
|
"require": "./min/vs/editor/editor.main.js"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -8,12 +8,12 @@ import { IMessageFromRunner, IMessageToRunner, IPreviewState } from "../shared";
|
||||||
import "./style.scss";
|
import "./style.scss";
|
||||||
|
|
||||||
window.addEventListener("message", (event) => {
|
window.addEventListener("message", (event) => {
|
||||||
const isInSandbox = window.origin === "null";
|
/*const isInSandbox = window.origin === "null";
|
||||||
if (!isInSandbox) {
|
if (!isInSandbox) {
|
||||||
// To prevent someone from using this html file to run arbitrary code in non-sandboxed context
|
// To prevent someone from using this html file to run arbitrary code in non-sandboxed context
|
||||||
console.error("not in sandbox");
|
console.error("not in sandbox");
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
const e = event.data as IMessageToRunner | { kind: undefined };
|
const e = event.data as IMessageToRunner | { kind: undefined };
|
||||||
if (e.kind === "initialize") {
|
if (e.kind === "initialize") {
|
||||||
initialize(e.state);
|
initialize(e.state);
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ export class Preview extends React.Component<{
|
||||||
<iframe
|
<iframe
|
||||||
className="full-iframe"
|
className="full-iframe"
|
||||||
key={this.counter}
|
key={this.counter}
|
||||||
sandbox="allow-scripts allow-modals"
|
// sandbox="allow-scripts allow-modals"
|
||||||
frameBorder={0}
|
frameBorder={0}
|
||||||
ref={this.handleIframe}
|
ref={this.handleIframe}
|
||||||
src={`https://isolated-playground.github.io/?jsSrcBase64=${btoa(
|
src={`https://isolated-playground.github.io/?jsSrcBase64=${btoa(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue