diff --git a/.changeset/early-hairs-hug.md b/.changeset/early-hairs-hug.md new file mode 100644 index 0000000..6de8614 --- /dev/null +++ b/.changeset/early-hairs-hug.md @@ -0,0 +1,5 @@ +--- +'@envyjs/webui': minor +--- + +Use monaco-editor for code display diff --git a/package.json b/package.json index 69428ec..05d9b87 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,6 @@ "wait-on": "^7.0.1" }, "resolutions": { - "@microlink/react-json-view/react": ">=17", "react-hot-toast/csstype": "^3.0.10" }, "lint-staged": { diff --git a/packages/webui/package.json b/packages/webui/package.json index bc3bcf2..f2682a8 100644 --- a/packages/webui/package.json +++ b/packages/webui/package.json @@ -62,7 +62,9 @@ }, "dependencies": { "@envyjs/core": "0.8.4", + "@monaco-editor/react": "4.6.0", "chalk": "^4.1.2", + "monaco-editor": "0.44.0", "react": "^18.2.0", "react-dom": "^18.2.0", "serve-handler": "^6.1.5", @@ -71,7 +73,6 @@ "yargs-parser": "^21.1.1" }, "devDependencies": { - "@microlink/react-json-view": "^1.22.2", "@parcel/config-default": "^2.9.3", "@parcel/core": "^2.9.3", "@storybook/cli": "^7.4.6", @@ -115,9 +116,6 @@ "ts-jest-mock-import-meta": "^1.1.0", "vite": "^4.4.9" }, - "peerDependencies": { - "@microlink/react-json-view": "^1.22.2" - }, "browserslist": [ ">0.2%", "not ie <= 11" diff --git a/packages/webui/src/components/Authorization.test.tsx b/packages/webui/src/components/Authorization.test.tsx index 4e1892e..2261710 100644 --- a/packages/webui/src/components/Authorization.test.tsx +++ b/packages/webui/src/components/Authorization.test.tsx @@ -10,9 +10,8 @@ jest.mock('@/components', () => ({ IconButton: function ({ short, Icon, ...safeProps }: any) { return