ToolJet/frontend/package.json
Sherfin Shamsudeen bc93818621
Feature/component property validation (#2782)
* Initial architecture for component property validation

* Coerce to default and log invalid properties

* eslint rule:frontend for  specifying the path to the  @types/

* removes comment for eslint-disable-next-line

* reverts 27946f1 & adding a temporary fix

* Remove incorrect property validations

* Avoid race condiiton in setting state for error logs

* Fix issue where only one error got logged

* Flush out any errors that are logged

* Remove unnecessary console.log

* Add validations for Table properties

* Add support for multiple validations

* Add validation for chart component

* Add validation for modal

* Set default value common to all validation schemas for component properties

* Add validations for password widget

* Add validations for datepicker

* Add information about default value on validation error message

* Remove unwanted console.log

* Do not validate properties on Viewer

* Use meta information from widget config instead of component state to validate

* Do not coerce to default values while validating

* Do not validate existing components

* Update package-lock.json in sync with develop

* Add validation for general properties

* Add support for size validation of component properties and styles

* Add support for min and max spec in size validation

* Support pattern validation for string properties

* Make size validation specifiable along with type specification

* Component validation optimizations

* Remove unnecessary comments

* Remove unnecessary default value param from validation

* Fixed visibility style validation bug

* Added custom validation to PDF & Custom component

* property/style validation statistics

* values changed to string

* validation button group widget

* bugfix

* Added property validation to timeline widget

* Added visibility prop validation to timeline widget

* steps property/style validation

* svg component property validation

* component property validation numberinput

* bugfix

* validation textarea

* validation vertical divider

* property validation html widget

* validation :: checkbox

* image property validation

* validation :: rangeslider widget

* validation :: circular progress bar

* validation spinner

* added props and style validation

* tags validation

* validation :: pagination

* timer :: validation

* validation :: toggle

* validation :: divider

* validation :: radiobutton

* added props and style validation

* validation:: iframe

* validation :: password input

* validation:: code editor

* validation :: listview

* validation :: star rating

* validation :: modal

* validation :: qrscanner

* validation :: datepicker

* multiselect :: validation

* added union validation for border radius

* added props and style validation

* added props and styles validation

* added props and styles validations

* added props and styles validations

* added props and style validations

* added props and styles validations

* added prop and style validations

* added props and styles validations

* Added ID validation to steps widget

* Removed default value

* Added validation key to SVG widget

* Removed default value

* table validations

* table validations

* removing default value

* removing defaultval

* removing default val

* removing default val

* padding validation update

* updating number validation

* updatin number validation

* validation updates

* border validation

* border radius validation

* number input validation

* validation updates

* border radius validation

* validation update

* Updated misspelled schema text

* Updated Tabs validation schema

* Updated tooltip element schema

* Updated validation for multi select

* Updated validation for dropdown

* Updated validation for text widget

* Rectified mispelled validation

* Fixed : validation not working for format

* Added Array validation to chart widget

* format prop bug fix

* draft complete :: table validation

* Fixed misspelled text

* Don't validate properties that are not defined on widgetConfig

Co-authored-by: arpitnath <arpitnath42@gmail.com>
Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com>
Co-authored-by: stepinfwd <stepinfwd@gmail.com>
Co-authored-by: manishkushare <kushare.manish9@gmail.com>
Co-authored-by: Kavin Venkatachalam <50441969+kavinvenkatachalam@users.noreply.github.com>
2022-07-19 18:51:45 +05:30

151 lines
4.4 KiB
JSON

{
"name": "frontend",
"version": "0.1.0",
"private": true,
"dependencies": {
"@babel/core": "^7.4.3",
"@babel/plugin-proposal-class-properties": "^7.10.4",
"@babel/plugin-transform-runtime": "^7.16.10",
"@babel/preset-env": "^7.4.3",
"@babel/preset-react": "^7.0.0",
"@react-google-maps/api": "^2.1.1",
"@sentry/react": "^6.17.6",
"@sentry/tracing": "^6.17.6",
"@svgr/webpack": "^5.5.0",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.5.0",
"@testing-library/user-event": "^7.2.1",
"@tooljet/plugins": "../plugins",
"@uiw/react-codemirror": "^3.0.6",
"@y-presence/react": "^2.0.0",
"array-move": "^3.0.1",
"axios": "^0.24.0",
"babel-eslint": "^10.1.0",
"babel-loader": "^8.0.5",
"babel-plugin-console-source": "^2.0.5",
"babel-plugin-import": "^1.13.3",
"bootstrap": "^4.6.0",
"classnames": "^2.3.1",
"css-loader": "^6.5.1",
"date-fns": "^2.28.0",
"dompurify": "^2.2.7",
"draft-js": "^0.11.7",
"draft-js-export-html": "^1.4.1",
"driver.js": "^0.9.8",
"emoji-mart": "^3.0.1",
"fuse.js": "^6.4.6",
"history": "^4.9.0",
"html-loader": "^3.1.0",
"html-webpack-plugin": "^5.3.2",
"immer": "^9.0.6",
"immutability-helper": "^3.1.1",
"lodash": "^4.17.21",
"moment": "^2.29.1",
"node-sass": "^4.14.1",
"papaparse": "^5.3.0",
"plotly.js-basic-dist-min": "^1.58.4",
"psl": "^1.8.0",
"query-string": "^6.13.6",
"rc-slider": "^9.7.5",
"react": "^16.14.0",
"react-beautiful-dnd": "^13.1.0",
"react-big-calendar": "^0.38.0",
"react-bootstrap": "^1.5.2",
"react-circular-progressbar": "^2.0.4",
"react-color": "^2.19.3",
"react-copy-to-clipboard": "^5.0.3",
"react-datepicker": "^4.7.0",
"react-dates": "^21.8.0",
"react-datetime": "^3.0.4",
"react-dnd": "^14.0.2",
"react-dnd-html5-backend": "^14.0.0",
"react-dom": "^16.14.0",
"react-dropzone": "^11.4.2",
"react-easy-sort": "^0.2.1",
"react-google-login": "^5.2.2",
"react-hot-toast": "^2.1.1",
"react-hotkeys-hook": "^3.4.4",
"react-json-tree": "^0.16.1",
"react-json-view": "^1.21.3",
"react-lazy-load-image-component": "^1.5.1",
"react-lazyload": "^3.2.0",
"react-loading-skeleton": "^2.2.0",
"react-mentions": "^4.3.0",
"react-multi-select-component": "^4.2.3",
"react-pdf": "^5.7.2",
"react-plotly.js": "^2.5.1",
"react-qr-reader": "^2.2.1",
"react-rnd": "^10.3.0",
"react-router-dom": "^5.0.0",
"react-select": "^4.3.1",
"react-select-search": "^3.0.5",
"react-spring": "^9.2.4",
"react-table": "^7.6.3",
"react-table-plugins": "^1.3.1",
"react-tooltip": "^4.2.18",
"react-zoom-pan-pinch": "^2.1.3",
"rxjs": "^6.3.3",
"sass-loader": "^12.4.0",
"semver": "^5.7.1",
"style-loader": "^3.3.1",
"superstruct": "^0.15.4",
"tinycolor2": "^1.4.2",
"uuid": "8.3.2",
"webpack": "^5.55.1",
"webpack-cli": "^4.8.0",
"y-websocket": "^1.4.0",
"yjs": "^13.5.28",
"yup": "^0.27.0"
},
"devDependencies": {
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-import-resolver-webpack": "^0.13.1",
"eslint-plugin-import": "^2.24.2",
"eslint-plugin-jest": "^26.1.1",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-react": "^7.25.2",
"eslint-plugin-react-hooks": "^4.2.0",
"jest": "^27.5.1",
"path": "^0.12.7",
"prettier": "^2.3.2",
"webpack-dev-server": "^4.7.4"
},
"scripts": {
"start": "webpack serve --port 8082 --host 0.0.0.0",
"build": "webpack --mode production && cp -a ./assets/. ./build/assets/",
"lint": "eslint . '**/*.{js,jsx}'",
"format": "eslint . --fix '**/*.{js,jsx}'",
"test": "jest"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [],
"development": []
},
"jest": {
"transform": {
"^.+\\.js?$": "babel-jest",
"^.+\\.jsx?$": "babel-jest",
"^.+\\.svg$": "<rootDir>/__mocks__/svg.js"
},
"transformIgnorePatterns": [
"node_modules/(?!(react|mpx-error-boundary)/)"
],
"moduleNameMapper": {
"@/(.*)": "<rootDir>/src/$1"
},
"testEnvironment": "jest-environment-jsdom",
"moduleDirectories": [
"node_modules",
"src"
],
"moduleFileExtensions": [
"js",
"json",
"jsx"
]
}
}