Skip to content

Commit 9a6e994

Browse files
committed
docs: Re-enable monaco editor via new version fix
1 parent 7413d08 commit 9a6e994

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

website/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@docusaurus/theme-mermaid": "^3.0.1",
4747
"@js-temporal/polyfill": "^0.5.0",
4848
"@mdx-js/react": "^3.1.0",
49-
"@monaco-editor/react": "^4.4.6",
49+
"@monaco-editor/react": "^4.8.0-rc.0",
5050
"@number-flow/react": "^0.5.0",
5151
"bignumber.js": "9.3.1",
5252
"clsx": "2.1.1",
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
const usingMonaco = false;
2-
// // React 18: perhaps this causes hydration problems.
3-
// typeof navigator !== 'undefined' &&
4-
// // crawler or mobile browser
5-
// !/bot|googlebot|crawler|spider|robot|crawling|Mobile|Android|BlackBerry/i.test(
6-
// navigator.userAgent,
7-
// );
1+
const usingMonaco =
2+
// React 18: perhaps this causes hydration problems.
3+
typeof navigator !== 'undefined' &&
4+
// crawler or mobile browser
5+
!/bot|googlebot|crawler|spider|robot|crawling|Mobile|Android|BlackBerry/i.test(
6+
navigator.userAgent,
7+
);
88

99
export default usingMonaco;

yarn.lock

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5290,25 +5290,25 @@ __metadata:
52905290
languageName: node
52915291
linkType: hard
52925292

5293-
"@monaco-editor/loader@npm:^1.5.0":
5294-
version: 1.5.0
5295-
resolution: "@monaco-editor/loader@npm:1.5.0"
5293+
"@monaco-editor/loader@npm:^1.6.0":
5294+
version: 1.6.0
5295+
resolution: "@monaco-editor/loader@npm:1.6.0"
52965296
dependencies:
52975297
state-local: "npm:^1.0.6"
5298-
checksum: 10c0/d8e1fd75fea113b4d91405784ed4db757df450c6e57a85e87728281e819a73a3ef9fe0cbb1dc1509456f1e895ad9c11e4748f80b68900cb6cf600170e14ce6ed
5298+
checksum: 10c0/c72ce19331ea4383ea1b8e0f70218c3ba5a4754215bc2538846a5f0086bb0684a387d2dcdfac7c52d57a2c7f2112a03b6c37469e758e0561ba1456a9a2636a16
52995299
languageName: node
53005300
linkType: hard
53015301

5302-
"@monaco-editor/react@npm:^4.4.6":
5303-
version: 4.7.0
5304-
resolution: "@monaco-editor/react@npm:4.7.0"
5302+
"@monaco-editor/react@npm:^4.8.0-rc.0":
5303+
version: 4.8.0-rc.1
5304+
resolution: "@monaco-editor/react@npm:4.8.0-rc.1"
53055305
dependencies:
5306-
"@monaco-editor/loader": "npm:^1.5.0"
5306+
"@monaco-editor/loader": "npm:^1.6.0"
53075307
peerDependencies:
53085308
monaco-editor: ">= 0.25.0 < 1"
53095309
react: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
53105310
react-dom: ^16.8.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
5311-
checksum: 10c0/a4e91c6eda1a71f5fd23871bd801de435490ccbc43934d23cba65cefe2be7e9d02c9a57c4ef80fc9fe99e4d4deea51e5db19cb4e0ecf3f51818dda0eb9cdbf12
5311+
checksum: 10c0/43bd2901bfdfc284539da21afbad470cfc4f99b5e897a6fc581cd31ef0b23a22ebaff7ae758eaba92e182426aa7a6bfdbe4da7ea6b41cddc42741cd6c0a0d1a8
53125312
languageName: node
53135313
linkType: hard
53145314

@@ -25854,7 +25854,7 @@ __metadata:
2585425854
"@docusaurus/theme-mermaid": "npm:^3.0.1"
2585525855
"@js-temporal/polyfill": "npm:^0.5.0"
2585625856
"@mdx-js/react": "npm:^3.1.0"
25857-
"@monaco-editor/react": "npm:^4.4.6"
25857+
"@monaco-editor/react": "npm:^4.8.0-rc.0"
2585825858
"@number-flow/react": "npm:^0.5.0"
2585925859
"@tsconfig/docusaurus": "npm:^2.0.0"
2586025860
"@types/react": "npm:19.2.2"

0 commit comments

Comments
 (0)