diff --git a/.gitignore b/.gitignore index 54fa46d..c29145f 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,8 @@ __generated__/ dist/ temp/ tmp/ +playwright-report/ +test-results/ # Created by https://www.toptal.com/developers/gitignore/api/windows # Edit at https://www.toptal.com/developers/gitignore?templates=windows @@ -445,8 +447,6 @@ web_modules/ # Next.js build output .next -playwright-report/ -test-results/ out # Nuxt.js build / generate output diff --git a/.yarnrc.yml b/.yarnrc.yml index 7027ce8..6db975e 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -18,7 +18,9 @@ npmPreapprovedPackages: - '@exercode/*' - '@willbooster/*' - agent-runtime-kit + - at-decorators - build-ts + - gen-i18n-ts - one-way-git-sync - next - '@next/*' diff --git a/README.md b/README.md index 8a04610..09a18df 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,9 @@ # @willbooster/monaco-react +[![Test](https://github.com/WillBooster/monaco-react/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/monaco-react/actions/workflows/test.yml) +[![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![monthly downloads](https://img.shields.io/npm/dm/@willbooster/monaco-react)](https://www.npmjs.com/package/@willbooster/monaco-react) [![npm version](https://img.shields.io/npm/v/@willbooster/monaco-react.svg?style=flat)](https://www.npmjs.com/package/@willbooster/monaco-react) -[![Test](https://github.com/WillBooster/monaco-react/actions/workflows/test.yml/badge.svg)](https://github.com/WillBooster/monaco-react/actions/workflows/test.yml) React components for [Monaco Editor](https://microsoft.github.io/monaco-editor/), powered by [`@willbooster/monaco-loader`](https://github.com/WillBooster/monaco-loader). diff --git a/package.json b/package.json index dbf6a1e..df08830 100644 --- a/package.json +++ b/package.json @@ -42,12 +42,11 @@ "check-all-for-ai": "yarn check-for-ai && yarn test", "check-for-ai": "yarn install > /dev/null && yarn format > /dev/null 2> /dev/null || true && yarn lint-fix --quiet", "cleanup": "yarn format && yarn lint-fix", - "format": "sort-package-json && yarn format-code && yarn prettify", + "format": "sort-package-json && yarn format-code", "format-code": "oxfmt --write --no-error-on-unmatched-pattern .", "lint": "oxlint --no-error-on-unmatched-pattern .", "lint-fix": "yarn lint --fix", "prepare": "lefthook install || true", - "prettify": "prettier --cache --color --no-error-on-unmatched-pattern --write \"**/{.*/,}*.{java}\" \"!**/test{-,/}fixtures/**\" || true", "test": "yarn test:unit && yarn test:e2e:next", "test:e2e:next": "yarn build && next build e2e/next-app && playwright test --config e2e/next-app/playwright.config.ts", "test:unit": "vitest", @@ -55,7 +54,8 @@ "typecheck": "tsgo --noEmit" }, "dependencies": { - "@willbooster/monaco-loader": "1.0.1" + "@willbooster/monaco-loader": "1.1.1", + "monaco-editor": "0.55.1" }, "devDependencies": { "@playwright/test": "1.59.1", @@ -67,20 +67,16 @@ "@types/node": "25.6.0", "@types/react": "19.2.14", "@types/react-dom": "19.2.3", - "@typescript/native-preview": "7.0.0-dev.20260417.1", + "@typescript/native-preview": "7.0.0-dev.20260418.1", "@willbooster/oxfmt-config": "1.2.1", "@willbooster/oxlint-config": "1.4.4", - "@willbooster/prettier-config": "10.4.0", "conventional-changelog-conventionalcommits": "9.3.1", "jsdom": "29.0.2", "lefthook": "2.1.5", - "monaco-editor": "0.55.1", "next": "16.2.4", "oxfmt": "0.45.0", "oxlint": "1.60.0", "oxlint-tsgolint": "0.21.0", - "prettier": "3.8.2", - "prettier-plugin-java": "2.8.1", "react": "19.2.5", "react-dom": "19.2.5", "semantic-release": "25.0.3", @@ -90,11 +86,9 @@ "vitest": "4.1.4" }, "peerDependencies": { - "monaco-editor": "^0.55.1", "react": "^19.0.0", "react-dom": "^19.0.0" }, - "prettier": "@willbooster/prettier-config", "engines": { "node": ">=24" }, diff --git a/yarn.lock b/yarn.lock index a555917..3f550fe 100644 --- a/yarn.lock +++ b/yarn.lock @@ -124,48 +124,6 @@ __metadata: languageName: node linkType: hard -"@chevrotain/cst-dts-gen@npm:11.0.3": - version: 11.0.3 - resolution: "@chevrotain/cst-dts-gen@npm:11.0.3" - dependencies: - "@chevrotain/gast": "npm:11.0.3" - "@chevrotain/types": "npm:11.0.3" - lodash-es: "npm:4.17.21" - checksum: 10c0/9e945a0611386e4e08af34c2d0b3af36c1af08f726b58145f11310f2aeafcb2d65264c06ec65a32df6b6a65771e6a55be70580c853afe3ceb51487e506967104 - languageName: node - linkType: hard - -"@chevrotain/gast@npm:11.0.3": - version: 11.0.3 - resolution: "@chevrotain/gast@npm:11.0.3" - dependencies: - "@chevrotain/types": "npm:11.0.3" - lodash-es: "npm:4.17.21" - checksum: 10c0/54fc44d7b4a7b0323f49d957dd88ad44504922d30cb226d93b430b0e09925efe44e0726068581d777f423fabfb878a2238ed2c87b690c0c0014ebd12b6968354 - languageName: node - linkType: hard - -"@chevrotain/regexp-to-ast@npm:11.0.3": - version: 11.0.3 - resolution: "@chevrotain/regexp-to-ast@npm:11.0.3" - checksum: 10c0/6939c5c94fbfb8c559a4a37a283af5ded8e6147b184a7d7bcf5ad1404d9d663c78d81602bd8ea8458ec497358a9e1671541099c511835d0be2cad46f00c62b3f - languageName: node - linkType: hard - -"@chevrotain/types@npm:11.0.3": - version: 11.0.3 - resolution: "@chevrotain/types@npm:11.0.3" - checksum: 10c0/72fe8f0010ebef848e47faea14a88c6fdc3cdbafaef6b13df4a18c7d33249b1b675e37b05cb90a421700c7016dae7cd4187ab6b549e176a81cea434f69cd2503 - languageName: node - linkType: hard - -"@chevrotain/utils@npm:11.0.3": - version: 11.0.3 - resolution: "@chevrotain/utils@npm:11.0.3" - checksum: 10c0/b31972d1b2d444eef1499cf9b7576fc1793e8544910de33a3c18e07c270cfad88067f175d0ee63e7bc604713ebed647f8190db45cc8311852cd2d4fe2ef14068 - languageName: node - linkType: hard - "@colors/colors@npm:1.5.0": version: 1.5.0 resolution: "@colors/colors@npm:1.5.0" @@ -2146,66 +2104,66 @@ __metadata: languageName: node linkType: hard -"@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260417.1": - version: 7.0.0-dev.20260417.1 - resolution: "@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260417.1" +"@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260418.1": + version: 7.0.0-dev.20260418.1 + resolution: "@typescript/native-preview-darwin-arm64@npm:7.0.0-dev.20260418.1" conditions: os=darwin & cpu=arm64 languageName: node linkType: hard -"@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260417.1": - version: 7.0.0-dev.20260417.1 - resolution: "@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260417.1" +"@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260418.1": + version: 7.0.0-dev.20260418.1 + resolution: "@typescript/native-preview-darwin-x64@npm:7.0.0-dev.20260418.1" conditions: os=darwin & cpu=x64 languageName: node linkType: hard -"@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260417.1": - version: 7.0.0-dev.20260417.1 - resolution: "@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260417.1" +"@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260418.1": + version: 7.0.0-dev.20260418.1 + resolution: "@typescript/native-preview-linux-arm64@npm:7.0.0-dev.20260418.1" conditions: os=linux & cpu=arm64 languageName: node linkType: hard -"@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260417.1": - version: 7.0.0-dev.20260417.1 - resolution: "@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260417.1" +"@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260418.1": + version: 7.0.0-dev.20260418.1 + resolution: "@typescript/native-preview-linux-arm@npm:7.0.0-dev.20260418.1" conditions: os=linux & cpu=arm languageName: node linkType: hard -"@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260417.1": - version: 7.0.0-dev.20260417.1 - resolution: "@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260417.1" +"@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260418.1": + version: 7.0.0-dev.20260418.1 + resolution: "@typescript/native-preview-linux-x64@npm:7.0.0-dev.20260418.1" conditions: os=linux & cpu=x64 languageName: node linkType: hard -"@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260417.1": - version: 7.0.0-dev.20260417.1 - resolution: "@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260417.1" +"@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260418.1": + version: 7.0.0-dev.20260418.1 + resolution: "@typescript/native-preview-win32-arm64@npm:7.0.0-dev.20260418.1" conditions: os=win32 & cpu=arm64 languageName: node linkType: hard -"@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260417.1": - version: 7.0.0-dev.20260417.1 - resolution: "@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260417.1" +"@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260418.1": + version: 7.0.0-dev.20260418.1 + resolution: "@typescript/native-preview-win32-x64@npm:7.0.0-dev.20260418.1" conditions: os=win32 & cpu=x64 languageName: node linkType: hard -"@typescript/native-preview@npm:7.0.0-dev.20260417.1": - version: 7.0.0-dev.20260417.1 - resolution: "@typescript/native-preview@npm:7.0.0-dev.20260417.1" +"@typescript/native-preview@npm:7.0.0-dev.20260418.1": + version: 7.0.0-dev.20260418.1 + resolution: "@typescript/native-preview@npm:7.0.0-dev.20260418.1" dependencies: - "@typescript/native-preview-darwin-arm64": "npm:7.0.0-dev.20260417.1" - "@typescript/native-preview-darwin-x64": "npm:7.0.0-dev.20260417.1" - "@typescript/native-preview-linux-arm": "npm:7.0.0-dev.20260417.1" - "@typescript/native-preview-linux-arm64": "npm:7.0.0-dev.20260417.1" - "@typescript/native-preview-linux-x64": "npm:7.0.0-dev.20260417.1" - "@typescript/native-preview-win32-arm64": "npm:7.0.0-dev.20260417.1" - "@typescript/native-preview-win32-x64": "npm:7.0.0-dev.20260417.1" + "@typescript/native-preview-darwin-arm64": "npm:7.0.0-dev.20260418.1" + "@typescript/native-preview-darwin-x64": "npm:7.0.0-dev.20260418.1" + "@typescript/native-preview-linux-arm": "npm:7.0.0-dev.20260418.1" + "@typescript/native-preview-linux-arm64": "npm:7.0.0-dev.20260418.1" + "@typescript/native-preview-linux-x64": "npm:7.0.0-dev.20260418.1" + "@typescript/native-preview-win32-arm64": "npm:7.0.0-dev.20260418.1" + "@typescript/native-preview-win32-x64": "npm:7.0.0-dev.20260418.1" dependenciesMeta: "@typescript/native-preview-darwin-arm64": optional: true @@ -2223,7 +2181,7 @@ __metadata: optional: true bin: tsgo: bin/tsgo.js - checksum: 10c0/a6ab152d4aa5ac2033e053240658d15da1bda2acb9ef87f0250b5c78526a1e7ce59449c80ba46fed62382aed13b30ae0cc892bcf7ccaf7115321131e34e4cc82 + checksum: 10c0/a97d905a15648fbc01d40ec57fa6d00a4fbcdd3565c36b0673915c686278a0c6227cd1b8a8ff0ab9ccf274a7ec7c45fc7261649e2e9cff5c334e6a6b4b28326f languageName: node linkType: hard @@ -2309,12 +2267,12 @@ __metadata: languageName: node linkType: hard -"@willbooster/monaco-loader@npm:1.0.1": - version: 1.0.1 - resolution: "@willbooster/monaco-loader@npm:1.0.1" - peerDependencies: - monaco-editor: ^0.55.1 - checksum: 10c0/19346f7b69566db437e7f55a9634bed80d41ce658c7af65c28fa7020fd477051dcdefb607c721f78074259f6297ee6f9c44140c1b3b99a7784f9ca4cb1e8bf61 +"@willbooster/monaco-loader@npm:1.1.1": + version: 1.1.1 + resolution: "@willbooster/monaco-loader@npm:1.1.1" + dependencies: + monaco-editor: "npm:0.55.1" + checksum: 10c0/18111cd208bf59d1b2f6787b248d59e330a8877eccc6a16ed886e864ac6124839ccd379d74d4749c94aaf39155658a0e55e96f18866c1131d25db8b450c12733 languageName: node linkType: hard @@ -2331,11 +2289,10 @@ __metadata: "@types/node": "npm:25.6.0" "@types/react": "npm:19.2.14" "@types/react-dom": "npm:19.2.3" - "@typescript/native-preview": "npm:7.0.0-dev.20260417.1" - "@willbooster/monaco-loader": "npm:1.0.1" + "@typescript/native-preview": "npm:7.0.0-dev.20260418.1" + "@willbooster/monaco-loader": "npm:1.1.1" "@willbooster/oxfmt-config": "npm:1.2.1" "@willbooster/oxlint-config": "npm:1.4.4" - "@willbooster/prettier-config": "npm:10.4.0" conventional-changelog-conventionalcommits: "npm:9.3.1" jsdom: "npm:29.0.2" lefthook: "npm:2.1.5" @@ -2344,8 +2301,6 @@ __metadata: oxfmt: "npm:0.45.0" oxlint: "npm:1.60.0" oxlint-tsgolint: "npm:0.21.0" - prettier: "npm:3.8.2" - prettier-plugin-java: "npm:2.8.1" react: "npm:19.2.5" react-dom: "npm:19.2.5" semantic-release: "npm:25.0.3" @@ -2354,7 +2309,6 @@ __metadata: typescript: "npm:5.9.3" vitest: "npm:4.1.4" peerDependencies: - monaco-editor: ^0.55.1 react: ^19.0.0 react-dom: ^19.0.0 languageName: unknown @@ -2379,16 +2333,6 @@ __metadata: languageName: node linkType: hard -"@willbooster/prettier-config@npm:10.4.0": - version: 10.4.0 - resolution: "@willbooster/prettier-config@npm:10.4.0" - peerDependencies: - prettier: ">=3" - prettier-plugin-java: ">=2.6" - checksum: 10c0/37c25f8664d13ab5caf25f57545cbbec4f8005c812ee45d291f2e7ab7ab040c3bcd7ecf1c05c0872da884e044f6139413336fb158777649e249913efe176945f - languageName: node - linkType: hard - "abbrev@npm:^4.0.0": version: 4.0.0 resolution: "abbrev@npm:4.0.0" @@ -2711,31 +2655,6 @@ __metadata: languageName: node linkType: hard -"chevrotain-allstar@npm:0.3.1": - version: 0.3.1 - resolution: "chevrotain-allstar@npm:0.3.1" - dependencies: - lodash-es: "npm:^4.17.21" - peerDependencies: - chevrotain: ^11.0.0 - checksum: 10c0/5cadedffd3114eb06b15fd3939bb1aa6c75412dbd737fe302b52c5c24334f9cb01cee8edc1d1067d98ba80dddf971f1d0e94b387de51423fc6cf3c5d8b7ef27a - languageName: node - linkType: hard - -"chevrotain@npm:11.0.3": - version: 11.0.3 - resolution: "chevrotain@npm:11.0.3" - dependencies: - "@chevrotain/cst-dts-gen": "npm:11.0.3" - "@chevrotain/gast": "npm:11.0.3" - "@chevrotain/regexp-to-ast": "npm:11.0.3" - "@chevrotain/types": "npm:11.0.3" - "@chevrotain/utils": "npm:11.0.3" - lodash-es: "npm:4.17.21" - checksum: 10c0/ffd425fa321e3f17e9833d7f44cd39f2743f066e92ca74b226176080ca5d455f853fe9091cdfd86354bd899d85c08b3bdc3f55b267e7d07124b048a88349765f - languageName: node - linkType: hard - "chokidar@npm:^4.0.3": version: 4.0.3 resolution: "chokidar@npm:4.0.3" @@ -4019,17 +3938,6 @@ __metadata: languageName: node linkType: hard -"java-parser@npm:3.0.1": - version: 3.0.1 - resolution: "java-parser@npm:3.0.1" - dependencies: - chevrotain: "npm:11.0.3" - chevrotain-allstar: "npm:0.3.1" - lodash: "npm:4.17.21" - checksum: 10c0/9b60f1132b65785fe4f4c10785fc1638a4092aecf222f63706c119425d0ffb676b7229390abe289082cf837cd470df63f9b9383743d470816fa170240f8b1e22 - languageName: node - linkType: hard - "java-properties@npm:^1.0.2": version: 1.0.2 resolution: "java-properties@npm:1.0.2" @@ -4564,13 +4472,6 @@ __metadata: languageName: node linkType: hard -"lodash-es@npm:4.17.21": - version: 4.17.21 - resolution: "lodash-es@npm:4.17.21" - checksum: 10c0/fb407355f7e6cd523a9383e76e6b455321f0f153a6c9625e21a8827d10c54c2a2341bd2ae8d034358b60e07325e1330c14c224ff582d04612a46a4f0479ff2f2 - languageName: node - linkType: hard - "lodash-es@npm:^4.17.21": version: 4.18.1 resolution: "lodash-es@npm:4.18.1" @@ -4620,13 +4521,6 @@ __metadata: languageName: node linkType: hard -"lodash@npm:4.17.21": - version: 4.17.21 - resolution: "lodash@npm:4.17.21" - checksum: 10c0/d8cbea072bb08655bb4c989da418994b073a608dffa608b09ac04b43a791b12aeae7cd7ad919aa4c925f33b48490b5cfe6c1f71d827956071dae2e7bb3a6b74c - languageName: node - linkType: hard - "lru-cache@npm:^10.0.1": version: 10.4.3 resolution: "lru-cache@npm:10.4.3" @@ -5845,26 +5739,6 @@ __metadata: languageName: node linkType: hard -"prettier-plugin-java@npm:2.8.1": - version: 2.8.1 - resolution: "prettier-plugin-java@npm:2.8.1" - dependencies: - java-parser: "npm:3.0.1" - peerDependencies: - prettier: ^3.0.0 - checksum: 10c0/85c8ded14a0aaf1df1d5367ebe0f18c9d7d7284780a13bd1e037ca0190ebc4d42e69a849ddd3a2440c4c14cc19fbeb3b57acec1a3cd61076e917a1432dd72c75 - languageName: node - linkType: hard - -"prettier@npm:3.8.2": - version: 3.8.2 - resolution: "prettier@npm:3.8.2" - bin: - prettier: bin/prettier.cjs - checksum: 10c0/2d64bd01d269c8dd6d8c423a2a2e1fb88230a53aac523204b327de40059ccf8bd8e6fe70b8ce6154b97ed4442e9fd878504ff8a5330f3a4f64bd13d1576f7652 - languageName: node - linkType: hard - "pretty-format@npm:^27.0.2": version: 27.5.1 resolution: "pretty-format@npm:27.5.1"