@sanity/code-input
Version:
Sanity input component for code, powered by CodeMirror
140 lines (139 loc) • 4.12 kB
JSON
{
"name": "@sanity/code-input",
"version": "5.2.0",
"description": "Sanity input component for code, powered by CodeMirror",
"keywords": [
"sanity",
"cms",
"headless",
"realtime",
"content",
"code-input",
"sanity-plugin",
"code-editor"
],
"homepage": "https://github.com/sanity-io/code-input#readme",
"bugs": {
"url": "https://github.com/sanity-io/code-input/issues"
},
"repository": {
"type": "git",
"url": "git@github.com:sanity-io/code-input.git"
},
"license": "MIT",
"author": "Sanity.io <hello@sanity.io>",
"type": "module",
"exports": {
".": {
"source": "./src/index.ts",
"import": "./lib/index.js",
"require": "./lib/index.cjs",
"default": "./lib/index.js"
},
"./package.json": "./package.json"
},
"main": "./lib/index.cjs",
"module": "./lib/index.esm.js",
"types": "./lib/index.d.ts",
"files": [
"lib",
"sanity.json",
"src",
"v2-incompatible.js"
],
"sideEffects": false,
"browserslist": "extends @sanity/browserslist-config",
"scripts": {
"build": "plugin-kit verify-package --silent && pkg-utils build --strict --check --clean",
"clean": "rimraf lib",
"compile": "tsc --noEmit",
"dev": "sanity dev",
"format": "prettier --write --cache --ignore-unknown .",
"link-watch": "plugin-kit link-watch",
"lint": "eslint .",
"prepare": "husky install",
"prepublishOnly": "npm run build",
"test": "jest",
"watch": "pkg-utils watch --strict"
},
"dependencies": {
"@codemirror/autocomplete": "^6.18.3",
"@codemirror/commands": "^6.7.1",
"@codemirror/lang-html": "^6.4.9",
"@codemirror/lang-java": "^6.0.1",
"@codemirror/lang-javascript": "^6.2.2",
"@codemirror/lang-json": "^6.0.1",
"@codemirror/lang-markdown": "^6.3.1",
"@codemirror/lang-php": "^6.0.1",
"@codemirror/lang-sql": "^6.8.0",
"@codemirror/language": "^6.10.6",
"@codemirror/legacy-modes": "^6.4.2",
"@codemirror/search": "^6.5.8",
"@codemirror/state": "^6.5.0",
"@codemirror/view": "^6.35.3",
"@juggle/resize-observer": "^3.4.0",
"@lezer/highlight": "^1.2.1",
"@sanity/icons": "^3.5.2",
"@sanity/incompatible-plugin": "^1.0.4",
"@sanity/ui": "^3.0.5",
"@uiw/codemirror-themes": "^4.23.6",
"@uiw/react-codemirror": "^4.23.6"
},
"devDependencies": {
"@babel/core": "^7.23.6",
"@babel/preset-env": "^7.23.6",
"@babel/preset-react": "^7.23.3",
"@commitlint/cli": "^19.6.0",
"@commitlint/config-conventional": "^19.6.0",
"@sanity/pkg-utils": "^6.12.0",
"@sanity/plugin-kit": "^4.0.18",
"@sanity/semantic-release-preset": "^5.0.0",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^14.1.2",
"@types/jest": "^29.5.11",
"@types/react": "^18.2.45",
"@types/styled-components": "^5.1.34",
"@typescript-eslint/eslint-plugin": "^6.14.0",
"@typescript-eslint/parser": "^6.14.0",
"eslint": "^8.55.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-sanity": "^7.0.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^8.0.1",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"lint-staged": "^15.2.0",
"npm-run-all": "^4.1.5",
"prettier": "^3.1.1",
"prettier-plugin-packagejson": "^2.4.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-is": "^18.2.0",
"rimraf": "^5.0.5",
"sanity": "^3.67.1",
"semantic-release": "^24.2.0",
"styled-components": "^6.1.1",
"ts-jest": "^29.1.1",
"typescript": "^5.3.3"
},
"peerDependencies": {
"react": "^18 || >=19.0.0-0",
"react-dom": "^18 || >=19.0.0-0",
"sanity": "^3 || ^4.0.0-0",
"styled-components": "^5.2 || ^6"
},
"engines": {
"node": ">=18"
},
"sanityExchangeUrl": "https://www.sanity.io/plugins/code-input",
"sanityPlugin": {
"verifyPackage": {
"babelConfig": false
}
},
"overrides": {
"conventional-changelog-conventionalcommits": ">= 8.0.0"
}
}