{"_id":"@focus-reactive/react-yaml","_rev":"15-6350e1b930033faafa587e33aa15e198","name":"@focus-reactive/react-yaml","dist-tags":{"latest":"1.1.2"},"versions":{"0.1.0":{"name":"@focus-reactive/react-yaml","version":"0.1.0","keywords":["react","yaml","syntax","highlight","validation","component","input","editor","plugin","extension","addon","custom","field","custom-field","codemirror","js-yaml","react-yaml"],"author":{"url":"https://github.com/focusreactive","name":"Oleg Proskurin","email":"oleg@focusreactive.com"},"license":"MIT","_id":"@focus-reactive/react-yaml@0.1.0","maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"},{"name":"operatino","email":"robert@focusreactive.com"},{"name":"usulpro","email":"regx@usul.su"},{"name":"alex_hramovich","email":"alex@focusreactive.com"}],"homepage":"https://github.com/focusreactive/headless-cms-yaml-input/react-yaml","bugs":{"url":"https://github.com/focusreactive/headless-cms-yaml-input/react-yaml/issues"},"dist":{"shasum":"0f526228c2a3a4147cc17248c5a81bf13c4b54d1","tarball":"https://registry.npmjs.org/@focus-reactive/react-yaml/-/react-yaml-0.1.0.tgz","fileCount":6,"integrity":"sha512-czjTbPyW4FaWGs7HCwsUaqXx1k0IvDTcv81xujIxVW9+T1m5h6p+mkQpKX6bwFi2DTMkQIoDHZWs58AAYHGKBg==","signatures":[{"sig":"MEUCIBYW1BJLZtUfFT8bVPhPnKh2AekCWmieZBSIvs+PEwTmAiEAjDf1WNO68uG3Muy01aOR19zIwKS3vvvWEuLvpbZcDOk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14220,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhO5tbCRA9TVsSAnZWagAAryMP/R4xaEJctiWtoMY9fHJR\nlzHTxCbGPL+6uqN1HvF5iD796UL5BTJnuf7hIK8HIWs6JRCEZptil481yDcW\n4WF13uPn0FZLie0ey8RPvvRg785GHHE5LUvX30c6xxYQyit6H6URa+/3TFDT\nFssw4uZ1bF3ds4o0JlN3auHH+NBdr5ZcsqZ9Wh/NJw3RrSXEu10KIqLB18wY\ngllI6mllp0PT3ihSOl63gam8CXhEVgI7KZT0zJJ2WH9ZZ/RXSkQfPUb8s5Nu\nJkP3w8slLKFA8P1ovRJ8JNQxp2kVVFD1x6mmkAaJucoArCe1SUZKjZXjvUdx\nAC/1rgoJ/Q5XprpLRcsW2/KY2ujNQDWSExpxNoCzuE8PVVFIk/N/rO8y15/m\n1UgzWPJdkRMtdP2UaI3b1RGunGCppiv8DMWHh3QUSIGEqLTonZIRHS70jlu6\nYAZHzCUtO2iM3v6cXEx9j4nzMimIziBFgQUtsKpqHxzXFjCLWjgjvqpi3wkQ\ngJTMoyOGbWAy/sW0AHQ39SCAZYBuof9dqgKvDV5AryKV01yb8zp9Luf5jF/N\nU+O3CUNtY8ikGX4RS0Bp4T1RZOW4cl5wRI9pUbeXdXNmuk+ZdmNHzTf7HFLp\nNeapk5EFmmxc7bpcZcuMAtlmlfoijYZd1XPlWC8VH+I2nYpId96UvLC6ntS+\nxDc2\r\n=hGBK\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","private":false,"scripts":{"dev":"next dev","lint":"next lint","build":"next build","start":"next start","prepare":"package-prepare"},"_npmUser":{"name":"usulpro","email":"regx@usul.su"},"repository":{"url":"git+https://github.com/focusreactive/headless-cms-yaml-input.git","type":"git"},"_npmVersion":"6.14.13","description":"Yaml input field with validation and syntax highlighting as React Component","directories":{},"_nodeVersion":"14.17.1","dependencies":{"js-yaml":"^4.1.0","@codemirror/view":"^0.19.4","@codemirror/state":"^0.19.1","@codemirror/tooltip":"^0.19.2","@codemirror/commands":"^0.19.3","@codemirror/basic-setup":"^0.19.0","@codemirror/legacy-modes":"^0.19.0","@usulpro/package-prepare":"^1.3.1","@codemirror/stream-parser":"^0.19.2","@codemirror/theme-one-dark":"^0.19.0","@codemirror/lang-javascript":"^0.19.1"},"_hasShrinkwrap":false,"devDependencies":{"next":"11.1.2","react":"^17.0.2","eslint":"7.32.0","nodemon":"^2.0.12","prettier":"^2.0.5","react-dom":"17.0.2","@babel/cli":"^7.15.4","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-next":"11.1.2","eslint-plugin-jest":"^24.3.2","@babel/preset-react":"^7.14.5","eslint-plugin-react":"^7.20.0","eslint-config-airbnb":"^18.2.0","eslint-plugin-import":"^2.21.2","eslint-config-prettier":"^8.1.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","eslint-plugin-react-hooks":"^4.0.4"},"peerDependencies":{"react":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-yaml_0.1.0_1631296347777_0.6037459035542225","host":"s3://npm-registry-packages"}},"1.0.0":{"name":"@focus-reactive/react-yaml","version":"1.0.0","keywords":["react","yaml","syntax","highlight","validation","component","input","editor","plugin","extension","addon","custom","field","custom-field","codemirror","js-yaml","react-yaml"],"author":{"url":"https://github.com/focusreactive","name":"Oleg Proskurin","email":"oleg@focusreactive.com"},"license":"MIT","_id":"@focus-reactive/react-yaml@1.0.0","maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"},{"name":"operatino","email":"robert@focusreactive.com"},{"name":"usulpro","email":"regx@usul.su"},{"name":"alex_hramovich","email":"alex@focusreactive.com"}],"homepage":"https://github.com/focusreactive/headless-cms-yaml-input/react-yaml","bugs":{"url":"https://github.com/focusreactive/headless-cms-yaml-input/react-yaml/issues"},"dist":{"shasum":"f8d4709fce06c503018f4d3244087a551675218c","tarball":"https://registry.npmjs.org/@focus-reactive/react-yaml/-/react-yaml-1.0.0.tgz","fileCount":10,"integrity":"sha512-ByiROYxv5hXlggAD5u8GiWUjC43MqWjwLsbMVmjQojyLT+ess7V3DYai8+iH4NRMfJEipvhFscqWKgYwAEljfg==","signatures":[{"sig":"MEUCIQD0/oh4KJSxLiTeGincTJWtJ4IVp1EinLi/YOJDDUE99gIgI6HFgCCkaeCVQv2bQ4KTmljK2HwExYxnGaij1Yx8ZsE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh2HkVCRA9TVsSAnZWagAA/7cQAJ4bXOLZ2ak3ymMWhdUZ\nLtdRaMmhdtViFM/xVeSVUF715+ywi/j6Kj+R6ph+5fnYGqonR7iE4M2d6Jqa\n+advHw66qw1846ETdsno0wM6boqu8NXIkOedCpXm+DEmgwaDmS/aHEMWa4lY\nl+vbtqCSvm3VGq7+/8r/4mk/uWf3nUysVmiQq4DIT/P9F/0/4KwrwHiZ/f73\nzrlDNF7itn0I0H7OvhI6Inrii+y8pbGJELVmDZ2s5MTZ3F9+vGQnm4//nCVF\ngl5fNUWZzXC3ehSlCNvc7rjRLm4M52UjV4s70cqczqtcpiQezkcEW5cySB9x\nd7yZzI2dviBKPpZ8ZyZvvBucwLNj1ELqrCHAJa/MjFVH1y7Eh3O7N9DobQwe\nSJfBoC5DWHvlDgKkUjgI8llFw3+j8OdV54zCCFTJ8Cc5r63N3gsYpTuQ2xZO\nNafw2UKnYByQNzx2AB7ph0ynBFIPU43OHEcjiJQKpgoFWga+li3ujjzpc12T\nlRHWxzqNYRGlB4Zgrug3eXREmRnvY4BIpQFbu6KFoT5NpWU7VVaJPd29NFTN\nPv+JK8euxkbH/eqzSM85uYT0n4JhCvTRZrbfuZOHKBoXRPNz9OJtQuJ07wsM\ng2XsH/pi5PVlTNMJh9MSJgQ9H8KIDL/X32r4bKW96OFdg5eV/yBdCPV6jmit\nnxgg\r\n=XTxN\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/types/index.d.ts","private":false,"scripts":{"dev":"next dev","lint":"next lint","build":"next build","start":"next start","prepare":"package-prepare","dev:watch":"nodemon --exec yarn prepare"},"_npmUser":{"name":"usulpro","email":"regx@usul.su"},"repository":{"url":"git+https://github.com/focusreactive/headless-cms-yaml-input.git","type":"git"},"_npmVersion":"6.14.13","description":"Yaml input field with validation and syntax highlighting as React Component","directories":{},"_nodeVersion":"14.17.1","dependencies":{"js-yaml":"^4.1.0","@codemirror/view":"^0.19.4","@codemirror/state":"^0.19.1","@codemirror/tooltip":"^0.19.2","@codemirror/commands":"^0.19.3","@codemirror/rangeset":"^0.19.1","@codemirror/basic-setup":"^0.19.0","@codemirror/legacy-modes":"^0.19.0","@codemirror/stream-parser":"^0.19.2","@codemirror/theme-one-dark":"^0.19.0","@codemirror/lang-javascript":"^0.19.1"},"_hasShrinkwrap":false,"devDependencies":{"next":"11.1.2","react":"^17.0.2","eslint":"7.32.0","nodemon":"^2.0.12","prettier":"^2.0.5","react-dom":"17.0.2","@babel/cli":"^7.15.4","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-next":"11.1.2","eslint-plugin-jest":"^24.3.2","@babel/preset-react":"^7.14.5","eslint-plugin-react":"^7.20.0","eslint-config-airbnb":"^18.2.0","eslint-plugin-import":"^2.21.2","eslint-config-prettier":"^8.1.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","@usulpro/package-prepare":"^1.3.1","eslint-plugin-react-hooks":"^4.0.4"},"peerDependencies":{"react":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-yaml_1.0.0_1632330774923_0.7915566976848336","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"@focus-reactive/react-yaml","version":"1.1.0","keywords":["react","yaml","syntax","highlight","validation","component","input","editor","plugin","extension","addon","custom","field","custom-field","codemirror","js-yaml","react-yaml"],"author":{"url":"https://github.com/focusreactive","name":"Oleg Proskurin","email":"oleg@focusreactive.com"},"license":"MIT","_id":"@focus-reactive/react-yaml@1.1.0","maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"},{"name":"operatino","email":"robert@focusreactive.com"},{"name":"usulpro","email":"regx@usul.su"},{"name":"alex_hramovich","email":"alex@focusreactive.com"}],"homepage":"https://headless-cms-yaml-input.vercel.app/","bugs":{"url":"https://github.com/focusreactive/headless-cms-yaml-input/tree/master/react-yaml/issues"},"dist":{"shasum":"8788569219d787346aade6e56318b3bd2721b1df","tarball":"https://registry.npmjs.org/@focus-reactive/react-yaml/-/react-yaml-1.1.0.tgz","fileCount":10,"integrity":"sha512-5Q7t3rkLaOXJaggnRlSMBPMgABKBWSrbj8noPlTonwljEIW38hPwWAP7Y8mhK7TuKTIfuIEV0mYvcNvZdQ1upA==","signatures":[{"sig":"MEUCIQCnNoBzlsCObn9CUKtS/yRIx2L6mefGGVlNe0LQULIv7AIgYwhcG9ZdMyaateTGa0S2KeusLAviJVl1edMrUt5JBPE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25108,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJisYFOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqAPxAAj7rsI2F2s/QrcoRU5XAVtVdpwotKBfdI+6XSrPnuvooQr6Nt\r\nOricaq/x/Qnh2//lu3Vqgq2kTvLE9CEtiNukp0kkuHJd6z2Hze5bU1UBZgJ9\r\nY250zjaHMHVghjz29up3Q/Kc2hPMlOHZsTRJV4SH0e/kwBIUj6iVLmdnVzXR\r\nPyFL4QhlPxmUSj6IkmvIe5j+KdrPm3du5kW8lG3UbNFPwwYf3bzgzvccWT/m\r\ndDeknbCynuTpFXj8rR7Troa6dKYMyyNMQX+E4WNyIqb5gZe0j9yHDxx6uWOK\r\nQqBU3z5XoahbvJ2+/vIoPZ/zElu19mVmptY73GbpKmEen6FXsYFauKTkCEUp\r\nANvxGlkiNadwjhnmoVCDRfUu0TBFXbSGPlLibOonairujVvM0+KrKFJfBm//\r\n2FoFbkdcP5O1yjNjPoeARp+6WYNGYry07Uv5FrzC+rH+Qr9lK36peJ/c3B7I\r\nMC8JwzKErUW8y8wCZrIJgKfH2Y2qylT9zE0AQN2RaRsE6WSnUjllhLihdeCZ\r\nWJd0HF0uREYHIDDjDPguGth3Om1Qdguty/P0ALT334z+8E/K2QifNgyJZFAs\r\nNM9NWmnnL8WswznloG6WWnvriTIJqlY5KOuz3MgYFSg5O7cTfxwuV6TrO42Y\r\negQ1W0/vaA1gr3UGh6TFnuoRrUdbomj64wM=\r\n=hEOw\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/types/index.d.ts","gitHead":"1b1c71e48392858b00f0c6a4076f6ea335731431","private":false,"scripts":{"dev":"next dev","lint":"next lint","build":"next build","start":"next start","prepare":"package-prepare","dev:watch":"nodemon --exec yarn prepare"},"_npmUser":{"name":"usulpro","email":"regx@usul.su"},"repository":{"url":"git+https://github.com/focusreactive/headless-cms-yaml-input.git","type":"git"},"_npmVersion":"8.1.3","description":"Yaml input field with validation and syntax highlighting as React Component","directories":{},"_nodeVersion":"16.13.0","dependencies":{"js-yaml":"^4.1.0","@codemirror/view":"^0.19.4","@codemirror/state":"^0.19.1","@codemirror/tooltip":"^0.19.2","@codemirror/commands":"^0.19.3","@codemirror/rangeset":"^0.19.1","@codemirror/basic-setup":"^0.19.0","@codemirror/legacy-modes":"^0.19.0","@codemirror/stream-parser":"^0.19.2","@codemirror/theme-one-dark":"^0.19.0","@codemirror/lang-javascript":"^0.19.1"},"_hasShrinkwrap":false,"devDependencies":{"next":"11.1.2","react":"^17.0.2","eslint":"7.32.0","nodemon":"^2.0.12","prettier":"^2.0.5","react-dom":"17.0.2","@babel/cli":"^7.15.4","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-next":"11.1.2","eslint-plugin-jest":"^24.3.2","@babel/preset-react":"^7.14.5","eslint-plugin-react":"^7.20.0","eslint-config-airbnb":"^18.2.0","eslint-plugin-import":"^2.21.2","eslint-config-prettier":"^8.1.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","@usulpro/package-prepare":"^1.3.1","eslint-plugin-react-hooks":"^4.0.4"},"peerDependencies":{"react":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-yaml_1.1.0_1655800142649_0.8390272412110935","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"@focus-reactive/react-yaml","version":"1.1.1","keywords":["react","yaml","syntax","highlight","validation","component","input","editor","plugin","extension","addon","custom","field","custom-field","codemirror","js-yaml","react-yaml"],"author":{"url":"https://github.com/focusreactive","name":"Oleg Proskurin","email":"oleg@focusreactive.com"},"license":"MIT","_id":"@focus-reactive/react-yaml@1.1.1","maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"},{"name":"operatino","email":"robert@focusreactive.com"},{"name":"usulpro","email":"regx@usul.su"},{"name":"alex_hramovich","email":"alex@focusreactive.com"}],"homepage":"https://headless-cms-yaml-input.vercel.app/","bugs":{"url":"https://github.com/focusreactive/headless-cms-yaml-input/tree/master/react-yaml/issues"},"dist":{"shasum":"3bfa793b48e01cfa8683877acd1b17a7c2a41c5b","tarball":"https://registry.npmjs.org/@focus-reactive/react-yaml/-/react-yaml-1.1.1.tgz","fileCount":10,"integrity":"sha512-v1z7nQ4AR/HRYPXFCSC6BRSDwod8j6VinvE9wI6WcE1grugO1pJlSU6JW2rakIYYMCwqZnmyoTPPtNCrOTLT8A==","signatures":[{"sig":"MEUCIQDbmHkGkirMLKzk+eAYi9d14i+0hd9lPRI/2aKZ9tAOLQIgU9EpcP56omsBDS4kkdBtZirP2gJXl2RWIx2eR//JuEU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":25194,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJis/3MACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpH1Q//WT/xKg5ktxDD9oUlPw0YICDZqYqsRF/EzmhLtD+/WUlZIIOw\r\nrv3ELLcyFEnLzGhqunl1wWPqdx4GndxT5vkWMmUOjH25g5M8vG2w/8zjelDC\r\n5Klmf6l5pmY5VSkkrY/VCMI9WifB3aKFiwmBSic7eIVHQnHS9NK2pIXl0lY+\r\n2L9Wv8ntN8R6YRuzXotQPsKOeDGo3xcsMUgJJk/gxWwDu8BTbdojOFblTYcP\r\nqOwbJ4U3UbS6FUG9/02iNLl0vsr1k1pFcGp1d5fscY9eihNe/EwDDZxm4AKn\r\n5/6VpFMvCeR7WHFFK4deMDR05v8kNH0p7lFJgcvkia6sDCGC4kvBFboNb3yv\r\nQbSB4JOdDpXz+Qni2wP7z/1TMaJfV7B/ql2ydRQaz1eYHZrvUkbaWGGIH2Xs\r\nhi7s8yKaARgbMoYOe8+iHAkYAvwbM15V4IziLODop7wSYz8TCAwIAB9AbLKo\r\nJs41FNDkXJA5PEMJvno7zLCSaKtBX4CvuQDXqtogpaZJINXdOcRF4JlOCa4T\r\nd201lBDPYgGa4DbyhPUG0mpqpDVYXA/AN8FpWA5R1CGiCDTNgxKQK7OpyQ/1\r\nbjiWYZwJOgbXYSNeMkRcgf6sCAspRgDnnUHoZZhNOScK2SO25Yk+d2YAfIiH\r\n2vkGgWSfoltsmt1Rg0RaFKiOtgMXKDbRI58=\r\n=ncuP\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/types/index.d.ts","gitHead":"08bc563f9c620b5a495d22a53856d89836f37ca2","private":false,"scripts":{"dev":"next dev","lint":"next lint","build":"next build","start":"next start","prepare":"package-prepare","dev:watch":"nodemon --exec yarn prepare"},"_npmUser":{"name":"usulpro","email":"regx@usul.su"},"repository":{"url":"git+https://github.com/focusreactive/headless-cms-yaml-input.git","type":"git"},"_npmVersion":"8.1.3","description":"Yaml input field with validation and syntax highlighting as React Component","directories":{},"_nodeVersion":"16.13.0","dependencies":{"js-yaml":"^4.1.0","@codemirror/view":"^0.19.4","@codemirror/state":"^0.19.1","@codemirror/tooltip":"^0.19.2","@codemirror/commands":"^0.19.3","@codemirror/rangeset":"^0.19.1","@codemirror/basic-setup":"^0.19.0","@codemirror/legacy-modes":"^0.19.0","@codemirror/stream-parser":"^0.19.2","@codemirror/theme-one-dark":"^0.19.0","@codemirror/lang-javascript":"^0.19.1"},"_hasShrinkwrap":false,"devDependencies":{"next":"11.1.2","react":"^17.0.2","eslint":"7.32.0","nodemon":"^2.0.12","prettier":"^2.0.5","react-dom":"17.0.2","@babel/cli":"^7.15.4","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-next":"11.1.2","eslint-plugin-jest":"^24.3.2","@babel/preset-react":"^7.14.5","eslint-plugin-react":"^7.20.0","eslint-config-airbnb":"^18.2.0","eslint-plugin-import":"^2.21.2","eslint-config-prettier":"^8.1.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","@usulpro/package-prepare":"^1.3.1","eslint-plugin-react-hooks":"^4.0.4"},"peerDependencies":{"react":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-yaml_1.1.1_1655963084132_0.03323228938128309","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"@focus-reactive/react-yaml","version":"1.1.2","keywords":["react","yaml","syntax","highlight","validation","component","input","editor","plugin","extension","addon","custom","field","custom-field","codemirror","js-yaml","react-yaml"],"author":{"url":"https://github.com/focusreactive","name":"Oleg Proskurin","email":"oleg@focusreactive.com"},"license":"MIT","_id":"@focus-reactive/react-yaml@1.1.2","maintainers":[{"name":"pixelscommander","email":"denis.radin@gmail.com"},{"name":"operatino","email":"robert@focusreactive.com"},{"name":"usulpro","email":"regx@usul.su"},{"name":"alex_hramovich","email":"alex@focusreactive.com"}],"homepage":"https://headless-cms-yaml-input.vercel.app/","bugs":{"url":"https://github.com/focusreactive/headless-cms-yaml-input/tree/master/react-yaml/issues"},"dist":{"shasum":"0113f2841837ad9aeb2d2a94cfe9c2511cfc1e4a","tarball":"https://registry.npmjs.org/@focus-reactive/react-yaml/-/react-yaml-1.1.2.tgz","fileCount":11,"integrity":"sha512-X9/rmfuDHR+beDym2206RsD5m/5EfH26vVuGVbLXy7+BunPcVBRqwe2WbvCyoHloMUX7Ccp2xrLwmmPrvZ9hrA==","signatures":[{"sig":"MEQCICJ28bLrSBD0e47xmssLQ+7AmWuY3Skh3ztRy751jB9yAiACPhUzsIEIYNLO1ZuImUHAkyWx/yMzeFV2+mzYiuoTkw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":29998,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJitGT6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvfA/9FPhK0+ywcNIxg8HLBjhaC49/3ryMUsoXtvcyJrdfqjkjZfcV\r\nQidozsw+3GFaA6oboTFdMgpmrJm0TbTNXCha5ASmhXWPialjCF0nHCTBCuff\r\nPUd/Ei0KXUFxD77L8OCSh+x16k6VFGZAK01O1ombGg/8svW8EabD6utFpaS/\r\nURxXGCqeGAPBUIZnakdsiNGLlcHIQStesBusgP8Y11qovTfGCRSBnHAILoBL\r\nT03VVeXcXxsadsOHFGAFLSmaVYNNaltmVYBKYc8ljBp5guxaEwX0gKmQcCB8\r\nLit+AVjQS7THRE2cOKd8ziPQj4KIRtXBYTrDjf4AFL80gdM+X5/MZFuOA2HY\r\ni4dt1ju2hTNsTE4s8bmFjDgdhFBQcOgmyPThOwq3XvqOKZlrbEDjlYTQ8dFR\r\nbouBp1b5ij2lNynOswQ03pBjlpiwpqms1v0Ui6CXGuaky2N6DgE/++m1kxrw\r\nKEjujJvab3slUS0YPHJYyyC627vvBnOqqX0TQ6vTKfPRW8OcZuPNH+Ta0KXs\r\nR2p4Ky9X5ZrVmAm4kK/MYDm2wlXXQwFYIe9TwVwwrJGDUmBT7HfXLlCkutrt\r\nPytHp4bXEZbRatEpm1cl+nXv5FPT8k6yEUpiBJguL67jQPVWNkMdpY8go+/E\r\nqfe9Zk+NHjFRqrgauXxi/JGYvKmc635FjuE=\r\n=T6a4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"dist/index.js","types":"dist/types/index.d.ts","gitHead":"d8fe2c66ace3782b2df8b7bd75e0ceaddaa0bb19","private":false,"scripts":{"dev":"next dev","lint":"next lint","build":"next build","start":"next start","prepare":"package-prepare","dev:watch":"nodemon --exec yarn prepare"},"_npmUser":{"name":"usulpro","email":"regx@usul.su"},"repository":{"url":"git+https://github.com/focusreactive/headless-cms-yaml-input.git","type":"git"},"_npmVersion":"8.1.3","description":"Yaml input field with validation and syntax highlighting as React Component","directories":{},"_nodeVersion":"16.13.0","dependencies":{"js-yaml":"^4.1.0","@codemirror/view":"^0.19.4","@codemirror/state":"^0.19.1","@codemirror/tooltip":"^0.19.2","@codemirror/commands":"^0.19.3","@codemirror/rangeset":"^0.19.1","@codemirror/basic-setup":"^0.19.0","@codemirror/legacy-modes":"^0.19.0","@codemirror/stream-parser":"^0.19.2","@codemirror/theme-one-dark":"^0.19.0","@codemirror/lang-javascript":"^0.19.1"},"_hasShrinkwrap":false,"devDependencies":{"next":"11.1.2","react":"^17.0.2","eslint":"7.32.0","nodemon":"^2.0.12","prettier":"^2.0.5","react-dom":"17.0.2","@babel/cli":"^7.15.4","@babel/core":"^7.15.5","babel-eslint":"^10.1.0","@babel/preset-env":"^7.15.6","eslint-config-next":"11.1.2","eslint-plugin-jest":"^24.3.2","@babel/preset-react":"^7.14.5","eslint-plugin-react":"^7.20.0","eslint-config-airbnb":"^18.2.0","eslint-plugin-import":"^2.21.2","eslint-config-prettier":"^8.1.0","eslint-plugin-jsx-a11y":"^6.3.1","eslint-plugin-prettier":"^3.1.4","@usulpro/package-prepare":"^1.3.1","eslint-plugin-react-hooks":"^4.0.4"},"peerDependencies":{"react":"*"},"_npmOperationalInternal":{"tmp":"tmp/react-yaml_1.1.2_1655989498291_0.967503643013421","host":"s3://npm-registry-packages"}}},"time":{"created":"2021-09-10T17:52:27.666Z","modified":"2026-05-27T12:43:13.435Z","0.1.0":"2021-09-10T17:52:27.940Z","1.0.0":"2021-09-22T17:12:55.092Z","1.1.0":"2022-06-21T08:29:02.841Z","1.1.1":"2022-06-23T05:44:44.246Z","1.1.2":"2022-06-23T13:04:58.486Z"},"bugs":{"url":"https://github.com/focusreactive/headless-cms-yaml-input/tree/master/react-yaml/issues"},"author":{"url":"https://github.com/focusreactive","name":"Oleg Proskurin","email":"oleg@focusreactive.com"},"license":"MIT","homepage":"https://headless-cms-yaml-input.vercel.app/","keywords":["react","yaml","syntax","highlight","validation","component","input","editor","plugin","extension","addon","custom","field","custom-field","codemirror","js-yaml","react-yaml"],"repository":{"url":"git+https://github.com/focusreactive/headless-cms-yaml-input.git","type":"git"},"description":"Yaml input field with validation and syntax highlighting as React Component","maintainers":[{"email":"denis.radin@gmail.com","name":"pixelscommander"},{"email":"robert@focusreactive.com","name":"operatino"},{"email":"alex.hramovich.pl@gmail.com","name":"alex_hramovich"},{"email":"denis.urban@gitnation.org","name":"mcfrid"},{"email":"artsiom.kaplich@fr.team","name":"bringyouup"},{"email":"maksim.hodasevich@gmail.com","name":"dogfrogfog"},{"email":"siarhei.Parkhamchuk@focusreactive.com","name":"s.parkhamchuk"},{"email":"pashahurs@gmail.com","name":"owarpero"},{"email":"eugene.boruhov@gmail.com","name":"chenaski"}],"readme":"# React-Yaml\n\nYaml input field with validation and syntax highlighting as React Component\n\n![Example](https://raw.githubusercontent.com/focusreactive/headless-cms-yaml-input/master/react-yaml/examples/editor-screenshort.png)\n\n[Demo](https://headless-cms-yaml-input.vercel.app/)\n\n## Install\n\n```\nnpm i --save @focus-reactive/react-yaml\nyarn add @focus-reactive/react-yaml\n```\n\n## Usage\n\nYou can pass JS object as initial value:\n\n```jsx\nimport YamlEditor from '@focus-reactive/react-yaml';\n\nconst obj = { foo: 'bar' };\nconst handleChange = ({ json, text }) => {\n  console.log(json);\n  // { foo: 'bar' }\n};\n\nreturn <YamlEditor json={obj} onChange={handleChange} />;\n```\n\nOr you can pass a text with YAML syntax\n\n```jsx\nimport YamlEditor from '@focus-reactive/react-yaml';\n\nconst text = `\nfoo: bar\n`;\n\nconst handleChange = ({ json, text }) => {\n  console.log(text);\n  // \"foo: bar\"\n};\n\nreturn <YamlEditor text={text} onChange={handleChange} />;\n```\n\n## Features\n\n- themable (use Codemirror themes)\n- syntax and errors highlight\n- support working with text in YAML format or regular JS objects\n- controlled and uncontrolled mode\n\n## API\n\nYou can pass the following props to the YamlEditor\n\n**json** - JS object that will be outputted in Editor in YAML syntax\n\n**text** - Text in YAML syntax. Note: if you pass both `json` and `text` props - the `json` will be used.\n\n**Note:** By default the Editor will work in _uncontrolled_ mode. Means that changes in `json` or `text` props wouldn't cause code update. You can control this behavior with `merge` prop, that accept a function with which you can define how to update text in the Editor.\n\n**theme** - Codemirror Theme to style editor. e.g.\n\n```js\nimport { oneDark } from '@codemirror/theme-one-dark';\n```\n\n**onChange** - a callback triggered on **VALID** YAML code changes in the Editor. It will be launched with the following parameters:\n\n```js\nonChange({ json, text });\n```\n\nwhere: `text` is a last valid text editing in Editor, `json` is JS equivalent.\n\n**onSelect** - a callback triggered on text selection. It will be launched with the following parameters:\n\n```js\nonSelect({ selected, from, to });\n```\n\nwhere: `selected` - is a selected text, `from` and `to` - selection positions\n\n**onSetCursor** - a callback triggered when user moves or set cursor on any word in the Editor. It will be launched with the following parameters:\n\n```js\nonSetCursor({ word, from, to });\n```\n\nwhere: `word` - is a word separated by whitespaces, `from` and `to` - word start and end positions\n\n**onError** - a callback triggered on any **INVALID** code changes in the Editor. It will be launched with the following parameters:\n\n```js\nonError(errorObject | null);\n```\n\nwhere `errorObject` is Codemirror error object representing YAML syntax error. Note that after a user fixed syntax error in the Editor, the function will be launched with `null`.\n\n**merge** (optional) - a function launched on `json` or `text` props changes. It can compare the new and the current values and return the result that will appear in the Editor. It will be launched with the following parameters:\n\n```js\nmerge({ json, text, currentText });\n```\n\nwhere `json` - the new json prop, `text` the new text prop, and `currentText` is the current text.\n\nIt should return an object with one of the keys: `json` or `text` which should contain new text of js value.\n\nBy default it returns `currentText`\n\n#### Actions - allow to manipulate Editor in imperative form\n\nAll actions are available by a `ref` prop **after** the Editor is maintained:\n\n```js\nconst EditorWithActions = () => {\n  const actions = React.useRef(null);\n\n  React.useEffect(() => {\n    // Here we have access to imperative actions\n    actions.current.replaceValue({ json: { foo: 'updatedValue' } });\n  }, []);\n\n  return (\n    <div>\n      <YamlEditor json={{ foo: 'initValue' }} ref={actions} />\n    </div>\n  );\n};\n```\n\nCurrently available the following actions:\n\n**replaceValue** - replace entire Editor content with a new value (json or text)\n\n```js\nreplaceValue({ json, text });\n```\n\n## Credits\n\n<div align=\"left\" style=\"height: 16px;\">Created with ❤︎ to <b>React</b> and Open Source community by <a href=\"https://twitter.com/UsulPro\">Oleg Proskurin</a> at <a href=\"https://twitter.com/FocusReactive\">FocusReactive</a>\n</div>\n\n2021\n\n[![FocusReactive](https://raw.githubusercontent.com/focusreactive/storybook-graphql-kit/master/docs/focusreactive-logo.svg?sanitize=true)](https://focusreactive.com)\n","readmeFilename":"README.md"}