monaco-react/package.json
Suren Atoyan e7d98cb181
v4 (#163)
* update dependency (@monaco-editor/loader) version to - v1.0.0

* create useMonaco hook

* export useMonaco from the entry file

* rename the main utility: monaco -> loader

* rename editorDidMount to onMount, add beforeMount

* add defaultModelPath/originalModelPath/modifiedModelPath props

* add defaultValue prop and use it during default model creation

* rename the utility name: monaco -> loader

* handle no-unused-expressions rule

* move 'prop-types' to dependencies

* remove  prop

* remove ControlledEditor

* visually combine properties with the same type

* prerelease v4

* prerelease v4: release candidate 0

* fix types according to changed

* add onValidate prop: an event emitted when the length of the model markers of the current model isn't 0

* update package version to 4.0.0-rc.1

* rename monacoEditor to monaco in types

* add state-local as a dependency

* define state-local as a external library and set in UMD globals

* use state-local to store the backup of the model markers setter

* fix types in comments

* create draft version of v4 README file

* fix tabs in Documentation

* make title upper case

* add codesandbox likns
2021-01-17 18:56:18 +04:00

93 lines
2.6 KiB
JSON

{
"name": "@monaco-editor/react",
"version": "4.0.0-rc.2",
"description": "Monaco editor wrapper for easy/one-line integration with React applications (e.g. powered by create-react-app) without need of webpack configuration files",
"author": "Suren Atoyan <contact@surenatoyan.com>",
"main": "lib/cjs/index.js",
"module": "lib/es/index.js",
"unpkg": "lib/umd/monaco-react.min.js",
"jsdelivr": "lib/umd/monaco-react.min.js",
"types": "lib/types.d.ts",
"scripts": {
"lint": "npx eslint src",
"build": "rollup -c && cp ./src/types.d.ts ./lib/",
"build-dev": "rollup -c -w && cp ./src/types.d.ts ./lib/",
"prepublish": "npm test && npm run lint && npm run build",
"test": "npx jest"
},
"repository": {
"type": "git",
"url": "git+https://github.com/suren-atoyan/monaco-react.git"
},
"keywords": [
"monaco",
"editor",
"react",
"vscode",
"code",
"text"
],
"license": "MIT",
"bugs": {
"url": "https://github.com/suren-atoyan/monaco-react/issues"
},
"homepage": "https://github.com/suren-atoyan/monaco-react#readme",
"peerDependencies": {
"monaco-editor": "^0.21.2",
"react": "^16.8.0 || ^17.0.0",
"react-dom": "^16.8.0 || ^17.0.0"
},
"devDependencies": {
"@babel/cli": "^7.10.5",
"@babel/core": "^7.11.0",
"@babel/plugin-transform-runtime": "^7.11.0",
"@babel/preset-env": "^7.11.0",
"@babel/preset-react": "^7.10.4",
"@rollup/plugin-babel": "^5.2.2",
"@rollup/plugin-commonjs": "^17.0.0",
"@rollup/plugin-node-resolve": "^11.0.1",
"@rollup/plugin-replace": "^2.3.4",
"@testing-library/jest-dom": "^5.1.1",
"@testing-library/react": "^9.4.0",
"babel-eslint": "10.0.3",
"babel-jest": "^25.1.0",
"eslint": "6.6.0",
"eslint-config-react-app": "^5.2.0",
"eslint-plugin-flowtype": "4.6.0",
"eslint-plugin-import": "2.20.1",
"eslint-plugin-jsx-a11y": "6.2.3",
"eslint-plugin-react": "7.18.3",
"eslint-plugin-react-hooks": "2.4.0",
"husky": "^4.2.3",
"jest": "^25.1.0",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"rollup": "^2.36.1",
"rollup-plugin-peer-deps-external": "^2.2.4",
"rollup-plugin-terser": "^7.0.2"
},
"babel": {
"presets": [
"@babel/preset-env",
"@babel/preset-react"
]
},
"husky": {
"hooks": {
"pre-commit": "npm test && npm run lint"
}
},
"jest": {
"testPathIgnorePatterns": [
"/node_modules/",
"/demo/",
"/playground/"
]
},
"dependencies": {
"@monaco-editor/loader": "^1.0.0",
"prop-types": "^15.7.2",
"state-local": "^1.0.7"
}
}