{"_id":"4talent-questions-shortlist","name":"4talent-questions-shortlist","dist-tags":{"latest":"1.3.3"},"versions":{"1.3.3":{"name":"4talent-questions-shortlist","version":"1.3.3","description":">","author":{"name":"PDFK"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/4Talent/questions-shortlist.git"},"main":"dist/index.js","module":"dist/index.es.js","jsnext:main":"dist/index.es.js","engines":{"node":">=8","npm":">=5"},"scripts":{"test":"cross-env CI=1 react-scripts test --env=jsdom","test:watch":"react-scripts test --env=jsdom","build":"rollup -c","prepare":"npm run build","predeploy":"cd example && npm install && npm run build","deploy":"gh-pages -d example/build"},"dependencies":{"i18next":"^15.1.0","immutability-helper":"^3.0.0","js-cookie":"^2.2.1","lodash":"^4.17.15","react-currency-input":"^1.3.6","react-dnd":"^9.3.4","react-dnd-html5-backend":"^9.3.4","react-i18next":"^10.9.0","react-select":"^2.4.3"},"peerDependencies":{"prop-types":"^15.5.4","react":"^15.0.0 || ^16.0.0","react-dom":"^15.0.0 || ^16.0.0"},"devDependencies":{"@svgr/rollup":"^2.4.1","babel-core":"^6.26.3","babel-eslint":"^8.2.5","babel-plugin-external-helpers":"^6.22.0","babel-preset-env":"^1.7.0","babel-preset-react":"^6.24.1","babel-preset-stage-0":"^6.24.1","cross-env":"^5.1.4","eslint":"^5.0.1","eslint-config-standard":"^11.0.0","eslint-config-standard-react":"^6.0.0","eslint-plugin-import":"^2.13.0","eslint-plugin-node":"^7.0.1","eslint-plugin-promise":"^4.0.0","eslint-plugin-react":"^7.10.0","eslint-plugin-standard":"^3.1.0","gh-pages":"^1.2.0","react":"^16.4.1","react-dom":"^16.4.1","react-scripts":"^1.1.4","rollup":"^0.64.1","rollup-plugin-babel":"^3.0.7","rollup-plugin-commonjs":"^9.1.3","rollup-plugin-json":"^4.0.0","rollup-plugin-node-resolve":"^3.3.0","rollup-plugin-peer-deps-external":"^2.2.0","rollup-plugin-postcss":"^1.6.2","rollup-plugin-url":"^1.4.0"},"gitHead":"b33a89fffa2635f1fcabb6f8a6e19f73abb8cd6f","bugs":{"url":"https://github.com/4Talent/questions-shortlist/issues"},"homepage":"https://github.com/4Talent/questions-shortlist#readme","_id":"4talent-questions-shortlist@1.3.3","_nodeVersion":"16.14.2","_npmVersion":"8.5.0","dist":{"integrity":"sha512-wsrO1+SQb4qVLmtKlGjaaKjtQ2Yj1/i7uZl+W4Edrh1fa7O0orfX6zpU1SK3T/5y3Cp/40at6Yg3g3aTqVY98w==","shasum":"4c7441c7df0c139a94b78d2a31b294ab4f96a203","tarball":"https://registry.npmjs.org/4talent-questions-shortlist/-/4talent-questions-shortlist-1.3.3.tgz","fileCount":6,"unpackedSize":7501151,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCEYEGyolLDpWKGuBYyGJljcH1Kyz/wJFyTPOYa9bdOKQIgZun0X7h2xt6m9P9NLckzduLkN5Z0JqBmyWBfooohOdg="}]},"_npmUser":{"name":"rfernandz","email":"chaotiklv@gmail.com"},"directories":{},"maintainers":[{"name":"rfernandz","email":"chaotiklv@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/4talent-questions-shortlist_1.3.3_1683834229285_0.5532200770712228"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-11T19:43:49.284Z","1.3.3":"2023-05-11T19:43:49.535Z","modified":"2023-05-11T19:43:49.713Z"},"maintainers":[{"name":"rfernandz","email":"chaotiklv@gmail.com"}],"description":">","homepage":"https://github.com/4Talent/questions-shortlist#readme","repository":{"type":"git","url":"git+https://github.com/4Talent/questions-shortlist.git"},"author":{"name":"PDFK"},"bugs":{"url":"https://github.com/4Talent/questions-shortlist/issues"},"license":"MIT","readme":"# questions-shortlist\n\n>\n\n[![NPM](https://img.shields.io/npm/v/questions-shortlist.svg)](https://www.npmjs.com/package/questions-shortlist) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)\n\n## Install\n\n```bash\nnpm install --save questions-shortlist\n```\n\n## Usage\n\n```jsx\nimport React, { Component } from \"react\";\n\nimport Questions from \"questions-shortlist\";\n\nclass Example extends Component {\n  render() {\n    return <Questions />;\n  }\n}\n```\n\nIf you want to track the weighing og the question, the only thing you have to do is put `with_weight` as prop of **Questions** component\n\n```jsx\nimport React, { Component } from \"react\";\n\nimport Questions from \"questions-shortlist\";\n\nclass Example extends Component {\n  render() {\n    return <Questions with_weight />;\n  }\n}\n```\n\nIf you want to have the component on the old Spanish translation, set a cookie 'my_locale' with the value 'es_negative'\nIf you want to have the component on English, set a cookie 'my_locale' with the value 'en'\n\n## DEVELOP\n\nPut in **src/index.js**\n\n```jsx\nimport ReactDOM from \"react-dom\";\n...\n\nReactDOM.render(<MultipleQuestions />, document.getElementById(\"root\"));\n```\n\nIn **package.json** put the following:\n\n```json\n{\n  \"scripts\": {\n    \"start\": \"react-scripts start\"\n  }\n}\n```\n\nIf you want to have questions for example, put the following in **src/components/index.jsx**\n\n```jsx\nconst questions = [\n      {\n        killer_value: \"1;3\",\n        killer_condition: \"are_options?\",\n        description: \"text\",\n        value_type: \"multiple_option\",\n        order: \"0\",\n        options: [\"1\", \"2\", \"3\", \"4\"]\n      },\n      {\n        killer_value: [\"1\", \"3\"],\n        killer_condition: \"isnt_option?\",\n        description: \"text\",\n        value_type: \"option\",\n        order: \"2\",\n        options: [\"1\", \"2\", \"3\", \"4\"]\n      },\n      {\n        killer_value: [\"1\"],\n        killer_condition: \"isnt_option?\",\n        description: \"text\",\n        value_type: \"option\",\n        order: \"3\",\n        options: [\"1\", \"2\", \"3\", \"4\"]\n      },\n      {\n        killer_value: \"4\",\n        killer_condition: \"isnt_option?\",\n        description: \"text\",\n        value_type: \"option\",\n        order: \"4\",\n        options: [\"1\", \"2\", \"3\", \"4\"]\n      },\n      {\n        killer_value: \"Sí\",\n        killer_condition: \"==\",\n        description: \"text\",\n        value_type: \"boolean\",\n        order: \"5\"\n      }\n    ];\n\n    ...\n\n    <MultipleForm questions={ questions } t={ t } name={ props.form_name || \"project[questions_attributes]\" }/>\n```\n\n## License\n\nMIT © [PDFK](https://github.com/PDFK)\n","readmeFilename":"README.md"}