From 899a34968b118954f674522fd34d2694528c2c96 Mon Sep 17 00:00:00 2001 From: smallstonesk <575913857@qq.com> Date: Fri, 12 Mar 2021 15:34:11 +0800 Subject: [PATCH] chore: remove unused package --- packages/json-schema-editor/.babelrc | 3 - packages/json-schema-editor/.npmignore | 2 - packages/json-schema-editor/README.md | 11 - packages/json-schema-editor/package-lock.json | 1377 ----------------- packages/json-schema-editor/package.json | 66 - packages/json-schema-editor/rollup.config.js | 16 - .../json-schema-editor/scripts/prepublish.js | 6 - .../json-schema-editor/src/components/ace.tsx | 0 .../src/components/add-node.tsx | 48 - .../src/components/field-input.tsx | 70 - .../src/components/layout.tsx | 48 - .../src/components/schema-form.tsx | 44 - .../src/components/schema-head.tsx | 109 -- .../src/components/schema-item.tsx | 156 -- packages/json-schema-editor/src/i18n/index.ts | 23 - .../src/i18n/translations/en.json | 14 - .../src/i18n/translations/zh.json | 14 - packages/json-schema-editor/src/index.tsx | 37 - .../json-schema-editor/src/model/index.ts | 2 - .../json-schema-editor/src/model/schema.ts | 51 - packages/json-schema-editor/src/model/ui.ts | 3 - .../json-schema-editor/src/reducer/schema.ts | 197 --- .../json-schema-editor/src/store/schema.ts | 23 - packages/json-schema-editor/src/store/ui.ts | 13 - .../json-schema-editor/src/utils/schema.ts | 60 - .../src/utils/styles/antd.ts | 9 - .../src/utils/styles/common.ts | 52 - .../src/utils/styles/global.ts | 31 - packages/json-schema-editor/tsconfig.json | 7 - 29 files changed, 2492 deletions(-) delete mode 100644 packages/json-schema-editor/.babelrc delete mode 100644 packages/json-schema-editor/.npmignore delete mode 100644 packages/json-schema-editor/README.md delete mode 100644 packages/json-schema-editor/package-lock.json delete mode 100644 packages/json-schema-editor/package.json delete mode 100644 packages/json-schema-editor/rollup.config.js delete mode 100644 packages/json-schema-editor/scripts/prepublish.js delete mode 100644 packages/json-schema-editor/src/components/ace.tsx delete mode 100644 packages/json-schema-editor/src/components/add-node.tsx delete mode 100644 packages/json-schema-editor/src/components/field-input.tsx delete mode 100644 packages/json-schema-editor/src/components/layout.tsx delete mode 100644 packages/json-schema-editor/src/components/schema-form.tsx delete mode 100644 packages/json-schema-editor/src/components/schema-head.tsx delete mode 100644 packages/json-schema-editor/src/components/schema-item.tsx delete mode 100644 packages/json-schema-editor/src/i18n/index.ts delete mode 100644 packages/json-schema-editor/src/i18n/translations/en.json delete mode 100644 packages/json-schema-editor/src/i18n/translations/zh.json delete mode 100644 packages/json-schema-editor/src/index.tsx delete mode 100644 packages/json-schema-editor/src/model/index.ts delete mode 100644 packages/json-schema-editor/src/model/schema.ts delete mode 100644 packages/json-schema-editor/src/model/ui.ts delete mode 100644 packages/json-schema-editor/src/reducer/schema.ts delete mode 100644 packages/json-schema-editor/src/store/schema.ts delete mode 100644 packages/json-schema-editor/src/store/ui.ts delete mode 100644 packages/json-schema-editor/src/utils/schema.ts delete mode 100644 packages/json-schema-editor/src/utils/styles/antd.ts delete mode 100644 packages/json-schema-editor/src/utils/styles/common.ts delete mode 100644 packages/json-schema-editor/src/utils/styles/global.ts delete mode 100644 packages/json-schema-editor/tsconfig.json diff --git a/packages/json-schema-editor/.babelrc b/packages/json-schema-editor/.babelrc deleted file mode 100644 index 633f93f..0000000 --- a/packages/json-schema-editor/.babelrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "../../.babelrc" -} diff --git a/packages/json-schema-editor/.npmignore b/packages/json-schema-editor/.npmignore deleted file mode 100644 index cd3ca40..0000000 --- a/packages/json-schema-editor/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -src diff --git a/packages/json-schema-editor/README.md b/packages/json-schema-editor/README.md deleted file mode 100644 index c1b6ad4..0000000 --- a/packages/json-schema-editor/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# `json-schema-editor` - -> TODO: description - -## Usage - -``` -const schemaEditor = require('@imove/json-schema-editor'); - -// TODO: DEMONSTRATE API -``` diff --git a/packages/json-schema-editor/package-lock.json b/packages/json-schema-editor/package-lock.json deleted file mode 100644 index f192037..0000000 --- a/packages/json-schema-editor/package-lock.json +++ /dev/null @@ -1,1377 +0,0 @@ -{ - "name": "@imove/json-schema-editor", - "version": "0.3.2", - "lockfileVersion": 1, - "requires": true, - "dependencies": { - "@ant-design/colors": { - "version": "3.2.2", - "resolved": "https://registry.npmjs.org/@ant-design/colors/-/colors-3.2.2.tgz", - "integrity": "sha512-YKgNbG2dlzqMhA9NtI3/pbY16m3Yl/EeWBRa+lB1X1YaYxHrxNexiQYCLTWO/uDvAjLFMEDU+zR901waBtMtjQ==", - "dev": true, - "requires": { - "tinycolor2": "^1.4.1" - } - }, - "@ant-design/icons": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@ant-design/icons/-/icons-4.1.0.tgz", - "integrity": "sha512-R1aIPJboGq4nVYwW7s0v/V2g6yiY27Kec5ldfK3mWHskw7bihPOKwxkHbITuSJcVNJsSvA6LNMlKZoY1u8DIKQ==", - "dev": true, - "requires": { - "@ant-design/colors": "^3.1.0", - "@ant-design/icons-svg": "^4.0.0", - "classnames": "^2.2.6", - "insert-css": "^2.0.0", - "rc-util": "^4.9.0" - } - }, - "@ant-design/icons-svg": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@ant-design/icons-svg/-/icons-svg-4.1.0.tgz", - "integrity": "sha512-Fi03PfuUqRs76aI3UWYpP864lkrfPo0hluwGqh7NJdLhvH4iRDc3jbJqZIvRDLHKbXrvAfPPV3+zjUccfFvWOQ==", - "dev": true - }, - "@ant-design/react-slick": { - "version": "0.25.5", - "resolved": "https://registry.npmjs.org/@ant-design/react-slick/-/react-slick-0.25.5.tgz", - "integrity": "sha512-fusHR9LkarCARvYTN6cG3yz2/Ogf+HTaJ2XEihIjsjgm6uE1aSXycRFEVDpOFP1Aib51Z2Iz3tgg/gL+WbK8rQ==", - "dev": true, - "requires": { - "classnames": "^2.2.5", - "json2mq": "^0.2.0", - "lodash": "^4.17.15", - "resize-observer-polyfill": "^1.5.0" - } - }, - "@babel/code-frame": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.8.3.tgz", - "integrity": "sha512-a9gxpmdXtZEInkCSHUJDLHZVBgb1QS0jhss4cPP93EW7s+uC5bikET2twEF3KV+7rDblJcmNvTR7VJejqd2C2g==", - "dev": true, - "requires": { - "@babel/highlight": "^7.8.3" - } - }, - "@babel/helper-module-imports": { - "version": "7.8.3", - "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.8.3.tgz", - "integrity": "sha512-R0Bx3jippsbAEtzkpZ/6FIiuzOURPcMjHp+Z6xPe6DtApDJx+w7UYyOLanZqO8+wKR9G10s/FmHXvxaMd9s6Kg==", - "dev": true, - "requires": { - "@babel/types": "^7.8.3" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.9.5", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.9.5.tgz", - "integrity": "sha512-/8arLKUFq882w4tWGj9JYzRpAlZgiWUJ+dtteNTDqrRBz9Iguck9Rn3ykuBDoUwh2TO4tSAJlrxDUOXWklJe4g==", - "dev": true - }, - "@babel/highlight": { - "version": "7.9.0", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.9.0.tgz", - "integrity": "sha512-lJZPilxX7Op3Nv/2cvFdnlepPXDxi29wxteT57Q965oc5R9v86ztx0jfxVrTcBk8C2kcPkkDa2Z4T3ZsPPVWsQ==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.9.0", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - } - }, - "@babel/runtime": { - "version": "7.9.2", - "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.9.2.tgz", - "integrity": "sha512-NE2DtOdufG7R5vnfQUTehdTfNycfUANEtCa9PssN9O/xmTzP4E08UI797ixaei6hBEVL9BI/PsdJS5x7mWoB9Q==", - "requires": { - "regenerator-runtime": "^0.13.4" - } - }, - "@babel/types": { - "version": "7.9.5", - "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.9.5.tgz", - "integrity": "sha512-XjnvNqenk818r5zMaba+sLQjnbda31UfUURv3ei0qPQw4u+j2jMyJ5b11y8ZHYTRSI3NnInQkkkRT4fLqqPdHg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.9.5", - "lodash": "^4.17.13", - "to-fast-properties": "^2.0.0" - } - }, - "@emotion/cache": { - "version": "10.0.29", - "resolved": "https://registry.npmjs.org/@emotion/cache/-/cache-10.0.29.tgz", - "integrity": "sha512-fU2VtSVlHiF27empSbxi1O2JFdNWZO+2NFHfwO0pxgTep6Xa3uGb+3pVKfLww2l/IBGLNEZl5Xf/++A4wAYDYQ==", - "dev": true, - "requires": { - "@emotion/sheet": "0.9.4", - "@emotion/stylis": "0.8.5", - "@emotion/utils": "0.11.3", - "@emotion/weak-memoize": "0.2.5" - } - }, - "@emotion/core": { - "version": "10.0.28", - "resolved": "https://registry.npmjs.org/@emotion/core/-/core-10.0.28.tgz", - "integrity": "sha512-pH8UueKYO5jgg0Iq+AmCLxBsvuGtvlmiDCOuv8fGNYn3cowFpLN98L8zO56U0H1PjDIyAlXymgL3Wu7u7v6hbA==", - "dev": true, - "requires": { - "@babel/runtime": "^7.5.5", - "@emotion/cache": "^10.0.27", - "@emotion/css": "^10.0.27", - "@emotion/serialize": "^0.11.15", - "@emotion/sheet": "0.9.4", - "@emotion/utils": "0.11.3" - } - }, - "@emotion/css": { - "version": "10.0.27", - "resolved": "https://registry.npmjs.org/@emotion/css/-/css-10.0.27.tgz", - "integrity": "sha512-6wZjsvYeBhyZQYNrGoR5yPMYbMBNEnanDrqmsqS1mzDm1cOTu12shvl2j4QHNS36UaTE0USIJawCH9C8oW34Zw==", - "dev": true, - "requires": { - "@emotion/serialize": "^0.11.15", - "@emotion/utils": "0.11.3", - "babel-plugin-emotion": "^10.0.27" - } - }, - "@emotion/hash": { - "version": "0.8.0", - "resolved": "https://registry.npmjs.org/@emotion/hash/-/hash-0.8.0.tgz", - "integrity": "sha512-kBJtf7PH6aWwZ6fka3zQ0p6SBYzx4fl1LoZXE2RrnYST9Xljm7WfKJrU4g/Xr3Beg72MLrp1AWNUmuYJTL7Cow==", - "dev": true - }, - "@emotion/is-prop-valid": { - "version": "0.8.8", - "resolved": "https://registry.npmjs.org/@emotion/is-prop-valid/-/is-prop-valid-0.8.8.tgz", - "integrity": "sha512-u5WtneEAr5IDG2Wv65yhunPSMLIpuKsbuOktRojfrEiEvRyC85LgPMZI63cr7NUqT8ZIGdSVg8ZKGxIug4lXcA==", - "dev": true, - "requires": { - "@emotion/memoize": "0.7.4" - } - }, - "@emotion/memoize": { - "version": "0.7.4", - "resolved": "https://registry.npmjs.org/@emotion/memoize/-/memoize-0.7.4.tgz", - "integrity": "sha512-Ja/Vfqe3HpuzRsG1oBtWTHk2PGZ7GR+2Vz5iYGelAw8dx32K0y7PjVuxK6z1nMpZOqAFsRUPCkK1YjJ56qJlgw==", - "dev": true - }, - "@emotion/serialize": { - "version": "0.11.16", - "resolved": "https://registry.npmjs.org/@emotion/serialize/-/serialize-0.11.16.tgz", - "integrity": "sha512-G3J4o8by0VRrO+PFeSc3js2myYNOXVJ3Ya+RGVxnshRYgsvErfAOglKAiy1Eo1vhzxqtUvjCyS5gtewzkmvSSg==", - "dev": true, - "requires": { - "@emotion/hash": "0.8.0", - "@emotion/memoize": "0.7.4", - "@emotion/unitless": "0.7.5", - "@emotion/utils": "0.11.3", - "csstype": "^2.5.7" - } - }, - "@emotion/sheet": { - "version": "0.9.4", - "resolved": "https://registry.npmjs.org/@emotion/sheet/-/sheet-0.9.4.tgz", - "integrity": "sha512-zM9PFmgVSqBw4zL101Q0HrBVTGmpAxFZH/pYx/cjJT5advXguvcgjHFTCaIO3enL/xr89vK2bh0Mfyj9aa0ANA==", - "dev": true - }, - "@emotion/styled": { - "version": "10.0.27", - "resolved": "https://registry.npmjs.org/@emotion/styled/-/styled-10.0.27.tgz", - "integrity": "sha512-iK/8Sh7+NLJzyp9a5+vIQIXTYxfT4yB/OJbjzQanB2RZpvmzBQOHZWhpAMZWYEKRNNbsD6WfBw5sVWkb6WzS/Q==", - "dev": true, - "requires": { - "@emotion/styled-base": "^10.0.27", - "babel-plugin-emotion": "^10.0.27" - } - }, - "@emotion/styled-base": { - "version": "10.0.31", - "resolved": "https://registry.npmjs.org/@emotion/styled-base/-/styled-base-10.0.31.tgz", - "integrity": "sha512-wTOE1NcXmqMWlyrtwdkqg87Mu6Rj1MaukEoEmEkHirO5IoHDJ8LgCQL4MjJODgxWxXibGR3opGp1p7YvkNEdXQ==", - "dev": true, - "requires": { - "@babel/runtime": "^7.5.5", - "@emotion/is-prop-valid": "0.8.8", - "@emotion/serialize": "^0.11.15", - "@emotion/utils": "0.11.3" - } - }, - "@emotion/stylis": { - "version": "0.8.5", - "resolved": "https://registry.npmjs.org/@emotion/stylis/-/stylis-0.8.5.tgz", - "integrity": "sha512-h6KtPihKFn3T9fuIrwvXXUOwlx3rfUvfZIcP5a6rh8Y7zjE3O06hT5Ss4S/YI1AYhuZ1kjaE/5EaOOI2NqSylQ==", - "dev": true - }, - "@emotion/unitless": { - "version": "0.7.5", - "resolved": "https://registry.npmjs.org/@emotion/unitless/-/unitless-0.7.5.tgz", - "integrity": "sha512-OWORNpfjMsSSUBVrRBVGECkhWcULOAJz9ZW8uK9qgxD+87M7jHRcvh/A96XXNhXTLmKcoYSQtBEX7lHMO7YRwg==", - "dev": true - }, - "@emotion/utils": { - "version": "0.11.3", - "resolved": "https://registry.npmjs.org/@emotion/utils/-/utils-0.11.3.tgz", - "integrity": "sha512-0o4l6pZC+hI88+bzuaX/6BgOvQVhbt2PfmxauVaYOGgbsAw14wdKyvMCZXnsnsHys94iadcF+RG/wZyx6+ZZBw==", - "dev": true - }, - "@emotion/weak-memoize": { - "version": "0.2.5", - "resolved": "https://registry.npmjs.org/@emotion/weak-memoize/-/weak-memoize-0.2.5.tgz", - "integrity": "sha512-6U71C2Wp7r5XtFtQzYrW5iKFT67OixrSxjI4MptCHzdSVlgabczzqLe0ZSgnub/5Kp4hSbpDB1tMytZY9pwxxA==", - "dev": true - }, - "@types/hoist-non-react-statics": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz", - "integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==", - "dev": true, - "requires": { - "@types/react": "*", - "hoist-non-react-statics": "^3.3.0" - } - }, - "@types/lodash": { - "version": "4.14.150", - "resolved": "https://registry.npmjs.org/@types/lodash/-/lodash-4.14.150.tgz", - "integrity": "sha512-kMNLM5JBcasgYscD9x/Gvr6lTAv2NVgsKtet/hm93qMyf/D1pt+7jeEZklKJKxMVmXjxbRVQQGfqDSfipYCO6w==", - "dev": true - }, - "@types/lodash-es": { - "version": "4.17.3", - "resolved": "https://registry.npmjs.org/@types/lodash-es/-/lodash-es-4.17.3.tgz", - "integrity": "sha512-iHI0i7ZAL1qepz1Y7f3EKg/zUMDwDfTzitx+AlHhJJvXwenP682ZyGbgPSc5Ej3eEAKVbNWKFuwOadCj5vBbYQ==", - "dev": true, - "requires": { - "@types/lodash": "*" - } - }, - "@types/parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/@types/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha512-//oorEZjL6sbPcKUaCdIGlIUeH26mgzimjBB77G6XRgnDl/L5wOnpyBGRe/Mmf5CVW3PwEBE1NjiMZ/ssFh4wA==", - "dev": true - }, - "@types/prop-types": { - "version": "15.7.3", - "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.3.tgz", - "integrity": "sha512-KfRL3PuHmqQLOG+2tGpRO26Ctg+Cq1E01D2DMriKEATHgWLfeNDmq9e29Q9WIky0dQ3NPkd1mzYH8Lm936Z9qw==", - "dev": true - }, - "@types/react": { - "version": "16.9.34", - "resolved": "https://registry.npmjs.org/@types/react/-/react-16.9.34.tgz", - "integrity": "sha512-8AJlYMOfPe1KGLKyHpflCg5z46n0b5DbRfqDksxBLBTUpB75ypDBAO9eCUcjNwE6LCUslwTz00yyG/X9gaVtow==", - "dev": true, - "requires": { - "@types/prop-types": "*", - "csstype": "^2.2.0" - } - }, - "@types/react-dom": { - "version": "16.9.7", - "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-16.9.7.tgz", - "integrity": "sha512-GHTYhM8/OwUCf254WO5xqR/aqD3gC9kSTLpopWGpQLpnw23jk44RvMHsyUSEplvRJZdHxhJGMMLF0kCPYHPhQA==", - "dev": true, - "requires": { - "@types/react": "*" - } - }, - "@types/react-lifecycles-compat": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@types/react-lifecycles-compat/-/react-lifecycles-compat-3.0.1.tgz", - "integrity": "sha512-4KiU5s1Go4xRbf7t6VxUUpBeN5PGjpjpBv9VvET4uiPHC500VNYBclU13f8ehHkHoZL39b2cfwHu6RzbV3b44A==", - "dev": true, - "requires": { - "@types/react": "*" - } - }, - "@types/shallowequal": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@types/shallowequal/-/shallowequal-1.1.1.tgz", - "integrity": "sha512-Lhni3aX80zbpdxRuWhnuYPm8j8UQaa571lHP/xI4W+7BAFhSIhRReXnqjEgT/XzPoXZTJkCqstFMJ8CZTK6IlQ==", - "dev": true - }, - "add-dom-event-listener": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/add-dom-event-listener/-/add-dom-event-listener-1.1.0.tgz", - "integrity": "sha512-WCxx1ixHT0GQU9hb0KI/mhgRQhnU+U3GvwY6ZvVjYq8rsihIGoaIOUbY0yMPBxLH5MDtr0kz3fisWGNcbWW7Jw==", - "dev": true, - "requires": { - "object-assign": "4.x" - } - }, - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "antd": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/antd/-/antd-4.1.5.tgz", - "integrity": "sha512-UGiuQJBc5uSvDsBt+C3Q4sD6YG/MSZSjftsnTwKM73xJyYDHuQnBOUU0O1HokOW17+Hr1AFbep8IPhs4S2pKRQ==", - "dev": true, - "requires": { - "@ant-design/icons": "^4.0.0", - "@ant-design/react-slick": "~0.25.5", - "array-tree-filter": "^2.1.0", - "classnames": "~2.2.6", - "copy-to-clipboard": "^3.2.0", - "css-animation": "^1.5.0", - "lodash": "^4.17.13", - "moment": "^2.24.0", - "omit.js": "^1.0.2", - "prop-types": "^15.7.2", - "raf": "^3.4.1", - "rc-animate": "~2.11.0", - "rc-cascader": "~1.0.0", - "rc-checkbox": "~2.2.0", - "rc-collapse": "~1.11.3", - "rc-dialog": "~7.6.0", - "rc-drawer": "~3.1.1", - "rc-dropdown": "~3.0.0", - "rc-field-form": "~1.1.0", - "rc-input-number": "~4.5.4", - "rc-mentions": "~1.1.0", - "rc-menu": "~8.0.1", - "rc-notification": "~4.0.0", - "rc-pagination": "~2.2.0", - "rc-picker": "~1.4.0", - "rc-progress": "~2.5.0", - "rc-rate": "~2.5.1", - "rc-resize-observer": "^0.2.0", - "rc-select": "~10.2.0", - "rc-slider": "~9.2.3", - "rc-steps": "~3.5.0", - "rc-switch": "~1.9.0", - "rc-table": "~7.4.2", - "rc-tabs": "~10.1.1", - "rc-tooltip": "~4.0.2", - "rc-tree": "~3.1.0", - "rc-tree-select": "~3.1.0", - "rc-trigger": "~4.0.0", - "rc-upload": "~3.0.4", - "rc-util": "^4.20.0", - "rc-virtual-list": "^1.1.0", - "resize-observer-polyfill": "^1.5.1", - "scroll-into-view-if-needed": "^2.2.20", - "warning": "~4.0.3" - } - }, - "array-tree-filter": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-tree-filter/-/array-tree-filter-2.1.0.tgz", - "integrity": "sha512-4ROwICNlNw/Hqa9v+rk5h22KjmzB1JGTMVKP2AKJBOCgb0yL0ASf0+YvCcLNNwquOHNX48jkeZIJ3a+oOQqKcw==", - "dev": true - }, - "async-validator": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/async-validator/-/async-validator-3.2.4.tgz", - "integrity": "sha512-mTgzMJixkrh+5t2gbYoua8MLy11GHkQqFE6tbhY5Aqc4jEDGsR4BWP+sVQiYDHtzTMB8WIwI/ypObTVPcTZInw==", - "dev": true - }, - "babel-plugin-emotion": { - "version": "10.0.33", - "resolved": "https://registry.npmjs.org/babel-plugin-emotion/-/babel-plugin-emotion-10.0.33.tgz", - "integrity": "sha512-bxZbTTGz0AJQDHm8k6Rf3RQJ8tX2scsfsRyKVgAbiUPUNIRtlK+7JxP+TAd1kRLABFxe0CFm2VdK4ePkoA9FxQ==", - "dev": true, - "requires": { - "@babel/helper-module-imports": "^7.0.0", - "@emotion/hash": "0.8.0", - "@emotion/memoize": "0.7.4", - "@emotion/serialize": "^0.11.16", - "babel-plugin-macros": "^2.0.0", - "babel-plugin-syntax-jsx": "^6.18.0", - "convert-source-map": "^1.5.0", - "escape-string-regexp": "^1.0.5", - "find-root": "^1.1.0", - "source-map": "^0.5.7" - } - }, - "babel-plugin-macros": { - "version": "2.8.0", - "resolved": "https://registry.npmjs.org/babel-plugin-macros/-/babel-plugin-macros-2.8.0.tgz", - "integrity": "sha512-SEP5kJpfGYqYKpBrj5XU3ahw5p5GOHJ0U5ssOSQ/WBVdwkD2Dzlce95exQTs3jOVWPPKLBN2rlEWkCK7dSmLvg==", - "dev": true, - "requires": { - "@babel/runtime": "^7.7.2", - "cosmiconfig": "^6.0.0", - "resolve": "^1.12.0" - } - }, - "babel-plugin-syntax-jsx": { - "version": "6.18.0", - "resolved": "https://registry.npmjs.org/babel-plugin-syntax-jsx/-/babel-plugin-syntax-jsx-6.18.0.tgz", - "integrity": "sha1-CvMqmm4Tyno/1QaeYtew9Y0NiUY=", - "dev": true - }, - "babel-runtime": { - "version": "6.26.0", - "resolved": "https://registry.npmjs.org/babel-runtime/-/babel-runtime-6.26.0.tgz", - "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", - "dev": true, - "requires": { - "core-js": "^2.4.0", - "regenerator-runtime": "^0.11.0" - }, - "dependencies": { - "regenerator-runtime": { - "version": "0.11.1", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz", - "integrity": "sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==", - "dev": true - } - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "classnames": { - "version": "2.2.6", - "resolved": "https://registry.npmjs.org/classnames/-/classnames-2.2.6.tgz", - "integrity": "sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==", - "dev": true - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "component-classes": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/component-classes/-/component-classes-1.2.6.tgz", - "integrity": "sha1-xkI5TDYYpNiwuJGe/Mu9kw5c1pE=", - "dev": true, - "requires": { - "component-indexof": "0.0.3" - } - }, - "component-indexof": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/component-indexof/-/component-indexof-0.0.3.tgz", - "integrity": "sha1-EdCRMSI5648yyPJa6csAL/6NPCQ=", - "dev": true - }, - "compute-scroll-into-view": { - "version": "1.0.13", - "resolved": "https://registry.npmjs.org/compute-scroll-into-view/-/compute-scroll-into-view-1.0.13.tgz", - "integrity": "sha512-o+w9w7A98aAFi/GjK8cxSV+CdASuPa2rR5UWs3+yHkJzWqaKoBEufFNWYaXInCSmUfDCVhesG+v9MTWqOjsxFg==", - "dev": true - }, - "convert-source-map": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", - "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "copy-to-clipboard": { - "version": "3.3.1", - "resolved": "https://registry.npmjs.org/copy-to-clipboard/-/copy-to-clipboard-3.3.1.tgz", - "integrity": "sha512-i13qo6kIHTTpCm8/Wup+0b1mVWETvu2kIMzKoK8FpkLkFxlt0znUAHcMzox+T8sPlqtZXq3CulEjQHsYiGFJUw==", - "dev": true, - "requires": { - "toggle-selection": "^1.0.6" - } - }, - "core-js": { - "version": "2.6.11", - "resolved": "https://registry.npmjs.org/core-js/-/core-js-2.6.11.tgz", - "integrity": "sha512-5wjnpaT/3dV+XB4borEsnAYQchn00XSgTAWKDkEqv+K8KevjbzmofK6hfJ9TZIlpj2N0xQpazy7PiRQiWHqzWg==", - "dev": true - }, - "cosmiconfig": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/cosmiconfig/-/cosmiconfig-6.0.0.tgz", - "integrity": "sha512-xb3ZL6+L8b9JLLCx3ZdoZy4+2ECphCMo2PwqgP1tlfVq6M6YReyzBJtvWWtbDSpNr9hn96pkCiZqUcFEc+54Qg==", - "dev": true, - "requires": { - "@types/parse-json": "^4.0.0", - "import-fresh": "^3.1.0", - "parse-json": "^5.0.0", - "path-type": "^4.0.0", - "yaml": "^1.7.2" - } - }, - "css-animation": { - "version": "1.6.1", - "resolved": "https://registry.npmjs.org/css-animation/-/css-animation-1.6.1.tgz", - "integrity": "sha512-/48+/BaEaHRY6kNQ2OIPzKf9A6g8WjZYjhiNDNuIVbsm5tXCGIAsHDjB4Xu1C4vXJtUWZo26O68OQkDpNBaPog==", - "dev": true, - "requires": { - "babel-runtime": "6.x", - "component-classes": "^1.2.5" - } - }, - "csstype": { - "version": "2.6.10", - "resolved": "https://registry.npmjs.org/csstype/-/csstype-2.6.10.tgz", - "integrity": "sha512-D34BqZU4cIlMCY93rZHbrq9pjTAQJ3U8S8rfBqjwHxkGPThWFjzZDQpgMJY0QViLxth6ZKYiwFBo14RdN44U/w==", - "dev": true - }, - "dom-align": { - "version": "1.11.1", - "resolved": "https://registry.npmjs.org/dom-align/-/dom-align-1.11.1.tgz", - "integrity": "sha512-hN42DmUgtweBx0iBjDLO4WtKOMcK8yBmPx/fgdsgQadLuzPu/8co3oLdK5yMmeM/vnUd3yDyV6qV8/NzxBexQg==", - "dev": true - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "exec-sh": { - "version": "0.2.2", - "resolved": "https://registry.npmjs.org/exec-sh/-/exec-sh-0.2.2.tgz", - "integrity": "sha512-FIUCJz1RbuS0FKTdaAafAByGS0CPvU3R0MeHxgtl+djzCc//F8HakL8GzmVNZanasTbTAY/3DRFA0KpVqj/eAw==", - "dev": true, - "requires": { - "merge": "^1.2.0" - } - }, - "find-root": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/find-root/-/find-root-1.1.0.tgz", - "integrity": "sha512-NKfW6bec6GfKc0SGx1e07QZY9PE99u0Bft/0rzSD5k3sO/vwkVUpDUKVm5Gpp5Ue3YfShPFTX2070tDs5kB9Ng==", - "dev": true - }, - "fsevents": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.1.3.tgz", - "integrity": "sha512-Auw9a4AxqWpa9GUfj370BMPzzyncfBABW8Mab7BGWBYDj4Isgq+cDKtx0i6u9jcX9pQDnswsaaOTgTmA5pEjuQ==", - "dev": true, - "optional": true - }, - "hammerjs": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/hammerjs/-/hammerjs-2.0.8.tgz", - "integrity": "sha1-BO93hiz/K7edMPdpIJWTAiK/YPE=", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "hoist-non-react-statics": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/hoist-non-react-statics/-/hoist-non-react-statics-3.3.2.tgz", - "integrity": "sha512-/gGivxi8JPKWNm/W0jSmzcMPpfpPLc3dY/6GxhX2hQ9iGj3aDfklV4ET7NjKpSinLpJ5vafa9iiGIEZg10SfBw==", - "dev": true, - "requires": { - "react-is": "^16.7.0" - } - }, - "html-parse-stringify2": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/html-parse-stringify2/-/html-parse-stringify2-2.0.1.tgz", - "integrity": "sha1-3FZwtyksoVi3vJFsmmc1rIhyg0o=", - "requires": { - "void-elements": "^2.0.1" - } - }, - "i18next": { - "version": "19.4.4", - "resolved": "https://registry.npmjs.org/i18next/-/i18next-19.4.4.tgz", - "integrity": "sha512-ofaHtdsDdX3A5nYur1HWblB7J4hIcjr2ACdnwTAJgc8hTfPbyzZfGX0hVkKpI3vzDIgO6Uzc4v1ffW2W6gG6zw==", - "requires": { - "@babel/runtime": "^7.3.1" - } - }, - "immer": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/immer/-/immer-8.0.1.tgz", - "integrity": "sha512-aqXhGP7//Gui2+UrEtvxZxSquQVXTpZ7KDxfCcKAF3Vysvw0CViVaW9RZ1j1xlIYqaaaipBoqdqeibkc18PNvA==" - }, - "import-fresh": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.2.1.tgz", - "integrity": "sha512-6e1q1cnWP2RXD9/keSkxHScg508CdXqXWgWBaETNhyuBFz+kUZlKboh+ISK+bU++DmbHimVBrOz/zzPe0sZ3sQ==", - "dev": true, - "requires": { - "parent-module": "^1.0.0", - "resolve-from": "^4.0.0" - } - }, - "insert-css": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/insert-css/-/insert-css-2.0.0.tgz", - "integrity": "sha1-610Ql7dUL0x56jBg067gfQU4gPQ=", - "dev": true - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json2mq": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/json2mq/-/json2mq-0.2.0.tgz", - "integrity": "sha1-tje9O6nqvhIsg+lyBIOusQ0skEo=", - "dev": true, - "requires": { - "string-convert": "^0.2.0" - } - }, - "lines-and-columns": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", - "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", - "dev": true - }, - "lodash": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", - "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", - "dev": true - }, - "lodash-es": { - "version": "4.17.15", - "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.15.tgz", - "integrity": "sha512-rlrc3yU3+JNOpZ9zj5pQtxnx2THmvRykwL4Xlxoa8I9lHBlVbbyPhgyPMioxVZ4NqyxaVVtaJnzsyOidQIhyyQ==" - }, - "loose-envify": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", - "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", - "dev": true, - "requires": { - "js-tokens": "^3.0.0 || ^4.0.0" - } - }, - "merge": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/merge/-/merge-1.2.1.tgz", - "integrity": "sha512-VjFo4P5Whtj4vsLzsYBu5ayHhoHJ0UqNm7ibvShmbmoz7tGi0vXaoJbGdB+GmDMLUdg8DpQXEIeVDAe8MaABvQ==", - "dev": true - }, - "mini-store": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/mini-store/-/mini-store-3.0.2.tgz", - "integrity": "sha512-TM7IQBu+mVssLQReprx7JGftXk0EyaiIWw7yAx6E4SIZRHwgQ8XcG4dINFAaBCBihbYPJyhf7kbz7e5qk1FkuQ==", - "dev": true, - "requires": { - "@types/hoist-non-react-statics": "^3.3.1", - "@types/react-lifecycles-compat": "^3.0.1", - "@types/shallowequal": "^1.1.1", - "hoist-non-react-statics": "^3.3.2", - "prop-types": "^15.6.0", - "react-lifecycles-compat": "^3.0.4", - "shallowequal": "^1.0.2", - "typescript": "^3.8.3" - } - }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", - "dev": true - }, - "moment": { - "version": "2.24.0", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.24.0.tgz", - "integrity": "sha512-bV7f+6l2QigeBBZSM/6yTNq4P2fNpSWj/0e7jQcy87A8e7o2nAfP/34/2ky5Vw4B9S446EtIhodAzkFCcR4dQg==", - "dev": true - }, - "object-assign": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", - "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", - "dev": true - }, - "omit.js": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/omit.js/-/omit.js-1.0.2.tgz", - "integrity": "sha512-/QPc6G2NS+8d4L/cQhbk6Yit1WTB6Us2g84A7A/1+w9d/eRGHyEqC5kkQtHVoHZ5NFWGG7tUGgrhVZwgZanKrQ==", - "dev": true, - "requires": { - "babel-runtime": "^6.23.0" - } - }, - "parent-module": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz", - "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==", - "dev": true, - "requires": { - "callsites": "^3.0.0" - } - }, - "parse-json": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.0.0.tgz", - "integrity": "sha512-OOY5b7PAEFV0E2Fir1KOkxchnZNCdowAJgQ5NuxjpBKTRP3pQhwkrkxqQjeoKJ+fO7bCpmIZaogI4eZGDMEGOw==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1", - "lines-and-columns": "^1.1.6" - } - }, - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true - }, - "performance-now": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", - "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", - "dev": true - }, - "prop-types": { - "version": "15.7.2", - "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.7.2.tgz", - "integrity": "sha512-8QQikdH7//R2vurIJSutZ1smHYTcLpRWEOlHnzcWHmBYrOGUysKwSsrC89BCiFj3CbrfJ/nXFdJepOVrY1GCHQ==", - "dev": true, - "requires": { - "loose-envify": "^1.4.0", - "object-assign": "^4.1.1", - "react-is": "^16.8.1" - } - }, - "raf": { - "version": "3.4.1", - "resolved": "https://registry.npmjs.org/raf/-/raf-3.4.1.tgz", - "integrity": "sha512-Sq4CW4QhwOHE8ucn6J34MqtZCeWFP2aQSmrlroYgqAV1PjStIhJXxYuTgUIfkEk7zTLjmIjLmU5q+fbD1NnOJA==", - "dev": true, - "requires": { - "performance-now": "^2.1.0" - } - }, - "rc-align": { - "version": "3.0.0-rc.1", - "resolved": "https://registry.npmjs.org/rc-align/-/rc-align-3.0.0-rc.1.tgz", - "integrity": "sha512-GbofumhCUb7SxP410j/fbtR2M9Zml+eoZSdaliZh6R3NhfEj5zP4jcO3HG3S9C9KIcXQQtd/cwVHkb9Y0KU7Hg==", - "dev": true, - "requires": { - "classnames": "2.x", - "dom-align": "^1.7.0", - "rc-util": "^4.12.0", - "resize-observer-polyfill": "^1.5.1" - } - }, - "rc-animate": { - "version": "2.11.1", - "resolved": "https://registry.npmjs.org/rc-animate/-/rc-animate-2.11.1.tgz", - "integrity": "sha512-1NyuCGFJG/0Y+9RKh5y/i/AalUCA51opyyS/jO2seELpgymZm2u9QV3xwODwEuzkmeQ1BDPxMLmYLcTJedPlkQ==", - "dev": true, - "requires": { - "babel-runtime": "6.x", - "classnames": "^2.2.6", - "css-animation": "^1.3.2", - "prop-types": "15.x", - "raf": "^3.4.0", - "rc-util": "^4.15.3", - "react-lifecycles-compat": "^3.0.4" - } - }, - "rc-cascader": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/rc-cascader/-/rc-cascader-1.0.1.tgz", - "integrity": "sha512-3mk33+YKJBP1XSrTYbdVLuCC73rUDq5STNALhvua5i8vyIgIxtb5fSl96JdWWq1Oj8tIBoHnCgoEoOYnIXkthQ==", - "dev": true, - "requires": { - "array-tree-filter": "^2.1.0", - "rc-trigger": "^4.0.0", - "rc-util": "^4.0.4", - "warning": "^4.0.1" - } - }, - "rc-checkbox": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/rc-checkbox/-/rc-checkbox-2.2.0.tgz", - "integrity": "sha512-Wjh/nutLA8iIPTT1P9I9KOqlUblVe+CWa3SxMibFySnLyYbMxKNtPhwNcbADPOqzNU0AsCntTduNeJg1n0B5fg==", - "dev": true, - "requires": { - "babel-runtime": "^6.23.0", - "classnames": "2.x" - } - }, - "rc-collapse": { - "version": "1.11.8", - "resolved": "https://registry.npmjs.org/rc-collapse/-/rc-collapse-1.11.8.tgz", - "integrity": "sha512-8EhfPyScTYljkbRuIoHniSwZagD5UPpZ3CToYgoNYWC85L2qCbPYF7+OaC713FOrIkp6NbfNqXsITNxmDAmxog==", - "dev": true, - "requires": { - "classnames": "2.x", - "css-animation": "1.x", - "prop-types": "^15.5.6", - "rc-animate": "2.x", - "react-is": "^16.7.0", - "react-lifecycles-compat": "^3.0.4", - "shallowequal": "^1.1.0" - } - }, - "rc-dialog": { - "version": "7.6.1", - "resolved": "https://registry.npmjs.org/rc-dialog/-/rc-dialog-7.6.1.tgz", - "integrity": "sha512-KUKf+2eZ4YL+lnXMG3hR4ZtIhC9glfH27NtTVz3gcoDIPAf3uUvaXVRNoDCiSi+OGKLyIb/b6EoidFh6nQC5Wg==", - "dev": true, - "requires": { - "babel-runtime": "6.x", - "rc-animate": "2.x", - "rc-util": "^4.16.1" - } - }, - "rc-drawer": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/rc-drawer/-/rc-drawer-3.1.3.tgz", - "integrity": "sha512-2z+RdxmzXyZde/1OhVMfDR1e/GBswFeWSZ7FS3Fdd0qhgVdpV1wSzILzzxRaT481ItB5hOV+e8pZT07vdJE8kg==", - "dev": true, - "requires": { - "classnames": "^2.2.6", - "rc-util": "^4.16.1", - "react-lifecycles-compat": "^3.0.4" - } - }, - "rc-dropdown": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rc-dropdown/-/rc-dropdown-3.0.2.tgz", - "integrity": "sha512-T3XP4qL6xmkxn8z52YF2SEPoMHPpBiLf0Kty3mjNdRSyKnlu+0F+3bhDHf6gO1msmqrjURaz8sMNAFDcoFHHnw==", - "dev": true, - "requires": { - "babel-runtime": "^6.26.0", - "classnames": "^2.2.6", - "rc-trigger": "^4.0.0" - } - }, - "rc-field-form": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/rc-field-form/-/rc-field-form-1.1.3.tgz", - "integrity": "sha512-m7SUNNaum4pHrUj5MGnymEk3SRitMUZBhnMS0wqWrcL6XqvdTAG5Yz5HjukA6BryaS6nyQOgUVBXMxxNN/XsTQ==", - "dev": true, - "requires": { - "@babel/runtime": "^7.8.4", - "async-validator": "^3.0.3", - "rc-util": "^4.17.0", - "warning": "^4.0.3" - } - }, - "rc-hammerjs": { - "version": "0.6.9", - "resolved": "https://registry.npmjs.org/rc-hammerjs/-/rc-hammerjs-0.6.9.tgz", - "integrity": "sha512-4llgWO3RgLyVbEqUdGsDfzUDqklRlQW5VEhE3x35IvhV+w//VPRG34SBavK3D2mD/UaLKaohgU41V4agiftC8g==", - "dev": true, - "requires": { - "babel-runtime": "6.x", - "hammerjs": "^2.0.8", - "prop-types": "^15.5.9" - } - }, - "rc-input-number": { - "version": "4.5.7", - "resolved": "https://registry.npmjs.org/rc-input-number/-/rc-input-number-4.5.7.tgz", - "integrity": "sha512-99PrQ90sTOKyyj7eu0VzwxY17xQ+bwG1XTQd+bTwFQ+IOUkIw7L4qSAYxt58sVYL+Cw+bu/RAtT2IpT9yC2pCQ==", - "dev": true, - "requires": { - "babel-runtime": "6.x", - "classnames": "^2.2.0", - "prop-types": "^15.5.7", - "rc-util": "^4.5.1", - "rmc-feedback": "^2.0.0" - } - }, - "rc-mentions": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/rc-mentions/-/rc-mentions-1.1.0.tgz", - "integrity": "sha512-uOVMiQ5Jxfo3mbpOZsZt20Alid0268lX9eBR2I/chly0qhNbmSB71iLOHGkbL7zuHd50GF/eSr9fXJJQKUYG1Q==", - "dev": true, - "requires": { - "classnames": "^2.2.6", - "rc-menu": "^8.0.1", - "rc-trigger": "^4.0.0", - "rc-util": "^4.6.0" - } - }, - "rc-menu": { - "version": "8.0.3", - "resolved": "https://registry.npmjs.org/rc-menu/-/rc-menu-8.0.3.tgz", - "integrity": "sha512-a37l9MfzjXt8/q5en6ukjD2PoVsHCzWeRPdFK9eWi6hF5/9M3mfxgUt1LruQvaJKMQUxDyN5+4M8FsYULXJALw==", - "dev": true, - "requires": { - "classnames": "2.x", - "mini-store": "^3.0.1", - "rc-animate": "^2.10.1", - "rc-trigger": "^4.0.0", - "rc-util": "^4.13.0", - "resize-observer-polyfill": "^1.5.0", - "scroll-into-view-if-needed": "^2.2.20", - "shallowequal": "^1.1.0" - } - }, - "rc-notification": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/rc-notification/-/rc-notification-4.0.0.tgz", - "integrity": "sha512-In9FimkJY+JSIq3/eopPfBpQQr2Zugq5i9Aw9vdiNCGCsAsSO9bGq2dPsn8bamOydNrhc3djljGfmxUUMbcZnA==", - "dev": true, - "requires": { - "classnames": "2.x", - "rc-animate": "2.x", - "rc-util": "^4.0.4" - } - }, - "rc-pagination": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/rc-pagination/-/rc-pagination-2.2.0.tgz", - "integrity": "sha512-fXempMD/kvHu8tsiW70uPjn1pI4mdD62xFG9drcBh17gj5CbCjazrjpWS615RSauk3b2BBgIcAJzREAMvlAkFQ==", - "dev": true, - "requires": { - "classnames": "^2.2.1" - } - }, - "rc-picker": { - "version": "1.4.9", - "resolved": "https://registry.npmjs.org/rc-picker/-/rc-picker-1.4.9.tgz", - "integrity": "sha512-Lg/+06ozXEsivYit+fNET6IKSY8xnWEDsuQiRjJttsELg1kE3JyCZflaX98nCxkg+2IQqMPVXLuKIiaYGr43Uw==", - "dev": true, - "requires": { - "classnames": "^2.2.1", - "moment": "^2.24.0", - "rc-trigger": "^4.0.0", - "rc-util": "^4.17.0", - "shallowequal": "^1.1.0" - } - }, - "rc-progress": { - "version": "2.5.2", - "resolved": "https://registry.npmjs.org/rc-progress/-/rc-progress-2.5.2.tgz", - "integrity": "sha512-ajI+MJkbBz9zYDuE9GQsY5gsyqPF7HFioZEDZ9Fmc+ebNZoiSeSJsTJImPFCg0dW/5WiRGUy2F69SX1aPtSJgA==", - "dev": true, - "requires": { - "babel-runtime": "6.x", - "prop-types": "^15.5.8" - } - }, - "rc-rate": { - "version": "2.5.1", - "resolved": "https://registry.npmjs.org/rc-rate/-/rc-rate-2.5.1.tgz", - "integrity": "sha512-3iJkNJT8xlHklPCdeZtUZmJmRVUbr6AHRlfSsztfYTXVlHrv2TcPn3XkHsH+12j812WVB7gvilS2j3+ffjUHXg==", - "dev": true, - "requires": { - "classnames": "^2.2.5", - "prop-types": "^15.5.8", - "rc-util": "^4.3.0", - "react-lifecycles-compat": "^3.0.4" - } - }, - "rc-resize-observer": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/rc-resize-observer/-/rc-resize-observer-0.2.1.tgz", - "integrity": "sha512-GENTRkL3lq05ilrjTxPpHUPrKTC9D7XqUGesSXgi/GyO4j/jKIjLPn7zuZOcJ5QmN5QGRe24IaVWPZHQPE6vLw==", - "dev": true, - "requires": { - "classnames": "^2.2.1", - "rc-util": "^4.14.0", - "resize-observer-polyfill": "^1.5.1" - } - }, - "rc-select": { - "version": "10.2.4", - "resolved": "https://registry.npmjs.org/rc-select/-/rc-select-10.2.4.tgz", - "integrity": "sha512-PtfAHQRXof5gX1qEYQc8GIgroajtzU3mcMGbqM1aE1jqaZ4r+p0GJy3rabXoNANsKH7jUV5+zYJb5VhTxj2vmQ==", - "dev": true, - "requires": { - "classnames": "2.x", - "rc-animate": "^2.10.0", - "rc-trigger": "^4.0.0", - "rc-util": "^4.20.0", - "rc-virtual-list": "^1.1.2", - "warning": "^4.0.3" - } - }, - "rc-slider": { - "version": "9.2.4", - "resolved": "https://registry.npmjs.org/rc-slider/-/rc-slider-9.2.4.tgz", - "integrity": "sha512-wSr7vz+WtzzGqsGU2rTQ4mmLz9fkuIDMPYMYm8ygYFvxQ2Rh4uRhOWHYI0R8krNK5k1bGycckYxmQqUIvLAh3w==", - "dev": true, - "requires": { - "babel-runtime": "6.x", - "classnames": "^2.2.5", - "rc-tooltip": "^4.0.0", - "rc-util": "^4.0.4", - "shallowequal": "^1.1.0", - "warning": "^4.0.3" - } - }, - "rc-steps": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/rc-steps/-/rc-steps-3.5.0.tgz", - "integrity": "sha512-2Vkkrpa7PZbg7qPsqTNzVDov4u78cmxofjjnIHiGB9+9rqKS8oTLPzbW2uiWDr3Lk+yGwh8rbpGO1E6VAgBCOg==", - "dev": true, - "requires": { - "babel-runtime": "^6.23.0", - "classnames": "^2.2.3", - "lodash": "^4.17.5", - "prop-types": "^15.5.7" - } - }, - "rc-switch": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/rc-switch/-/rc-switch-1.9.0.tgz", - "integrity": "sha512-Isas+egaK6qSk64jaEw4GgPStY4umYDbT7ZY93bZF1Af+b/JEsKsJdNOU2qG3WI0Z6tXo2DDq0kJCv8Yhu0zww==", - "dev": true, - "requires": { - "classnames": "^2.2.1", - "prop-types": "^15.5.6", - "react-lifecycles-compat": "^3.0.4" - } - }, - "rc-table": { - "version": "7.4.5", - "resolved": "https://registry.npmjs.org/rc-table/-/rc-table-7.4.5.tgz", - "integrity": "sha512-lQS9izhGmgyCVK05imUrl32lBS9g2f3hB8LOKOof19JWCULKuYL5D3lLpaZSpCTecRYfONYNpgR7mZs7FOnYSQ==", - "dev": true, - "requires": { - "classnames": "^2.2.5", - "component-classes": "^1.2.6", - "lodash": "^4.17.5", - "prop-types": "^15.5.8", - "raf": "^3.4.1", - "rc-resize-observer": "^0.2.0", - "rc-util": "^4.20.1", - "react-lifecycles-compat": "^3.0.2", - "shallowequal": "^1.1.0" - } - }, - "rc-tabs": { - "version": "10.1.1", - "resolved": "https://registry.npmjs.org/rc-tabs/-/rc-tabs-10.1.1.tgz", - "integrity": "sha512-dOFeaYil3d6zV3ZtGZWfRf7zwyqUQ48cl67/Y/03SsBWEdYgfZzlgjfHqmUT+V7L7CvhQ5lIQyYpj4EthkgKCg==", - "dev": true, - "requires": { - "classnames": "2.x", - "lodash": "^4.17.5", - "rc-hammerjs": "~0.6.0", - "resize-observer-polyfill": "^1.5.1", - "warning": "^4.0.3" - } - }, - "rc-tooltip": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/rc-tooltip/-/rc-tooltip-4.0.3.tgz", - "integrity": "sha512-HNyBh9/fPdds0DXja8JQX0XTIHmZapB3lLzbdn74aNSxXG1KUkt+GK4X1aOTRY5X9mqm4uUKdeFrn7j273H8gw==", - "dev": true, - "requires": { - "rc-trigger": "^4.0.0" - } - }, - "rc-tree": { - "version": "3.1.6", - "resolved": "https://registry.npmjs.org/rc-tree/-/rc-tree-3.1.6.tgz", - "integrity": "sha512-K43uIcLnDDoynrkcRSPzkYCrc3mh96/N3DhIDeSv8UdJXMgt0u8KonyuT4y/4GhFPENBuq45ASwcuxvH4uy0Sg==", - "dev": true, - "requires": { - "classnames": "2.x", - "prop-types": "^15.5.8", - "rc-animate": "^2.9.2", - "rc-util": "^4.11.0", - "rc-virtual-list": "^1.1.0", - "react-lifecycles-compat": "^3.0.4" - } - }, - "rc-tree-select": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/rc-tree-select/-/rc-tree-select-3.1.3.tgz", - "integrity": "sha512-VQDr+qLCCJ9V/4ewnp3crMT2N7iJV58V0uWVA3nGJxVuxhSj8TPHFZLnyMh6vaNrQsrY6eBp/x1y6nEJBjnVQg==", - "dev": true, - "requires": { - "classnames": "2.x", - "rc-select": "^10.1.0", - "rc-tree": "^3.1.0", - "rc-util": "^4.17.0" - } - }, - "rc-trigger": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/rc-trigger/-/rc-trigger-4.0.2.tgz", - "integrity": "sha512-to5S1NhK10rWHIgQpoQdwIhuDc2Ok4R4/dh5NLrDt6C+gqkohsdBCYiPk97Z+NwGhRU8N+dbf251bivX8DkzQg==", - "dev": true, - "requires": { - "classnames": "^2.2.6", - "prop-types": "15.x", - "raf": "^3.4.1", - "rc-align": "^3.0.0-rc.0", - "rc-animate": "^2.10.2", - "rc-util": "^4.20.0" - } - }, - "rc-upload": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/rc-upload/-/rc-upload-3.0.4.tgz", - "integrity": "sha512-dTCvj1iHxjHG0qo5UyN2ZmtueG9GG3xrOhOwnjsehaoOvl0TOjLbHkUIPPqLZk+wHb57Ue4KB7c3+IMgkDoBvw==", - "dev": true, - "requires": { - "babel-runtime": "6.x", - "classnames": "^2.2.5" - } - }, - "rc-util": { - "version": "4.20.5", - "resolved": "https://registry.npmjs.org/rc-util/-/rc-util-4.20.5.tgz", - "integrity": "sha512-f67s4Dt1quBYhrVPq5QMKmK3eS2hN1NNIAyhaiG0HmvqiGYAXMQ7SP2AlGqv750vnzhJs38JklbkWT1/wjhFPg==", - "dev": true, - "requires": { - "add-dom-event-listener": "^1.1.0", - "prop-types": "^15.5.10", - "react-is": "^16.12.0", - "react-lifecycles-compat": "^3.0.4", - "shallowequal": "^1.1.0" - } - }, - "rc-virtual-list": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/rc-virtual-list/-/rc-virtual-list-1.1.2.tgz", - "integrity": "sha512-+WwxrtmBta7vcPCty7MtgilBmbxSGwN28Y8o+MG3GkHZccV0tXT+PLnAB+5WOjhhH10iFq+pzviRcXgcZ1x4OA==", - "dev": true, - "requires": { - "classnames": "^2.2.6", - "raf": "^3.4.1", - "rc-util": "^4.8.0" - } - }, - "react": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react/-/react-16.13.1.tgz", - "integrity": "sha512-YMZQQq32xHLX0bz5Mnibv1/LHb3Sqzngu7xstSM+vrkE5Kzr9xE0yMByK5kMoTK30YVJE61WfbxIFFvfeDKT1w==", - "dev": true, - "requires": { - "loose-envify": "^1.1.0", - "object-assign": "^4.1.1", - "prop-types": "^15.6.2" - } - }, - "react-i18next": { - "version": "11.4.0", - "resolved": "https://registry.npmjs.org/react-i18next/-/react-i18next-11.4.0.tgz", - "integrity": "sha512-lyOZSSQkif4H9HnHN3iEKVkryLI+WkdZSEw3VAZzinZLopfYRMHVY5YxCopdkXPLEHs6S5GjKYPh3+j0j336Fg==", - "requires": { - "@babel/runtime": "^7.3.1", - "html-parse-stringify2": "2.0.1" - } - }, - "react-is": { - "version": "16.13.1", - "resolved": "https://registry.npmjs.org/react-is/-/react-is-16.13.1.tgz", - "integrity": "sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==", - "dev": true - }, - "react-lifecycles-compat": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz", - "integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA==", - "dev": true - }, - "react-tracked": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/react-tracked/-/react-tracked-1.3.0.tgz", - "integrity": "sha512-RRo2L+b+WsvBegXamRb6tfgdtdTXL/zOWvPV52yI8+yiiqZ+Zumakp4xasb1eVzPTW0Ow70DA0Rq40KS/4/j0g==" - }, - "regenerator-runtime": { - "version": "0.13.5", - "resolved": "https://registry.npmjs.org/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz", - "integrity": "sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==" - }, - "resize-observer-polyfill": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/resize-observer-polyfill/-/resize-observer-polyfill-1.5.1.tgz", - "integrity": "sha512-LwZrotdHOo12nQuZlHEmtuXdqGoOD0OhaxopaNFxWzInpEgaLWoVuAMbTzixuosCx2nEG58ngzW3vxdWoxIgdg==", - "dev": true - }, - "resolve": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.17.0.tgz", - "integrity": "sha512-ic+7JYiV8Vi2yzQGFWOkiZD5Z9z7O2Zhm9XMaTxdJExKasieFCr+yXZ/WmXsckHiKl12ar0y6XiXDx3m4RHn1w==", - "dev": true, - "requires": { - "path-parse": "^1.0.6" - } - }, - "resolve-from": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz", - "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==", - "dev": true - }, - "rmc-feedback": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/rmc-feedback/-/rmc-feedback-2.0.0.tgz", - "integrity": "sha512-5PWOGOW7VXks/l3JzlOU9NIxRpuaSS8d9zA3UULUCuTKnpwBHNvv1jSJzxgbbCQeYzROWUpgKI4za3X4C/mKmQ==", - "dev": true, - "requires": { - "babel-runtime": "6.x", - "classnames": "^2.2.5" - } - }, - "rollup": { - "version": "2.7.3", - "resolved": "https://registry.npmjs.org/rollup/-/rollup-2.7.3.tgz", - "integrity": "sha512-lAWJGZ5BQzcu/5fhMKGJrh5oy9LQUoaCid8cQV8k+E2vE9E/UWptzcM+bSBg+u8akORsvnybsqQUE/wVChIazg==", - "dev": true, - "requires": { - "fsevents": "~2.1.2" - } - }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true - }, - "scroll-into-view-if-needed": { - "version": "2.2.24", - "resolved": "https://registry.npmjs.org/scroll-into-view-if-needed/-/scroll-into-view-if-needed-2.2.24.tgz", - "integrity": "sha512-vsC6SzyIZUyJG8o4nbUDCiIwsPdH6W/FVmjT2avR2hp/yzS53JjGmg/bKD20TkoNajbu5dAQN4xR7yes4qhwtQ==", - "dev": true, - "requires": { - "compute-scroll-into-view": "^1.0.13" - } - }, - "shallowequal": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/shallowequal/-/shallowequal-1.1.0.tgz", - "integrity": "sha512-y0m1JoUZSlPAjXVtPPW70aZWfIL/dSP7AFkRnniLCrK/8MDKog3TySTBmckD+RObVxH0v4Tox67+F14PdED2oQ==", - "dev": true - }, - "source-map": { - "version": "0.5.7", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", - "integrity": "sha1-igOdLRAh0i0eoUyA2OpGi6LvP8w=", - "dev": true - }, - "string-convert": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/string-convert/-/string-convert-0.2.1.tgz", - "integrity": "sha1-aYLMMEn7tM2F+LJFaLnZvznu/5c=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - }, - "tinycolor2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.4.1.tgz", - "integrity": "sha1-9PrTM0R7wLB9TcjpIJ2POaisd+g=", - "dev": true - }, - "to-fast-properties": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/to-fast-properties/-/to-fast-properties-2.0.0.tgz", - "integrity": "sha1-3F5pjL0HkmW8c+A3doGk5Og/YW4=", - "dev": true - }, - "toggle-selection": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/toggle-selection/-/toggle-selection-1.0.6.tgz", - "integrity": "sha1-bkWxJj8gF/oKzH2J14sVuL932jI=", - "dev": true - }, - "typescript": { - "version": "3.8.3", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.8.3.tgz", - "integrity": "sha512-MYlEfn5VrLNsgudQTVJeNaQFUAI7DkhnOjdpAp4T+ku1TfQClewlbSuTVHiA+8skNBgaf02TL/kLOvig4y3G8w==", - "dev": true - }, - "void-elements": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/void-elements/-/void-elements-2.0.1.tgz", - "integrity": "sha1-wGavtYK7HLQSjWDqkjkulNXp2+w=" - }, - "warning": { - "version": "4.0.3", - "resolved": "https://registry.npmjs.org/warning/-/warning-4.0.3.tgz", - "integrity": "sha512-rpJyN222KWIvHJ/F53XSZv0Zl/accqHR8et1kpaMTD/fLCRxtV8iX8czMzY7sVZupTI3zcUTg8eycS2kNF9l6w==", - "dev": true, - "requires": { - "loose-envify": "^1.0.0" - } - }, - "watch": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/watch/-/watch-1.0.2.tgz", - "integrity": "sha1-NApxe952Vyb6CqB9ch4BR6VR3ww=", - "dev": true, - "requires": { - "exec-sh": "^0.2.0", - "minimist": "^1.2.0" - } - }, - "yaml": { - "version": "1.9.2", - "resolved": "https://registry.npmjs.org/yaml/-/yaml-1.9.2.tgz", - "integrity": "sha512-HPT7cGGI0DuRcsO51qC1j9O16Dh1mZ2bnXwsi0jrSpsLz0WxOLSLXfkABVl6bZO629py3CU+OMJtpNHDLB97kg==", - "dev": true, - "requires": { - "@babel/runtime": "^7.9.2" - } - } - } -} diff --git a/packages/json-schema-editor/package.json b/packages/json-schema-editor/package.json deleted file mode 100644 index ae4f5da..0000000 --- a/packages/json-schema-editor/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "@imove/json-schema-editor", - "version": "0.3.2", - "description": "visual editor for json schema", - "keywords": [ - "ace-editor", - "json-schema" - ], - "author": "suanmei ", - "homepage": "https://github.com/suanmei/iMove#readme", - "license": "MIT", - "main": "dist/core.common.js", - "module": "dist/core.esm.js", - "types": "dist/types/index.d.ts", - "directories": { - "dist": "dist" - }, - "files": [ - "dist" - ], - "publishConfig": { - "access": "public", - "registry": "http://registry.npmjs.org/" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/suanmei/iMove.git" - }, - "scripts": { - "prepublishOnly": "node scripts/prepublish.js", - "declare-type": "tsc --emitDeclarationOnly", - "build": "rollup -c & npm run declare-type", - "watch": "watch \"npm run build\" ./src" - }, - "bugs": { - "url": "https://github.com/suanmei/iMove/issues" - }, - "devDependencies": { - "@ant-design/icons": "^4.1.0", - "@emotion/core": "^10.0.28", - "@emotion/styled": "^10.0.27", - "@types/lodash-es": "^4.17.3", - "@types/react": "^16.9.34", - "@types/react-dom": "^16.9.7", - "antd": "^4.1.5", - "react": "^16.13.1", - "rollup": "^2.7.3", - "watch": "^1.0.2" - }, - "peerDependencies": { - "@ant-design/icons": "^4.1.0", - "@emotion/core": "^10.0.28", - "@emotion/styled": "^10.0.27", - "antd": "^4.1.5", - "react": "^16.13.1", - "react-dom": "^16.13.1" - }, - "gitHead": "60b114ff262513544204f33a9bbcb6220d6c1c5d", - "dependencies": { - "i18next": "^19.4.4", - "immer": "^8.0.1", - "lodash-es": "^4.17.15", - "react-i18next": "^11.4.0", - "react-tracked": "^1.3.0" - } -} diff --git a/packages/json-schema-editor/rollup.config.js b/packages/json-schema-editor/rollup.config.js deleted file mode 100644 index 73a04f4..0000000 --- a/packages/json-schema-editor/rollup.config.js +++ /dev/null @@ -1,16 +0,0 @@ -import rollupBaseConfig from '../../rollup.config'; -import pkg from './package.json'; - -export default Object.assign(rollupBaseConfig, { - output: [ - { - file: pkg.main, - format: 'cjs', - }, - { - file: pkg.module, - format: 'es', - }, - ], - external: Object.keys(pkg.peerDependencies).concat(/^antd\//), -}); diff --git a/packages/json-schema-editor/scripts/prepublish.js b/packages/json-schema-editor/scripts/prepublish.js deleted file mode 100644 index d77e4a9..0000000 --- a/packages/json-schema-editor/scripts/prepublish.js +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env node - -const path = require('path'); -const prePublish = require('../../../scripts/prepublish'); - -prePublish('@imove/json-schema-editor', path.join(__dirname, '../')); diff --git a/packages/json-schema-editor/src/components/ace.tsx b/packages/json-schema-editor/src/components/ace.tsx deleted file mode 100644 index e69de29..0000000 diff --git a/packages/json-schema-editor/src/components/add-node.tsx b/packages/json-schema-editor/src/components/add-node.tsx deleted file mode 100644 index 144c8e5..0000000 --- a/packages/json-schema-editor/src/components/add-node.tsx +++ /dev/null @@ -1,48 +0,0 @@ -import * as React from 'react'; -import { Menu, Dropdown } from 'antd'; -import { useTranslation } from 'react-i18next'; -import { PlusIcon } from '../utils/styles/common'; - -interface AddNodeProps { - addChildField: () => void; - addSiblingField: () => void; -} - -function AddNodeIcon({ - addChildField, - addSiblingField, -}: AddNodeProps): JSX.Element { - const { t } = useTranslation(); - const menu = ( - - -
- {t('child_node')} -
-
- -
- {t('sibling_node')} -
-
-
- ); - - return ( - - - - ); -} - -export default AddNodeIcon; diff --git a/packages/json-schema-editor/src/components/field-input.tsx b/packages/json-schema-editor/src/components/field-input.tsx deleted file mode 100644 index 8e106bc..0000000 --- a/packages/json-schema-editor/src/components/field-input.tsx +++ /dev/null @@ -1,70 +0,0 @@ -import * as React from 'react'; -import styled from '@emotion/styled'; -import { Tooltip, Input, Checkbox } from 'antd'; -import { useTranslation } from 'react-i18next'; - -interface FieldInputProps { - value: string; - required: boolean; - changeField: (value: string) => void; - toggleRequired: (value: string) => void; -} - -const CustomInput = styled(Input)` - .ant-input-group-addon { - background: transparent; - border: none; - } -`; - -function FieldInput(props: FieldInputProps): JSX.Element { - const { value: initValue, changeField, required, toggleRequired } = props; - const [value, setValue] = React.useState(initValue); - const [prevInitValue, setPrevInitValue] = React.useState(initValue); - - const { t } = useTranslation(); - - // mock getDerivedStateFromProps - if (initValue !== prevInitValue) { - setValue(initValue); - setPrevInitValue(initValue); - } - - const handleChange = (e: React.ChangeEvent): void => { - setValue(e.target.value); - }; - - const handleBlur = (e: React.ChangeEvent): void => { - if (e.target.value !== initValue) { - changeField(e.target.value); - } - }; - - const handleKeyUp = (e: React.KeyboardEvent): void => { - const { value: newValue } = e.target as HTMLInputElement; - if (e.keyCode === 13 && newValue !== initValue) { - changeField(newValue); - } - }; - - return ( - - { - toggleRequired(value); - }} - /> - - } - /> - ); -} - -export default React.memo(FieldInput); diff --git a/packages/json-schema-editor/src/components/layout.tsx b/packages/json-schema-editor/src/components/layout.tsx deleted file mode 100644 index cb16e1e..0000000 --- a/packages/json-schema-editor/src/components/layout.tsx +++ /dev/null @@ -1,48 +0,0 @@ -/** @jsx jsx */ -import { useEffect } from 'react'; -import { jsx, css } from '@emotion/core'; -import { Button } from 'antd'; -import { useTranslation } from 'react-i18next'; -import EditorHead from './schema-head'; -import SchemaForm from './schema-form'; -import { useUIState } from '../store/ui'; -import { useSchemaState } from '../store/schema'; -import { SchemaState } from '../model'; - -let temp: SchemaState | null = null; - -interface LayoutProps { - onChange: (value: SchemaState) => void; -} - -function Layout({ onChange }: LayoutProps): JSX.Element { - const { t } = useTranslation(); - - const uiState = useUIState(); - const key = 'properties'; - const visible = uiState[key] !== false; - - const schemaState = useSchemaState(); - - useEffect(() => { - if (temp !== schemaState) { - temp = schemaState; - onChange(schemaState); - } - }); - - return ( -
- - - {visible && } -
- ); -} - -export default Layout; diff --git a/packages/json-schema-editor/src/components/schema-form.tsx b/packages/json-schema-editor/src/components/schema-form.tsx deleted file mode 100644 index 3c5e765..0000000 --- a/packages/json-schema-editor/src/components/schema-form.tsx +++ /dev/null @@ -1,44 +0,0 @@ -/** @jsx jsx */ -import { jsx } from '@emotion/core'; -import { isUndefined } from 'lodash-es'; -import SchemaItem from './schema-item'; -import { ObjectSchemaItem, KeyRoute } from '../model'; - -interface SchemaFormProps { - data: ObjectSchemaItem; - keyRoute: KeyRoute; -} - -function SchemaForm({ data, keyRoute }: SchemaFormProps): JSX.Element { - const { required, properties } = data; - - return ( -
- {Object.keys(properties).map((field, index) => { - const itemData = properties[field]; - const isRequired = required && required.includes(field); - const fieldKeyRoute = keyRoute.concat(field); - - return ( - - {itemData.type === 'object' && !isUndefined(itemData.properties) ? ( - - ) : null} - - ); - })} -
- ); -} - -export default SchemaForm; diff --git a/packages/json-schema-editor/src/components/schema-head.tsx b/packages/json-schema-editor/src/components/schema-head.tsx deleted file mode 100644 index 1aba5fa..0000000 --- a/packages/json-schema-editor/src/components/schema-head.tsx +++ /dev/null @@ -1,109 +0,0 @@ -/** @jsx jsx */ -import { useState } from 'react'; -import { jsx } from '@emotion/core'; -import styled from '@emotion/styled'; -import { Row, Col, Tooltip, Input, Checkbox, Select } from 'antd'; -import { CheckboxChangeEvent } from 'antd/lib/checkbox'; -import { useTranslation } from 'react-i18next'; -import { useUIState, useSetUIState } from '../store/ui'; -import { useSchemaDispatch } from '../store/schema'; -import { - CaretDownIcon, - CaretRightIcon, - EditIcon, - SettingIcon, - PlusIcon, -} from '../utils/styles/common'; - -const { Option } = Select; - -const FieldInput = styled(Input)` - .ant-input-group-addon { - background: transparent; - border: none; - } -`; - -function EditorHead(): JSX.Element { - const { t } = useTranslation(); - const schemaDispatch = useSchemaDispatch(); - const setUIState = useSetUIState(); - const uiState = useUIState(); - const key = 'properties'; - const visible = uiState[key]; - - const [checked, setChecked] = useState(false); - - const toggleFormVisible = (): void => { - setUIState((prev) => ({ ...prev, [key]: !visible })); - }; - - const addChildField = (): void => { - schemaDispatch({ type: 'ADD_CHILD_FIELD', keyRoute: ['properties'] }); - }; - - const toggleAllChecked = (e: CheckboxChangeEvent): void => { - setChecked(e.target.checked); - schemaDispatch({ type: 'TOGGLE_ALL_CHECKED', checked: e.target.checked }); - }; - - return ( - - - - - - - {visible ? ( - - ) : ( - - )} - - - - - - } - /> - - - - - - - - } - /> - - - } - /> - - - - - - - - - - - - - ); -} - -export default EditorHead; diff --git a/packages/json-schema-editor/src/components/schema-item.tsx b/packages/json-schema-editor/src/components/schema-item.tsx deleted file mode 100644 index ee39500..0000000 --- a/packages/json-schema-editor/src/components/schema-item.tsx +++ /dev/null @@ -1,156 +0,0 @@ -/** @jsx jsx */ -import { jsx } from '@emotion/core'; -import { Row, Col, Tooltip, Input, Select } from 'antd'; -import { useTranslation } from 'react-i18next'; -import { useUIState, useSetUIState } from '../store/ui'; -import { useSchemaDispatch } from '../store/schema'; -import { schemaType } from '../utils/schema'; -import { SchemaType, SchemaItem, KeyRoute } from '../model'; -import FieldInput from './field-input'; -import AddNode from './add-node'; -import { - CaretDownIcon, - CaretRightIcon, - EditIcon, - SettingIcon, - PlusIcon, - CloseIcon, -} from '../utils/styles/common'; - -const { Option } = Select; - -interface SchemaItemProps { - field: string; - data: SchemaItem; - required: boolean; - keyRoute: KeyRoute; - children: React.ReactChild | null; -} - -function SchemaFormItem(props: SchemaItemProps): JSX.Element { - const { field, data, required, keyRoute, children } = props; - const { t } = useTranslation(); - const schemaDispatch = useSchemaDispatch(); - const setUIState = useSetUIState(); - const uiState = useUIState(); - const key = keyRoute.join('-'); - const visible = uiState[key] !== false; - - const toggleFormVisible = (): void => { - setUIState((prev) => ({ ...prev, [key]: !visible })); - }; - - const toggleRequired = (value: string): void => { - const fieldKeyRoute = keyRoute.slice(0, -1).concat(value); - - if (required) { - schemaDispatch({ type: 'REMOVE_REQUIRED', keyRoute: fieldKeyRoute }); - } else { - schemaDispatch({ type: 'ADD_REQUIRED', keyRoute: fieldKeyRoute }); - } - }; - - const addChildField = (): void => { - schemaDispatch({ - type: 'ADD_CHILD_FIELD', - keyRoute: keyRoute.concat('properties'), - }); - }; - - const addSiblingField = (): void => { - schemaDispatch({ type: 'ADD_SIBLING_FIELD', keyRoute }); - }; - - const removeField = (): void => { - schemaDispatch({ type: 'REMOVE_FIELD', keyRoute }); - }; - - const changeField = (value: string): void => { - schemaDispatch({ type: 'CHANGE_FIELD', keyRoute, field: value }); - }; - - const changeType = (value: SchemaType): void => { - schemaDispatch({ type: 'CHANGE_TYPE', keyRoute, fieldType: value }); - }; - - const changeTitle = (e: React.ChangeEvent): void => { - schemaDispatch({ type: 'CHANGE_TITLE', keyRoute, title: e.target.value }); - }; - - const changeDesc = (e: React.ChangeEvent): void => { - schemaDispatch({ type: 'CHANGE_DESC', keyRoute, desc: e.target.value }); - }; - - return ( -
- - - - - {data.type === 'object' && visible && ( - - )} - {data.type === 'object' && !visible && ( - - )} - - - - - - - - - - - } - /> - - - } - /> - - - - - - - {data.type === 'object' ? ( - - ) : ( - - - - )} - - - {visible && children ? ( -
{children}
- ) : null} -
- ); -} - -export default SchemaFormItem; diff --git a/packages/json-schema-editor/src/i18n/index.ts b/packages/json-schema-editor/src/i18n/index.ts deleted file mode 100644 index e05baa9..0000000 --- a/packages/json-schema-editor/src/i18n/index.ts +++ /dev/null @@ -1,23 +0,0 @@ -import i18n from 'i18next'; -import { initReactI18next } from 'react-i18next'; -import * as en from './translations/en.json'; -import * as zh from './translations/zh.json'; - -i18n - .use(initReactI18next) // passes i18n down to react-i18next - .init({ - fallbackLng: 'en', - resources: { - en, - zh, - 'en-US': en, - 'zh-CN': zh, - }, - lng: 'en', - keySeparator: false, // we do not use keys in form messages.welcome - interpolation: { - escapeValue: false, // react already safes from xss - }, - }); - -export default i18n; diff --git a/packages/json-schema-editor/src/i18n/translations/en.json b/packages/json-schema-editor/src/i18n/translations/en.json deleted file mode 100644 index bd8c5b1..0000000 --- a/packages/json-schema-editor/src/i18n/translations/en.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "translation": { - "import_json": "Import JSON", - "select_all": "Select All", - "required": "required", - "title": "Title", - "description": "Description", - "setting": "Advanced Setting", - "child_node": "Child node", - "sibling_node": "Sibling node", - "add_child_node": "Add child node", - "add_sibling_node": "Add sibling node" - } -} diff --git a/packages/json-schema-editor/src/i18n/translations/zh.json b/packages/json-schema-editor/src/i18n/translations/zh.json deleted file mode 100644 index 0333d19..0000000 --- a/packages/json-schema-editor/src/i18n/translations/zh.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "translation": { - "import_json": "导入 JSON", - "select_all": "全选", - "required": "必选", - "title": "标题", - "description": "描述", - "setting": "高级设置", - "child_node": "子节点", - "sibling_node": "兄弟节点", - "add_child_node": "添加子节点", - "add_sibling_node": "添加兄弟节点" - } -} diff --git a/packages/json-schema-editor/src/index.tsx b/packages/json-schema-editor/src/index.tsx deleted file mode 100644 index 1341f8a..0000000 --- a/packages/json-schema-editor/src/index.tsx +++ /dev/null @@ -1,37 +0,0 @@ -/** @jsx jsx */ -import { useEffect } from 'react'; -import { Global, jsx } from '@emotion/core'; -import { useTranslation } from 'react-i18next'; -import Layout from './components/layout'; -import { UIProvider } from './store/ui'; -import { SchemaProvider } from './store/schema'; -import globalStyles from './utils/styles/global'; -import { SchemaState } from './model'; -import './utils/styles/antd'; -import './i18n'; - -interface EditorProps { - lang?: string; - data: SchemaState; - onChange: (value: SchemaState) => void; -} - -function JsonSchemaEditor({ lang, data, onChange }: EditorProps): JSX.Element { - const { i18n } = useTranslation(); - - useEffect(() => { - if (!lang) return; - i18n.changeLanguage(lang); - }, [i18n, lang]); - - return ( - - - - - - - ); -} - -export default JsonSchemaEditor; diff --git a/packages/json-schema-editor/src/model/index.ts b/packages/json-schema-editor/src/model/index.ts deleted file mode 100644 index 2cfc7d9..0000000 --- a/packages/json-schema-editor/src/model/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from './ui'; -export * from './schema'; diff --git a/packages/json-schema-editor/src/model/schema.ts b/packages/json-schema-editor/src/model/schema.ts deleted file mode 100644 index bbcbf60..0000000 --- a/packages/json-schema-editor/src/model/schema.ts +++ /dev/null @@ -1,51 +0,0 @@ -export type SchemaType = - | 'string' - | 'number' - | 'object' - | 'array' - | 'boolean' - | 'integer'; - -type basicSchemaType = 'string' | 'number' | 'boolean' | 'integer'; - -interface BasicSchemaItem { - title?: string; - description?: string; - type: basicSchemaType; -} - -export interface ObjectSchemaItem { - title?: string; - description?: string; - type: 'object'; - properties: { - [field: string]: SchemaItem; - }; - required: string[]; -} - -export interface ArraySchemaItem { - title?: string; - description?: string; - type: 'array'; - items: SchemaItem; -} - -export type SchemaItem = BasicSchemaItem | ObjectSchemaItem | ArraySchemaItem; - -export type SchemaState = ObjectSchemaItem; - -export type KeyRoute = (string | number)[]; - -export type SchemaAction = - | { type: 'SET_SCHEMA'; schema: SchemaState } - | { type: 'ADD_CHILD_FIELD'; keyRoute: KeyRoute } - | { type: 'ADD_SIBLING_FIELD'; keyRoute: KeyRoute } - | { type: 'REMOVE_FIELD'; keyRoute: KeyRoute } - | { type: 'TOGGLE_ALL_CHECKED'; checked: boolean } - | { type: 'ADD_REQUIRED'; keyRoute: KeyRoute } - | { type: 'REMOVE_REQUIRED'; keyRoute: KeyRoute } - | { type: 'CHANGE_FIELD'; keyRoute: KeyRoute; field: string } - | { type: 'CHANGE_TYPE'; keyRoute: KeyRoute; fieldType: SchemaType } - | { type: 'CHANGE_TITLE'; keyRoute: KeyRoute; title: string } - | { type: 'CHANGE_DESC'; keyRoute: KeyRoute; desc: string }; diff --git a/packages/json-schema-editor/src/model/ui.ts b/packages/json-schema-editor/src/model/ui.ts deleted file mode 100644 index 01aa659..0000000 --- a/packages/json-schema-editor/src/model/ui.ts +++ /dev/null @@ -1,3 +0,0 @@ -export interface UIState { - [key: string]: boolean; -} diff --git a/packages/json-schema-editor/src/reducer/schema.ts b/packages/json-schema-editor/src/reducer/schema.ts deleted file mode 100644 index 2d76bf4..0000000 --- a/packages/json-schema-editor/src/reducer/schema.ts +++ /dev/null @@ -1,197 +0,0 @@ -import produce, { Draft } from 'immer'; -import { get, set, unset, remove } from 'lodash-es'; -import { - SchemaType, - SchemaItem, - SchemaState, - SchemaAction, - KeyRoute, -} from '../model'; -import { defaultSchema, setAllFieldRequired } from '../utils/schema'; - -let fieldNum = 0; - -const setSchema = (schema: SchemaState): SchemaState => { - return schema; -}; - -const addRequired = (state: SchemaState, keyRoute: KeyRoute): void => { - const field = keyRoute.slice(-1)[0]; - const requiredKeyRoute = keyRoute.slice(0, -2).concat('required'); - const required = get(state, requiredKeyRoute) || []; - required.push(field); - set(state, requiredKeyRoute, required); -}; - -const removeRequired = (state: SchemaState, keyRoute: KeyRoute): void => { - const field = keyRoute.slice(-1)[0]; - const requiredKeyRoute = keyRoute.slice(0, -2).concat('required'); - const required = get(state, requiredKeyRoute) || []; - remove(required, (item) => item === field); - set(state, requiredKeyRoute, required); -}; - -const changeRequiredField = ( - state: SchemaState, - oldKeyRoute: KeyRoute, - newField: string, -): void => { - const oldField = oldKeyRoute.slice(-1)[0]; - const requiredKeyRoute = oldKeyRoute.slice(0, -2).concat('required'); - const required = get(state, requiredKeyRoute) || []; - const oldFieldIndex = required.indexOf(oldField); - - // new field extend the old field - if (oldFieldIndex > -1) { - required.splice(oldFieldIndex, 1, newField); - set(state, requiredKeyRoute, required); - } -}; - -const toggleAllChecked = (state: SchemaState, checked: boolean): void => { - setAllFieldRequired(state, checked); -}; - -const addChildField = (state: Draft, keyRoute: KeyRoute): void => { - fieldNum += 1; - - const newField = `field_${fieldNum}`; - - // add new field - string - const newKeyRoute = keyRoute.concat(newField); - set(state, newKeyRoute, defaultSchema.string); - - // add new filed to its parent's required - addRequired(state, newKeyRoute); -}; - -const addSiblingField = (state: SchemaState, keyRoute: KeyRoute): void => { - fieldNum += 1; - - const newField = `field_${fieldNum}`; - - // add new field - string - const newKeyRoute = keyRoute.slice(0, -1).concat(newField); - set(state, newKeyRoute, defaultSchema.string); - - // add new filed to its parent's required - addRequired(state, newKeyRoute); -}; - -const removeField = (state: SchemaState, keyRoute: KeyRoute): void => { - // remove field - unset(state, keyRoute); - - // remove filed from its parent's required - removeRequired(state, keyRoute); -}; - -const changeField = ( - state: SchemaState, - keyRoute: KeyRoute, - newField: string, -): void => { - const oldField = keyRoute.slice(-1)[0]; - const parentKeyRoute = keyRoute.slice(0, -1); - const properties = get(state, parentKeyRoute); - const newProperties: { [key: string]: SchemaItem } = {}; - - // keep the order of fields - - // eslint-disable-next-line no-restricted-syntax - for (const field in properties) { - if (field === oldField) { - newProperties[newField] = properties[field]; - } else { - newProperties[field] = properties[field]; - } - } - - set(state, parentKeyRoute, newProperties); - - // replace old field with new field in required - changeRequiredField(state, keyRoute, newField); -}; - -const changeType = ( - state: SchemaState, - keyRoute: KeyRoute, - fieldType: SchemaType, -): void => { - // set field new value - set(state, keyRoute, defaultSchema[fieldType]); -}; - -const changeTitle = ( - state: SchemaState, - keyRoute: KeyRoute, - title: string, -): void => { - // point to title and set new value - const titleKeyRoute = keyRoute.concat('title'); - set(state, titleKeyRoute, title); -}; - -const changeDesc = ( - state: SchemaState, - keyRoute: KeyRoute, - desc: string, -): void => { - // point to desc and set new value - const descKeyRoute = keyRoute.concat('description'); - set(state, descKeyRoute, desc); -}; - -const reducer = (state: SchemaState, action: SchemaAction): SchemaState => - produce(state, (draft: Draft) => { - switch (action.type) { - case 'SET_SCHEMA': - setSchema(action.schema); - break; - - case 'ADD_CHILD_FIELD': - addChildField(draft, action.keyRoute); - break; - - case 'ADD_SIBLING_FIELD': - addSiblingField(draft, action.keyRoute); - break; - - case 'REMOVE_FIELD': - removeField(draft, action.keyRoute); - break; - - case 'TOGGLE_ALL_CHECKED': - toggleAllChecked(draft, action.checked); - break; - - case 'ADD_REQUIRED': - addRequired(draft, action.keyRoute); - break; - - case 'REMOVE_REQUIRED': - removeRequired(draft, action.keyRoute); - break; - - case 'CHANGE_FIELD': - changeField(draft, action.keyRoute, action.field); - break; - - case 'CHANGE_TYPE': - changeType(draft, action.keyRoute, action.fieldType); - break; - - case 'CHANGE_TITLE': - changeTitle(draft, action.keyRoute, action.title); - break; - - case 'CHANGE_DESC': - changeDesc(draft, action.keyRoute, action.desc); - break; - - default: - break; - } - }); - -export default reducer; diff --git a/packages/json-schema-editor/src/store/schema.ts b/packages/json-schema-editor/src/store/schema.ts deleted file mode 100644 index 7c1a268..0000000 --- a/packages/json-schema-editor/src/store/schema.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Dispatch, useReducer } from 'react'; -import { createContainer } from 'react-tracked'; -import { SchemaState, SchemaAction } from '../model'; -import reducer from '../reducer/schema'; - -interface StoreProps { - initialData: SchemaState; -} - -const defaultData: SchemaState = { - type: 'object', - properties: {}, - required: [], -}; - -const useValue = ({ initialData }: StoreProps): [SchemaState, Dispatch] => - useReducer(reducer, initialData || defaultData); - -export const { - Provider: SchemaProvider, - useTrackedState: useSchemaState, - useUpdate: useSchemaDispatch, -} = createContainer(useValue); diff --git a/packages/json-schema-editor/src/store/ui.ts b/packages/json-schema-editor/src/store/ui.ts deleted file mode 100644 index 4a16b50..0000000 --- a/packages/json-schema-editor/src/store/ui.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { useState, Dispatch, SetStateAction } from 'react'; -import { createContainer } from 'react-tracked'; -import { UIState } from '../model'; - -const initialData = { properties: true }; - -const useValue = (): [UIState, Dispatch>] => useState(initialData); - -export const { - Provider: UIProvider, - useTrackedState: useUIState, - useUpdate: useSetUIState, -} = createContainer(useValue); diff --git a/packages/json-schema-editor/src/utils/schema.ts b/packages/json-schema-editor/src/utils/schema.ts deleted file mode 100644 index c3f4149..0000000 --- a/packages/json-schema-editor/src/utils/schema.ts +++ /dev/null @@ -1,60 +0,0 @@ -import { SchemaItem } from '../model'; - -export const defaultSchema = { - string: { - type: 'string', - }, - number: { - type: 'number', - }, - array: { - type: 'array', - items: { - type: 'string', - }, - }, - object: { - type: 'object', - properties: {}, - }, - boolean: { - type: 'boolean', - }, - integer: { - type: 'integer', - }, -}; - -export const schemaType = [ - 'string', - 'number', - 'array', - 'object', - 'boolean', - 'integer', -]; - -export const setAllFieldRequired = ( - schema: SchemaItem, - checked: boolean, -): void => { - if (schema.type === 'object') { - const { properties } = schema; - const fields = Object.keys(properties); - - if (checked) { - schema.required = fields; - } else { - delete schema.required; - } - - fields.forEach((field) => { - const childSchema = properties[field]; - if (['object', 'array'].includes(childSchema.type)) { - setAllFieldRequired(childSchema, checked); - } - }); - } else if (schema.type === 'array') { - setAllFieldRequired(schema.items, checked); - } -}; diff --git a/packages/json-schema-editor/src/utils/styles/antd.ts b/packages/json-schema-editor/src/utils/styles/antd.ts deleted file mode 100644 index dd7db3a..0000000 --- a/packages/json-schema-editor/src/utils/styles/antd.ts +++ /dev/null @@ -1,9 +0,0 @@ -import 'antd/lib/row/style'; -import 'antd/lib/col/style'; -import 'antd/lib/menu/style'; -import 'antd/lib/input/style'; -import 'antd/lib/select/style'; -import 'antd/lib/button/style'; -import 'antd/lib/tooltip/style'; -import 'antd/lib/dropdown/style'; -import 'antd/lib/checkbox/style'; diff --git a/packages/json-schema-editor/src/utils/styles/common.ts b/packages/json-schema-editor/src/utils/styles/common.ts deleted file mode 100644 index 2e8a3b7..0000000 --- a/packages/json-schema-editor/src/utils/styles/common.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { css } from '@emotion/core'; -import styled from '@emotion/styled'; -import { - CaretDownOutlined, - CaretRightOutlined, - EditOutlined, - SettingOutlined, - PlusOutlined, - CloseOutlined, -} from '@ant-design/icons'; - -const iconStyle = css` - vertical-align: middle; - cursor: pointer; -`; - -const actionStyle = css` - margin: 0 5px; - svg { - font-size: 14px; - } -`; - -export const CaretDownIcon = styled(CaretDownOutlined)` - ${iconStyle} -`; - -export const CaretRightIcon = styled(CaretRightOutlined)` - ${iconStyle} -`; - -export const EditIcon = styled(EditOutlined)` - ${iconStyle} -`; - -export const SettingIcon = styled(SettingOutlined)` - color: #00a854; - ${iconStyle} - ${actionStyle} -`; - -export const PlusIcon = styled(PlusOutlined)` - color: #2395f1; - ${iconStyle} - ${actionStyle} -`; - -export const CloseIcon = styled(CloseOutlined)` - color: #ff561b; - ${iconStyle} - ${actionStyle} -`; diff --git a/packages/json-schema-editor/src/utils/styles/global.ts b/packages/json-schema-editor/src/utils/styles/global.ts deleted file mode 100644 index e2a61a0..0000000 --- a/packages/json-schema-editor/src/utils/styles/global.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { css } from '@emotion/core'; - -const globalStyles = css` - .json-schema-editor { - * { - font-size: 12px; - } - - .ant-col { - :nth-of-type(2) { - text-align: center; - } - - :nth-of-type(3), - :nth-of-type(4) { - padding-right: 10px; - } - } - - .ant-input { - height: 30px; - } - - .ant-select { - width: 80%; - text-align: left; - } - } -`; - -export default globalStyles; diff --git a/packages/json-schema-editor/tsconfig.json b/packages/json-schema-editor/tsconfig.json deleted file mode 100644 index 61ac029..0000000 --- a/packages/json-schema-editor/tsconfig.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "extends": "../../tsconfig", - "compilerOptions": { - "outDir": "dist/types" - }, - "include": ["./src", "./types"] -}