{"_id":"@dhl-parcel/dhl-parcel-data-importer","_rev":"4-ce2ce470c238e205079a755337a29deb","name":"@dhl-parcel/dhl-parcel-data-importer","dist-tags":{"latest":"0.2.2"},"versions":{"0.2.0":{"name":"@dhl-parcel/dhl-parcel-data-importer","version":"0.2.0","description":"DHL Data Importer","author":{"name":"DHL"},"license":"UNLICENSED","main":"build/dsl.js","module":"build/dsl.module.js","repository":{"type":"git","url":"git+https://github.com/dhlparcel/dhl-parcel-frontend-components.git"},"scripts":{"build":"npm-run-all build:*","build:rm":"rm -rf build","build:main":"rollup -c","build:standalone":"node webpack.standalone.config.js","watch":"rollup -c -w","test":"react-scripts test --env=jsdom","lint":"eslint -c .eslintrc --max-warnings=0 --ext=.js,.jsx src demo","flow":"flow","start":"webpack-dev-server --mode development"},"peerDependencies":{"react":"^16.x.x","react-dom":"^16.x.x","react-md":"1.x.x"},"devDependencies":{"babel-plugin-external-helpers":"^6.22.0","eslint":"^5.6.0","express":"^4.16.3","express-static-gzip":"^0.3.2","flow-bin":"^0.71.0","module-concat":"^2.3.0","npm-run-all":"^4.1.3","react":"^16.5.2","react-dom":"^16.5.2","react-md":"^1.7.1","rollup":"^0.58.0","rollup-plugin-node-builtins":"^2.1.2","webpack-dev-server":"^3.1.1"},"dependencies":{"papaparse":"^4.3.7","react-dropzone":"^6.0.2"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/dhlparcel/dhl-parcel-frontend-components/issues"},"homepage":"https://github.com/dhlparcel/dhl-parcel-frontend-components#readme","_id":"@dhl-parcel/dhl-parcel-data-importer@0.2.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"snkjscom","email":"hendrik@reinvent.nl"},"dist":{"integrity":"sha512-zasInf4DHJ8A/v6GZamZ06hs1E+BcKzkwE4dHufckQ5Rj7jrhNQmeUcWWiEfSTKbvnZznRbcATBwoq6lwKWBiw==","shasum":"17cb31e3f78df2e4cf0dda1829aeeb9725f8a622","tarball":"https://registry.npmjs.org/@dhl-parcel/dhl-parcel-data-importer/-/dhl-parcel-data-importer-0.2.0.tgz","fileCount":6,"unpackedSize":525867,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2XOACRA9TVsSAnZWagAAAcsP/iinIGfRigbmjayLYIyk\naYTjZZWEvup2VdE8TmBtmMhQ0qizaULW12PiBIoFZtimS7kp3EHnDytoagMH\n58PWgb+JCiUMUsfPCnF8InisFMWqQA8SXrX78WVwYqq3ilv7fUBS3nKYVomp\nxI+H28TC68p1AwqG0/z+sb4YNuaMcpIZECxPFgpAJZlqhGTJ+AGycjqRSX3Z\ncD6gwtcn71px0Y6F3KLt/3AbtSQNNiM9Pwd2V2sB6G/yUnVNBqWqQizShhU/\nyJFKMUctvYqy765S1Lmmj8uRGVTijWW4srALrm9rjXLD+nmXAUIyFvx/4VwU\nNsCJIBoF48I0g9gu5LGupSuBf/+wy0A9zNkuFngV8y1lZftjL9UjfoT5B0OX\n1CUcAH23ywz2UtX08U7q6/4vlTqUBwfjlE9kyTThZfknK6raZ/hFz1skduna\nFi2ZTpDJGepTdoUEBvN1BCicc1jzOKtjbyy3EQFs1RO4Km0KJOGJcmJ8daKR\n4GsfAw0JRuvAs2RrbgNHkjzf7jjMQZqg9MOysdFCwAUAmitFvyk+ZGGfRhex\n7XQl2DR8rhv06NjOBPRxPRiG0231VrFfO/Q1jZJI0VlfVfxS3L00KXd12DID\ni5ghBa323WqhuAlRPxUaSymR9LJM776R4+FHn8MumqeNXz0kXC+78NIZhm6D\nxfCq\r\n=1xw5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDE36kvKBgR/q38Z2Yn+XuqYphSuvlh+QNPsVrjTxeRGAIgN69vpNHzHvHnb5mkJIkf/Zgr0JySkIRxYh4jvGkufDk="}]},"maintainers":[{"name":"dhl-parcel-ci","email":"mdppds@dhlparcel.nl"},{"name":"gerbrand","email":"gerbrand@vandieijen.nl"},{"name":"snkjscom","email":"hendrik@reinvent.nl"},{"name":"toebez","email":"jan@toebes.info"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dhl-parcel-data-importer_0.2.0_1540977535543_0.5352560795441967"},"_hasShrinkwrap":false},"0.2.1":{"name":"@dhl-parcel/dhl-parcel-data-importer","version":"0.2.1","description":"DHL Data Importer","author":{"name":"DHL"},"license":"UNLICENSED","main":"build/dsl.js","module":"build/dsl.module.js","repository":{"type":"git","url":"git+https://github.com/dhlparcel/dhl-parcel-frontend-components.git"},"scripts":{"build":"npm-run-all build:*","build:rm":"rm -rf build","build:main":"rollup -c","build:standalone":"node webpack.standalone.config.js","watch":"rollup -c -w","test":"react-scripts test --env=jsdom","lint":"eslint -c .eslintrc --max-warnings=0 --ext=.js,.jsx src demo","flow":"flow","start":"webpack-dev-server --mode development"},"peerDependencies":{"react":"^16.x.x","react-dom":"^16.x.x","react-md":"1.x.x"},"devDependencies":{"babel-plugin-external-helpers":"^6.22.0","eslint":"^5.6.0","express":"^4.16.3","express-static-gzip":"^0.3.2","flow-bin":"^0.71.0","module-concat":"^2.3.0","npm-run-all":"^4.1.3","react":"^16.5.2","react-dom":"^16.5.2","react-md":"^1.7.1","rollup":"^0.58.0","webpack-dev-server":"^3.1.1"},"dependencies":{"papaparse":"^4.3.7","react-dropzone":"^6.0.2"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/dhlparcel/dhl-parcel-frontend-components/issues"},"homepage":"https://github.com/dhlparcel/dhl-parcel-frontend-components#readme","_id":"@dhl-parcel/dhl-parcel-data-importer@0.2.1","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"snkjscom","email":"hendrik@reinvent.nl"},"dist":{"integrity":"sha512-f5jq+qQilTjezOEm3LU3l3bOEqjN8s/+35Lzs9Nu1miBgEKnhcuNXjB4pbjNRXuItgteE4Fa6o40NA85bi38FQ==","shasum":"7c5f8ff4731ffee118778f0dfd6b997a340f7a72","tarball":"https://registry.npmjs.org/@dhl-parcel/dhl-parcel-data-importer/-/dhl-parcel-data-importer-0.2.1.tgz","fileCount":6,"unpackedSize":887639,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb2YesCRA9TVsSAnZWagAADi0P/jOhrlYF9HPJpZyXD7Z/\nu6lI/bJL9KiA99TqI815GBgblYXSlmmndOsNRd/0ixRUDo7FWCyaihgvyMjk\n/fS88XnpTYK8IXwTjnUWzXPa8NoYJfNgqD/9m6boKtoBvJ5vHrV4f5wwUaqw\nTnIgIOT2fbM08EdaARqw41IPfwK8E/X0wfGVBLFnJQq+GJiAQ3FcsX6roiVY\nUC/9RKox4Ivq/yc+rp5U8oNfVugzQwBFrFE+Utw+CKuY/fg7PuGb+ra4ykx/\nvS6ktxElB21YYC7S2rSh78vkUhaCvq5Bp6DT+NUk2aVUHpSoeb35/1rqlrT+\nQ05rj8UhRDyWR1WeKZPpI59tBJ5kfsgIqwFw6qscFndre7znlcrwRQj8jFF7\noiaENdNU5iKcEbrubxtpId5NWqGwDP+QfK13o7xMCK9vFjcE0FU6KHQmsXLL\nppf4yFCYWIZzf9fLIVJjbzQwo5emMe8W6h2lhoOLyKjzlK0WEv4ZcSCpHZkN\nFPqgQG7MvpjsHVfTLTNf2KOjkKprZxXzcMEDcKE7mSxeQ7iIPCgm5jRDxJbA\nIWWrueBvL/c7wJbF1V3/9JYifL10P4EHpnwCAkslVp7AzDXwGcJAxGwUaVFK\nHON87VNLDil8sjW1sFrvMIM3cSpCKA7SxKeOSud9i8x+118SsGHW3KzAkZF2\nrY4O\r\n=w3bq\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHTbqxPY7ZFrQc9RNwU9DbV6S7GZ2+uRS0XgdqvqtTSUAiA8GcGfHFhcS2xGMAge7tKTA3+r9Y+DI+MR/NkU9JzjxQ=="}]},"maintainers":[{"name":"dhl-parcel-ci","email":"mdppds@dhlparcel.nl"},{"name":"gerbrand","email":"gerbrand@vandieijen.nl"},{"name":"snkjscom","email":"hendrik@reinvent.nl"},{"name":"toebez","email":"jan@toebes.info"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dhl-parcel-data-importer_0.2.1_1540982699998_0.7247802530323648"},"_hasShrinkwrap":false},"0.2.2":{"name":"@dhl-parcel/dhl-parcel-data-importer","version":"0.2.2","description":"DHL Data Importer","author":{"name":"DHL"},"license":"UNLICENSED","main":"build/dsl.js","module":"build/dsl.module.js","repository":{"type":"git","url":"git+https://github.com/dhlparcel/dhl-parcel-frontend-components.git"},"scripts":{"build":"npm-run-all build:*","build:rm":"rm -rf build","build:main":"rollup -c","build:standalone":"node webpack.standalone.config.js","watch":"rollup -c -w","test":"react-scripts test --env=jsdom","lint":"eslint -c .eslintrc --max-warnings=0 --ext=.js,.jsx src demo","flow":"flow","start":"webpack-dev-server --mode development"},"peerDependencies":{"react":"^16.x.x","react-dom":"^16.x.x","react-md":"1.x.x"},"devDependencies":{"babel-plugin-external-helpers":"^6.22.0","eslint":"^5.6.0","express":"^4.16.3","express-static-gzip":"^0.3.2","flow-bin":"^0.71.0","module-concat":"^2.3.0","npm-run-all":"^4.1.3","react":"^16.5.2","react-dom":"^16.5.2","react-md":"^1.7.1","rollup":"^0.58.0","webpack-dev-server":"^3.1.1"},"dependencies":{"papaparse":"^4.3.7","react-dropzone":"^6.0.2"},"publishConfig":{"access":"public"},"bugs":{"url":"https://github.com/dhlparcel/dhl-parcel-frontend-components/issues"},"homepage":"https://github.com/dhlparcel/dhl-parcel-frontend-components#readme","_id":"@dhl-parcel/dhl-parcel-data-importer@0.2.2","_npmVersion":"5.6.0","_nodeVersion":"8.11.3","_npmUser":{"name":"snkjscom","email":"hendrik@reinvent.nl"},"dist":{"integrity":"sha512-r2UNTTzTTbLMqNTdjLk6S68P++ESkE9UnLv5fW4dwZXOSQ+ZXhwLSnISim6YeC10g/UNXNRlHGgPp3NlNS0RRA==","shasum":"b96f8f7dc899215d3f5f15d638428e67c8be83de","tarball":"https://registry.npmjs.org/@dhl-parcel/dhl-parcel-data-importer/-/dhl-parcel-data-importer-0.2.2.tgz","fileCount":6,"unpackedSize":876117,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb4+3SCRA9TVsSAnZWagAARysP/2so3hmnTpjX5wSZFlQD\nHkXwVH2ROg+ZA33GtJxnys+3E4AO61T+CmNwbm0vS/QA1njJwEwkTm+ynLlf\nG8KkVwL43RDB6EmzOU1JyT3OeD8yD2zE3sSV5j5EDDv+rYTOFmWekcp0Kd/B\nTSnYQCAkTrfGSQE61ecq0W8SLrejt1gAIgaU0xu2S2DZ0ET4VYZ1bDlKqPmM\nC+gZBOYHhsWg0SHfYc73R6O7RDfvPyWn9078/SXR57vKORAP0xfQijyKi2Mx\nJZBjgthReKvlM5tdycBxPy1dlG3Sw2fMZ3W2amOW2hHbZc1R4l2bIsAJSExY\nzXvOJsgaf0RdI2b+1IUpbzqeuD8GQ3nHRaCmnzY2c3nojuNJxuiQ1g49F76H\nFblUfaMZ8SQ+Rfd39KqFa3vWRunUqzSyF4wzPAf8KxSBDy9rtoA6IRxl4hwz\naxkSzt6HRewc3oOIQrV0TLHfDc4qKG4//1tz925kWbly2kzGKduH6pxVYp6L\n+9j9HRf+HIoJcUSEO+6TUgi+EuwbxCn5Xef5PwJQvDRRS3fEWnrQ+bvOuXeU\nQ+lEolr5WK3DD0KzynhRF3ou0BBh4tZdJFNk468IBN9IqKTCxh33321MWAiS\nkmlWvECbfRLbOQT6mmOaBslUWjCetHMukjnJi3ssUYVYZPgYDC1XGRSKSS2M\nJmcO\r\n=Qpwn\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBQ6rc7YCmIqUIXN4RwAkpM8EbnHGu5i4XO1GBE8jEeYAiAhiBJUX2CpI/PO1bLBTlohGzhISRLzFBWf4RMy9G6DPQ=="}]},"maintainers":[{"name":"dhl-parcel-ci","email":"mdppds@dhlparcel.nl"},{"name":"gerbrand","email":"gerbrand@vandieijen.nl"},{"name":"snkjscom","email":"hendrik@reinvent.nl"},{"name":"toebez","email":"jan@toebes.info"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/dhl-parcel-data-importer_0.2.2_1541664210038_0.7103278698392259"},"_hasShrinkwrap":false}},"time":{"created":"2018-10-31T09:18:55.499Z","0.2.0":"2018-10-31T09:18:55.725Z","modified":"2022-04-05T04:20:39.526Z","0.2.1":"2018-10-31T10:45:00.162Z","0.2.2":"2018-11-08T08:03:30.173Z"},"maintainers":[{"email":"ja.degroot@dhl.com","name":"jandegroot"},{"email":"gerbrand@vandieijen.nl","name":"gerbrand"},{"email":"hendrik@reinvent.nl","name":"snkjscom"},{"email":"mdppds@dhlparcel.nl","name":"dhl-parcel-ci"},{"email":"jan@toebes.info","name":"toebez"}],"description":"DHL Data Importer","homepage":"https://github.com/dhlparcel/dhl-parcel-frontend-components#readme","repository":{"type":"git","url":"git+https://github.com/dhlparcel/dhl-parcel-frontend-components.git"},"author":{"name":"DHL"},"bugs":{"url":"https://github.com/dhlparcel/dhl-parcel-frontend-components/issues"},"license":"UNLICENSED","readme":"# dhl-upload-form\nThis module exposes a simple form component that handles the upload and parsing of CSV files, with the option to map the parsed data to a predefined structure.\n\n## Install\n\n### `npm i --save dhl-parcel-upload-form`\n\n## Impression\nUpload                             |  Schema\n:----------------------------------:|:----------------------------------:\n![](https://tinyurl.com/y9m9vxbp)   |  ![](https://tinyurl.com/y9sqqa44)\n\n\n## Available Scripts\n\nIn the project directory, you can run:\n\n### `npm run build`\n\nBuilds the app for production to the `build` folder.<br>\nIt correctly bundles React in production mode and optimizes the build for the best performance.\n\nThe build is minified and the filenames include the hashes.<br>\nYour app is ready to be deployed!\n\n### `npm run flow`\n\nCheck all flow types in the application for possible errors.\n\n### `npm run lint`\n\nPerform a linting operation to check for possible errors.\n\n### `npm run watch`\n\nRun continuous iterations of the build process for development.\n\n## API\n\n### Schema props\n\n| name     | description    | type      | default    |\n|----------|----------------|-----------|------------|\n|type | a unique name for the component, allows for multiple instances of the component | string| 'import' |\n|category | used to name and filter schema types, can differ from type, see according parameter in postSchemas | string | 'import' |\n|fields | (optional) names of the fields | Array\\<string\\>| [] |\n|mandatoryFields | required names of the fields, the component will validate on this | Array\\<string\\> | [] |\n|depends | fields with names that equal to a key of this prop will be disabled unless first the field that corresponds to the value of this prop is selected| {[string]: string} | {} |\n|setMapping | function that will be called with the result of the parsed and mapped file| (result: {[string]: any}) => void |   |\n|normalize | function that will be used to properly format/ trim a value before persisting.| (string, string, string) => string | (field: string, depends: string, val: string) => val |\n|getRegexForField | function that will be called to return the regex rules for validation of a field name, the second parameter is usally used to pass a countryCode on wich the regex rule should be based | (string, string) => RegExp | () => null |\n|showToastMessage | function that will be called to display a message and action string| (string, string) => void | |\n|getSchemas | Promise that will resolve to a schema array used for presets, see the mapping param in postSchemas for details on this array| Promise<any> |  |\n|postSchemas | Promise that wil resolve to a Response, it should be used to post 'preset schemes' that need to be persisted, type and category are used to filter and tag the preset | (schemes: Array\\< {id: string, category: string, name: string, matches: {[string]: string}}\\>, mapping: Array\\<any\\>, name: string, category: string)=> Promise<Response> |  Promise.resolve |\n|tr | function that will be called to display a translated value. It will be passed a translation key that can to be mapped to a value, locale is not passed.| str => str |\n|getTranslationMapping | function that will be called by tr callback to allow for for the translation key used in the component to be mapped, this is usefull if you can't modify your translation file, or if it has prefixed keys. | string => string | (str: string) => str |\n","readmeFilename":"README.md"}