{"name":"@antv/x6-components","version":"0.10.1","description":"React components for building x6 editors","main":"lib/index.js","module":"es/index.js","unpkg":"dist/x6-components.min.js","types":"lib/index.d.ts","sideEffects":["es/**/style/*","lib/**/style/*","*.less"],"scripts":{"clean":"rimraf dist es lib","lint":"run-s lint:ts lint:es lint:style","lint:es":"eslint --ext .js scripts --fix","lint:ts":"tslint -c tslint.json -p tsconfig.json --fix","lint:style":"stylelint 'src/**/*.less' --syntax less --fix","build:esm":"tsc --module esnext --target es2015 --outDir ./es","build:cjs":"tsc --module commonjs --target es5 --outDir ./lib","build:ts":"run-p build:cjs build:esm","build:less":"node ./scripts/less.js","build":"run-s build:ts build:less","prebuild":"run-s lint clean","watch":"watch 'yarn build' ./src","prepare":"yarn build","precommit":"lint-staged"},"keywords":["component","components","react-components","x6","x6-editor","editor","ui","antv"],"lint-staged":{"src/**/*.ts":["tslint -c tslint.json -p ./tsconfig.json --fix"],"*.js":["eslint --fix"],"src/**/*.less":["stylelint --syntax less --fix"]},"dependencies":{"clamp":"^1.0.1","classnames":"^2.2.6","rc-dropdown":"^3.0.0-alpha.0","rc-util":"^4.15.7","react-color":"^2.17.3","react-resize-detector":"^4.2.1","ua-parser-js":"^0.7.20"},"devDependencies":{"@babel/core":"^7.9.6","@babel/preset-env":"^7.9.6","@babel/preset-react":"^7.9.4","@types/antd":"^1.0.0","@types/classnames":"^2.2.9","@types/mini-css-extract-plugin":"^0.9.1","@types/node":"^14.0.1","@types/react":"^16.9.13","@types/react-color":"^3.0.1","@types/react-resize-detector":"^4.2.0","@types/ua-parser-js":"^0.7.33","antd":"^4.4.2","babel-loader":"^8.0.6","eslint":"^6.1.0","fs-extra":"^9.0.0","less-loader":"^6.1.0","lint-staged":"^10.2.2","mini-css-extract-plugin":"^0.9.0","npm-run-all":"^4.1.5","react":"^16.12.0","react-dom":"^16.12.0","rimraf":"^3.0.0","stylelint":"^13.3.3","stylelint-order":"^4.0.0","ts-node":"^8.6.2","tslint":"^6.1.2","tslint-config-prettier":"^1.18.0","tslint-eslint-rules":"^5.4.0","tslint-react":"^4.1.0","typescript":"3.9.6","watch":"^1.0.2"},"peerDependencies":{"antd":">=4.4.2","react":">=16.8.6","react-dom":">=16.8.6"},"author":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"contributors":[],"license":"MIT","homepage":"https://github.com/antvis/x6","bugs":{"url":"https://github.com/antvis/x6/issues"},"repository":{"type":"git","url":"https://github.com/antvis/x6/tree/master/packages/x6-components"},"publishConfig":{"access":"public","registry":"https://registry.npmjs.org"},"_id":"@antv/x6-components@0.10.1","dist":{"shasum":"826fdf67d7d81511b823954de704d1c7851dad4e","integrity":"sha512-C7j7cbl1NMA3Wmhht0Cb/IHKacAAtDwU3xXlBjBWIwn8hC9T0Op0Fjy1mQwuQGX+rE7OMX8NIQFLP2bPwc3wqw==","tarball":"http://registry-npm.ywwl.com/@antv/x6-components/download/@antv/x6-components-0.10.1.tgz","fileCount":375,"unpackedSize":461280,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfDSToCRA9TVsSAnZWagAAB78P/1NZMmgEEPVqWbuCClyp\nbByZwwsRmIHExyV5pWoUpL77huBBfuHkdSGO8s6UVE5KzCRk3zTpS1lIQZX9\nVW/bJvMTZtrIH3hf7hj4IQwuB+7QM9HMbwFFy+zqDIlW8QHFk5YJV0T79YQ9\njOJ+6b5t8uKRcWp/S62436u2lEqWhwedjgajlnh9FYd9Im7tl9VIuWYbv2Pf\nSFkxMCX1V4GZJHCgMqkpAWmnLKUI4IBL2OzlhXyx5AwlLt0c7MbpTbHbCdI/\nQ+JoeW83hjpbe16x6C+8Nm/Y6Zbl/mcuNL9XafjmGdmLgKjgqDrPi1FKFInE\nmVRHOIUHaZ+/C77ZjwEqUDSKBA3AFg5jybDfQeHsxNudM1STjp7dCCgfgl5o\n1EwNekxYQ4dW7zCIVHauawWHaSMX8t7Eb3YtoiGt/HK68k4eLHFh9pf139Ft\nxNp0AoAult9ayCk6TPPg3K2C8WdeIqAPC+oLoNJn0jKPEYN5iuGB/SreWy60\nAKQ1bP9bDoAaq67/cL+WFsNLORzLB2bfUeMFhPGvooHlZtS4KScqo/VhzxsV\nF17SZBCLglDwVYw2PbDzQCfrrr1C/EYY2520u2bI4A/mXz4IeVmI3Cq1Xep6\nnQ/VE5fCs+Ul9eO5qReu/Y7v/co3zc6XBhgfd5XM+h8T9qcu84qQfAwmPxlw\n3qV/\r\n=nHlR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1xD0hZVkTBajkNAXqJXK9g9rBKSn4Ilqxk6x+FwpE9gIhAK3EXlLennPTFFHpNHoFxMzE39P8DHAjH3bLobqD8cUJ"}],"size":98335,"noattachment":false,"key":"/@antv/x6-components/-/@antv/x6-components-0.10.1.tgz"},"maintainers":[{"email":"afc163@gmail.com","name":"afc163"},{"email":"army8735@qq.com","name":"army8735"},{"email":"i@hust.cc","name":"atool"},{"email":"576375879@qq.com","name":"baizn"},{"email":"boyu.zlj@antfin.com","name":"boyu.zlj"},{"email":"bubkoo.wy@gmail.com","name":"bubkoo"},{"email":"ccnuzindex@gmail.com","name":"ccnuzindex"},{"email":"dengfuping_develop@163.com","name":"dengfuping"},{"email":"418466938@qq.com","name":"dori"},{"email":"dxq613@gmail.com","name":"dxq613"},{"email":"yilin.qyl@antfin.com","name":"elaine.q.10"},{"email":"yuanjiefeng@gmail.com","name":"jeffy2012"},{"email":"xinming002@gmail.com","name":"kasmine"},{"email":"wyy460342010@gmail.com","name":"kopiluwaky"},{"email":"lliudongqi@gmail.com","name":"l1ud0ngq1"},{"email":"leungwensen@gmail.com","name":"leungwensen"},{"email":"120635640@qq.com","name":"lzxue"},{"email":"neoddish@outlook.com","name":"neoddish"},{"email":"pyqiverson@gmail.com","name":"panyuqi"},{"email":"czynwu@gmail.com","name":"pomelo-nwu"},{"email":"360965398@qq.com","name":"sakuya223"},{"email":"sima.zhang1990@gmail.com","name":"simaq"},{"email":"747042796@qq.com","name":"wufenfen92"},{"email":"yanyanwang93@gmail.com","name":"yanyan-wang"},{"email":"yezengyue@gmail.com","name":"zengyue"},{"email":"zqlu.cn@gmail.com","name":"zqlu"}],"_npmUser":{"name":"bubkoo","email":"bubkoo.wy@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/x6-components_0.10.1_1594696936516_0.8172468342745409"},"_hasShrinkwrap":false,"readme":"# x6-components\n\n> React components for building x6 editors\n\n[![MIT License](https://img.shields.io/badge/license-MIT_License-green.svg?style=flat-square)](https://github.com/antvis/x6/blob/master/LICENSE) \n[![Language](https://img.shields.io/badge/language-typescript-blue.svg?style=flat-square)](https://www.typescriptlang.org)\n\n[![NPM Package](https://img.shields.io/npm/v/@antv/x6-components.svg?style=flat-square)](https://www.npmjs.com/package/@antv/x6-components) \n[![NPM Downloads](http://img.shields.io/npm/dm/@antv/x6-components.svg?style=flat-square)](https://www.npmjs.com/package/@antv/x6-components) \n[![NPM Dependencies](https://img.shields.io/david/antvis/x6?path=packages%2Fx6-components&style=flat-square)](https://www.npmjs.com/package/@antv/x6-components)\n\n## Components\n\n- Menu\n- Dropdown\n- ContextMenu\n- Menubar\n- Toolbar\n- SplitBox\n- ScrollBox\n- AutoScrollBox\n- ColorPicker\n\n## Installation\n\n```shell\n# npm\n$ npm install @antv/x6-components --save\n\n# yarn\n$ yarn add @antv/x6-components\n```\n\n## Usage\n\nImport component and style:\n\n```ts\nimport { Menu } from '@antv/x6-components/es/menu'\n// less\nimport '@antv/x6-components/es/menu/style'\n// or css\nimport '@antv/x6-components/es/menu/style/index.css'\n```\n\nWe strongly recommend using [babel-plugin-import](https://github.com/ant-design/babel-plugin-import), which can convert the following code to the '@antv/x6-components/es/xxx' way:\n\n```ts\nimport { Menu } from '@antv/x6-components'\n```\n\nAnd this plugin will also load corresponding styles too. Via `.babelrc` or babel-loader:\n\n```js\n{\n  \"plugins\": [\n    [\n      \"import\",\n      {\n        \"libraryName\": \"@antv/x6-components\",\n        \"libraryDirectory\": \"es\", // es or lib\n        \"style\": true,\n        \"transformToDefaultImport\": true\n      }\n    ]\n  ]\n}\n```\n\n## Contributing\n\nPull requests and stars are highly welcome.\n\nFor bugs and feature requests, please [create an issue](https://github.com/antvis/x6/issues/new).\n","publish_time":1594696936676,"_cnpm_publish_time":1594696936676,"dist-tags":{"latest":"0.10.7"}}