diff --git a/lib/js/actions.js b/lib/js/actions.js index 76868de..d6f6dde 100644 --- a/lib/js/actions.js +++ b/lib/js/actions.js @@ -307,4 +307,5 @@ function uploadFile(file, uiOptions, onProgress, onChange, onError) { return req; }; -} \ No newline at end of file +} +//# sourceMappingURL=actions.js.map \ No newline at end of file diff --git a/lib/js/actions.js.map b/lib/js/actions.js.map new file mode 100644 index 0000000..d68b655 --- /dev/null +++ b/lib/js/actions.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/js/actions.js"],"names":["closeReviewChapter","openReviewChapter","setData","setEditMode","setSubmission","setPrivacyAgreement","setSubmitted","setViewedPages","submitForm","uploadFile","SET_EDIT_MODE","SET_DATA","SET_VIEWED_PAGES","SET_PRIVACY_AGREEMENT","SET_SUBMISSION","SET_SUBMITTED","OPEN_REVIEW_CHAPTER","CLOSE_REVIEW_CHAPTER","closedChapter","pageKeys","type","openedChapter","data","page","edit","index","field","value","extra","privacyAgreementAccepted","response","submitToUrl","body","submitUrl","trackingPrefix","Promise","resolve","reject","req","XMLHttpRequest","open","addEventListener","status","event","responseBody","responseText","results","JSON","parse","error","Error","statusText","parseInt","getResponseHeader","setRequestHeader","userToken","_","get","window","send","formConfig","form","captureError","errorType","Raven","captureException","fingerprint","message","startsWith","dispatch","promise","submit","transformForSubmit","then","resp","catch","errorReceived","errorMessage","String","file","uiOptions","onProgress","onChange","onError","getState","size","maxSize","name","minSize","fileTypes","some","toLowerCase","endsWith","fileType","uploading","payload","createPayload","formId","fileUploadUrl","fileData","parseResponse","moment","unix","captureMessage","upload","evt","lengthComputable","loaded","total"],"mappings":";;;;;;QAegBA,kB,GAAAA,kB;QAQAC,iB,GAAAA,iB;QAOAC,O,GAAAA,O;QAOAC,W,GAAAA,W;QAWAC,a,GAAAA,a;QASAC,mB,GAAAA,mB;QAOAC,Y,GAAAA,Y;QAQAC,c,GAAAA,c;QA+DAC,U,GAAAA,U;QAiDAC,U,GAAAA,U;;AAxLhB;;;;AACA;;;;AACA;;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IAAP,CAAYlD,SAASd,IAAIe,iBAAJ,CAAsB,mBAAtB,CAAT,EAAqD,EAArD,CAAZ,CAAZ,CAAzH;AACD;;AAED6B,iBAAS;AACPK,gBAAMR,KAAKQ,IADJ;AAEPV;AAFO,SAAT;AAIAb,0BAAMuC,cAAN,yBAA2CjE,IAAIa,UAA/C;AACAgC;AACD;AACF,KAlBD;;AAoBA7C,QAAIG,gBAAJ,CAAqB,OAArB,EAA8B,YAAM;AAClC,UAAMoC,eAAe,wBAArB;AACAK,eAAS;AACPK,cAAMR,KAAKQ,IADJ;AAEPV;AAFO,OAAT;AAIAb,wBAAMuC,cAAN,yBAA2C1B,YAA3C,EAA2D;AACzDjD,eAAO;AACLuB,sBAAYb,IAAIa;AADX;AADkD,OAA3D;AAKAgC;AACD,KAZD;;AAcA7C,QAAIkE,MAAJ,CAAW/D,gBAAX,CAA4B,UAA5B,EAAwC,UAACgE,GAAD,EAAS;AAC/C,UAAIA,IAAIC,gBAAJ,IAAwBzB,UAA5B,EAAwC;AACtC;AACA;AACAA,mBAAYwB,IAAIE,MAAJ,GAAaF,IAAIG,KAAlB,GAA2B,EAAtC;AACD;AACF,KAND;;AAQAtE,QAAIgB,gBAAJ,CAAqB,kBAArB,EAAyC,OAAzC;AACAhB,QAAIqB,IAAJ,CAASoC,OAAT;;AAEA,WAAOzD,GAAP;AACD,GAzFD;AA0FD","file":"actions.js","sourcesContent":["import Raven from 'raven-js';\nimport moment from 'moment';\nimport _ from './utilities/data';\nimport { transformForSubmit, recordEvent } from './helpers';\nimport { timeFromNow } from './utilities/date';\n\nexport const SET_EDIT_MODE = 'SET_EDIT_MODE';\nexport const SET_DATA = 'SET_DATA';\nexport const SET_VIEWED_PAGES = 'SET_VIEWED_PAGES';\nexport const SET_PRIVACY_AGREEMENT = 'SET_PRIVACY_AGREEMENT';\nexport const SET_SUBMISSION = 'SET_SUBMISSION';\nexport const SET_SUBMITTED = 'SET_SUBMITTED';\nexport const OPEN_REVIEW_CHAPTER = 'OPEN_REVIEW_CHAPTER';\nexport const CLOSE_REVIEW_CHAPTER = 'CLOSE_REVIEW_CHAPTER';\n\nexport function closeReviewChapter(closedChapter, pageKeys = []) {\n return {\n type: CLOSE_REVIEW_CHAPTER,\n closedChapter,\n pageKeys\n };\n}\n\nexport function openReviewChapter(openedChapter) {\n return {\n type: OPEN_REVIEW_CHAPTER,\n openedChapter\n };\n}\n\nexport function setData(data) {\n return {\n type: SET_DATA,\n data\n };\n}\n\nexport function setEditMode(page, edit, index = null) {\n return {\n type: SET_EDIT_MODE,\n edit,\n page,\n index\n };\n}\n\n// extra is used to pass other information (from a submission error or anything else)\n// into the submission state object\nexport function setSubmission(field, value, extra = null) {\n return {\n type: SET_SUBMISSION,\n field,\n value,\n extra\n };\n}\n\nexport function setPrivacyAgreement(privacyAgreementAccepted) {\n return {\n type: SET_PRIVACY_AGREEMENT,\n privacyAgreementAccepted\n };\n}\n\nexport function setSubmitted(response) {\n return {\n type: SET_SUBMITTED,\n response: typeof response.data !== 'undefined' ? response.data : response\n };\n}\n\n\nexport function setViewedPages(pageKeys) {\n return {\n type: SET_VIEWED_PAGES,\n pageKeys\n };\n}\n\nfunction submitToUrl(body, submitUrl, trackingPrefix) {\n return new Promise((resolve, reject) => {\n const req = new XMLHttpRequest();\n req.open('POST', submitUrl);\n req.addEventListener('load', () => {\n if (req.status >= 200 && req.status < 300) {\n recordEvent({\n event: `${trackingPrefix}-submission-successful`,\n });\n // got this from the fetch polyfill, keeping it to be safe\n const responseBody = 'response' in req ? req.response : req.responseText;\n const results = JSON.parse(responseBody);\n resolve(results);\n } else {\n let error;\n if (req.status === 429) {\n error = new Error(`vets_throttled_error: ${req.statusText}`);\n error.extra = parseInt(req.getResponseHeader('x-ratelimit-reset'), 10);\n } else {\n error = new Error(`vets_server_error: ${req.statusText}`);\n }\n error.statusText = req.statusText;\n reject(error);\n }\n });\n\n req.addEventListener('error', () => {\n const error = new Error('vets_client_error: Network request failed');\n error.statusText = req.statusText;\n reject(error);\n });\n\n req.addEventListener('abort', () => {\n const error = new Error('vets_client_error: Request aborted');\n error.statusText = req.statusText;\n reject(error);\n });\n\n req.addEventListener('timeout', () => {\n const error = new Error('vets_client_error: Request timed out');\n error.statusText = req.statusText;\n reject(error);\n });\n\n req.setRequestHeader('X-Key-Inflection', 'camel');\n req.setRequestHeader('Content-Type', 'application/json');\n\n const userToken = _.get('sessionStorage.userToken', window);\n if (userToken) {\n req.setRequestHeader('Authorization', `Token token=${userToken}`);\n }\n\n req.send(body);\n });\n}\n\nexport function submitForm(formConfig, form) {\n const captureError = (error, errorType) => {\n Raven.captureException(error, {\n fingerprint: [formConfig.trackingPrefix, error.message],\n extra: {\n errorType,\n statusText: error.statusText\n }\n });\n recordEvent({\n event: `${formConfig.trackingPrefix}-submission-failed${errorType.startsWith('client') ? '-client' : ''}`,\n });\n };\n\n return dispatch => {\n dispatch(setSubmission('status', 'submitPending'));\n recordEvent({\n event: `${formConfig.trackingPrefix}-submission`,\n });\n\n let promise;\n if (formConfig.submit) {\n promise = formConfig.submit(form, formConfig);\n } else {\n const body = formConfig.transformForSubmit\n ? formConfig.transformForSubmit(formConfig, form)\n : transformForSubmit(formConfig, form);\n\n promise = submitToUrl(body, formConfig.submitUrl, formConfig.trackingPrefix);\n }\n\n return promise\n .then(resp => dispatch(setSubmitted(resp)))\n .catch(errorReceived => {\n // overly cautious\n const error = errorReceived instanceof Error ? errorReceived : new Error(errorReceived);\n const errorMessage = String(error.message);\n let errorType = 'clientError';\n if (errorMessage.startsWith('vets_throttled_error')) {\n errorType = 'throttledError';\n } else if (errorMessage.startsWith('vets_server_error')) {\n errorType = 'serverError';\n }\n captureError(error, errorType);\n dispatch(setSubmission('status', errorType, error.extra));\n });\n };\n}\n\nexport function uploadFile(file, uiOptions, onProgress, onChange, onError) {\n return (dispatch, getState) => {\n if (file.size > uiOptions.maxSize) {\n onChange({\n name: file.name,\n errorMessage: 'File is too large to be uploaded'\n });\n\n onError();\n return null;\n }\n\n if (file.size < uiOptions.minSize) {\n onChange({\n name: file.name,\n errorMessage: 'File is too small to be uploaded'\n });\n\n onError();\n return null;\n }\n\n // we limit file types, but it’s not respected on mobile and desktop\n // users can bypass it without much effort\n if (!uiOptions.fileTypes.some(fileType => file.name.toLowerCase().endsWith(fileType.toLowerCase()))) {\n onChange({\n name: file.name,\n errorMessage: 'File is not one of the allowed types'\n });\n\n onError();\n return null;\n }\n\n onChange({\n name: file.name,\n uploading: true\n });\n\n const payload = uiOptions.createPayload(file, getState().form.formId);\n\n const req = new XMLHttpRequest();\n\n req.open('POST', uiOptions.fileUploadUrl);\n req.addEventListener('load', () => {\n if (req.status >= 200 && req.status < 300) {\n const body = 'response' in req ? req.response : req.responseText;\n const fileData = uiOptions.parseResponse(JSON.parse(body), file);\n onChange(fileData);\n } else {\n let errorMessage = req.statusText;\n if (req.status === 429) {\n errorMessage = `You’ve reached the limit for the number of submissions we can accept at this time. Please try again in ${timeFromNow(moment.unix(parseInt(req.getResponseHeader('x-ratelimit-reset'), 10)))}.`;\n }\n\n onChange({\n name: file.name,\n errorMessage\n });\n Raven.captureMessage(`vets_upload_error: ${req.statusText}`);\n onError();\n }\n });\n\n req.addEventListener('error', () => {\n const errorMessage = 'Network request failed';\n onChange({\n name: file.name,\n errorMessage\n });\n Raven.captureMessage(`vets_upload_error: ${errorMessage}`, {\n extra: {\n statusText: req.statusText\n }\n });\n onError();\n });\n\n req.upload.addEventListener('progress', (evt) => {\n if (evt.lengthComputable && onProgress) {\n // setting this at 80, because there's some time after we get to 100%\n // where the backend is uploading to s3\n onProgress((evt.loaded / evt.total) * 80);\n }\n });\n\n req.setRequestHeader('X-Key-Inflection', 'camel');\n req.send(payload);\n\n return req;\n };\n}\n"]} \ No newline at end of file diff --git a/lib/js/components/ErrorableCheckbox.js b/lib/js/components/ErrorableCheckbox.js index 82768f2..669195f 100644 --- a/lib/js/components/ErrorableCheckbox.js +++ b/lib/js/components/ErrorableCheckbox.js @@ -144,4 +144,5 @@ ErrorableCheckbox.propTypes = { required: _propTypes2.default.bool }; -exports.default = ErrorableCheckbox; \ No newline at end of file +exports.default = ErrorableCheckbox; +//# sourceMappingURL=ErrorableCheckbox.js.map \ No newline at end of file diff --git a/lib/js/components/ErrorableCheckbox.js.map b/lib/js/components/ErrorableCheckbox.js.map new file mode 100644 index 0000000..02bf889 --- /dev/null +++ b/lib/js/components/ErrorableCheckbox.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/components/ErrorableCheckbox.jsx"],"names":["ErrorableCheckbox","handleChange","bind","inputId","domEvent","props","onValueChange","target","checked","errorSpan","errorSpanId","undefined","errorMessage","requiredSpan","required","className","name","label","React","Component","propTypes","PropTypes","bool","string","oneOfType","object","isRequired","func"],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;;;;;;;;;IAGMA,iB;;;AACJ,+BAAc;AAAA;;AAAA;;AAEZ,UAAKC,YAAL,GAAoB,MAAKA,YAAL,CAAkBC,IAAlB,OAApB;AAFY;AAGb;;;;yCAEoB;AACnB,WAAKC,OAAL,GAAe,wBAAW,qBAAX,CAAf;AACD;;;iCAEYC,Q,EAAU;AACrB,WAAKC,KAAL,CAAWC,aAAX,CAAyBF,SAASG,MAAT,CAAgBC,OAAzC;AACD;;;6BAEQ;AACP;AACA;AACA,UAAIC,YAAY,EAAhB;AACA,UAAIC,cAAcC,SAAlB;AACA,UAAI,KAAKN,KAAL,CAAWO,YAAf,EAA6B;AAC3BF,sBAAiB,KAAKP,OAAtB;AACAM,oBACE;AAAA;AAAA,YAAM,WAAU,yBAAhB,EAA0C,MAAK,OAA/C,EAAuD,IAAIC,WAA3D;AACE;AAAA;AAAA,cAAM,WAAU,SAAhB;AAAA;AAAA,WADF;AAAA;AAC0C,eAAKL,KAAL,CAAWO;AADrD,SADF;AAKD;;AAED;AACA,UAAIC,eAAeF,SAAnB;AACA,UAAI,KAAKN,KAAL,CAAWS,QAAf,EAAyB;AACvBD,uBAAe;AAAA;AAAA,YAAM,WAAU,oBAAhB;AAAA;AAAA,SAAf;AACD;;AAED,UAAIE,+BACF,KAAKV,KAAL,CAAWO,YAAX,GAA0B,kBAA1B,GAA+C,EAD7C,CAAJ;AAGA,UAAI,CAAC,2BAAc,KAAKP,KAAL,CAAWU,SAAzB,CAAL,EAA0C;AACxCA,oBAAeA,SAAf,SAA4B,KAAKV,KAAL,CAAWU,SAAvC;AACD;;AAED,aACE;AAAA;AAAA,UAAK,WAAWA,SAAhB;AACE;AACE,wBAAa,OADf;AAEE,8BAAkBL,WAFpB;AAGE,mBAAS,KAAKL,KAAL,CAAWG,OAHtB;AAIE,cAAI,KAAKL,OAJX;AAKE,gBAAM,KAAKE,KAAL,CAAWW,IALnB;AAME,gBAAK,UANP;AAOE,oBAAU,KAAKf,YAPjB,GADF;AASE;AAAA;AAAA;AACE,uBACE,KAAKI,KAAL,CAAWO,YAAX,GAA0B,uBAA1B,GAAoDD,SAFxD;AAIE,kBAAS,KAAKN,KAAL,CAAWW,IAApB,WAJF;AAKE,qBAAS,KAAKb,OALhB;AAMG,eAAKE,KAAL,CAAWY,KANd;AAOGJ;AAPH,SATF;AAkBGJ;AAlBH,OADF;AAsBD;;;;EA/D6BS,gBAAMC,S;;AAkEtCnB,kBAAkBoB,SAAlB,GAA8B;AAC5B;;;AAGAZ,WAASa,oBAAUC,IAJS;AAK5B;;;AAGAV,gBAAcS,oBAAUE,MARI;AAS5B;;;AAGAP,QAAMK,oBAAUE,MAZY;AAa5B;;;AAGAN,SAAOI,oBAAUG,SAAV,CAAoB,CAACH,oBAAUE,MAAX,EAAmBF,oBAAUI,MAA7B,CAApB,EAA0DC,UAhBrC;AAiB5B;;;AAGApB,iBAAee,oBAAUM,IAAV,CAAeD,UApBF;AAqB5B;;;AAGAZ,YAAUO,oBAAUC;AAxBQ,CAA9B;;kBA2BetB,iB","file":"ErrorableCheckbox.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport _ from 'lodash';\n\nclass ErrorableCheckbox extends React.Component {\n constructor() {\n super();\n this.handleChange = this.handleChange.bind(this);\n }\n\n componentWillMount() {\n this.inputId = _.uniqueId('errorable-checkbox-');\n }\n\n handleChange(domEvent) {\n this.props.onValueChange(domEvent.target.checked);\n }\n\n render() {\n // TODO: extract error logic into a utility function\n // Calculate error state.\n let errorSpan = '';\n let errorSpanId = undefined;\n if (this.props.errorMessage) {\n errorSpanId = `${this.inputId}-error-message`;\n errorSpan = (\n \n Error {this.props.errorMessage}\n \n );\n }\n\n // Calculate required.\n let requiredSpan = undefined;\n if (this.props.required) {\n requiredSpan = *;\n }\n\n let className = `form-checkbox${\n this.props.errorMessage ? ' usa-input-error' : ''\n }`;\n if (!_.isUndefined(this.props.className)) {\n className = `${className} ${this.props.className}`;\n }\n\n return (\n
\n \n \n {this.props.label}\n {requiredSpan}\n \n {errorSpan}\n
\n );\n }\n}\n\nErrorableCheckbox.propTypes = {\n /**\n * If the checkbox is checked or not\n */\n checked: PropTypes.bool,\n /**\n * Error message for the modal\n */\n errorMessage: PropTypes.string,\n /**\n * Name for the modal\n */\n name: PropTypes.string,\n /**\n * Label for the checkbox\n */\n label: PropTypes.oneOfType([PropTypes.string, PropTypes.object]).isRequired,\n /**\n * Handler for when the checkbox is changed\n */\n onValueChange: PropTypes.func.isRequired,\n /**\n * If the checkbox is required or not\n */\n required: PropTypes.bool\n};\n\nexport default ErrorableCheckbox;\n"]} \ No newline at end of file diff --git a/lib/js/components/ExpandingGroup.js b/lib/js/components/ExpandingGroup.js index c30da84..c986ba6 100644 --- a/lib/js/components/ExpandingGroup.js +++ b/lib/js/components/ExpandingGroup.js @@ -74,4 +74,5 @@ ExpandingGroup.propTypes = { * id for ReactCSSTransitionGroup */ expandedContentId: _propTypes2.default.string -}; \ No newline at end of file +}; +//# sourceMappingURL=ExpandingGroup.js.map \ No newline at end of file diff --git a/lib/js/components/ExpandingGroup.js.map b/lib/js/components/ExpandingGroup.js.map new file mode 100644 index 0000000..1439596 --- /dev/null +++ b/lib/js/components/ExpandingGroup.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/components/ExpandingGroup.jsx"],"names":["ExpandingGroup","children","open","showPlus","additionalClass","expandedContentId","classNames","propTypes","PropTypes","bool","isRequired","string"],"mappings":";;;;;kBAcwBA,c;;AAdxB;;;;AACA;;;;AACA;;;;AACA;;;;;;AAEA;;;;;;;;;AASe,SAASA,cAAT,OAEZ;AAAA,MADDC,QACC,QADDA,QACC;AAAA,MADSC,IACT,QADSA,IACT;AAAA,MADeC,QACf,QADeA,QACf;AAAA,MADyBC,eACzB,QADyBA,eACzB;AAAA,MAD0CC,iBAC1C,QAD0CA,iBAC1C;;AACD,MAAMC,aAAa,0BACjB,sBADiB,EAEjB,EAAE,6BAA6BJ,IAA/B,EAFiB,EAGjB,EAAE,6BAA6BC,QAA/B,EAHiB,CAAnB;;AAMA,SACE;AAAA;AAAA,MAAK,WAAWG,UAAhB;AACGL,aAAS,CAAT,CADH;AAEE;AAAC,kCAAD;AAAA,QAAyB,IAAII,iBAA7B,EAAgD,gBAAe,4BAA/D,EAA4F,wBAAwB,GAApH,EAAyH,iBAAiB,KAA1I;AACGH,aACG;AAAA;AAAA,UAAK,KAAI,iBAAT,EAA2B,WAAWE,eAAtC;AACCH,iBAAS,CAAT;AADD,OADH,GAIG;AALN;AAFF,GADF;AAYD;;AAEDD,eAAeO,SAAf,GAA2B;AACzB;;;AAGAL,QAAMM,oBAAUC,IAAV,CAAeC,UAJI;AAKzB;;;AAGAN,mBAAiBI,oBAAUG,MARF;AASzB;;;AAGAR,YAAUK,oBAAUC,IAZK;AAazB;;;AAGAJ,qBAAmBG,oBAAUG;AAhBJ,CAA3B","file":"ExpandingGroup.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport ReactCSSTransitionGroup from 'react-transition-group/CSSTransitionGroup';\nimport classnames from 'classnames';\n\n/*\n * Component that expands to show a hidden child element with a fade in/slide down animation\n *\n * Props:\n * children - expects 2 children, the first is always shown, the second is shown if open is true\n * open - determines if the second child is displayed\n * additionalClass - A string added as a class to the parent element of the second child\n * showPlus - Boolean to display a \"+\" or \"-\" icon based on open status\n */\nexport default function ExpandingGroup({\n children, open, showPlus, additionalClass, expandedContentId\n}) {\n const classNames = classnames(\n 'form-expanding-group',\n { 'form-expanding-group-open': open },\n { 'form-expanding-group-plus': showPlus }\n );\n\n return (\n
\n {children[0]}\n \n {open\n ?
\n {children[1]}\n
\n : null}\n
\n
\n );\n}\n\nExpandingGroup.propTypes = {\n /**\n * show second child\n */\n open: PropTypes.bool.isRequired,\n /**\n * class added to parent element second child component\n */\n additionalClass: PropTypes.string,\n /**\n * show a + or - icon indicating second child's visibility\n */\n showPlus: PropTypes.bool,\n /**\n * id for ReactCSSTransitionGroup\n */\n expandedContentId: PropTypes.string\n};\n"]} \ No newline at end of file diff --git a/lib/js/components/FieldTemplate.js b/lib/js/components/FieldTemplate.js index 9005d9a..ea0605d 100644 --- a/lib/js/components/FieldTemplate.js +++ b/lib/js/components/FieldTemplate.js @@ -137,4 +137,5 @@ function FieldTemplate(props) { { className: containerClassNames }, content ); -} \ No newline at end of file +} +//# sourceMappingURL=FieldTemplate.js.map \ No newline at end of file diff --git a/lib/js/components/FieldTemplate.js.map b/lib/js/components/FieldTemplate.js.map new file mode 100644 index 0000000..d563825 --- /dev/null +++ b/lib/js/components/FieldTemplate.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/components/FieldTemplate.jsx"],"names":["FieldTemplate","props","id","schema","help","required","rawErrors","children","formContext","uiSchema","isTouched","touched","Object","keys","some","startsWith","hasErrors","submitted","length","requiredSpan","label","isDateField","showFieldLabel","hideLabelText","useLabelElement","description","textDescription","DescriptionField","isFieldGroup","errorSpanId","errorSpan","errorClass","containerClassNames","labelClassNames","inputWrapperClassNames","noWrapperContent","type","useFieldsetLegend","labelElement","content"],"mappings":";;;;;;;;;;kBAQwBA,a;;AARxB;;;;AAEA;;;;;;AAEA;;;;AAIe,SAASA,aAAT,CAAuBC,KAAvB,EAA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;AAAA,MAAO,IAAOjB,EAAP,WAAP,EAA0B,WAAW+B,eAArC,EAAsD,SAAS/B,EAA/D;AAAoEkB,SAApE;AAA2ED;AAA3E,GAFJ;;AAIA,MAAMoB,UACJ;AAAA;AAAA,MAAK,WAAWR,UAAhB;AACG,KAACR,aAAD,IAAkBe,YADrB;AAEGZ,uBAAmB;AAAA;AAAA;AAAIA;AAAJ,KAFtB;AAGGC,wBAAoB,8BAAC,gBAAD,IAAkB,SAASlB,SAAS,YAAT,CAA3B,GAHvB;AAIG,KAACiB,eAAD,IAAoB,CAACC,gBAArB,IAAyCF,WAJ5C;AAKGK,aALH;AAMG;AAAA;AAAA,QAAK,WAAWI,sBAAhB;AAAyC3B;AAAzC,KANH;AAOGH;AAPH,GADF;;AAYA,MAAIiC,iBAAJ,EAAuB;AACrB,WACE;AAAA;AAAA,QAAU,WAAWL,mBAArB;AACGO;AADH,KADF;AAKD;;AAED,SACE;AAAA;AAAA,MAAK,WAAWP,mBAAhB;AACGO;AADH,GADF;AAKD","file":"FieldTemplate.js","sourcesContent":["import React from 'react';\nimport _ from 'lodash/fp';\nimport classNames from 'classnames';\n\n/*\n * This is the template for each field (which in the schema library means label + widget)\n */\n\nexport default function FieldTemplate(props) {\n const {\n id,\n schema,\n help,\n required,\n rawErrors,\n children,\n formContext,\n uiSchema\n } = props;\n\n const isTouched = formContext.touched[id]\n || Object.keys(formContext.touched).some(touched => id.startsWith(touched));\n const hasErrors = (formContext.submitted || isTouched)\n && rawErrors && rawErrors.length;\n const requiredSpan = required\n ? (*Required)\n : null;\n const label = uiSchema['ui:title'] || props.label;\n const isDateField = uiSchema['ui:widget'] === 'date';\n const showFieldLabel = uiSchema['ui:options'] && uiSchema['ui:options'].showFieldLabel;\n const hideLabelText = uiSchema['ui:options'] && uiSchema['ui:options'].hideLabelText;\n const useLabelElement = showFieldLabel === 'label';\n\n const description = uiSchema['ui:description'];\n const textDescription = typeof description === 'string' ? description : null;\n const DescriptionField = typeof description === 'function'\n ? uiSchema['ui:description']\n : null;\n const isFieldGroup = isDateField || uiSchema['ui:widget'] === 'yesNo' || uiSchema['ui:widget'] === 'radio';\n\n let errorSpanId;\n let errorSpan;\n let errorClass;\n if (hasErrors) {\n errorClass = isDateField ? 'input-error-date' : 'usa-input-error';\n errorSpanId = `${id}-error-message`;\n errorSpan = (\n \n Error {rawErrors[0]}\n \n );\n }\n\n const containerClassNames = classNames(\n 'schemaform-field-template',\n _.get(['ui:options', 'classNames'], uiSchema)\n );\n const labelClassNames = classNames({\n 'usa-input-error-label': hasErrors && !isDateField,\n 'schemaform-label': true\n });\n\n const inputWrapperClassNames = classNames('schemaform-widget-wrapper', {\n 'usa-input-error form-error-date': isDateField && hasErrors\n });\n\n const noWrapperContent = !showFieldLabel &&\n (\n schema.type === 'object' ||\n schema.type === 'array' ||\n (schema.type === 'boolean' && !uiSchema['ui:widget'])\n );\n\n if (noWrapperContent) {\n return children;\n }\n\n const useFieldsetLegend = (isFieldGroup || !!showFieldLabel) && !useLabelElement;\n\n const labelElement = useFieldsetLegend\n ? {label}{requiredSpan}\n : ;\n\n const content = (\n
\n {!hideLabelText && labelElement}\n {textDescription &&

{textDescription}

}\n {DescriptionField && }\n {!textDescription && !DescriptionField && description}\n {errorSpan}\n {
{children}
}\n {help}\n
\n );\n\n if (useFieldsetLegend) {\n return (\n
\n {content}\n
\n );\n }\n\n return (\n
\n {content}\n
\n );\n}\n"]} \ No newline at end of file diff --git a/lib/js/components/FormNav.js b/lib/js/components/FormNav.js index 85a6b61..5e7014d 100644 --- a/lib/js/components/FormNav.js +++ b/lib/js/components/FormNav.js @@ -139,4 +139,5 @@ var FormNav = function (_React$Component) { return FormNav; }(_react2.default.Component); -exports.default = FormNav; \ No newline at end of file +exports.default = FormNav; +//# sourceMappingURL=FormNav.js.map \ No newline at end of file diff --git a/lib/js/components/FormNav.js.map b/lib/js/components/FormNav.js.map new file mode 100644 index 0000000..ba8cb67 --- /dev/null +++ b/lib/js/components/FormNav.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/components/FormNav.jsx"],"names":["FormNav","newProps","props","formConfig","currentPath","formData","formPages","pageList","expandedPageList","eligiblePageList","chapters","map","p","chapterKey","filter","key","page","path","find","urlPrefix","current","chapterName","indexOf","title","length","React","Component"],"mappings":";;;;;;;;;;;;AAAA;;;;AAEA;;;;AAEA;;;;AAEA;;;;;;;;;;IAOqBA,O;;;;;;;;;;;;AACnB;0CACsBC,Q,EAAU;AAC9B,aAAO,CAAC,4BAAa,KAAKC,KAAlB,EAAyBD,QAAzB,CAAR;AACD;;;6BACQ;AAAA,mBACuC,KAAKC,KAD5C;AAAA,UACCC,UADD,UACCA,UADD;AAAA,UACaC,WADb,UACaA,WADb;AAAA,UAC0BC,QAD1B,UAC0BA,QAD1B;;AAGP;AACA;;AACA,UAAMC,YAAY,iCAAmBH,UAAnB,CAAlB;AACA,UAAMI,WAAW,6BAAeJ,UAAf,EAA2BG,SAA3B,CAAjB;;AAEA;AACA;AACA,UAAME,mBAAmB,+BAAiBD,QAAjB,EAA2BF,QAA3B,CAAzB;AACA,UAAMI,mBAAmB,6BAAeD,gBAAf,EAAiCH,QAAjC,CAAzB;;AAEA,UAAMK,WAAW,oBAAOD,iBACrBE,GADqB,CACjB;AAAA,eAAKC,EAAEC,UAAP;AAAA,OADiB,EAErBC,MAFqB,CAEd;AAAA,eAAO,CAAC,CAACC,GAAT;AAAA,OAFc,CAAP,CAAjB;;AAKA,UAAIC,OAAOP,iBAAiBK,MAAjB,CAAwB;AAAA,eAAKF,EAAEK,IAAF,KAAWb,WAAhB;AAAA,OAAxB,EAAqD,CAArD,CAAX;AACA;AACA;AACA;AACA,UAAI,CAACY,IAAL,EAAW;AACTA,eAAOV,UAAUY,IAAV,CAAe;AAAA,iBAAK,KAAGf,WAAWgB,SAAd,GAA0BP,EAAEK,IAA5B,KAAuCb,WAA5C;AAAA,SAAf,CAAP;AACD;;AAED,UAAIgB,gBAAJ;AACA,UAAIC,oBAAJ;AACA,UAAIL,IAAJ,EAAU;AACRI,kBAAUV,SAASY,OAAT,CAAiBN,KAAKH,UAAtB,IAAoC,CAA9C;AACA;AACAQ,sBAAcL,KAAKH,UAAL,KAAoB,QAApB,GACV,oBADU,GAEVV,WAAWO,QAAX,CAAoBM,KAAKH,UAAzB,EAAqCU,KAFzC;AAGA,YAAI,OAAOF,WAAP,KAAuB,UAA3B,EAAuC;AACrCA,wBAAcA,aAAd;AACD;AACF;;AAED,aACE;AAAA;AAAA;AACE,sCAAC,8BAAD,IAAsB,OAAOX,SAASc,MAAtC,EAA8C,SAASJ,OAAvD,GADF;AAEE;AAAA;AAAA,YAAK,WAAU,6BAAf;AACE;AAAA;AAAA;AACE,oBAAK,aADP;AAEE,+BAAeA,OAFjB;AAGE,+BAAc,GAHhB;AAIE,0CAAwBA,OAAxB,YAAsCV,SAASc,MAA/C,UAA0DH,WAJ5D;AAKE,+BAAeX,SAASc,MAL1B;AAME,yBAAU,kCANZ;AAOE;AAAA;AAAA;AAAI;AAAA;AAAA,kBAAM,WAAU,2BAAhB;AAA6CJ;AAA7C,eAAJ;AAAA;AAAiE;AAAA;AAAA,kBAAM,WAAU,oBAAhB;AAAA;AAAyCV,yBAASc;AAAlD,eAAjE;AAAA;AAAmIH;AAAnI;AAPF;AADF;AAFF,OADF;AAgBD;;;;EA5DkCI,gBAAMC,S;;kBAAtB1B,O","file":"FormNav.js","sourcesContent":["import React from 'react';\nimport _ from 'lodash/fp';\nimport shallowEqual from 'recompose/shallowEqual';\n\nimport SegmentedProgressBar from './SegmentedProgressBar';\n\nimport {\n createFormPageList,\n createPageList,\n expandArrayPages,\n getActivePages\n} from '../helpers';\n\nexport default class FormNav extends React.Component {\n // The formConfig transforming is a little heavy, so skip it if we can\n shouldComponentUpdate(newProps) {\n return !shallowEqual(this.props, newProps);\n }\n render() {\n const { formConfig, currentPath, formData } = this.props;\n\n // This is converting the config into a list of pages with chapter keys,\n // finding the current page, then getting the chapter name using the key\n const formPages = createFormPageList(formConfig);\n const pageList = createPageList(formConfig, formPages);\n\n // These lines are also in src/applications/common/schemaform/routing.js#getEligiblePages\n // TODO: Pull this logic out to be used in routing.js only\n const expandedPageList = expandArrayPages(pageList, formData);\n const eligiblePageList = getActivePages(expandedPageList, formData);\n\n const chapters = _.uniq(eligiblePageList\n .map(p => p.chapterKey)\n .filter(key => !!key)\n );\n\n let page = eligiblePageList.filter(p => p.path === currentPath)[0];\n // If the page isn’t active, it won’t be in the eligiblePageList\n // This is a fallback to still find the chapter name if you open the page directly\n // (the chapter index will probably be wrong, but this isn’t a scenario that happens in normal use)\n if (!page) {\n page = formPages.find(p => `${formConfig.urlPrefix}${p.path}` === currentPath);\n }\n\n let current;\n let chapterName;\n if (page) {\n current = chapters.indexOf(page.chapterKey) + 1;\n // The review page is always part of our forms, but isn’t listed in chapter list\n chapterName = page.chapterKey === 'review'\n ? 'Review Application'\n : formConfig.chapters[page.chapterKey].title;\n if (typeof chapterName === 'function') {\n chapterName = chapterName();\n }\n }\n\n return (\n
\n \n
\n \n

{current} of {chapters.length} {chapterName}

\n
\n
\n \n );\n }\n}\n"]} \ No newline at end of file diff --git a/lib/js/components/FormTitle.js b/lib/js/components/FormTitle.js index 2a4f932..f7f163a 100644 --- a/lib/js/components/FormTitle.js +++ b/lib/js/components/FormTitle.js @@ -29,4 +29,5 @@ function FormTitle(_ref) { subTitle ) ); -} \ No newline at end of file +} +//# sourceMappingURL=FormTitle.js.map \ No newline at end of file diff --git a/lib/js/components/FormTitle.js.map b/lib/js/components/FormTitle.js.map new file mode 100644 index 0000000..89f4da2 --- /dev/null +++ b/lib/js/components/FormTitle.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/components/FormTitle.jsx"],"names":["FormTitle","title","subTitle"],"mappings":";;;;;kBAEwBA,S;;AAFxB;;;;;;AAEe,SAASA,SAAT,OAAwC;AAAA,MAAnBC,KAAmB,QAAnBA,KAAmB;AAAA,MAAZC,QAAY,QAAZA,QAAY;;AACrD,SACE;AAAA;AAAA,MAAK,WAAU,kBAAf;AACE;AAAA;AAAA;AAAKD;AAAL,KADF;AAEGC,gBAAY;AAAA;AAAA,QAAK,WAAU,qBAAf;AAAsCA;AAAtC;AAFf,GADF;AAMD","file":"FormTitle.js","sourcesContent":["import React from 'react';\n\nexport default function FormTitle({ title, subTitle }) {\n return (\n
\n

{title}

\n {subTitle &&
{subTitle}
}\n
\n );\n}\n"]} \ No newline at end of file diff --git a/lib/js/components/PrivacyAgreement.js b/lib/js/components/PrivacyAgreement.js index 3261244..ffa0f45 100644 --- a/lib/js/components/PrivacyAgreement.js +++ b/lib/js/components/PrivacyAgreement.js @@ -48,4 +48,5 @@ function PrivacyAgreement(_ref) { PrivacyAgreement.propTypes = { onChange: _propTypes2.default.func.isRequired, checked: _propTypes2.default.bool.isRequired -}; \ No newline at end of file +}; +//# sourceMappingURL=PrivacyAgreement.js.map \ No newline at end of file diff --git a/lib/js/components/PrivacyAgreement.js.map b/lib/js/components/PrivacyAgreement.js.map new file mode 100644 index 0000000..ea64a2d --- /dev/null +++ b/lib/js/components/PrivacyAgreement.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/components/PrivacyAgreement.jsx"],"names":["PrivacyAgreement","onChange","checked","showError","undefined","propTypes","PropTypes","func","isRequired","bool"],"mappings":";;;;;kBAIwBA,gB;;AAJxB;;;;AACA;;;;AACA;;;;;;AAEe,SAASA,gBAAT,OAA4D;AAAA,MAAhCC,QAAgC,QAAhCA,QAAgC;AAAA,MAAtBC,OAAsB,QAAtBA,OAAsB;AAAA,MAAbC,SAAa,QAAbA,SAAa;;AACzE,SACE;AAAA;AAAA;AACE,kCAAC,2BAAD,IAAmB,cAAnB;AACE,eAASD,OADX;AAEE,qBAAeD,QAFjB;AAGE,YAAK,kBAHP;AAIE,oBAAcE,aAAa,CAACD,OAAd,GAAwB,sDAAxB,GAAiFE,SAJjG;AAKE,aAAO;AAAA;AAAA;AAAA;AAAiC;AAAA;AAAA,YAAG,QAAO,QAAV,EAAmB,MAAK,WAAxB;AAAA;AAAA;AAAjC,OALT;AADF,GADF;AAUD;;AAEDJ,iBAAiBK,SAAjB,GAA6B;AAC3BJ,YAAUK,oBAAUC,IAAV,CAAeC,UADE;AAE3BN,WAASI,oBAAUG,IAAV,CAAeD;AAFG,CAA7B","file":"PrivacyAgreement.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport ErrorableCheckbox from './ErrorableCheckbox';\n\nexport default function PrivacyAgreement({ onChange, checked, showError }) {\n return (\n
\n I have read and accept the privacy policy}/>\n
\n );\n}\n\nPrivacyAgreement.propTypes = {\n onChange: PropTypes.func.isRequired,\n checked: PropTypes.bool.isRequired\n};\n"]} \ No newline at end of file diff --git a/lib/js/components/ProgressBar.js b/lib/js/components/ProgressBar.js index 929b777..ecc0af4 100644 --- a/lib/js/components/ProgressBar.js +++ b/lib/js/components/ProgressBar.js @@ -30,4 +30,5 @@ ProgressBar.propTypes = { * Percent of progress made */ percent: _propTypes2.default.number.isRequired -}; \ No newline at end of file +}; +//# sourceMappingURL=ProgressBar.js.map \ No newline at end of file diff --git a/lib/js/components/ProgressBar.js.map b/lib/js/components/ProgressBar.js.map new file mode 100644 index 0000000..1b86a2f --- /dev/null +++ b/lib/js/components/ProgressBar.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/components/ProgressBar.jsx"],"names":["ProgressBar","percent","width","propTypes","PropTypes","number","isRequired"],"mappings":";;;;;kBAGwBA,W;;AAHxB;;;;AACA;;;;;;AAEe,SAASA,WAAT,OAAkC;AAAA,MAAXC,OAAW,QAAXA,OAAW;;AAC/C,SACE;AAAA;AAAA,MAAK,WAAU,cAAf,EAA8B,MAAK,aAAnC,EAAiD,iBAAeA,OAAhE,EAAyE,iBAAc,GAAvF,EAA2F,iBAAc,KAAzG,EAA+G,UAAS,GAAxH;AACE,2CAAK,WAAU,oBAAf,EAAoC,OAAO,EAAEC,OAAUD,OAAV,MAAF,EAA3C;AADF,GADF;AAKD;;AAEDD,YAAYG,SAAZ,GAAwB;AACtB;;;AAGAF,WAASG,oBAAUC,MAAV,CAAiBC;AAJJ,CAAxB","file":"ProgressBar.js","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport default function ProgressBar({ percent }) {\n return (\n
\n
\n
\n );\n}\n\nProgressBar.propTypes = {\n /**\n * Percent of progress made\n */\n percent: PropTypes.number.isRequired,\n};\n"]} \ No newline at end of file diff --git a/lib/js/components/ProgressButton.js b/lib/js/components/ProgressButton.js index 84f93a2..cbb3d2c 100644 --- a/lib/js/components/ProgressButton.js +++ b/lib/js/components/ProgressButton.js @@ -102,4 +102,5 @@ ProgressButton.propTypes = { submitButton: _propTypes2.default.bool }; -exports.default = ProgressButton; \ No newline at end of file +exports.default = ProgressButton; +//# sourceMappingURL=ProgressButton.js.map \ No newline at end of file diff --git a/lib/js/components/ProgressButton.js.map b/lib/js/components/ProgressButton.js.map new file mode 100644 index 0000000..b3492e9 --- /dev/null +++ b/lib/js/components/ProgressButton.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/components/ProgressButton.jsx"],"names":["ProgressButton","id","beforeText","props","afterText","submitButton","disabled","buttonClass","onButtonClick","buttonText","React","Component","propTypes","PropTypes","func","string","isRequired","bool"],"mappings":";;;;;;;;;;;;AAAA;;;;AACA;;;;;;;;;;;;AAGA;;;;IAIMA,c;;;;;;;;;;;yCACiB;AACnB,WAAKC,EAAL,GAAU,yBAAV;AACD;;;6BAEQ;AACP,UAAMC,aAAc,KAAKC,KAAL,CAAWD,UAAZ,GAA2B;AAAA;AAAA,UAAM,WAAU,aAAhB;AAA+B,aAAKC,KAAL,CAAWD,UAA1C;AAAA;AAAA,OAA3B,GAA4F,EAA/G;AACA,UAAME,YAAa,KAAKD,KAAL,CAAWC,SAAZ,GAA0B;AAAA;AAAA,UAAM,WAAU,aAAhB;AAAA;AAAgC,aAAKD,KAAL,CAAWC;AAA3C,OAA1B,GAA0F,EAA5G;;AAEA,aACE;AAAA;AAAA;AACE,gBAAM,KAAKD,KAAL,CAAWE,YAAX,GAA0B,QAA1B,GAAqC,QAD7C;AAEE,oBAAU,KAAKF,KAAL,CAAWG,QAFvB;AAGE,qBAAc,KAAKH,KAAL,CAAWI,WAAzB,UAAwC,KAAKJ,KAAL,CAAWG,QAAX,GAAsB,qBAAtB,GAA8C,IAAtF,CAHF;AAIE,cAAO,KAAKL,EAAZ,oBAJF;AAKE,mBAAS,KAAKE,KAAL,CAAWK,aALtB;AAKsCN,kBALtC;AAKkD,aAAKC,KAAL,CAAWM,UAL7D;AAKyEL;AALzE,OADF;AASD;;;;EAlB0BM,gBAAMC,S;;AAqBnCX,eAAeY,SAAf,GAA2B;;AAEzB;AACAJ,iBAAeK,oBAAUC,IAHA;;AAKzB;AACAL,cAAYI,oBAAUE,MAAV,CAAiBC,UANJ;;AAQzB;AACAT,eAAaM,oBAAUE,MAAV,CAAiBC,UATL;;AAWzB;AACAd,cAAYW,oBAAUE,MAZG;;AAczB;AACAX,aAAWS,oBAAUE,MAfI;;AAiBzB;AACAT,YAAUO,oBAAUI,IAlBK;;AAoBzB;AACAZ,gBAAcQ,oBAAUI;AArBC,CAA3B;;kBAwBejB,c","file":"ProgressButton.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport _ from 'lodash';\n\n/**\n * A component for the continue button to navigate through panels of questions.\n */\n\nclass ProgressButton extends React.Component {\n componentWillMount() {\n this.id = _.uniqueId();\n }\n\n render() {\n const beforeText = (this.props.beforeText) ? ({this.props.beforeText} ) : '';\n const afterText = (this.props.afterText) ? ( {this.props.afterText}) : '';\n\n return (\n {beforeText}{this.props.buttonText}{afterText}\n \n );\n }\n}\n\nProgressButton.propTypes = {\n\n // function that changes the path to the next panel or submit.\n onButtonClick: PropTypes.func,\n\n // what is the button's label\n buttonText: PropTypes.string.isRequired,\n\n // what CSS class(es) does the button have\n buttonClass: PropTypes.string.isRequired,\n\n // Stores the value for the icon that will appear before the button text.\n beforeText: PropTypes.string,\n\n // Stores the value for the icon that will appear after the button text.\n afterText: PropTypes.string,\n\n // is the button disabled or not\n disabled: PropTypes.bool,\n\n // is this a submit button or not\n submitButton: PropTypes.bool\n};\n\nexport default ProgressButton;\n"]} \ No newline at end of file diff --git a/lib/js/components/SchemaForm.js b/lib/js/components/SchemaForm.js index 80f9f97..b21827f 100644 --- a/lib/js/components/SchemaForm.js +++ b/lib/js/components/SchemaForm.js @@ -299,4 +299,5 @@ SchemaForm.propTypes = { hideTitle: _propTypes2.default.bool }; -exports.default = SchemaForm; \ No newline at end of file +exports.default = SchemaForm; +//# sourceMappingURL=SchemaForm.js.map \ No newline at end of file diff --git a/lib/js/components/SchemaForm.js.map b/lib/js/components/SchemaForm.js.map new file mode 100644 index 0000000..7287914 --- /dev/null +++ b/lib/js/components/SchemaForm.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/components/SchemaForm.jsx"],"names":["reviewWidgets","SchemaForm","props","validate","bind","onError","getEmptyState","transformErrors","onBlur","setTouched","state","fields","ObjectField","ArrayField","BasicArrayField","TitleField","reviewFields","ReviewObjectField","ReadOnlyArrayField","address","StringField","newProps","name","pagePerItemIndex","setState","title","formContext","reviewMode","nextProps","nextState","editModeOnReviewPage","schema","uiSchema","Object","keys","properties","every","data","objProp","id","touched","onEdit","hideTitle","reviewTitle","uploadFile","hideHeaderRow","assign","submitted","pageTitle","touchedItem","setStateCallback","errors","formData","children","onSubmit","onChange","safeRenderCompletion","useReviewMode","ReviewFieldTemplate","FieldTemplate","widgets","React","Component","propTypes","PropTypes","string","isRequired","oneOfType","func","object","any","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;AAEA;;;;AACA;;AAEA;;AACA;;;;AACA;;IAAYA,a;;AACZ;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;;;;;;;AAEA;;;;IAIMC,U;;;AACJ,sBAAYC,KAAZ,EAAmB;AAA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AwBD;;;;EAxJsBQ,gBAAMC,S;;AA2J/B7D,WAAW8D,SAAX,GAAuB;AACrBzC,QAAM0C,oBAAUC,MAAV,CAAiBC,UADF;AAErBzC,SAAOuC,oBAAUG,SAAV,CAAoB,CACzBH,oBAAUC,MADe,EAEzBD,oBAAUI,IAFe,CAApB,EAGJF,UALkB;AAMrBnC,UAAQiC,oBAAUK,MAAV,CAAiBH,UANJ;AAOrBlC,YAAUgC,oBAAUK,MAAV,CAAiBH,UAPN;AAQrB7B,QAAM2B,oBAAUM,GARK;AASrB3C,cAAYqC,oBAAUO,IATD;AAUrBzC,wBAAsBkC,oBAAUO,IAVX;AAWrBjB,YAAUU,oBAAUI,IAXC;AAYrBb,YAAUS,oBAAUI,IAZC;AAarB1B,aAAWsB,oBAAUO;AAbA,CAAvB;;kBAgBetE,U","file":"SchemaForm.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport _ from 'lodash/fp';\nimport Form from '@department-of-veterans-affairs/react-jsonschema-form';\nimport { deepEquals } from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';\n\nimport { uiSchemaValidate, transformErrors } from '../validation';\nimport FieldTemplate from './FieldTemplate';\nimport * as reviewWidgets from '../review/widgets';\nimport ReviewFieldTemplate from '../review/ReviewFieldTemplate';\nimport StringField from '../review/StringField';\nimport widgets from '../widgets/index';\nimport ObjectField from '../fields/ObjectField';\nimport ArrayField from '../fields/ArrayField';\nimport ReadOnlyArrayField from '../review/ReadOnlyArrayField';\nimport BasicArrayField from '../fields/BasicArrayField';\nimport TitleField from '../fields/TitleField';\nimport ReviewObjectField from '../review/ObjectField';\nimport { scrollToFirstError } from '../utilities/ui';\n\n/*\n * Each page uses this component and passes in config. This is where most of the page level\n * form logic should live.\n */\nclass SchemaForm extends React.Component {\n constructor(props) {\n super(props);\n this.validate = this.validate.bind(this);\n this.onError = this.onError.bind(this);\n this.getEmptyState = this.getEmptyState.bind(this);\n this.transformErrors = this.transformErrors.bind(this);\n this.onBlur = this.onBlur.bind(this);\n this.setTouched = this.setTouched.bind(this);\n this.state = this.getEmptyState(props);\n this.fields = {\n ObjectField,\n ArrayField,\n BasicArrayField,\n TitleField\n };\n\n this.reviewFields = {\n ObjectField: ReviewObjectField,\n ArrayField: ReadOnlyArrayField,\n BasicArrayField,\n address: ReviewObjectField,\n StringField\n };\n }\n\n componentWillReceiveProps(newProps) {\n if (newProps.name !== this.props.name || newProps.pagePerItemIndex !== this.props.pagePerItemIndex) {\n this.setState(this.getEmptyState(newProps));\n } else if (newProps.title !== this.props.title) {\n this.setState({ formContext: _.set('pageTitle', newProps.title, this.state.formContext) });\n } else if (!!newProps.reviewMode !== !!this.state.formContext.reviewMode) {\n this.setState(this.getEmptyState(newProps));\n } else if (newProps.formContext !== this.props.formContext) {\n this.setState(this.getEmptyState(newProps));\n }\n }\n\n /*\n * If we’re in review mode, we can short circuit updating\n * by making sure the schemas are the same and the data\n * displayed on this particular page hasn’t changed\n */\n shouldComponentUpdate(nextProps, nextState) {\n if ((nextProps.reviewMode && !nextProps.editModeOnReviewPage)\n && nextProps.reviewMode === this.props.reviewMode\n && deepEquals(this.state, nextState)\n && nextProps.schema === this.props.schema\n && typeof nextProps.title !== 'function'\n && nextProps.uiSchema === this.props.uiSchema) {\n return !Object.keys(nextProps.schema.properties).every(objProp => {\n return this.props.data[objProp] === nextProps.data[objProp];\n });\n }\n\n return true;\n }\n\n onError() {\n const formContext = _.set('submitted', true, this.state.formContext);\n this.setState({ formContext });\n scrollToFirstError();\n }\n\n onBlur(id) {\n if (!this.state.formContext.touched[id]) {\n const formContext = _.set(['touched', id], true, this.state.formContext);\n this.setState({ formContext });\n }\n }\n\n getEmptyState(props) {\n const { onEdit, hideTitle, title, reviewMode, reviewTitle, pagePerItemIndex, uploadFile, hideHeaderRow, formContext } = props;\n return {\n formContext: Object.assign({\n touched: {},\n submitted: false,\n onEdit,\n hideTitle,\n setTouched: this.setTouched,\n reviewTitle,\n pageTitle: title,\n pagePerItemIndex,\n reviewMode,\n hideHeaderRow,\n uploadFile,\n onError: this.onError\n }, formContext)\n };\n }\n\n setTouched(touchedItem, setStateCallback) {\n const touched = _.merge(this.state.formContext.touched, touchedItem);\n const formContext = _.set('touched', touched, this.state.formContext);\n this.setState({ formContext }, setStateCallback);\n }\n\n /*\n * This gets the list of JSON Schema errors whenever validation\n * is run\n */\n transformErrors(errors) {\n return transformErrors(errors, this.props.uiSchema);\n }\n\n validate(formData, errors) {\n const { schema, uiSchema } = this.props;\n if (uiSchema) {\n uiSchemaValidate(errors, uiSchema, schema, formData);\n }\n return errors;\n }\n\n render() {\n const {\n data,\n schema,\n uiSchema,\n reviewMode,\n editModeOnReviewPage,\n children,\n onSubmit,\n onChange,\n safeRenderCompletion\n } = this.props;\n\n const useReviewMode = reviewMode && !editModeOnReviewPage;\n\n return (\n
\n onChange(formData)}\n onSubmit={onSubmit}\n schema={schema}\n uiSchema={uiSchema}\n validate={_.once(this.validate)}\n showErrorList={false}\n formData={data}\n widgets={useReviewMode ? reviewWidgets : widgets}\n fields={useReviewMode ? this.reviewFields : this.fields}\n transformErrors={this.transformErrors}>\n {children}\n \n
\n );\n }\n}\n\nSchemaForm.propTypes = {\n name: PropTypes.string.isRequired,\n title: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.func\n ]).isRequired,\n schema: PropTypes.object.isRequired,\n uiSchema: PropTypes.object.isRequired,\n data: PropTypes.any,\n reviewMode: PropTypes.bool,\n editModeOnReviewPage: PropTypes.bool,\n onSubmit: PropTypes.func,\n onChange: PropTypes.func,\n hideTitle: PropTypes.bool\n};\n\nexport default SchemaForm;\n"]} \ No newline at end of file diff --git a/lib/js/components/SegmentedProgressBar.js b/lib/js/components/SegmentedProgressBar.js index 520d507..936f41f 100644 --- a/lib/js/components/SegmentedProgressBar.js +++ b/lib/js/components/SegmentedProgressBar.js @@ -48,4 +48,5 @@ SegmentedProgressBar.propTypes = { * The total number of segments in the progress bar */ total: _propTypes2.default.number.isRequired -}; \ No newline at end of file +}; +//# sourceMappingURL=SegmentedProgressBar.js.map \ No newline at end of file diff --git a/lib/js/components/SegmentedProgressBar.js.map b/lib/js/components/SegmentedProgressBar.js.map new file mode 100644 index 0000000..7dc16db --- /dev/null +++ b/lib/js/components/SegmentedProgressBar.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/components/SegmentedProgressBar.jsx"],"names":["SegmentedProgressBar","current","total","map","step","propTypes","PropTypes","number","isRequired"],"mappings":";;;;;;;;;;kBAUwBA,oB;;AAVxB;;;;AACA;;;;;;AAGA;;;;;;AAMe,SAASA,oBAAT,OAAkD;AAAA,MAAlBC,OAAkB,QAAlBA,OAAkB;AAAA,MAATC,KAAS,QAATA,KAAS;;AAC/D,SACE;AAAA;AAAA,MAAK,WAAU,wBAAf,EAAwC,MAAK,aAA7C,EAA2D,iBAAeD,OAA1E,EAAmF,iBAAc,GAAjG,EAAqG,iBAAeC,KAApH,EAA2H,UAAS,GAApI;AACG,yBAAQA,KAAR,EAAeC,GAAf,CAAmB;AAAA,aAClB,uCAAK,KAAKC,IAAV,EAAgB,kCAA+BH,UAAUG,IAAV,GAAiB,2BAAjB,GAA+C,EAA9E,CAAhB,GADkB;AAAA,KAAnB;AADH,GADF;AAOD;;AAEDJ,qBAAqBK,SAArB,GAAiC;AAC/B;;;AAGAJ,WAASK,oBAAUC,MAAV,CAAiBC,UAJK;AAK/B;;;AAGAN,SAAOI,oBAAUC,MAAV,CAAiBC;AARO,CAAjC","file":"SegmentedProgressBar.js","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport _ from 'lodash';\n\n/**\n * Create a segmented progress bar for multi-page forms.\n *\n * @param {number} current - The index of the current chapter\n * @param {number} total - The total number of chapters in the form\n */\nexport default function SegmentedProgressBar({ current, total }) {\n return (\n
\n {_.range(total).map(step => (\n
step ? 'progress-segment-complete' : ''}`}/>\n ))}\n
\n );\n}\n\nSegmentedProgressBar.propTypes = {\n /**\n * The current segment in progress\n */\n current: PropTypes.number.isRequired,\n /**\n * The total number of segments in the progress bar\n */\n total: PropTypes.number.isRequired\n};\n"]} \ No newline at end of file diff --git a/lib/js/containers/FormApp.js b/lib/js/containers/FormApp.js index 2a10fa2..e4d2180 100644 --- a/lib/js/containers/FormApp.js +++ b/lib/js/containers/FormApp.js @@ -135,4 +135,5 @@ var mapStateToProps = function mapStateToProps(state) { }; exports.default = (0, _reactRedux.connect)(mapStateToProps)(FormApp); -exports.FormApp = FormApp; \ No newline at end of file +exports.FormApp = FormApp; +//# sourceMappingURL=FormApp.js.map \ No newline at end of file diff --git a/lib/js/containers/FormApp.js.map b/lib/js/containers/FormApp.js.map new file mode 100644 index 0000000..f7c9804 --- /dev/null +++ b/lib/js/containers/FormApp.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/containers/FormApp.jsx"],"names":["Element","Scroll","FormApp","window","History","scrollRestoration","props","currentLocation","formConfig","children","formData","trimmedPathname","pathname","replace","isIntroductionPage","endsWith","Footer","footerContent","formTitle","formNav","renderedChildren","title","subTitle","footer","React","Component","mapStateToProps","state","form","data"],"mappings":";;;;;;;;;AAAA;;;;AACA;;AACA;;;;AAEA;;;;AACA;;;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,UAAUC,sBAAOD,OAAvB;;AAEA;;;;IAGME,O;;;;;;;;;;;yCACiB;AACnB;;AAEA,UAAIC,OAAOC,OAAX,EAAoB;AAClBD,eAAOC,OAAP,CAAeC,iBAAf,GAAmC,QAAnC;AACD;AACF;;;6BAEQ;AAAA,mBACqD,KAAKC,KAD1D;AAAA,UACCC,eADD,UACCA,eADD;AAAA,UACkBC,UADlB,UACkBA,UADlB;AAAA,UAC8BC,QAD9B,UAC8BA,QAD9B;AAAA,UACwCC,QADxC,UACwCA,QADxC;;AAEP,UAAMC,kBAAkBJ,gBAAgBK,QAAhB,CAAyBC,OAAzB,CAAiC,KAAjC,EAAwC,EAAxC,CAAxB;AACA,UAAMC,qBAAqBH,gBAAgBI,QAAhB,CAAyB,cAAzB,CAA3B;AACA,UAAMC,SAASR,WAAWS,aAA1B;;AAEA,UAAIC,kBAAJ;AACA,UAAIC,gBAAJ;AACA,UAAIC,mBAAmBX,QAAvB;AACA,UAAI,CAACK,kBAAL,EAAyB;AACvB;AACA;AACA,YAAIN,WAAWa,KAAf,EAAsB;AACpBH,sBAAY,8BAAC,mBAAD,IAAW,OAAOV,WAAWa,KAA7B,EAAoC,UAAUb,WAAWc,QAAzD,GAAZ;AACD;AACF;;AAED;AACA;AACA,UAAI,2BAAaX,eAAb,CAAJ,EAAmC;AACjCQ,kBAAU,8BAAC,iBAAD,IAAS,UAAUT,QAAnB,EAA6B,YAAYF,UAAzC,EAAqD,aAAaG,eAAlE,GAAV;;AAEAS,2BACE;AAAA;AAAA,YAAK,WAAU,sCAAf;AACGX;AADH,SADF;AAKD;;AAED,UAAIc,eAAJ;AACA,UAAIP,MAAJ,EAAY;AACVO,iBACE,8BAAC,MAAD;AACE,sBAAYf,UADd;AAEE,2BAAiBD,eAFnB,GADF;AAKD;;AAED,aACE;AAAA;AAAA;AACE;AAAA;AAAA,YAAK,WAAU,KAAf;AACE;AAAA;AAAA,cAAK,WAAU,uCAAf;AACE,0CAAC,OAAD,IAAS,MAAK,kBAAd,GADF;AAEGW,qBAFH;AAGGC,mBAHH;AAIGC;AAJH;AADF,SADF;AASGG,cATH;AAUE,gDAAM,WAAU,yBAAhB,EAA0C,iBAAeZ,eAAzD,EAA0E,YAA1E;AAVF,OADF;AAcD;;;;EA7DmBa,gBAAMC,S;;AAgE5B,IAAMC,kBAAkB,SAAlBA,eAAkB,CAACC,KAAD;AAAA,SAAY;AAClCjB,cAAUiB,MAAMC,IAAN,CAAWC;AADa,GAAZ;AAAA,CAAxB;;kBAIe,yBAAQH,eAAR,EAAyBxB,OAAzB,C;QAENA,O,GAAAA,O","file":"FormApp.js","sourcesContent":["import React from 'react';\nimport { connect } from 'react-redux';\nimport Scroll from 'react-scroll';\n\nimport FormNav from '../components/FormNav';\nimport FormTitle from '../components/FormTitle';\nimport { isInProgress } from '../helpers';\nimport { setGlobalScroll } from '../utilities/ui';\n\nconst Element = Scroll.Element;\n\n/*\n * Primary component for a schema generated form app.\n */\nclass FormApp extends React.Component {\n componentWillMount() {\n setGlobalScroll();\n\n if (window.History) {\n window.History.scrollRestoration = 'manual';\n }\n }\n\n render() {\n const { currentLocation, formConfig, children, formData } = this.props;\n const trimmedPathname = currentLocation.pathname.replace(/\\/$/, '');\n const isIntroductionPage = trimmedPathname.endsWith('introduction');\n const Footer = formConfig.footerContent;\n\n let formTitle;\n let formNav;\n let renderedChildren = children;\n if (!isIntroductionPage) {\n // Show title only if we're not on the intro page and if there is a title\n // specified in the form config\n if (formConfig.title) {\n formTitle = ;\n }\n }\n\n // Show nav only if we're not on the intro, form-saved, error, or confirmation page\n // Also add form classes only if on an actual form page\n if (isInProgress(trimmedPathname)) {\n formNav = ;\n\n renderedChildren = (\n
\n {children}\n
\n );\n }\n\n let footer;\n if (Footer) {\n footer = (\n \n );\n }\n\n return (\n
\n
\n
\n \n {formTitle}\n {formNav}\n {renderedChildren}\n
\n
\n {footer}\n \n
\n );\n }\n}\n\nconst mapStateToProps = (state) => ({\n formData: state.form.data\n});\n\nexport default connect(mapStateToProps)(FormApp);\n\nexport { FormApp };\n"]} \ No newline at end of file diff --git a/lib/js/containers/FormPage.js b/lib/js/containers/FormPage.js index 82d8914..132dc9b 100644 --- a/lib/js/containers/FormPage.js +++ b/lib/js/containers/FormPage.js @@ -242,4 +242,5 @@ FormPage.propTypes = { }; exports.default = (0, _reactRouter.withRouter)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(FormPage)); -exports.FormPage = FormPage; \ No newline at end of file +exports.FormPage = FormPage; +//# sourceMappingURL=FormPage.js.map \ No newline at end of file diff --git a/lib/js/containers/FormPage.js.map b/lib/js/containers/FormPage.js.map new file mode 100644 index 0000000..5179ae5 --- /dev/null +++ b/lib/js/containers/FormPage.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/containers/FormPage.jsx"],"names":["focusForm","scroller","Scroll","scrollToTop","scrollTo","window","Forms","scroll","duration","delay","smooth","FormPage","onChange","formData","newData","props","route","pageConfig","showPagePerItem","arrayPath","params","index","form","data","setData","onSubmit","location","path","pageList","pathname","router","push","goBack","blockScrollOnMount","prevProps","pageKey","contentAfterButtons","formContext","pages","schema","uiSchema","pageClasses","pageClass","properties","items","title","undefined","uploadFile","React","Component","mapStateToProps","state","user","mapDispatchToProps","propTypes","PropTypes","object","isRequired","shape","string","arrayOf","element","func"],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;AACA;;AACA;;AACA;;;;AAEA;;;;AAEA;;;;AACA;;;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,SAASA,SAAT,GAAqB;AACnB,wBAAa,aAAb;AACD;;AAED,IAAMC,WAAWC,sBAAOD,QAAxB;AACA,IAAME,cAAc,SAAdA,WAAc,GAAM;AACxBF,WAASG,QAAT,CAAkB,kBAAlB,EAAsCC,OAAOC,KAAP,CAAaC,MAAb,IAAuB;AAC3DC,cAAU,GADiD;AAE3DC,WAAO,CAFoD;AAG3DC,YAAQ;AAHmD,GAA7D;AAKD,CAND;;IAQMC,Q;;;;;;;;;;;;;;0LAgBJC,Q,GAAW,UAACC,QAAD,EAAc;AACvB,UAAIC,UAAUD,QAAd;AACA,UAAI,MAAKE,KAAL,CAAWC,KAAX,CAAiBC,UAAjB,CAA4BC,eAAhC,EAAiD;AAC/C;AACA;AACAJ,kBAAU,mBAAM,CAAC,MAAKC,KAAL,CAAWC,KAAX,CAAiBC,UAAjB,CAA4BE,SAA7B,EAAwC,MAAKJ,KAAL,CAAWK,MAAX,CAAkBC,KAA1D,CAAN,EAAwER,QAAxE,EAAkF,MAAKE,KAAL,CAAWO,IAAX,CAAgBC,IAAlG,CAAV;AACD;AACD,YAAKR,KAAL,CAAWS,OAAX,CAAmBV,OAAnB;AACD,K,QAEDW,Q,GAAW,iBAAkB;AAAA,UAAfZ,QAAe,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U,8CAAf;AACE;AAAA;AAAA,gBAAK,WAAU,0BAAf;AACE,4CAAC,wBAAD;AACE,+BAAe,KAAKO,MADtB;AAEE,4BAAW,MAFb;AAGE,6BAAY,sBAHd;AAIE,4BAAW,MAJb;AADF,aADF;AAQE;AAAA;AAAA,gBAAK,WAAU,8BAAf;AACE,4CAAC,wBAAD;AACE,kCADF;AAEE,4BAAW,UAFb;AAGE,6BAAY,oBAHd;AAIE,2BAAU,MAJZ;AADF;AARF,WAXF;AA2BGI;AA3BH;AADF,OADF;AAiCD;;;;EA5GoBY,gBAAMC,S;;AA+G7B,SAASC,eAAT,CAAyBC,KAAzB,EAAgC;AAC9B,SAAO;AACL7B,UAAM6B,MAAM7B,IADP;AAEL8B,UAAMD,MAAMC;AAFP,GAAP;AAID;;AAED,IAAMC,qBAAqB;AACzB7B,2BADyB;AAEzBuB;AAFyB,CAA3B;;AAKApC,SAAS2C,SAAT,GAAqB;AACnBhC,QAAMiC,oBAAUC,MAAV,CAAiBC,UADJ;AAEnBzC,SAAOuC,oBAAUG,KAAV,CAAgB;AACrBzC,gBAAYsC,oBAAUG,KAAV,CAAgB;AAC1BvB,eAASoB,oBAAUI,MAAV,CAAiBF,UADA;AAE1BlB,cAAQgB,oBAAUC,MAAV,CAAiBC,UAFC;AAG1BjB,gBAAUe,oBAAUC,MAAV,CAAiBC;AAHD,KAAhB,CADS;AAMrB7B,cAAU2B,oBAAUK,OAAV,CAAkBL,oBAAUG,KAAV,CAAgB;AAC1C/B,YAAM4B,oBAAUI,MAAV,CAAiBF;AADmB,KAAhB,CAAlB;AANW,GAAhB,CAFY;AAYnBrB,uBAAqBmB,oBAAUM,OAZZ;AAanBrC,WAAS+B,oBAAUO;AAbA,CAArB;;kBAgBe,6BAAW,yBAAQZ,eAAR,EAAyBG,kBAAzB,EAA6C1C,QAA7C,CAAX,C;QAENA,Q,GAAAA,Q","file":"FormPage.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport { connect } from 'react-redux';\nimport { withRouter } from 'react-router';\nimport Scroll from 'react-scroll';\nimport _ from 'lodash/fp';\nimport classNames from 'classnames';\n\nimport ProgressButton from '../components/ProgressButton';\nimport SchemaForm from '../components/SchemaForm';\nimport { setData, uploadFile } from '../actions';\nimport { getNextPagePath, getPreviousPagePath } from '../routing';\nimport { focusElement } from '../utilities/ui';\n\nfunction focusForm() {\n focusElement('.nav-header');\n}\n\nconst scroller = Scroll.scroller;\nconst scrollToTop = () => {\n scroller.scrollTo('topScrollElement', window.Forms.scroll || {\n duration: 500,\n delay: 0,\n smooth: true,\n });\n};\n\nclass FormPage extends React.Component {\n componentDidMount() {\n if (!this.props.blockScrollOnMount) {\n scrollToTop();\n focusForm();\n }\n }\n\n componentDidUpdate(prevProps) {\n if (prevProps.route.pageConfig.pageKey !== this.props.route.pageConfig.pageKey ||\n _.get('params.index', prevProps) !== _.get('params.index', this.props)) {\n scrollToTop();\n focusForm();\n }\n }\n\n onChange = (formData) => {\n let newData = formData;\n if (this.props.route.pageConfig.showPagePerItem) {\n // If this is a per item page, the formData object will have data for a particular\n // row in an array, so we need to update the full form data object and then call setData\n newData = _.set([this.props.route.pageConfig.arrayPath, this.props.params.index], formData, this.props.form.data);\n }\n this.props.setData(newData);\n }\n\n onSubmit = ({ formData }) => {\n const { form, params, route, location } = this.props;\n\n // This makes sure defaulted data on a page with no changes is saved\n // Probably safe to do this for regular pages, too, but it hasn’t been necessary\n if (route.pageConfig.showPagePerItem) {\n const newData = _.set([route.pageConfig.arrayPath, params.index], formData, form.data);\n this.props.setData(newData);\n }\n\n const path = getNextPagePath(route.pageList, form.data, location.pathname);\n\n this.props.router.push(path);\n }\n\n goBack = () => {\n const { form, route: { pageList }, location } = this.props;\n const path = getPreviousPagePath(pageList, form.data, location.pathname);\n\n this.props.router.push(path);\n }\n\n render() {\n const {\n route,\n params,\n form,\n contentAfterButtons,\n formContext\n } = this.props;\n\n let {\n schema,\n uiSchema\n } = form.pages[route.pageConfig.pageKey];\n\n const pageClasses = classNames('form-panel', route.pageConfig.pageClass);\n let data = form.data;\n\n if (route.pageConfig.showPagePerItem) {\n // Instead of passing through the schema/uiSchema to SchemaForm, the\n // current item schema for the array at arrayPath is pulled out of the page state and passed\n schema = schema.properties[route.pageConfig.arrayPath].items[params.index];\n // Similarly, the items uiSchema and the data for just that particular item are passed\n uiSchema = uiSchema[route.pageConfig.arrayPath].items;\n // And the data should be for just the item in the array\n data = _.get([route.pageConfig.arrayPath, params.index], data);\n }\n\n return (\n
\n \n
\n
\n \n
\n
\n \n
\n
\n {contentAfterButtons}\n \n
\n );\n }\n}\n\nfunction mapStateToProps(state) {\n return {\n form: state.form,\n user: state.user\n };\n}\n\nconst mapDispatchToProps = {\n setData,\n uploadFile\n};\n\nFormPage.propTypes = {\n form: PropTypes.object.isRequired,\n route: PropTypes.shape({\n pageConfig: PropTypes.shape({\n pageKey: PropTypes.string.isRequired,\n schema: PropTypes.object.isRequired,\n uiSchema: PropTypes.object.isRequired\n }),\n pageList: PropTypes.arrayOf(PropTypes.shape({\n path: PropTypes.string.isRequired\n }))\n }),\n contentAfterButtons: PropTypes.element,\n setData: PropTypes.func\n};\n\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(FormPage));\n\nexport { FormPage };\n"]} \ No newline at end of file diff --git a/lib/js/definitions/address.js b/lib/js/definitions/address.js index bcfc495..3d57eae 100644 --- a/lib/js/definitions/address.js +++ b/lib/js/definitions/address.js @@ -284,4 +284,5 @@ function uiSchema() { } } }; -} \ No newline at end of file +} +//# sourceMappingURL=address.js.map \ No newline at end of file diff --git a/lib/js/definitions/address.js.map b/lib/js/definitions/address.js.map new file mode 100644 index 0000000..a7c6641 --- /dev/null +++ b/lib/js/definitions/address.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/address.js"],"names":["schema","uiSchema","validatePostalCodes","errors","address","isValidPostalCode","country","postalCode","addError","stateRequiredCountries","Set","validateAddress","formData","currentSchema","has","state","undefined","required","length","hasAddressInfo","street","city","countryValues","countries","map","object","value","countryNames","label","militaryStates","states","USA","filter","militaryLabels","usaStates","usaLabels","canProvinces","CAN","canLabels","mexStates","MEX","mexLabels","isMilitaryCity","lowerCity","toLowerCase","trim","requiredFields","isRequired","addressProperty","addressSchema","definitions","type","properties","enumNames","title","maxLength","useStreet3","ignoreRequired","fieldOrder","field","addressChangeSelector","path","concat","currentCountry","schemaUpdate","default","stateList","labelList","enum","withEnum","some","withoutEnum","updateSchema","addressUiSchema","index","street2","street3","widgetClassNames"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;QA6EgBA,M,GAAAA,M;QAmCAC,Q,GAAAA,Q;;AA/GhB;;AAEA;;;;AAEA,SAASC,mBAAT,CAA6BC,MAA7B,EAAqCC,OAArC,EAA8C;AAC5C,MAAIC,oBAAoB,IAAxB;;AAEA;AACA,MAAID,QAAQE,OAAR,KAAoB,KAAxB,EAA+B;AAC7BD,wBAAoBA,qBAAqB,+BAAiBD,QAAQG,UAAzB,CAAzC;AACD;AACD,MAAIH,QAAQE,OAAR,KAAoB,KAAxB,EAA+B;AAC7BD,wBAAoBA,qBAAqB,mCAAqBD,QAAQG,UAA7B,CAAzC;AACD;;AAED;AACA,MAAIH,QAAQG,UAAR,IAAsB,CAACF,iBAA3B,EAA8C;AAC5CF,WAAOI,UAAP,CAAkBC,QAAlB,CAA2B,oCAA3B;AACD;AACF;;AAEM,IAAMC,0DAAyB,IAAIC,GAAJ,CAAQ,CAAC,KAAD,EAAQ,KAAR,EAAe,KAAf,CAAR,CAA/B;;AAEP,SAASC,eAAT,CAAyBR,MAAzB,EAAiCC,OAAjC,EAA0CQ,QAA1C,EAAoDC,aAApD,EAAmE;AACjE;AACA;AACA,MAAIJ,uBAAuBK,GAAvB,CAA2BV,QAAQE,OAAnC,KACCF,QAAQW,KAAR,KAAkBC,SADnB,IAECH,cAAcI,QAAd,CAAuBC,MAF5B,EAEoC;AAClCf,WAAOY,KAAP,CAAaP,QAAb,CAAsB,mCAAtB;AACD;;AA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AAgC,CAAjD,EAAoD;AACzDL,4BAAgB,mBAAM,UAAN,EAAkB,EAAlB,EAAsBA,aAAtB,CAAhB;AACD;AACF;AACD,eAAO+C,sBAAsB;AAC3BhD,4BAD2B;AAE3BqC,yBAAepC,aAFY;AAG3BgD;AAH2B,SAAtB,CAAP;AAKD;AAhBW,KALT;AAuBL,gBAAYH,UAvBP;AAwBLpD,aAAS;AACP,kBAAY;AADL,KAxBJ;AA2BLc,YAAQ;AACN,kBAAY;AADN,KA3BH;AA8BLuD,aAAS;AACP,kBAAY;AADL,KA9BJ;AAiCLC,aAAS;AACP,kBAAY;AADL,KAjCJ;AAoCLvD,UAAM;AACJ,kBAAY;AADR,KApCD;AAuCLN,WAAO,EAvCF;AAwCLR,gBAAY;AACV,kBAAY,aADF;AAEV,oBAAc;AACZsE,0BAAkB;AADN;AAFJ;AAxCP,GAAP;AA+CD","file":"address.js","sourcesContent":["import _ from 'lodash/fp';\nimport { createSelector } from 'reselect';\n\nimport { countries, states, isValidUSZipCode, isValidCanPostalCode } from '../utilities/address';\n\nfunction validatePostalCodes(errors, address) {\n let isValidPostalCode = true;\n\n // Checks if postal code is valid\n if (address.country === 'USA') {\n isValidPostalCode = isValidPostalCode && isValidUSZipCode(address.postalCode);\n }\n if (address.country === 'CAN') {\n isValidPostalCode = isValidPostalCode && isValidCanPostalCode(address.postalCode);\n }\n\n // Add error message for postal code if it is invalid\n if (address.postalCode && !isValidPostalCode) {\n errors.postalCode.addError('Please provide a valid postal code');\n }\n}\n\nexport const stateRequiredCountries = new Set(['USA', 'CAN', 'MEX']);\n\nfunction validateAddress(errors, address, formData, currentSchema) {\n // Adds error message for state if it is blank and one of the following countries:\n // USA, Canada, or Mexico\n if (stateRequiredCountries.has(address.country)\n && address.state === undefined\n && currentSchema.required.length) {\n errors.state.addError('Please select a state or province');\n }\n\n const hasAddressInfo = stateRequiredCountries.has(address.country)\n && !currentSchema.required.length\n && typeof address.street !== 'undefined'\n && typeof address.city !== 'undefined'\n && typeof address.postalCode !== 'undefined';\n\n if (hasAddressInfo && typeof address.state === 'undefined') {\n errors.state.addError('Please enter a state or province, or remove other address information.');\n }\n\n validatePostalCodes(errors, address);\n}\n\nconst countryValues = countries.map(object => object.value);\nconst countryNames = countries.map(object => object.label);\nconst militaryStates = states.USA\n .filter(state => state.value === 'AE' || state.value === 'AP' || state.value === 'AA')\n .map(state => state.value);\nconst militaryLabels = states.USA\n .filter(state => state.value === 'AE' || state.value === 'AP' || state.value === 'AA')\n .map(state => state.label);\nconst usaStates = states.USA.map(state => state.value);\nconst usaLabels = states.USA.map(state => state.label);\nconst canProvinces = states.CAN.map(state => state.value);\nconst canLabels = states.CAN.map(state => state.label);\nconst mexStates = states.MEX.map(state => state.value);\nconst mexLabels = states.MEX.map(state => state.label);\n\nfunction isMilitaryCity(city = '') {\n const lowerCity = city.toLowerCase().trim();\n\n return lowerCity === 'apo' || lowerCity === 'fpo' || lowerCity === 'dpo';\n}\n\nconst requiredFields = ['street', 'city', 'country', 'state', 'postalCode'];\n\n/*\n * Create schema for addresses\n *\n * @param {object} schema - Schema for a full form, including address definition in definitions\n * @param {boolean} isRequired - If the address is required or not, defaults to false\n * @param {string} addressProperty - The name of the address definition to use from the common\n * definitions in currentSchema\n */\nexport function schema(currentSchema, isRequired = false, addressProperty = 'address') {\n const addressSchema = currentSchema.definitions[addressProperty];\n return {\n type: 'object',\n required: isRequired ? requiredFields : [],\n properties: _.assign(addressSchema.properties, {\n country: {\n 'default': 'USA',\n type: 'string',\n 'enum': countryValues,\n enumNames: countryNames\n },\n state: {\n title: 'State',\n type: 'string',\n maxLength: 51\n },\n postalCode: {\n type: 'string',\n maxLength: 10\n }\n })\n };\n}\n\n/*\n * Create uiSchema for addresses\n *\n * @param {string} label - Block label for the address\n * @param {boolean} useStreet3 - Show a third line in the address\n * @param {function} isRequired - A function for conditionally setting if an address is required.\n * Receives formData and an index (if in an array item)\n * @param {boolean} ignoreRequired - Ignore the required fields array, to avoid overwriting form specific\n * customizations\n */\nexport function uiSchema(label = 'Address', useStreet3 = false, isRequired = null, ignoreRequired = false) {\n let fieldOrder = ['country', 'street', 'street2', 'street3', 'city', 'state', 'postalCode'];\n if (!useStreet3) {\n fieldOrder = fieldOrder.filter(field => field !== 'street3');\n }\n\n const addressChangeSelector = createSelector(\n ({ formData, path }) => _.get(path.concat('country'), formData),\n ({ formData, path }) => _.get(path.concat('city'), formData),\n _.get('addressSchema'),\n (currentCountry, city, addressSchema) => {\n const schemaUpdate = {\n properties: addressSchema.properties,\n required: addressSchema.required\n };\n const country = currentCountry || addressSchema.properties.country.default;\n const required = addressSchema.required.length > 0;\n\n let stateList;\n let labelList;\n if (country === 'USA') {\n stateList = usaStates;\n labelList = usaLabels;\n } else if (country === 'CAN') {\n stateList = canProvinces;\n labelList = canLabels;\n } else if (country === 'MEX') {\n stateList = mexStates;\n labelList = mexLabels;\n }\n\n if (stateList) {\n // We have a list and it’s different, so we need to make schema updates\n if (addressSchema.properties.state.enum !== stateList) {\n const withEnum = _.set('state.enum', stateList, schemaUpdate.properties);\n schemaUpdate.properties = _.set('state.enumNames', labelList, withEnum);\n\n // all the countries with state lists require the state field, so add that if necessary\n if (!ignoreRequired && required && !addressSchema.required.some(field => field === 'state')) {\n schemaUpdate.required = addressSchema.required.concat('state');\n }\n }\n // We don’t have a state list for the current country, but there’s an enum in the schema\n // so we need to update it\n } else if (addressSchema.properties.state.enum) {\n const withoutEnum = _.unset('state.enum', schemaUpdate.properties);\n schemaUpdate.properties = _.unset('state.enumNames', withoutEnum);\n if (!ignoreRequired && required) {\n schemaUpdate.required = addressSchema.required.filter(field => field !== 'state');\n }\n }\n\n // Canada has a different title than others, so set that when necessary\n if (country === 'CAN' && addressSchema.properties.state.title !== 'Province') {\n schemaUpdate.properties = _.set('state.title', 'Province', schemaUpdate.properties);\n } else if (country !== 'CAN' && addressSchema.properties.state.title !== 'State') {\n schemaUpdate.properties = _.set('state.title', 'State', schemaUpdate.properties);\n }\n\n // We constrain the state list when someone picks a city that’s a military base\n if (country === 'USA' && isMilitaryCity(city) && schemaUpdate.properties.state.enum !== militaryStates) {\n const withEnum = _.set('state.enum', militaryStates, schemaUpdate.properties);\n schemaUpdate.properties = _.set('state.enumNames', militaryLabels, withEnum);\n }\n\n return schemaUpdate;\n }\n );\n\n return {\n 'ui:title': label,\n 'ui:validations': [\n validateAddress\n ],\n 'ui:options': {\n updateSchema: (formData, addressSchema, addressUiSchema, index, path) => {\n let currentSchema = addressSchema;\n if (isRequired) {\n const required = isRequired(formData, index);\n if (required && currentSchema.required.length === 0) {\n currentSchema = _.set('required', requiredFields, currentSchema);\n } else if (!required && currentSchema.required.length > 0) {\n currentSchema = _.set('required', [], currentSchema);\n }\n }\n return addressChangeSelector({\n formData,\n addressSchema: currentSchema,\n path\n });\n }\n },\n 'ui:order': fieldOrder,\n country: {\n 'ui:title': 'Country'\n },\n street: {\n 'ui:title': 'Street'\n },\n street2: {\n 'ui:title': 'Line 2'\n },\n street3: {\n 'ui:title': 'Line 3'\n },\n city: {\n 'ui:title': 'City'\n },\n state: {},\n postalCode: {\n 'ui:title': 'Postal code',\n 'ui:options': {\n widgetClassNames: 'usa-input-medium'\n }\n }\n };\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/autosuggest.js b/lib/js/definitions/autosuggest.js index b654a90..2ad7997 100644 --- a/lib/js/definitions/autosuggest.js +++ b/lib/js/definitions/autosuggest.js @@ -65,4 +65,5 @@ function uiSchema(label, getOptions) { getOptions: getOptions } }, options); -} \ No newline at end of file +} +//# sourceMappingURL=autosuggest.js.map \ No newline at end of file diff --git a/lib/js/definitions/autosuggest.js.map b/lib/js/definitions/autosuggest.js.map new file mode 100644 index 0000000..25d5f5a --- /dev/null +++ b/lib/js/definitions/autosuggest.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/autosuggest.js"],"names":["uiSchema","schema","type","properties","id","label","getOptions","options","validations","push","validateAutosuggestOption","AutosuggestField","showFieldLabel","maxOptions"],"mappings":";;;;;;;;;;;;;;;QA0BgBA,Q,GAAAA,Q;;AAxBhB;;;;AACA;;;;AAEA;AACA;AACO,IAAMC,0BAAS;AACpBC,QAAM,QADc;AAEpBC,cAAY;AACVC,QAAI;AACFF,YAAM;AADJ,KADM;AAIVG,WAAO;AACLH,YAAM;AADD;AAJG;AAFQ,CAAf;;AAYP;;;;;;;AAOO,SAASF,QAAT,CAAkBK,KAAlB,EAAyBC,UAAzB,EAAmD;AAAA,MAAdC,OAAc,uEAAJ,EAAI;;AACxD,MAAMC,cAAc,EAApB;AACA,MAAI,CAAC,mBAAM,sBAAN,EAA8BD,OAA9B,CAAL,EAA6C;AAC3CC,gBAAYC,IAAZ,CAAiBC,qCAAjB;AACD;;AAED,SAAO,qBAAQ;AACb,gBAAYL,KADC;AAEb,gBAAYM,0BAFC;AAGb,sBAAkBH,WAHL;AAIb,wBAAoB;AAClBN,YAAM;AADY,KAJP;AAOb,kBAAc;AACZU,sBAAgB,OADJ;AAEZC,kBAAY,EAFA;AAGZP;AAHY;AAPD,GAAR,EAYJC,OAZI,CAAP;AAaD","file":"autosuggest.js","sourcesContent":["import _ from 'lodash/fp';\n\nimport AutosuggestField from '../fields/AutosuggestField';\nimport { validateAutosuggestOption } from '../validation';\n\n// don't use for enum fields, they need access to the\n// list of enums and names\nexport const schema = {\n type: 'object',\n properties: {\n id: {\n type: 'any'\n },\n label: {\n type: 'string'\n }\n }\n};\n\n/*\n * Create uiSchema for autosuggest\n *\n * @param {string} label - Label for the field\n * @param {function} getOptions - Function that fetchs options to be shown and returns a promise\n * @param {object} options - Any other options to override the uiSchema defaults with\n */\nexport function uiSchema(label, getOptions, options = {}) {\n const validations = [];\n if (!_.get('ui:options.freeInput', options)) {\n validations.push(validateAutosuggestOption);\n }\n\n return _.merge({\n 'ui:title': label,\n 'ui:field': AutosuggestField,\n 'ui:validations': validations,\n 'ui:errorMessages': {\n type: 'Please select an option from the suggestions'\n },\n 'ui:options': {\n showFieldLabel: 'label',\n maxOptions: 20,\n getOptions\n }\n }, options);\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/bankAccount.js b/lib/js/definitions/bankAccount.js index ed56b5a..41dd77e 100644 --- a/lib/js/definitions/bankAccount.js +++ b/lib/js/definitions/bankAccount.js @@ -30,4 +30,5 @@ var uiSchema = { } }; -exports.default = uiSchema; \ No newline at end of file +exports.default = uiSchema; +//# sourceMappingURL=bankAccount.js.map \ No newline at end of file diff --git a/lib/js/definitions/bankAccount.js.map b/lib/js/definitions/bankAccount.js.map new file mode 100644 index 0000000..241e21d --- /dev/null +++ b/lib/js/definitions/bankAccount.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/bankAccount.js"],"names":["uiSchema","accountType","labels","checking","savings","accountNumber","routingNumber","validateRoutingNumber","pattern"],"mappings":";;;;;;AAAA;;AAEA,IAAMA,WAAW;AACf,cAAY,CAAC,aAAD,EAAgB,eAAhB,EAAiC,eAAjC,CADG;AAEfC,eAAa;AACX,gBAAY,cADD;AAEX,iBAAa,OAFF;AAGX,kBAAc;AACZC,cAAQ;AACNC,kBAAU,UADJ;AAENC,iBAAS;AAFH;AADI;AAHH,GAFE;AAYfC,iBAAe;AACb,gBAAY;AADC,GAZA;AAefC,iBAAe;AACb,gBAAY,gBADC;AAEb,sBAAkB,CAChBC,iCADgB,CAFL;AAKb,wBAAoB;AAClBC,eAAS;AADS;AALP;AAfA,CAAjB;;kBA0BeR,Q","file":"bankAccount.js","sourcesContent":["import { validateRoutingNumber } from '../validation';\n\nconst uiSchema = {\n 'ui:order': ['accountType', 'accountNumber', 'routingNumber'],\n accountType: {\n 'ui:title': 'Account type',\n 'ui:widget': 'radio',\n 'ui:options': {\n labels: {\n checking: 'Checking',\n savings: 'Savings'\n }\n }\n },\n accountNumber: {\n 'ui:title': 'Account number'\n },\n routingNumber: {\n 'ui:title': 'Routing number',\n 'ui:validations': [\n validateRoutingNumber\n ],\n 'ui:errorMessages': {\n pattern: 'Please enter a valid nine digit routing number'\n }\n }\n};\n\nexport default uiSchema;\n"]} \ No newline at end of file diff --git a/lib/js/definitions/currency.js b/lib/js/definitions/currency.js index 98416d4..84deb54 100644 --- a/lib/js/definitions/currency.js +++ b/lib/js/definitions/currency.js @@ -27,4 +27,5 @@ function uiSchema(title) { type: 'Please enter a valid dollar amount' } }; -} \ No newline at end of file +} +//# sourceMappingURL=currency.js.map \ No newline at end of file diff --git a/lib/js/definitions/currency.js.map b/lib/js/definitions/currency.js.map new file mode 100644 index 0000000..4fb9ed6 --- /dev/null +++ b/lib/js/definitions/currency.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/currency.js"],"names":["uiSchema","title","CurrencyWidget","CurrencyReviewWidget","classNames","type"],"mappings":";;;;;kBAGwBA,Q;;AAHxB;;;;AACA;;;;;;AAEe,SAASA,QAAT,CAAkBC,KAAlB,EAAyB;AACtC,SAAO;AACL,iBAAaC,wBADR;AAEL,uBAAmBC,wBAFd;AAGL,gBAAYF,KAHP;AAIL,kBAAc;AACZG,kBAAY;AADA,KAJT;AAOL,wBAAoB;AAClBC,YAAM;AADY;AAPf,GAAP;AAWD","file":"currency.js","sourcesContent":["import CurrencyWidget from '../widgets/CurrencyWidget';\nimport CurrencyReviewWidget from '../review/CurrencyWidget';\n\nexport default function uiSchema(title) {\n return {\n 'ui:widget': CurrencyWidget,\n 'ui:reviewWidget': CurrencyReviewWidget,\n 'ui:title': title,\n 'ui:options': {\n classNames: 'schemaform-currency-input'\n },\n 'ui:errorMessages': {\n type: 'Please enter a valid dollar amount'\n }\n };\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/currentOrPastDate.js b/lib/js/definitions/currentOrPastDate.js index a84de2b..ab9a7df 100644 --- a/lib/js/definitions/currentOrPastDate.js +++ b/lib/js/definitions/currentOrPastDate.js @@ -18,4 +18,5 @@ function uiSchema() { pattern: 'Please provide a valid current or past date' } }; -} \ No newline at end of file +} +//# sourceMappingURL=currentOrPastDate.js.map \ No newline at end of file diff --git a/lib/js/definitions/currentOrPastDate.js.map b/lib/js/definitions/currentOrPastDate.js.map new file mode 100644 index 0000000..fb2ed99 --- /dev/null +++ b/lib/js/definitions/currentOrPastDate.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/currentOrPastDate.js"],"names":["uiSchema","title","validateCurrentOrPastDate","pattern"],"mappings":";;;;;kBAEwBA,Q;;AAFxB;;AAEe,SAASA,QAAT,GAAkC;AAAA,MAAhBC,KAAgB,uEAAR,MAAQ;;AAC/C,SAAO;AACL,gBAAYA,KADP;AAEL,iBAAa,MAFR;AAGL,sBAAkB,CAChBC,qCADgB,CAHb;AAML,wBAAoB;AAClBC,eAAS;AADS;AANf,GAAP;AAUD","file":"currentOrPastDate.js","sourcesContent":["import { validateCurrentOrPastDate } from '../validation';\n\nexport default function uiSchema(title = 'Date') {\n return {\n 'ui:title': title,\n 'ui:widget': 'date',\n 'ui:validations': [\n validateCurrentOrPastDate\n ],\n 'ui:errorMessages': {\n pattern: 'Please provide a valid current or past date'\n }\n };\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/currentOrPastMonthYear.js b/lib/js/definitions/currentOrPastMonthYear.js index 979a1f0..f574a15 100644 --- a/lib/js/definitions/currentOrPastMonthYear.js +++ b/lib/js/definitions/currentOrPastMonthYear.js @@ -27,4 +27,5 @@ function uiSchema() { pattern: 'Please provide a valid current or past date' } }); -} \ No newline at end of file +} +//# sourceMappingURL=currentOrPastMonthYear.js.map \ No newline at end of file diff --git a/lib/js/definitions/currentOrPastMonthYear.js.map b/lib/js/definitions/currentOrPastMonthYear.js.map new file mode 100644 index 0000000..238fc4a --- /dev/null +++ b/lib/js/definitions/currentOrPastMonthYear.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/currentOrPastMonthYear.js"],"names":["uiSchema","title","validateCurrentOrPastMonthYear","pattern"],"mappings":";;;;;;;;;;kBAIwBA,Q;;AAHxB;;AACA;;;;;;AAEe,SAASA,QAAT,GAAkC;AAAA,MAAhBC,KAAgB,uEAAR,MAAQ;;AAC/C,SAAO,sBAAS,yBAAYA,KAAZ,CAAT,EAA6B;AAClC,sBAAkB,CAChBC,0CADgB,CADgB;AAIlC,wBAAoB;AAClBC,eAAS;AADS;AAJc,GAA7B,CAAP;AAQD","file":"currentOrPastMonthYear.js","sourcesContent":["import _ from 'lodash/fp';\nimport { validateCurrentOrPastMonthYear } from '../validation';\nimport monthYearUI from './monthYear';\n\nexport default function uiSchema(title = 'Date') {\n return _.assign(monthYearUI(title), {\n 'ui:validations': [\n validateCurrentOrPastMonthYear\n ],\n 'ui:errorMessages': {\n pattern: 'Please provide a valid current or past date'\n }\n });\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/date.js b/lib/js/definitions/date.js index f8c216c..5183f1a 100644 --- a/lib/js/definitions/date.js +++ b/lib/js/definitions/date.js @@ -18,4 +18,5 @@ function uiSchema() { pattern: 'Please provide a valid date' } }; -} \ No newline at end of file +} +//# sourceMappingURL=date.js.map \ No newline at end of file diff --git a/lib/js/definitions/date.js.map b/lib/js/definitions/date.js.map new file mode 100644 index 0000000..7e00480 --- /dev/null +++ b/lib/js/definitions/date.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/date.js"],"names":["uiSchema","title","validateDate","pattern"],"mappings":";;;;;kBAEwBA,Q;;AAFxB;;AAEe,SAASA,QAAT,GAAkC;AAAA,MAAhBC,KAAgB,uEAAR,MAAQ;;AAC/C,SAAO;AACL,gBAAYA,KADP;AAEL,iBAAa,MAFR;AAGL,sBAAkB,CAChBC,wBADgB,CAHb;AAML,wBAAoB;AAClBC,eAAS;AADS;AANf,GAAP;AAUD","file":"date.js","sourcesContent":["import { validateDate } from '../validation';\n\nexport default function uiSchema(title = 'Date') {\n return {\n 'ui:title': title,\n 'ui:widget': 'date',\n 'ui:validations': [\n validateDate\n ],\n 'ui:errorMessages': {\n pattern: 'Please provide a valid date'\n }\n };\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/dateRange.js b/lib/js/definitions/dateRange.js index 30dd6c2..5eec66e 100644 --- a/lib/js/definitions/dateRange.js +++ b/lib/js/definitions/dateRange.js @@ -26,4 +26,5 @@ function uiSchema() { from: (0, _date2.default)(from), to: (0, _date2.default)(to) }; -} \ No newline at end of file +} +//# sourceMappingURL=dateRange.js.map \ No newline at end of file diff --git a/lib/js/definitions/dateRange.js.map b/lib/js/definitions/dateRange.js.map new file mode 100644 index 0000000..78d2825 --- /dev/null +++ b/lib/js/definitions/dateRange.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/dateRange.js"],"names":["uiSchema","from","to","rangeError","validateDateRange","pattern"],"mappings":";;;;;kBAGwBA,Q;;AAHxB;;AACA;;;;;;AAEe,SAASA,QAAT,GAA4F;AAAA,MAA1EC,IAA0E,uEAAnE,MAAmE;AAAA,MAA3DC,EAA2D,uEAAtD,IAAsD;AAAA,MAAhDC,UAAgD,uEAAnC,iCAAmC;;AACzG,SAAO;AACL,sBAAkB,CAChBC,6BADgB,CADb;AAIL,wBAAoB;AAClBC,eAASF;AADS,KAJf;AAOLF,UAAM,oBAAOA,IAAP,CAPD;AAQLC,QAAI,oBAAOA,EAAP;AARC,GAAP;AAUD","file":"dateRange.js","sourcesContent":["import { validateDateRange } from '../validation';\nimport dateUI from './date';\n\nexport default function uiSchema(from = 'From', to = 'To', rangeError = 'To date must be after From date') {\n return {\n 'ui:validations': [\n validateDateRange\n ],\n 'ui:errorMessages': {\n pattern: rangeError,\n },\n from: dateUI(from),\n to: dateUI(to)\n };\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/file.js b/lib/js/definitions/file.js index cbf26f0..43560a9 100644 --- a/lib/js/definitions/file.js +++ b/lib/js/definitions/file.js @@ -80,4 +80,5 @@ var fileSchema = exports.fileSchema = { } } } -}; \ No newline at end of file +}; +//# sourceMappingURL=file.js.map \ No newline at end of file diff --git a/lib/js/definitions/file.js.map b/lib/js/definitions/file.js.map new file mode 100644 index 0000000..9318f7d --- /dev/null +++ b/lib/js/definitions/file.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/file.js"],"names":["fileUiSchema","label","userOptions","FileField","fileTypes","maxSize","minSize","createPayload","file","formId","payload","FormData","append","parseResponse","fileInfo","name","data","attributes","size","confirmationCode","addAnotherLabel","showFieldLabel","keepInPageOnReview","classNames","required","minItems","validateFileField","fileSchema","type","items","properties","fileName","fileSize","confirmationNumber","errorMessage","uploading"],"mappings":";;;;;;;;;;;kBAKwBA,Y;;AAHxB;;;;AACA;;;;AAEe,SAASA,YAAT,CAAsBC,KAAtB,EAA+C;AAAA,MAAlBC,WAAkB,uEAAJ,EAAI;;AAC5D,SAAO;AACL,gBAAYD,KADP;AAEL,gBAAYE,mBAFP;AAGL,kBAAc,sBAAS;AACrBC,iBAAW,CAAC,KAAD,EAAQ,KAAR,EAAe,MAAf,EAAuB,KAAvB,CADU;AAErBC,eAAS,QAFY;AAGrBC,eAAS,IAHY;AAIrBC,qBAAe,uBAACC,IAAD,EAAOC,MAAP,EAAkB;AAC/B,YAAMC,UAAU,IAAIC,QAAJ,EAAhB;AACAD,gBAAQE,MAAR,CAAe,MAAf,EAAuBJ,IAAvB;AACAE,gBAAQE,MAAR,CAAe,SAAf,EAA0BH,MAA1B;;AAEA,eAAOC,OAAP;AACD,OAVoB;AAWrBG,qBAAe,uBAACC,QAAD,EAAc;AAC3B,eAAO;AACLC,gBAAMD,SAASE,IAAT,CAAcC,UAAd,CAAyBF,IAD1B;AAELG,gBAAMJ,SAASE,IAAT,CAAcC,UAAd,CAAyBC,IAF1B;AAGLC,4BAAkBL,SAASE,IAAT,CAAcC,UAAd,CAAyBE;AAHtC,SAAP;AAKD,OAjBoB;AAkBrBC,uBAAiB,aAlBI;AAmBrBC,sBAAgB,IAnBK;AAoBrBC,0BAAoB,IApBC;AAqBrBC,kBAAY;AArBS,KAAT,EAsBXrB,WAtBW,CAHT;AA0BL,wBAAoB;AAClBsB,gBAAU,wBADQ;AAElBC,gBAAU;AAFQ,KA1Bf;AA8BL,sBAAkB,CAChBC,6BADgB;AA9Bb,GAAP;AAkCD;;AAED;AACO,IAAMC,kCAAa;AACxBC,QAAM,OADkB;AAExBH,YAAU,CAFc;AAGxBI,SAAO;AACLD,UAAM,QADD;AAELE,gBAAY;AACVC,gBAAU;AACRH,cAAM;AADE,OADA;AAIVI,gBAAU;AACRJ,cAAM;AADE,OAJA;AAOVK,0BAAoB;AAClBL,cAAM;AADY,OAPV;AAUVM,oBAAc;AACZN,cAAM;AADM,OAVJ;AAaVO,iBAAW;AACTP,cAAM;AADG;AAbD;AAFP;AAHiB,CAAnB","file":"file.js","sourcesContent":["import _ from 'lodash/fp';\n\nimport FileField from '../fields/FileField';\nimport { validateFileField } from '../validation';\n\nexport default function fileUiSchema(label, userOptions = {}) {\n return {\n 'ui:title': label,\n 'ui:field': FileField,\n 'ui:options': _.assign({\n fileTypes: ['pdf', 'jpg', 'jpeg', 'png'],\n maxSize: 20971520,\n minSize: 1024,\n createPayload: (file, formId) => {\n const payload = new FormData();\n payload.append('file', file);\n payload.append('form_id', formId);\n\n return payload;\n },\n parseResponse: (fileInfo) => {\n return {\n name: fileInfo.data.attributes.name,\n size: fileInfo.data.attributes.size,\n confirmationCode: fileInfo.data.attributes.confirmationCode\n };\n },\n addAnotherLabel: 'Add Another',\n showFieldLabel: true,\n keepInPageOnReview: true,\n classNames: 'schemaform-file-upload'\n }, userOptions),\n 'ui:errorMessages': {\n required: 'You must upload a file',\n minItems: 'You must upload a file'\n },\n 'ui:validations': [\n validateFileField\n ]\n };\n}\n\n// An example schema so we don’t forget it for now\nexport const fileSchema = {\n type: 'array',\n minItems: 1,\n items: {\n type: 'object',\n properties: {\n fileName: {\n type: 'string'\n },\n fileSize: {\n type: 'integer'\n },\n confirmationNumber: {\n type: 'string'\n },\n errorMessage: {\n type: 'string'\n },\n uploading: {\n type: 'boolean'\n }\n }\n }\n};\n"]} \ No newline at end of file diff --git a/lib/js/definitions/fullName.js b/lib/js/definitions/fullName.js index 371c3e7..42504d0 100644 --- a/lib/js/definitions/fullName.js +++ b/lib/js/definitions/fullName.js @@ -21,4 +21,5 @@ var uiSchema = { } }; -exports.default = uiSchema; \ No newline at end of file +exports.default = uiSchema; +//# sourceMappingURL=fullName.js.map \ No newline at end of file diff --git a/lib/js/definitions/fullName.js.map b/lib/js/definitions/fullName.js.map new file mode 100644 index 0000000..a89f879 --- /dev/null +++ b/lib/js/definitions/fullName.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/fullName.js"],"names":["uiSchema","first","last","middle","suffix","widgetClassNames"],"mappings":";;;;;AAAA,IAAMA,WAAW;AACfC,SAAO;AACL,gBAAY;AADP,GADQ;AAIfC,QAAM;AACJ,gBAAY;AADR,GAJS;AAOfC,UAAQ;AACN,gBAAY;AADN,GAPO;AAUfC,UAAQ;AACN,gBAAY,QADN;AAEN,kBAAc;AACZC,wBAAkB;AADN;AAFR;AAVO,CAAjB;;kBAkBeL,Q","file":"fullName.js","sourcesContent":["const uiSchema = {\n first: {\n 'ui:title': 'First name'\n },\n last: {\n 'ui:title': 'Last name'\n },\n middle: {\n 'ui:title': 'Middle name'\n },\n suffix: {\n 'ui:title': 'Suffix',\n 'ui:options': {\n widgetClassNames: 'form-select-medium'\n }\n }\n};\n\nexport default uiSchema;\n"]} \ No newline at end of file diff --git a/lib/js/definitions/monthYear.js b/lib/js/definitions/monthYear.js index 90848b6..6c26712 100644 --- a/lib/js/definitions/monthYear.js +++ b/lib/js/definitions/monthYear.js @@ -21,4 +21,5 @@ function uiSchema() { pattern: 'Please provide a valid date' } }; -} \ No newline at end of file +} +//# sourceMappingURL=monthYear.js.map \ No newline at end of file diff --git a/lib/js/definitions/monthYear.js.map b/lib/js/definitions/monthYear.js.map new file mode 100644 index 0000000..9b2a6b7 --- /dev/null +++ b/lib/js/definitions/monthYear.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/monthYear.js"],"names":["uiSchema","title","monthYear","validateMonthYear","pattern"],"mappings":";;;;;kBAEwBA,Q;;AAFxB;;AAEe,SAASA,QAAT,GAAkC;AAAA,MAAhBC,KAAgB,uEAAR,MAAQ;;AAC/C,SAAO;AACL,gBAAYA,KADP;AAEL,iBAAa,MAFR;AAGL,kBAAc;AACZC,iBAAW;AADC,KAHT;AAML,sBAAkB,CAChBC,6BADgB,CANb;AASL,wBAAoB;AAClBC,eAAS;AADS;AATf,GAAP;AAaD","file":"monthYear.js","sourcesContent":["import { validateMonthYear } from '../validation';\n\nexport default function uiSchema(title = 'Date') {\n return {\n 'ui:title': title,\n 'ui:widget': 'date',\n 'ui:options': {\n monthYear: true\n },\n 'ui:validations': [\n validateMonthYear\n ],\n 'ui:errorMessages': {\n pattern: 'Please provide a valid date'\n }\n };\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/monthYearRange.js b/lib/js/definitions/monthYearRange.js index 707a2f7..d8aae50 100644 --- a/lib/js/definitions/monthYearRange.js +++ b/lib/js/definitions/monthYearRange.js @@ -26,4 +26,5 @@ function uiSchema() { from: (0, _monthYear2.default)(from), to: (0, _monthYear2.default)(to) }; -} \ No newline at end of file +} +//# sourceMappingURL=monthYearRange.js.map \ No newline at end of file diff --git a/lib/js/definitions/monthYearRange.js.map b/lib/js/definitions/monthYearRange.js.map new file mode 100644 index 0000000..f494f6d --- /dev/null +++ b/lib/js/definitions/monthYearRange.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/monthYearRange.js"],"names":["uiSchema","from","to","rangeError","validateDateRange","pattern"],"mappings":";;;;;kBAGwBA,Q;;AAHxB;;AACA;;;;;;AAEe,SAASA,QAAT,GAA4F;AAAA,MAA1EC,IAA0E,uEAAnE,MAAmE;AAAA,MAA3DC,EAA2D,uEAAtD,IAAsD;AAAA,MAAhDC,UAAgD,uEAAnC,iCAAmC;;AACzG,SAAO;AACL,sBAAkB,CAChBC,6BADgB,CADb;AAIL,wBAAoB;AAClBC,eAASF;AADS,KAJf;AAOLF,UAAM,yBAAYA,IAAZ,CAPD;AAQLC,QAAI,yBAAYA,EAAZ;AARC,GAAP;AAUD","file":"monthYearRange.js","sourcesContent":["import { validateDateRange } from '../validation';\nimport monthYearUI from './monthYear';\n\nexport default function uiSchema(from = 'From', to = 'To', rangeError = 'To date must be after From date') {\n return {\n 'ui:validations': [\n validateDateRange\n ],\n 'ui:errorMessages': {\n pattern: rangeError,\n },\n from: monthYearUI(from),\n to: monthYearUI(to)\n };\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/nonRequiredFullName.js b/lib/js/definitions/nonRequiredFullName.js index a029fbf..d9df41a 100644 --- a/lib/js/definitions/nonRequiredFullName.js +++ b/lib/js/definitions/nonRequiredFullName.js @@ -16,4 +16,5 @@ function nonRequiredFullName(fullName) { return (0, _assign3.default)({}, fullName, { required: [] }); -} \ No newline at end of file +} +//# sourceMappingURL=nonRequiredFullName.js.map \ No newline at end of file diff --git a/lib/js/definitions/nonRequiredFullName.js.map b/lib/js/definitions/nonRequiredFullName.js.map new file mode 100644 index 0000000..eff9433 --- /dev/null +++ b/lib/js/definitions/nonRequiredFullName.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/nonRequiredFullName.js"],"names":["nonRequiredFullName","fullName","required"],"mappings":";;;;;;;;;;kBAEwBA,mB;;;;AAAT,SAASA,mBAAT,CAA6BC,QAA7B,EAAuC;AACpD,SAAO,sBAAS,EAAT,EAAaA,QAAb,EAAuB;AAC5BC,cAAU;AADkB,GAAvB,CAAP;AAGD","file":"nonRequiredFullName.js","sourcesContent":["import _ from 'lodash';\n\nexport default function nonRequiredFullName(fullName) {\n return _.assign({}, fullName, {\n required: []\n });\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/personId.js b/lib/js/definitions/personId.js index b09d88d..dacc61a 100644 --- a/lib/js/definitions/personId.js +++ b/lib/js/definitions/personId.js @@ -67,4 +67,5 @@ function uiSchema() { expandUnder: 'view:noSSN' } }), _ref; -} \ No newline at end of file +} +//# sourceMappingURL=personId.js.map \ No newline at end of file diff --git a/lib/js/definitions/personId.js.map b/lib/js/definitions/personId.js.map new file mode 100644 index 0000000..d210fb0 --- /dev/null +++ b/lib/js/definitions/personId.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/personId.js"],"names":["schema","uiSchema","currentSchema","type","properties","veteranSocialSecurityNumber","definitions","ssn","vaFileNumber","prefix","noSSN","labelText","fileNumberProp","ssnUI","formData","hideOnReview","pattern","expandUnder"],"mappings":";;;;;;;;;;;;;;QAIgBA,M,GAAAA,M;QAaAC,Q,GAAAA,Q;;AAfhB;;;;;;;;AAEO,SAASD,MAAT,CAAgBE,aAAhB,EAA+B;AACpC,SAAO;AACLC,UAAM,QADD;AAELC,gBAAY;AACVC,mCAA6BH,cAAcI,WAAd,CAA0BC,GAD7C;AAEV,oBAAc;AACZJ,cAAM;AADM,OAFJ;AAKVK,oBAAcN,cAAcI,WAAd,CAA0BE;AAL9B;AAFP,GAAP;AAUD;;AAEM,SAASP,QAAT,GAGgD;AAAA,MAFrDQ,MAEqD,uEAF5C,SAE4C;;AAAA;;AAAA,MADrDC,KACqD,uEAD7C,2BAC6C;AAAA,MAArDC,SAAqD,uEAAzC,uCAAyC;;AACrD,MAAMC,iBAAkBH,WAAW,SAAZ,GAAyB,IAAzB,GAAgC,YAAvD;;AAEA,0CACMA,MADN,2BACqC,sBAASI,aAAT,EAAgB;AACjD,mBAAe,oBAACC,QAAD;AAAA,aAAc,CAAC,mBAAMJ,KAAN,EAAaI,QAAb,CAAf;AAAA;AADkC,GAAhB,CADrC,yBAIE,YAJF,EAIgB;AACZ,gBAAYH,SADA;AAEZ,kBAAc;AACZI,oBAAc;AADF;AAFF,GAJhB,yBAUMH,cAVN,iBAUmC;AAC/B,mBAAe,oBAACE,QAAD;AAAA,aAAc,CAAC,CAAC,mBAAMJ,KAAN,EAAaI,QAAb,CAAhB;AAAA,KADgB;AAE/B,gBAAY,gBAFmB;AAG/B,wBAAoB;AAClBE,eAAS;AADS,KAHW;AAM/B,kBAAc;AACZC,mBAAa;AADD;AANiB,GAVnC;AAqBD","file":"personId.js","sourcesContent":["import _ from 'lodash/fp';\n\nimport ssnUI from './ssn';\n\nexport function schema(currentSchema) {\n return {\n type: 'object',\n properties: {\n veteranSocialSecurityNumber: currentSchema.definitions.ssn,\n 'view:noSSN': {\n type: 'boolean'\n },\n vaFileNumber: currentSchema.definitions.vaFileNumber\n }\n };\n}\n\nexport function uiSchema(\n prefix = 'veteran',\n noSSN = 'view:veteranId.view:noSSN',\n labelText = 'I don’t have a Social Security number') {\n const fileNumberProp = (prefix === 'veteran') ? 'va' : 'relativeVa';\n\n return {\n [`${prefix}SocialSecurityNumber`]: _.assign(ssnUI, {\n 'ui:required': (formData) => !_.get(noSSN, formData)\n }),\n 'view:noSSN': {\n 'ui:title': labelText,\n 'ui:options': {\n hideOnReview: true\n }\n },\n [`${fileNumberProp}FileNumber`]: {\n 'ui:required': (formData) => !!_.get(noSSN, formData),\n 'ui:title': 'VA file number',\n 'ui:errorMessages': {\n pattern: 'Your VA file number must be between 7 to 9 digits'\n },\n 'ui:options': {\n expandUnder: 'view:noSSN'\n }\n }\n };\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/phone.js b/lib/js/definitions/phone.js index d1b92f4..79e4003 100644 --- a/lib/js/definitions/phone.js +++ b/lib/js/definitions/phone.js @@ -35,4 +35,5 @@ function uiSchema() { inputType: 'tel' } }; -} \ No newline at end of file +} +//# sourceMappingURL=phone.js.map \ No newline at end of file diff --git a/lib/js/definitions/phone.js.map b/lib/js/definitions/phone.js.map new file mode 100644 index 0000000..a357b62 --- /dev/null +++ b/lib/js/definitions/phone.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/phone.js"],"names":["uiSchema","title","PhoneNumberWidget","PhoneNumberReviewWidget","pattern","widgetClassNames","inputType"],"mappings":";;;;;kBAQwBA,Q;;AARxB;;;;AACA;;;;;;AAEA;;;;;AAKe,SAASA,QAAT,GAAmC;AAAA,MAAjBC,KAAiB,uEAAT,OAAS;;AAChD,SAAO;AACL,iBAAaC,2BADR;AAEL,uBAAmBC,2BAFd;AAGL,gBAAYF,KAHP;AAIL,wBAAoB;AAClBG,eAAS;AADS,KAJf;AAOL,kBAAc;AACZC,wBAAkB,kCADN;AAEZC,iBAAW;AAFC;AAPT,GAAP;AAYD","file":"phone.js","sourcesContent":["import PhoneNumberWidget from '../widgets/PhoneNumberWidget';\nimport PhoneNumberReviewWidget from '../review/PhoneNumberWidget';\n\n/*\n * Phone uiSchema\n *\n * @param {string} title - The field label, defaults to Phone\n */\nexport default function uiSchema(title = 'Phone') {\n return {\n 'ui:widget': PhoneNumberWidget,\n 'ui:reviewWidget': PhoneNumberReviewWidget,\n 'ui:title': title,\n 'ui:errorMessages': {\n pattern: 'Phone numbers must be 10 digits'\n },\n 'ui:options': {\n widgetClassNames: 'home-phone va-input-medium-large',\n inputType: 'tel'\n }\n };\n}\n"]} \ No newline at end of file diff --git a/lib/js/definitions/ssn.js b/lib/js/definitions/ssn.js index 16a4793..65fe4ae 100644 --- a/lib/js/definitions/ssn.js +++ b/lib/js/definitions/ssn.js @@ -29,4 +29,5 @@ var uiSchema = { } }; -exports.default = uiSchema; \ No newline at end of file +exports.default = uiSchema; +//# sourceMappingURL=ssn.js.map \ No newline at end of file diff --git a/lib/js/definitions/ssn.js.map b/lib/js/definitions/ssn.js.map new file mode 100644 index 0000000..f1ad8d7 --- /dev/null +++ b/lib/js/definitions/ssn.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/ssn.js"],"names":["uiSchema","SSNWidget","SSNReviewWidget","widgetClassNames","validateSSN","pattern"],"mappings":";;;;;;AAAA;;AACA;;;;AACA;;;;;;AAEA,IAAMA,WAAW;AACf,eAAaC,mBADE;AAEf,qBAAmBC,mBAFJ;AAGf,cAAY,wBAHG;AAIf,gBAAc;AACZC,sBAAkB;AADN,GAJC;AAOf,oBAAkB,CAChBC,uBADgB,CAPH;AAUf,sBAAoB;AAClBC,aAAS;AADS;AAVL,CAAjB;;kBAeeL,Q","file":"ssn.js","sourcesContent":["import { validateSSN } from '../validation';\nimport SSNWidget from '../widgets/SSNWidget';\nimport SSNReviewWidget from '../review/SSNWidget';\n\nconst uiSchema = {\n 'ui:widget': SSNWidget,\n 'ui:reviewWidget': SSNReviewWidget,\n 'ui:title': 'Social Security number',\n 'ui:options': {\n widgetClassNames: 'usa-input-medium'\n },\n 'ui:validations': [\n validateSSN\n ],\n 'ui:errorMessages': {\n pattern: 'Please enter a valid 9 digit SSN (dashes allowed)'\n }\n};\n\nexport default uiSchema;\n"]} \ No newline at end of file diff --git a/lib/js/definitions/year.js b/lib/js/definitions/year.js index ae2195b..3ac2e5c 100644 --- a/lib/js/definitions/year.js +++ b/lib/js/definitions/year.js @@ -24,4 +24,5 @@ var uiSchema = { } }; -exports.default = uiSchema; \ No newline at end of file +exports.default = uiSchema; +//# sourceMappingURL=year.js.map \ No newline at end of file diff --git a/lib/js/definitions/year.js.map b/lib/js/definitions/year.js.map new file mode 100644 index 0000000..4d57996 --- /dev/null +++ b/lib/js/definitions/year.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/definitions/year.js"],"names":["ReviewWidget","uiSchema","TextWidget","validateCurrentOrPastYear","type","widgetClassNames"],"mappings":";;;;;;AAAA;;AACA;;IAAYA,Y;;;;AAEZ,IAAMC,WAAW;AACf,cAAY,MADG;AAEf,qBAAmBD,aAAaE,UAFjB;AAGf,oBAAkB,CAChBC,qCADgB,CAHH;AAMf,sBAAoB;AAClBC,UAAM;AADY,GANL;AASf,gBAAc;AACZC,sBAAkB;AADN;AATC,CAAjB;;kBAceJ,Q","file":"year.js","sourcesContent":["import { validateCurrentOrPastYear } from '../validation';\nimport * as ReviewWidget from '../review/widgets';\n\nconst uiSchema = {\n 'ui:title': 'Year',\n 'ui:reviewWidget': ReviewWidget.TextWidget,\n 'ui:validations': [\n validateCurrentOrPastYear\n ],\n 'ui:errorMessages': {\n type: 'Please provide a valid year'\n },\n 'ui:options': {\n widgetClassNames: 'usa-input-medium'\n }\n};\n\nexport default uiSchema;\n"]} \ No newline at end of file diff --git a/lib/js/fields/ArrayField.js b/lib/js/fields/ArrayField.js index d63bafb..f5bc0a5 100644 --- a/lib/js/fields/ArrayField.js +++ b/lib/js/fields/ArrayField.js @@ -451,4 +451,5 @@ ArrayField.propTypes = { definitions: _propTypes2.default.object.isRequired, formContext: _propTypes2.default.object.isRequired }) -}; \ No newline at end of file +}; +//# sourceMappingURL=ArrayField.js.map \ No newline at end of file diff --git a/lib/js/fields/ArrayField.js.map b/lib/js/fields/ArrayField.js.map new file mode 100644 index 0000000..63f7bae --- /dev/null +++ b/lib/js/fields/ArrayField.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/fields/ArrayField.jsx"],"names":["Element","Scroll","scroller","ArrayField","props","uiSchema","viewField","Error","idSchema","$id","state","editing","formData","map","onItemChange","bind","handleAdd","handleEdit","handleUpdate","handleRemove","scrollToTop","scrollToRow","schema","registry","minItems","length","onChange","Array","fill","additionalItems","undefined","definitions","nextProps","nextState","indexToChange","value","newItems","index","items","setTimeout","scrollTo","window","Forms","scroll","duration","delay","smooth","offset","id","status","setState","errorSchema","touched","formContext","setTouched","lastIndex","newEditing","val","editingState","reviewMode","newState","concat","newFormData","indexToRemove","filter","disabled","readonly","onBlur","fields","TitleField","SchemaField","uiOptions","ViewField","title","hideTitle","description","textDescription","DescriptionField","isReviewMode","hasTitleOrDescription","containerClassNames","item","itemSchema","getItemSchema","itemIdPrefix","itemIdSchema","isLast","isEditing","notLastOrMultipleRows","itemName","React","Component","propTypes","PropTypes","object","isRequired","requiredSchema","func","array","bool","shape","widgets","objectOf","oneOfType"],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;AAEA;;;;AACA;;;;AAEA;;AAMA;;AACA;;AACA;;;;;;;;;;AAEA,IAAMA,UAAUC,sBAAOD,OAAvB;AAC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,EAE9CJ,oBAAUC,MAFoC,CAApB,CAAnB,EAGLC,UAJoB;AAKxB3B,YAAQyB,oBAAUS,QAAV,CAAmBT,oBAAUI,IAA7B,EAAmCF,UALnB;AAMxBhE,iBAAa8D,oBAAUC,MAAV,CAAiBC,UANN;AAOxB1C,iBAAawC,oBAAUC,MAAV,CAAiBC;AAPN,GAAhB;AAXW,CAAvB","file":"ArrayField.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport _ from 'lodash/fp';\nimport classNames from 'classnames';\nimport Scroll from 'react-scroll';\n\nimport {\n toIdSchema,\n getDefaultFormState,\n deepEquals\n} from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';\n\nimport { scrollToFirstError } from '../utilities/ui';\nimport { setArrayRecordTouched } from '../helpers';\nimport { errorSchemaIsValid } from '../validation';\n\nconst Element = Scroll.Element;\nconst scroller = Scroll.scroller;\n\n/* Non-review growable table (array) field */\nexport default class ArrayField extends React.Component {\n constructor(props) {\n super(props);\n // Throw an error if there’s no viewField (should be React component)\n if (typeof this.props.uiSchema['ui:options'].viewField !== 'function') {\n throw new Error(`No viewField found in uiSchema for ArrayField ${this.props.idSchema.$id}.`);\n }\n\n /*\n * We’re keeping the editing state in local state because it’s easier to manage and\n * doesn’t need to persist from page to page\n */\n\n this.state = {\n editing: props.formData ? props.formData.map(() => false) : [true]\n };\n\n this.onItemChange = this.onItemChange.bind(this);\n this.handleAdd = this.handleAdd.bind(this);\n this.handleEdit = this.handleEdit.bind(this);\n this.handleUpdate = this.handleUpdate.bind(this);\n this.handleRemove = this.handleRemove.bind(this);\n this.scrollToTop = this.scrollToTop.bind(this);\n this.scrollToRow = this.scrollToRow.bind(this);\n }\n\n // This fills in an empty item in the array if it has minItems set\n // so that schema validation runs against the fields in the first item\n // in the array. This shouldn’t be necessary, but there’s a fix in rjsf\n // that has not been released yet\n componentDidMount() {\n const { schema, formData = [], registry } = this.props;\n if (schema.minItems > 0 && formData.length === 0) {\n this.props.onChange(Array(schema.minItems).fill(\n getDefaultFormState(schema.additionalItems, undefined, registry.definitions)\n ));\n }\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n return !deepEquals(this.props, nextProps) || nextState !== this.state;\n }\n\n onItemChange(indexToChange, value) {\n const newItems = _.set(indexToChange, value, this.props.formData || []);\n this.props.onChange(newItems);\n }\n\n getItemSchema(index) {\n const schema = this.props.schema;\n if (schema.items.length > index) {\n return schema.items[index];\n }\n\n return schema.additionalItems;\n }\n\n scrollToTop() {\n setTimeout(() => {\n scroller.scrollTo(`topOfTable_${this.props.idSchema.$id}`, window.Forms.scroll || {\n duration: 500,\n delay: 0,\n smooth: true,\n offset: -60\n });\n }, 100);\n }\n\n scrollToRow(id) {\n setTimeout(() => {\n scroller.scrollTo(`table_${id}`, window.Forms.scroll || {\n duration: 500,\n delay: 0,\n smooth: true,\n offset: 0\n });\n }, 100);\n }\n\n /*\n * Clicking edit on an item that’s not last and so is in view mode\n */\n handleEdit(index, status = true) {\n this.setState(_.set(['editing', index], status, this.state), () => {\n this.scrollToRow(`${this.props.idSchema.$id}_${index}`);\n });\n }\n\n /*\n * Clicking Update on an item that’s not last and is in edit mode\n */\n handleUpdate(index) {\n if (errorSchemaIsValid(this.props.errorSchema[index])) {\n this.setState(_.set(['editing', index], false, this.state), () => {\n this.scrollToTop();\n });\n } else {\n // Set all the fields for this item as touched, so we show errors\n const touched = setArrayRecordTouched(this.props.idSchema.$id, index);\n this.props.formContext.setTouched(touched, () => {\n scrollToFirstError();\n });\n }\n }\n\n /*\n * Clicking Add Another\n */\n handleAdd() {\n const lastIndex = this.props.formData.length - 1;\n if (errorSchemaIsValid(this.props.errorSchema[lastIndex])) {\n // When we add another, we want to change the editing state of the currently\n // last item, but not ones above it\n const newEditing = this.state.editing.map((val, index) => {\n return (index + 1) === this.state.editing.length\n ? false\n : val;\n });\n const editingState = this.props.uiSchema['ui:options'].reviewMode;\n const newState = _.assign(this.state, {\n editing: newEditing.concat(!!editingState)\n });\n this.setState(newState, () => {\n const newFormData = this.props.formData.concat(getDefaultFormState(this.props.schema.additionalItems, undefined, this.props.registry.definitions) || {});\n this.props.onChange(newFormData);\n this.scrollToRow(`${this.props.idSchema.$id}_${lastIndex + 1}`);\n });\n } else {\n const touched = setArrayRecordTouched(this.props.idSchema.$id, lastIndex);\n this.props.formContext.setTouched(touched, () => {\n scrollToFirstError();\n });\n }\n }\n\n /*\n * Clicking Remove on an item in edit mode\n */\n handleRemove(indexToRemove) {\n const newItems = this.props.formData.filter((val, index) => index !== indexToRemove);\n const newState = _.assign(this.state, {\n editing: this.state.editing.filter((val, index) => index !== indexToRemove),\n });\n this.props.onChange(newItems);\n this.setState(newState, () => {\n this.scrollToTop();\n });\n }\n\n render() {\n const {\n uiSchema,\n errorSchema,\n idSchema,\n formData,\n disabled,\n readonly,\n registry,\n formContext,\n onBlur,\n schema\n } = this.props;\n const definitions = registry.definitions;\n const { TitleField, SchemaField } = registry.fields;\n\n const uiOptions = uiSchema['ui:options'] || {};\n const ViewField = uiOptions.viewField;\n const title = uiSchema['ui:title'] || schema.title;\n const hideTitle = !!uiOptions.title;\n const description = uiSchema['ui:description'];\n const textDescription = typeof description === 'string' ? description : null;\n const DescriptionField = typeof description === 'function'\n ? uiSchema['ui:description']\n : null;\n const isReviewMode = uiSchema['ui:options'].reviewMode;\n const hasTitleOrDescription = (!!title && !hideTitle) || !!description;\n\n // if we have form data, use that, otherwise use an array with a single default object\n const items = (formData && formData.length)\n ? formData\n : [getDefaultFormState(schema, undefined, registry.definitions)];\n\n const containerClassNames = classNames({\n 'schemaform-field-container': true,\n 'schemaform-block': hasTitleOrDescription\n });\n\n return (\n
\n {hasTitleOrDescription &&
\n {title && !hideTitle\n ? : null}\n {textDescription &&

{textDescription}

}\n {DescriptionField && }\n {!textDescription && !DescriptionField && description}\n
}\n
\n \n {items.map((item, index) => {\n // This is largely copied from the default ArrayField\n const itemSchema = this.getItemSchema(index);\n const itemIdPrefix = `${idSchema.$id}_${index}`;\n const itemIdSchema = toIdSchema(itemSchema, itemIdPrefix, definitions);\n const isLast = items.length === (index + 1);\n const isEditing = this.state.editing[index];\n const notLastOrMultipleRows = !isLast || items.length > 1;\n\n if (isReviewMode ? isEditing : isLast || isEditing) {\n return (\n
\n \n
\n
\n {isLast && items.length > 1 && uiSchema['ui:options'].itemName\n ?
New {uiSchema['ui:options'].itemName}
\n : null}\n
\n this.onItemChange(index, value)}\n onBlur={onBlur}\n registry={this.props.registry}\n required={false}\n disabled={disabled}\n readonly={readonly}/>\n
\n {notLastOrMultipleRows &&\n
\n
\n {!isLast && }\n
\n
\n \n
\n
}\n
\n
\n
\n );\n }\n return (\n
\n
\n
\n this.handleEdit(index)}/>\n
\n
\n \n
\n
\n
\n );\n })}\n \n Add Another {uiOptions.itemName}\n \n
\n
\n );\n }\n}\n\nArrayField.propTypes = {\n schema: PropTypes.object.isRequired,\n uiSchema: PropTypes.object,\n errorSchema: PropTypes.object,\n requiredSchema: PropTypes.object,\n idSchema: PropTypes.object,\n onChange: PropTypes.func.isRequired,\n onBlur: PropTypes.func,\n formData: PropTypes.array,\n disabled: PropTypes.bool,\n readonly: PropTypes.bool,\n registry: PropTypes.shape({\n widgets: PropTypes.objectOf(PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.object,\n ])).isRequired,\n fields: PropTypes.objectOf(PropTypes.func).isRequired,\n definitions: PropTypes.object.isRequired,\n formContext: PropTypes.object.isRequired,\n })\n};\n"]} \ No newline at end of file diff --git a/lib/js/fields/AutosuggestField.js b/lib/js/fields/AutosuggestField.js index 97f20ee..3ab03b5 100644 --- a/lib/js/fields/AutosuggestField.js +++ b/lib/js/fields/AutosuggestField.js @@ -316,4 +316,5 @@ var _initialiseProps = function _initialiseProps() { }; }; -exports.default = AutosuggestField; \ No newline at end of file +exports.default = AutosuggestField; +//# sourceMappingURL=AutosuggestField.js.map \ No newline at end of file diff --git a/lib/js/fields/AutosuggestField.js.map b/lib/js/fields/AutosuggestField.js.map new file mode 100644 index 0000000..694144f --- /dev/null +++ b/lib/js/fields/AutosuggestField.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/fields/AutosuggestField.jsx"],"names":["ESCAPE_KEY","getInput","input","uiSchema","schema","widget","label","uiOptions","labels","index","enum","indexOf","enumNames","AutosuggestField","props","formData","options","suggestions","getOptions","useEnum","map","id","getSuggestions","debounceRate","undefined","debouncedGetOptions","state","formContext","reviewMode","unmounted","cancel","idSchema","$id","readOnlyData","type","handleChange","handleInputValueChange","handleBlur","item","getInputProps","getItemProps","isOpen","selectedItem","highlightedIndex","name","className","onBlur","onKeyDown","handleKeyDown","React","Component","inputValue","then","setOptions","setState","value","slice","maxOptions","getFormData","suggestion","freeInput","queryForResults","length","matchingItem","find","onChange","event","keyCode"],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;AAEA;;;;AACA;;;;AAEA;;;;AACA;;;;;;;;;;;;AAEA,IAAMA,aAAa,EAAnB;;AAEA,SAASC,QAAT,CAAkBC,KAAlB,EAAyBC,QAAzB,EAAmCC,MAAnC,EAA2C;AACzC,MAAIF,SAASA,MAAMG,MAAN,KAAiB,aAA9B,EAA6C;AAC3C,WAAOH,MAAMI,KAAb;AACD;;AAED,MAAI,QAAOJ,KAAP,yCAAOA,KAAP,OAAiB,QAAjB,IAA6BA,KAAjC,EAAwC;AACtC,QAAMK,YAAYJ,SAAS,YAAT,CAAlB;AACA;AACA;AACA;AACA,QAAI,CAACI,UAAUC,MAAf,EAAuB;AACrB,aAAON,KAAP;AACD;;AAED,QAAIK,UAAUC,MAAV,CAAiBN,KAAjB,CAAJ,EAA6B;AAC3B,aAAOK,UAAUC,MAAV,CAAiBN,KAAjB,CAAP;AACD;;AAED,QAAMO,QAAQL,OAAOM,IAAP,CAAYC,OAAZ,CAAoBT,KAApB,KAA8B,CAA5C;AACA,QAAIE,OAAOQ,SAAP,IAAoBH,SAAS,CAAjC,EAAoC;AAClC,aAAOF,UAAUC,MAAV,CAAiBN,KAAjB,KAA2BE,OAAOQ,SAA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QAAL,CAAc;AACZpD,eAAOiD,UADK;AAEZlC,qBAAa,OAAKK,cAAL,CAAoB,OAAKI,KAAL,CAAWV,OAA/B,EAAwCmC,UAAxC;AAFD,OAAd;AAID,KArBD,MAqBO,IAAIA,eAAe,EAAnB,EAAuB;AAC5B,aAAKrC,KAAL,CAAWmD,QAAX;AACA,aAAKX,QAAL,CAAc;AACZpD,eAAOiD,UADK;AAEZlC,qBAAa,OAAKK,cAAL,CAAoB,OAAKI,KAAL,CAAWV,OAA/B,EAAwCmC,UAAxC;AAFD,OAAd;AAID;AACF,G;;OAEDhB,Y,GAAe,UAACO,YAAD,EAAkB;AAC/B,QAAMa,QAAQ,OAAKG,WAAL,CAAiBhB,YAAjB,CAAd;AACA,WAAK5B,KAAL,CAAWmD,QAAX,CAAoBV,KAApB;AACA,QAAI,OAAK7B,KAAL,CAAWxB,KAAX,KAAqBwC,aAAapC,KAAtC,EAA6C;AAC3C,aAAKgD,QAAL,CAAc;AACZpD,eAAOwC,aAAapC;AADR,OAAd;AAGD;AACF,G;;OAED0C,a,GAAgB,UAACkB,KAAD,EAAW;AACzB,QAAIA,MAAMC,OAAN,KAAkBnE,UAAtB,EAAkC;AAChC,aAAKsD,QAAL,CAAc,EAAEpD,OAAO,EAAT,EAAd;AACD;AACF,G;;OAEDmC,U,GAAa,YAAM;AACjB,WAAKvB,KAAL,CAAWgC,MAAX,CAAkB,OAAKhC,KAAL,CAAWiB,QAAX,CAAoBC,GAAtC;AACD,G;;;kBA9HkBnB,gB","file":"AutosuggestField.js","sourcesContent":["import React from 'react';\nimport _ from 'lodash/fp';\nimport Downshift from 'downshift';\nimport classNames from 'classnames';\n\nimport debounce from '../utilities/data/debounce';\nimport sortListByFuzzyMatch from '../utilities/fuzzy-matching';\n\nconst ESCAPE_KEY = 27;\n\nfunction getInput(input, uiSchema, schema) {\n if (input && input.widget === 'autosuggest') {\n return input.label;\n }\n\n if (typeof input !== 'object' && input) {\n const uiOptions = uiSchema['ui:options'];\n // When using this field in an array item, editing the item will throw an error\n // if there uiOptions.label is undefined (as when we queryForResults), so we\n // have to have this safety valve\n if (!uiOptions.labels) {\n return input;\n }\n\n if (uiOptions.labels[input]) {\n return uiOptions.labels[input];\n }\n\n const index = schema.enum.indexOf(input) >= 0;\n if (schema.enumNames && index >= 0) {\n return uiOptions.labels[input] || schema.enumNames[index];\n }\n }\n\n return '';\n}\n\nexport default class AutosuggestField extends React.Component {\n constructor(props) {\n super(props);\n const { uiSchema, schema, formData } = props;\n const input = getInput(formData, uiSchema, schema);\n const uiOptions = uiSchema['ui:options'];\n\n let options = [];\n let suggestions = [];\n\n if (!uiOptions.getOptions) {\n this.useEnum = true;\n options = schema.enum.map((id, index) => {\n return {\n id,\n label: uiOptions.labels[id] || schema.enumNames[index]\n };\n });\n suggestions = this.getSuggestions(options, input);\n }\n\n const debounceRate = uiOptions.debounceRate === undefined ? 1000 : uiOptions.debounceRate;\n this.debouncedGetOptions = debounce(debounceRate, this.getOptions);\n\n this.state = {\n options,\n input,\n suggestions\n };\n }\n\n componentDidMount() {\n if (!this.props.formContext.reviewMode) {\n this.getOptions();\n }\n }\n\n componentWillUnmount() {\n this.unmounted = true;\n this.debouncedGetOptions.cancel();\n }\n\n getOptions = (inputValue) => {\n const getOptions = this.props.uiSchema['ui:options'].getOptions;\n if (getOptions) {\n getOptions(inputValue).then(this.setOptions);\n }\n }\n\n setOptions = (options) => {\n if (!this.unmounted) {\n this.setState({ options, suggestions: this.getSuggestions(options, this.state.input) });\n }\n }\n\n getSuggestions = (options, value) => {\n if (value) {\n const uiOptions = this.props.uiSchema['ui:options'];\n return sortListByFuzzyMatch(value, options).slice(0, uiOptions.maxOptions);\n }\n\n return options;\n }\n\n getFormData = (suggestion) => {\n if (this.useEnum) {\n return suggestion.id;\n }\n\n // When freeInput is true, we'll return the label to the api instead of the id\n if (this.props.uiSchema['ui:options'].freeInput) {\n return suggestion.label;\n }\n\n return _.set('widget', 'autosuggest', suggestion);\n }\n\n handleInputValueChange = (inputValue) => {\n if (inputValue !== this.state.input) {\n const uiOptions = this.props.uiSchema['ui:options'];\n if (uiOptions.queryForResults) {\n this.debouncedGetOptions(inputValue);\n }\n\n let item = { widget: 'autosuggest', label: inputValue };\n // once the input is long enough, check for exactly matching strings so that we don't\n // force a user to click on an item when they've typed an exact match of a label\n if (inputValue && inputValue.length > 3) {\n const matchingItem = this.state.suggestions.find(suggestion => suggestion.label === inputValue);\n if (matchingItem) {\n item = this.getFormData(matchingItem);\n }\n }\n\n this.props.onChange((this.props.uiSchema['ui:options'].freeInput || this.useEnum) ? inputValue : item);\n this.setState({\n input: inputValue,\n suggestions: this.getSuggestions(this.state.options, inputValue)\n });\n } else if (inputValue === '') {\n this.props.onChange();\n this.setState({\n input: inputValue,\n suggestions: this.getSuggestions(this.state.options, inputValue)\n });\n }\n }\n\n handleChange = (selectedItem) => {\n const value = this.getFormData(selectedItem);\n this.props.onChange(value);\n if (this.state.input !== selectedItem.label) {\n this.setState({\n input: selectedItem.label,\n });\n }\n }\n\n handleKeyDown = (event) => {\n if (event.keyCode === ESCAPE_KEY) {\n this.setState({ input: '' });\n }\n }\n\n handleBlur = () => {\n this.props.onBlur(this.props.idSchema.$id);\n }\n\n render() {\n const { idSchema, formContext, formData, uiSchema, schema } = this.props;\n const id = idSchema.$id;\n\n if (formContext.reviewMode) {\n const readOnlyData = {getInput(formData, uiSchema, schema)};\n\n // If this is an non-object field then the label will\n // be included by ReviewFieldTemplate\n if (schema.type !== 'object') {\n return readOnlyData;\n }\n\n return (\n
\n
{this.props.uiSchema['ui:title']}
\n
{readOnlyData}
\n
\n );\n }\n\n return (\n {\n if (typeof item === 'string') {\n return item;\n }\n\n return item.label;\n }}\n render={({\n getInputProps,\n getItemProps,\n isOpen,\n selectedItem,\n highlightedIndex\n }) => (\n
\n \n {isOpen && (\n
\n {this.state.suggestions\n .map((item, index) => (\n \n {item.label}\n
\n ))}\n
\n )}\n
\n )}>\n \n );\n }\n}\n"]} \ No newline at end of file diff --git a/lib/js/fields/BasicArrayField.js b/lib/js/fields/BasicArrayField.js index 8560ce9..8c97ef6 100644 --- a/lib/js/fields/BasicArrayField.js +++ b/lib/js/fields/BasicArrayField.js @@ -185,4 +185,5 @@ BasicArrayField.propTypes = { }) }; -exports.default = BasicArrayField; \ No newline at end of file +exports.default = BasicArrayField; +//# sourceMappingURL=BasicArrayField.js.map \ No newline at end of file diff --git a/lib/js/fields/BasicArrayField.js.map b/lib/js/fields/BasicArrayField.js.map new file mode 100644 index 0000000..c02295d --- /dev/null +++ b/lib/js/fields/BasicArrayField.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/fields/BasicArrayField.jsx"],"names":["Element","Scroll","BasicArrayField","shouldComponentUpdate","nextProps","nextState","props","state","onItemChange","indexToChange","value","newItems","formData","onChange","getItemSchema","index","schema","items","uiSchema","errorSchema","idSchema","disabled","readonly","registry","formContext","onBlur","definitions","fields","TitleField","SchemaField","title","hideTitle","description","textDescription","DescriptionField","hasTitleOrDescription","length","undefined","containerClassNames","$id","map","item","itemSchema","itemIdPrefix","itemIdSchema","React","Component","propTypes","PropTypes","object","isRequired","requiredSchema","func","array","bool","shape","widgets","objectOf","oneOfType"],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;AAEA;;;;AACA;;;;AAEA;;;;;;;;;;AAMA,IAAMA,UAAUC,sBAAOD,OAAvB;;IAEME,e;;;;;;;;;;;;;;wMACJC,qB,GAAwB,UAACC,SAAD,EAAYC,SAAZ,EAA0B;AAChD,aAAO,CAAC,uBAAW,MAAKC,KAAhB,EAAuBF,SAAvB,CAAD,IAAsCC,cAAc,MAAKE,KAAhE;AACD,K,QAEDC,Y,GAAe,UAACC,aAAD,EAAgBC,KAAhB,EAA0B;AACvC,UAAMC,WAAW,mBAAMF,aAAN,EAAqBC,KAArB,EAA4B,MAAKJ,KAAL,CAAWM,QAAX,IAAuB,EAAnD,CAAjB;AACA,YAAKN,KAAL,CAAWO,QAAX,CAAoBF,QAApB;AACD,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;AASE,8BAAU,KATZ;AAUE,8BAAUF,QAVZ;AAWE,8BAAUC,QAXZ;AADF;AADF;AAFF,aADF;AAqBD,WA1BA;AADH;AAXF,OADF;AA2CD;;;;EA7F2BuB,gBAAMC,S;;AAgGpC5C,gBAAgB6C,SAAhB,GAA4B;AAC1B/B,UAAQgC,oBAAUC,MAAV,CAAiBC,UADC;AAE1BhC,YAAU8B,oBAAUC,MAFM;AAG1B9B,eAAa6B,oBAAUC,MAHG;AAI1BE,kBAAgBH,oBAAUC,MAJA;AAK1B7B,YAAU4B,oBAAUC,MALM;AAM1BpC,YAAUmC,oBAAUI,IAAV,CAAeF,UANC;AAO1BzB,UAAQuB,oBAAUI,IAPQ;AAQ1BxC,YAAUoC,oBAAUK,KARM;AAS1BhC,YAAU2B,oBAAUM,IATM;AAU1BhC,YAAU0B,oBAAUM,IAVM;AAW1B/B,YAAUyB,oBAAUO,KAAV,CAAgB;AACxBC,aAASR,oBAAUS,QAAV,CAAmBT,oBAAUU,SAAV,CAAoB,CAC9CV,oBAAUI,IADoC,EAE9CJ,oBAAUC,MAFoC,CAApB,CAAnB,EAGLC,UAJoB;AAKxBvB,YAAQqB,oBAAUS,QAAV,CAAmBT,oBAAUI,IAA7B,EAAmCF,UALnB;AAMxBxB,iBAAasB,oBAAUC,MAAV,CAAiBC,UANN;AAOxB1B,iBAAawB,oBAAUC,MAAV,CAAiBC;AAPN,GAAhB;AAXgB,CAA5B;;kBAsBehD,e","file":"BasicArrayField.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport _ from 'lodash/fp';\nimport classNames from 'classnames';\nimport Scroll from 'react-scroll';\n\nimport {\n toIdSchema,\n getDefaultFormState,\n deepEquals\n} from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';\n\nconst Element = Scroll.Element;\n\nclass BasicArrayField extends React.Component {\n shouldComponentUpdate = (nextProps, nextState) => {\n return !deepEquals(this.props, nextProps) || nextState !== this.state;\n }\n\n onItemChange = (indexToChange, value) => {\n const newItems = _.set(indexToChange, value, this.props.formData || []);\n this.props.onChange(newItems);\n }\n\n getItemSchema = (index) => {\n return this.props.schema.items[index];\n }\n\n render() {\n const {\n uiSchema,\n errorSchema,\n idSchema,\n formData,\n disabled,\n readonly,\n registry,\n formContext,\n onBlur,\n schema\n } = this.props;\n const definitions = registry.definitions;\n const { TitleField, SchemaField } = registry.fields;\n\n const title = uiSchema['ui:title'] || schema.title;\n const hideTitle = !!_.get(['ui:options', 'hideTitle'], uiSchema);\n const description = uiSchema['ui:description'];\n const textDescription = typeof description === 'string' ? description : null;\n const DescriptionField = typeof description === 'function'\n ? uiSchema['ui:description']\n : null;\n const hasTitleOrDescription = (!!title && !hideTitle) || !!description;\n\n // if we have form data, use that, otherwise use an array with a single default object\n const items = (formData && formData.length)\n ? formData\n : [getDefaultFormState(schema, undefined, registry.definitions)];\n\n const containerClassNames = classNames({\n 'schemaform-field-container': true,\n 'schemaform-block': hasTitleOrDescription\n });\n\n\n return (\n
\n {hasTitleOrDescription &&
\n {title && !hideTitle\n ? : null}\n {textDescription &&

{textDescription}

}\n {DescriptionField && }\n {!textDescription && !DescriptionField && description}\n
}\n
\n {items.map((item, index) => {\n const itemSchema = this.getItemSchema(index);\n const itemIdPrefix = `${idSchema.$id}_${index}`;\n const itemIdSchema = toIdSchema(itemSchema, itemIdPrefix, definitions);\n\n return (\n
\n \n
\n
\n this.onItemChange(index, value)}\n onBlur={onBlur}\n registry={this.props.registry}\n required={false}\n disabled={disabled}\n readonly={readonly}/>\n
\n
\n
\n );\n })}\n
\n
\n );\n }\n}\n\nBasicArrayField.propTypes = {\n schema: PropTypes.object.isRequired,\n uiSchema: PropTypes.object,\n errorSchema: PropTypes.object,\n requiredSchema: PropTypes.object,\n idSchema: PropTypes.object,\n onChange: PropTypes.func.isRequired,\n onBlur: PropTypes.func,\n formData: PropTypes.array,\n disabled: PropTypes.bool,\n readonly: PropTypes.bool,\n registry: PropTypes.shape({\n widgets: PropTypes.objectOf(PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.object,\n ])).isRequired,\n fields: PropTypes.objectOf(PropTypes.func).isRequired,\n definitions: PropTypes.object.isRequired,\n formContext: PropTypes.object.isRequired,\n })\n};\n\nexport default BasicArrayField;\n"]} \ No newline at end of file diff --git a/lib/js/fields/FileField.js b/lib/js/fields/FileField.js index eb27ad9..d793312 100644 --- a/lib/js/fields/FileField.js +++ b/lib/js/fields/FileField.js @@ -326,4 +326,5 @@ FileField.propTypes = { formData: _propTypes2.default.array, disabled: _propTypes2.default.bool, readonly: _propTypes2.default.bool -}; \ No newline at end of file +}; +//# sourceMappingURL=FileField.js.map \ No newline at end of file diff --git a/lib/js/fields/FileField.js.map b/lib/js/fields/FileField.js.map new file mode 100644 index 0000000..f0361ec --- /dev/null +++ b/lib/js/fields/FileField.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/fields/FileField.jsx"],"names":["FileField","props","onAddFile","event","index","target","files","length","formData","idx","uploadRequest","formContext","uploadFile","uiSchema","updateProgress","file","onChange","onAttachmentIdChange","value","onAttachmentNameChange","progress","setState","cancelUpload","abort","removeFile","newFileList","filter","state","newProps","newFiles","idSchema","$id","isUploading","some","uploading","wasUploading","errorSchema","schema","onBlur","uiOptions","maxItems","Infinity","SchemaField","registry","fields","attachmentIdRequired","additionalItems","required","includes","buttonText","addAnotherLabel","reviewMode","undefined","map","errors","hasErrors","itemClasses","itemSchema","items","attachmentIdSchema","attachmentNameSchema","attachmentIdErrors","attachmentNameErrors","name","itemDescription","properties","attachmentId","attachmentSchema","disabled","readonly","attachmentName","e","key","document","getElementById","click","fileTypes","item","join","display","React","Component","propTypes","PropTypes","object","isRequired","requiredSchema","func","array","bool"],"mappings":";;;;;;;;;;;;;;;;;;;;AACA;;;;AACA;;;;AAEA;;;;AAEA;;;;AACA;;;;;;;;+eAPA;;;IASqBA,S;;;AACnB,qBAAYC,KAAZ,EAAmB;AAAA;;AAAA,sHACXA,KADW;;AAAA,UAqBnBC,SArBmB,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AxBjF,S;;;AAoNrBA,UAAUkF,SAAV,GAAsB;AACpB7C,UAAQ8C,oBAAUC,MAAV,CAAiBC,UADL;AAEpBxE,YAAUsE,oBAAUC,MAFA;AAGpBhD,eAAa+C,oBAAUC,MAHH;AAIpBE,kBAAgBH,oBAAUC,MAJN;AAKpBtD,YAAUqD,oBAAUC,MALA;AAMpBpE,YAAUmE,oBAAUI,IAAV,CAAeF,UANL;AAOpB/C,UAAQ6C,oBAAUI,IAPE;AAQpB/E,YAAU2E,oBAAUK,KARA;AASpBpB,YAAUe,oBAAUM,IATA;AAUpBpB,YAAUc,oBAAUM;AAVA,CAAtB","file":"FileField.js","sourcesContent":["/* eslint-disable jsx-a11y/no-noninteractive-element-to-interactive-role */\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport _ from 'lodash/fp';\nimport classNames from 'classnames';\n\nimport ProgressBar from '../components/ProgressBar';\nimport { focusElement } from '../utilities/ui';\n\nexport default class FileField extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n progress: 0\n };\n }\n\n componentWillReceiveProps(newProps) {\n const newFiles = newProps.formData || [];\n const files = this.props.formData || [];\n if (newFiles.length !== files.length) {\n focusElement(`#${newProps.idSchema.$id}_add_label`);\n }\n\n const isUploading = newFiles.some(file => file.uploading);\n const wasUploading = files.some(file => file.uploading);\n if (isUploading && !wasUploading) {\n this.setState({ progress: 0 });\n }\n }\n\n onAddFile = (event, index = null) => {\n if (event.target.files && event.target.files.length) {\n const files = this.props.formData || [];\n let idx = index;\n if (idx === null) {\n idx = files.length === 0 ? 0 : files.length;\n }\n this.uploadRequest = this.props.formContext.uploadFile(\n event.target.files[0],\n this.props.uiSchema['ui:options'],\n this.updateProgress,\n (file) => {\n this.props.onChange(_.set(idx, file, this.props.formData || []));\n this.uploadRequest = null;\n },\n () => {\n this.uploadRequest = null;\n }\n );\n }\n }\n\n onAttachmentIdChange = (index, value) => {\n if (!value) {\n this.props.onChange(_.unset([index, 'attachmentId'], this.props.formData));\n } else {\n this.props.onChange(_.set([index, 'attachmentId'], value, this.props.formData));\n }\n }\n\n onAttachmentNameChange = (index, value) => {\n if (!value) {\n this.props.onChange(_.unset([index, 'name'], this.props.formData));\n } else {\n this.props.onChange(_.set([index, 'name'], value, this.props.formData));\n }\n }\n\n updateProgress = (progress) => {\n this.setState({ progress });\n }\n\n cancelUpload = (index) => {\n if (this.uploadRequest) {\n this.uploadRequest.abort();\n }\n this.removeFile(index);\n }\n\n removeFile = (index) => {\n const newFileList = this.props.formData.filter((file, idx) => index !== idx);\n if (!newFileList.length) {\n this.props.onChange();\n } else {\n this.props.onChange(newFileList);\n }\n }\n\n render() {\n const {\n uiSchema,\n errorSchema,\n idSchema,\n formData,\n schema,\n formContext,\n onBlur\n } = this.props;\n\n const uiOptions = uiSchema['ui:options'];\n const files = formData || [];\n const maxItems = schema.maxItems || Infinity;\n const SchemaField = this.props.registry.fields.SchemaField;\n const attachmentIdRequired = schema.additionalItems.required\n ? schema.additionalItems.required.includes('attachmentId')\n : false;\n\n const isUploading = files.some(file => file.uploading);\n let { buttonText = 'Upload' } = uiOptions;\n if (files.length > 0) buttonText = uiOptions.addAnotherLabel;\n\n return (\n
\n {files.length > 0 &&\n
    \n {files.map((file, index) => {\n const errors = _.get([index, '__errors'], errorSchema) || [];\n const hasErrors = errors.length > 0;\n const itemClasses = classNames('va-growable-background', {\n 'schemaform-file-error usa-input-error': hasErrors && !file.uploading\n });\n const itemSchema = schema.items[index];\n const attachmentIdSchema = {\n $id: `${idSchema.$id}_${index}_atachmentId`\n };\n const attachmentNameSchema = {\n $id: `${idSchema.$id}_${index}_atachmentName`\n };\n const attachmentIdErrors = _.get([index, 'attachmentId'], errorSchema);\n const attachmentNameErrors = _.get([index, 'name'], errorSchema);\n\n return (\n
  • \n {file.uploading &&\n
    \n {file.name}
    \n \n \n
    \n }\n {!file.uploading &&

    {uiOptions.itemDescription}

    }\n {!file.uploading && {file.name}}\n {!hasErrors && _.get('properties.attachmentId', itemSchema) &&\n
    \n this.onAttachmentIdChange(index, value)}\n onBlur={onBlur}\n registry={this.props.registry}\n disabled={this.props.disabled}\n readonly={this.props.readonly}/>\n
    }\n {!hasErrors && uiOptions.attachmentName &&\n
    \n this.onAttachmentNameChange(index, value)}\n onBlur={onBlur}\n registry={this.props.registry}\n disabled={this.props.disabled}\n readonly={this.props.readonly}/>\n
    }\n {!file.uploading && hasErrors && {errors[0]}}\n {!file.uploading &&
    \n \n
    }\n
  • \n );\n })}\n
\n }\n {(maxItems === null || files.length < maxItems) && !isUploading &&\n
\n {\n if (e.key === 'Enter') {\n document.getElementById(idSchema.$id).click();\n }\n }}\n tabIndex=\"0\"\n id={`${idSchema.$id}_add_label`}\n htmlFor={idSchema.$id}\n className=\"usa-button usa-button-secondary\">\n {buttonText}\n \n `.${item}`).join(',')}\n style={{ display: 'none' }}\n id={idSchema.$id}\n name={idSchema.$id}\n onChange={this.onAddFile}/>\n
\n }\n
\n );\n }\n}\n\nFileField.propTypes = {\n schema: PropTypes.object.isRequired,\n uiSchema: PropTypes.object,\n errorSchema: PropTypes.object,\n requiredSchema: PropTypes.object,\n idSchema: PropTypes.object,\n onChange: PropTypes.func.isRequired,\n onBlur: PropTypes.func,\n formData: PropTypes.array,\n disabled: PropTypes.bool,\n readonly: PropTypes.bool\n};\n"]} \ No newline at end of file diff --git a/lib/js/fields/FullNameField.js b/lib/js/fields/FullNameField.js index e02db46..a76b423 100644 --- a/lib/js/fields/FullNameField.js +++ b/lib/js/fields/FullNameField.js @@ -31,4 +31,5 @@ function FullNameField(_ref) { suffix && ', ' + suffix ) ); -} \ No newline at end of file +} +//# sourceMappingURL=FullNameField.js.map \ No newline at end of file diff --git a/lib/js/fields/FullNameField.js.map b/lib/js/fields/FullNameField.js.map new file mode 100644 index 0000000..1c9298a --- /dev/null +++ b/lib/js/fields/FullNameField.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/fields/FullNameField.jsx"],"names":["FullNameField","formData","first","middle","last","suffix"],"mappings":";;;;;kBAEwBA,a;;AAFxB;;;;;;AAEe,SAASA,aAAT,OAAqC;AAAA,MAAZC,QAAY,QAAZA,QAAY;AAAA,MAC1CC,KAD0C,GACVD,QADU,CAC1CC,KAD0C;AAAA,MACnCC,MADmC,GACVF,QADU,CACnCE,MADmC;AAAA,MAC3BC,IAD2B,GACVH,QADU,CAC3BG,IAD2B;AAAA,MACrBC,MADqB,GACVJ,QADU,CACrBI,MADqB;;AAElD,SACE;AAAA;AAAA;AACE;AAAA;AAAA;AAASH,WAAT;AAAA;AAAiBC,gBAAaA,MAAb,MAAjB;AAAyCC,UAAzC;AAA+CC,uBAAeA;AAA9D;AADF,GADF;AAKD","file":"FullNameField.js","sourcesContent":["import React from 'react';\n\nexport default function FullNameField({ formData }) {\n const { first, middle, last, suffix } = formData;\n return (\n
\n {first} {middle && `${middle} `}{last}{suffix && `, ${suffix}`}\n
\n );\n}\n"]} \ No newline at end of file diff --git a/lib/js/fields/ObjectField.js b/lib/js/fields/ObjectField.js index 11adcd3..c45fa32 100644 --- a/lib/js/fields/ObjectField.js +++ b/lib/js/fields/ObjectField.js @@ -345,4 +345,5 @@ ObjectField.propTypes = { }) }; -exports.default = ObjectField; \ No newline at end of file +exports.default = ObjectField; +//# sourceMappingURL=ObjectField.js.map \ No newline at end of file diff --git a/lib/js/fields/ObjectField.js.map b/lib/js/fields/ObjectField.js.map new file mode 100644 index 0000000..d8232f6 --- /dev/null +++ b/lib/js/fields/ObjectField.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/fields/ObjectField.jsx"],"names":["setFirstFields","id","containers","document","concat","Array","from","querySelectorAll","forEach","fields","block","length","classList","add","ObjectField","props","state","getStateFromProps","onPropertyChange","bind","onPropertyBlur","isRequired","SchemaField","registry","orderedProperties","orderAndFilterProperties","schema","uiSchema","idSchema","$id","nextProps","name","value","formData","Object","keys","undefined","definitions","onChange","path","onBlur","properties","filteredProperties","filter","prop","groupedProperties","item","expandUnderField","schemaRequired","isArray","required","indexOf","errorSchema","disabled","readonly","formContext","TitleField","uiOptions","showFieldLabel","fieldsetClassNames","classNames","title","CustomTitleField","description","textDescription","DescriptionField","hasTitleOrDescription","isRoot","containerClassNames","renderProp","propName","fieldContent","map","objectFields","index","first","rest","visible","React","Component","defaultProps","propTypes","PropTypes","object","func","bool","shape","widgets","objectOf","oneOfType"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;AACA;;;;AAGA;;AAOA;;;;AACA;;;;;;;;;;;;AAEA;;;;;AAKA;;;;AAIA,SAASA,cAAT,CAAwBC,EAAxB,EAA4B;AAC1B,MAAIA,OAAO,MAAX,EAAmB;AACjB,QAAMC,aAAa,CAACC,QAAD,EAAWC,MAAX,CACjBC,MAAMC,IAAN,CAAWH,SAASI,gBAAT,CAA0B,mBAA1B,CAAX,CADiB,CAAnB;AAGAL,eAAWM,OAAX,CAAmB,iBAAS;AAC1B,UAAMC,SAASJ,MAAMC,IAAN,CAAWI,MAAMH,gBAAN,CAAuB,2CAAvB,CAAX,CAAf;AACA,UAAIE,OAAOE,MAAX,EAAmB;AACjBF,eAAO,CAAP,EAAUG,SAAV,CAAoBC,GAApB,CAAwB,wBAAxB;AACD;AACF,KALD;AAMD;AACF;;IAEKC,W;;;AAWJ,uBAAYC,KAAZ,EAAmB;AAAA;;AAAA,0HACXA,KADW;;AAEjB,UAAKC,KAAL,GAAa,MAAKC,iBAAL,CAAuBF,KAAvB,CAAb;AACA,UAAKG,gBAAL,GAAwB,MAAKA,gBAAL,CAAsBC,IAAtB,OAAxB;AACA,UAAKC,cAAL,GAAsB,MAAKA,cAAL,CAAoBD,IAApB,OAAtB;AACA,UAAKE,UAAL,GAAkB,MAAKA,UAAL,CAAgBF,IAAhB,OAAlB;AACA,UAAKG,WAAL,GAAmB,iCAAmB,MAAKP,KAAL,CAAWQ,QAAX,CAAoBd,MAApB,CAA2Ba,WAA9C,CAAnB;AACA,UAAKE,iBAAL,GAAyB,MAAKC,wBAAL,CAA8BV,MA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AAwB;AACtBvD,UAAQwD,oBAAUC,MAAV,CAAiB9D,UADH;AAEtBM,YAAUuD,oBAAUC,MAFE;AAGtB/B,eAAa8B,oBAAUC,MAHD;AAItBvD,YAAUsD,oBAAUC,MAJE;AAKtB7C,YAAU4C,oBAAUE,IAAV,CAAe/D,UALH;AAMtBY,YAAUiD,oBAAUC,MANE;AAOtBjC,YAAUgC,oBAAUG,IAPE;AAQtBhC,YAAU6B,oBAAUG,IARE;AAStB/B,YAAU4B,oBAAUG,IATE;AAUtB9D,YAAU2D,oBAAUI,KAAV,CAAgB;AACxBC,aAASL,oBAAUM,QAAV,CAAmBN,oBAAUO,SAAV,CAAoB,CAC9CP,oBAAUE,IADoC,EAE9CF,oBAAUC,MAFoC,CAApB,CAAnB,EAGL9D,UAJoB;AAKxBZ,YAAQyE,oBAAUM,QAAV,CAAmBN,oBAAUE,IAA7B,EAAmC/D,UALnB;AAMxBgB,iBAAa6C,oBAAUC,MAAV,CAAiB9D,UANN;AAOxBkC,iBAAa2B,oBAAUC,MAAV,CAAiB9D;AAPN,GAAhB;AAVY,CAAxB;;kBAqBeP,W","file":"ObjectField.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport classNames from 'classnames';\nimport _ from 'lodash/fp';\n\nimport {\n deepEquals,\n getDefaultFormState,\n orderProperties,\n getDefaultRegistry\n} from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';\n\nimport ExpandingGroup from '../components/ExpandingGroup';\nimport { pureWithDeepEquals } from '../helpers';\n\n/*\n * This is largely copied from the react-jsonschema-form library,\n * but with the way descriptions are used changed\n */\n\n/*\n * Add a first field class to the first actual field on the page\n * and on any \"blocks\", which are titled sections of the page\n */\nfunction setFirstFields(id) {\n if (id === 'root') {\n const containers = [document].concat(\n Array.from(document.querySelectorAll('.schemaform-block'))\n );\n containers.forEach(block => {\n const fields = Array.from(block.querySelectorAll('.form-checkbox,.schemaform-field-template'));\n if (fields.length) {\n fields[0].classList.add('schemaform-first-field');\n }\n });\n }\n}\n\nclass ObjectField extends React.Component {\n static defaultProps = {\n uiSchema: {},\n errorSchema: {},\n idSchema: {},\n registry: getDefaultRegistry(),\n required: false,\n disabled: false,\n readonly: false,\n }\n\n constructor(props) {\n super(props);\n this.state = this.getStateFromProps(props);\n this.onPropertyChange = this.onPropertyChange.bind(this);\n this.onPropertyBlur = this.onPropertyBlur.bind(this);\n this.isRequired = this.isRequired.bind(this);\n this.SchemaField = pureWithDeepEquals(this.props.registry.fields.SchemaField);\n this.orderedProperties = this.orderAndFilterProperties(props.schema, props.uiSchema);\n }\n\n componentDidMount() {\n setFirstFields(this.props.idSchema.$id);\n }\n\n componentWillReceiveProps(nextProps) {\n if (this.props.schema !== nextProps.schema || this.props.uiSchema !== nextProps.uiSchema) {\n this.orderedProperties = this.orderAndFilterProperties(nextProps.schema, nextProps.uiSchema);\n }\n }\n\n /*\n * This is a performance optimization to avoid extra renders. Because we mirror\n * formData in local state, each form data change will trigger two renders: one when\n * local state is updated and another when that change is reflected in formData. This check\n * skips the second render if no other props or state has changed\n */\n shouldComponentUpdate(nextProps) {\n return !deepEquals(this.props, nextProps);\n }\n\n componentDidUpdate() {\n setFirstFields(this.props.idSchema.$id);\n }\n\n onPropertyChange(name) {\n return (value) => {\n const formData = Object.keys(this.props.formData || {}).length\n ? this.props.formData\n : getDefaultFormState(this.props.schema, undefined, this.props.registry.definitions);\n this.props.onChange(_.set(name, value, formData));\n };\n }\n\n onPropertyBlur(name) {\n return (path = []) => {\n this.props.onBlur([name].concat(path));\n };\n }\n\n getStateFromProps(props) {\n const { schema, formData, registry } = props;\n return getDefaultFormState(schema, formData, registry.definitions) || {};\n }\n\n // This runs a series of steps that order properties and then group them into\n // expandable groups. If there are no expandable groups, then the end result of this\n // will be an array of single item arrays\n orderAndFilterProperties(schema, uiSchema) {\n const properties = Object.keys(schema.properties);\n const orderedProperties = orderProperties(properties, _.get('ui:order', uiSchema));\n const filteredProperties = orderedProperties.filter(prop => !schema.properties[prop]['ui:hidden']);\n const groupedProperties = _.groupBy((item) => {\n const expandUnderField = _.get([item, 'ui:options', 'expandUnder'], uiSchema);\n return expandUnderField || item;\n }, filteredProperties);\n\n return _.values(groupedProperties);\n }\n\n isRequired(name) {\n const { schema } = this.props;\n const schemaRequired = Array.isArray(schema.required) &&\n schema.required.indexOf(name) !== -1;\n\n if (schemaRequired) {\n return schemaRequired;\n }\n\n return false;\n }\n\n render() {\n const {\n uiSchema,\n errorSchema,\n idSchema,\n schema,\n required,\n disabled,\n readonly,\n onBlur\n } = this.props;\n const { definitions, fields, formContext } = this.props.registry;\n const { TitleField } = fields;\n const SchemaField = this.SchemaField;\n const formData = Object.keys(this.props.formData || {}).length\n ? this.props.formData\n : getDefaultFormState(schema, {}, definitions);\n const uiOptions = uiSchema['ui:options'] || {};\n\n // description and title setup\n const showFieldLabel = uiOptions.showFieldLabel;\n const fieldsetClassNames = uiOptions.classNames;\n const title = uiSchema['ui:title'] || schema.title;\n const CustomTitleField = typeof title === 'function'\n ? title\n : null;\n\n const description = uiSchema['ui:description'];\n const textDescription = typeof description === 'string' ? description : null;\n const DescriptionField = typeof description === 'function'\n ? uiSchema['ui:description']\n : null;\n\n const hasTitleOrDescription = !!title || !!description;\n const isRoot = idSchema.$id === 'root';\n\n const containerClassNames = classNames({\n 'input-section': isRoot,\n 'schemaform-field-container': true,\n 'schemaform-block': title && !isRoot\n });\n\n const renderProp = (propName) => {\n return (\n
\n \n
\n );\n };\n\n const fieldContent = (\n
\n {hasTitleOrDescription &&
\n {CustomTitleField && !showFieldLabel\n ? : null}\n {!CustomTitleField && title && !showFieldLabel\n ? : null}\n {textDescription &&

{textDescription}

}\n {DescriptionField && }\n {!textDescription && !DescriptionField && description}\n
}\n {this.orderedProperties.map((objectFields, index) => {\n if (objectFields.length > 1) {\n const [first, ...rest] = objectFields;\n const visible = rest.filter(prop => !_.get(['properties', prop, 'ui:collapsed'], schema));\n return (\n 0} key={index}>\n {renderProp(first)}\n
\n {visible.map(renderProp)}\n
\n
\n );\n }\n\n // if fields have expandUnder, but are the only item, that means the\n // field they’re expanding under is hidden, and they should be hidden, too\n return !_.get([objectFields[0], 'ui:options', 'expandUnder'], uiSchema)\n ? renderProp(objectFields[0], index)\n : undefined;\n })\n }\n
\n );\n\n if (title) {\n return (\n
\n {fieldContent}\n
\n );\n }\n\n return (\n
\n {fieldContent}\n
\n );\n }\n}\n\nObjectField.propTypes = {\n schema: PropTypes.object.isRequired,\n uiSchema: PropTypes.object,\n errorSchema: PropTypes.object,\n idSchema: PropTypes.object,\n onChange: PropTypes.func.isRequired,\n formData: PropTypes.object,\n required: PropTypes.bool,\n disabled: PropTypes.bool,\n readonly: PropTypes.bool,\n registry: PropTypes.shape({\n widgets: PropTypes.objectOf(PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.object,\n ])).isRequired,\n fields: PropTypes.objectOf(PropTypes.func).isRequired,\n definitions: PropTypes.object.isRequired,\n formContext: PropTypes.object.isRequired,\n })\n};\n\nexport default ObjectField;\n"]} \ No newline at end of file diff --git a/lib/js/fields/TitleField.js b/lib/js/fields/TitleField.js index f1e0672..1f45d4d 100644 --- a/lib/js/fields/TitleField.js +++ b/lib/js/fields/TitleField.js @@ -30,4 +30,5 @@ function TitleField(_ref) { { className: classes, id: id }, title ); -} \ No newline at end of file +} +//# sourceMappingURL=TitleField.js.map \ No newline at end of file diff --git a/lib/js/fields/TitleField.js.map b/lib/js/fields/TitleField.js.map new file mode 100644 index 0000000..0cfbd57 --- /dev/null +++ b/lib/js/fields/TitleField.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/fields/TitleField.jsx"],"names":["TitleField","id","title","isRoot","classes"],"mappings":";;;;;kBAGwBA,U;;AAHxB;;;;AACA;;;;;;AAEe,SAASA,UAAT,OAAmC;AAAA,MAAbC,EAAa,QAAbA,EAAa;AAAA,MAATC,KAAS,QAATA,KAAS;;AAChD,MAAMC,SAASF,OAAO,aAAtB;;AAEA,MAAMG,UAAU,0BAAW,wBAAX,EAAqC;AACnD,iCAA6B,CAACD;AADqB,GAArC,CAAhB;;AAIA,SAAO;AAAA;AAAA,MAAQ,WAAWC,OAAnB,EAA4B,IAAIH,EAAhC;AAAqCC;AAArC,GAAP;AACD","file":"TitleField.js","sourcesContent":["import React from 'react';\nimport classNames from 'classnames';\n\nexport default function TitleField({ id, title }) {\n const isRoot = id === 'root__title';\n\n const classes = classNames('schemaform-block-title', {\n 'schemaform-block-subtitle': !isRoot\n });\n\n return {title};\n}\n"]} \ No newline at end of file diff --git a/lib/js/helpers.js b/lib/js/helpers.js index add3722..8138fe6 100644 --- a/lib/js/helpers.js +++ b/lib/js/helpers.js @@ -673,4 +673,5 @@ function omitRequired(schema) { */ function recordEvent(data) { return window.dataLayer.push(data); -} \ No newline at end of file +} +//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/lib/js/helpers.js.map b/lib/js/helpers.js.map new file mode 100644 index 0000000..7adfbde --- /dev/null +++ b/lib/js/helpers.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/js/helpers.js"],"names":["isActivePage","getActivePages","getInactivePages","createFormPageList","createPageListByChapter","createPageList","createRoutes","formatISOPartialDate","formatReviewDate","parseISODate","filterViewFields","filterInactivePages","stringifyFormReplacer","isInProgress","transformForSubmit","getArrayFields","hasFieldsOtherThanArray","getNonArraySchema","checkValidSchema","setArrayRecordTouched","createUSAStateLabels","expandArrayPages","getPageKeys","getActiveChapters","omitRequired","recordEvent","page","data","depends","index","Array","isArray","some","condition","undefined","pages","filter","formConfig","Object","keys","chapters","reduce","pageList","chapter","chapterTitle","title","map","chapterKey","pageKey","concat","formPages","introduction","path","urlPrefix","routes","component","FormPage","pageConfig","ReviewPage","confirmation","onEnter","nextState","replace","formatDayMonth","val","dayOrMonth","toString","Number","length","formatYear","month","day","year","dateString","monthYear","split","newData","nextProp","field","newArray","item","startsWith","form","formData","schema","properties","currentData","prop","key","value","country","street","city","postalCode","zipcode","fields","every","widget","id","confirmationCode","file","newValues","v","pathName","trimmedPathname","endsWith","replacer","inactivePages","withoutInactivePages","withoutViewFields","JSON","stringify","isHiddenField","findArrays","obj","ui","type","push","definitions","uiSchema","forEach","$ref","newProperties","current","next","newSchema","required","newRequired","pureWithDeepEquals","props","nextProps","errors","join","propName","items","additionalItems","Error","prefix","states","USA","label","generateArrayPages","arrayPages","arrayPath","itemFilter","result","acc","nextPage","lastArrayPath","currentList","showPagePerItem","newList","eligiblePageList","expandedPageList","p","window","dataLayer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAOgBA,Y,GAAAA,Y;QAYAC,c,GAAAA,c;QAIAC,gB,GAAAA,gB;QAIAC,kB,GAAAA,kB;QAgBAC,uB,GAAAA,uB;QAcAC,c,GAAAA,c;QA6BAC,Y,GAAAA,Y;QA+DAC,oB,GAAAA,oB;QAQAC,gB,GAAAA,gB;QAWAC,Y,GAAAA,Y;QAqBAC,gB,GAAAA,gB;QAyBAC,mB,GAAAA,mB;QASAC,qB,GAAAA,qB;QAmCAC,Y,GAAAA,Y;QAaAC,kB,GAAAA,kB;QAgBAC,c,GAAAA,c;QA4BAC,uB,GAAAA,uB;QAmBAC,iB,GAAAA,iB;QAuDAC,gB,GAAAA,gB;QAkDAC,qB,GAAAA,qB;QAIAC,oB,GAAAA,oB;QAgCAC,gB,GAAAA,gB;QAqCAC,W,GAAAA,W;QAoBAC,iB,GAAAA,iB;QAeAC,Y,GAAAA,Y;QAmBAC,W,GAAAA,W;;AArjBhB;;;;AACA;;AAEA;;;;AACA;;;;;;;;;;AAEO,SAASzB,YAAT,CAAsB0B,IAAtB,EAA4BC,IAA5B,EAAkC;AACvC,MAAI,OAAOD,KAAKE,OAAZ,KAAwB,UAA5B,EAAwC;AACtC,WAAOF,KAAKE,OAAL,CAAaD,IAAb,EAAmBD,KAAKG,KAAxB,CAAP;AACD;;AAED,MAAIC,MAAMC,OAAN,CAAcL,KAAKE,OAAnB,CAAJ,EAAiC;AAC/B,WAA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vB,CAA+B,eAAO;AACpCK,cAAUrC,GAAV,IAAiBhE,aAAaqG,UAAUrC,GAAV,CAAb,CAAjB;AACD,GAFD;;AAIA,SAAOqC,SAAP;AACD;;AAED;;;;;;AAMO,SAASpG,WAAT,CAAqBE,IAArB,EAA2B;AAChC,SAAOgI,OAAOC,SAAP,CAAiBvC,IAAjB,CAAsB1F,IAAtB,CAAP;AACD","file":"helpers.js","sourcesContent":["import _ from 'lodash/fp';\nimport shouldUpdate from 'recompose/shouldUpdate';\nimport { deepEquals } from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';\n\nimport FormPage from './containers/FormPage';\nimport ReviewPage from './review/ReviewPage';\n\nexport function isActivePage(page, data) {\n if (typeof page.depends === 'function') {\n return page.depends(data, page.index);\n }\n\n if (Array.isArray(page.depends)) {\n return page.depends.some(condition => _.matches(condition)(data));\n }\n\n return page.depends === undefined || _.matches(page.depends)(data);\n}\n\nexport function getActivePages(pages, data) {\n return pages.filter(page => isActivePage(page, data));\n}\n\nexport function getInactivePages(pages, data) {\n return pages.filter(page => !isActivePage(page, data));\n}\n\nexport function createFormPageList(formConfig) {\n return Object.keys(formConfig.chapters)\n .reduce((pageList, chapter) => {\n const chapterTitle = formConfig.chapters[chapter].title;\n const pages = Object.keys(formConfig.chapters[chapter].pages)\n .map(page => {\n return _.assign(formConfig.chapters[chapter].pages[page], {\n chapterTitle,\n chapterKey: chapter,\n pageKey: page\n });\n });\n return pageList.concat(pages);\n }, []);\n}\n\nexport function createPageListByChapter(formConfig) {\n return Object.keys(formConfig.chapters)\n .reduce((chapters, chapter) => {\n const pages = Object.keys(formConfig.chapters[chapter].pages)\n .map(page => {\n return _.assign(formConfig.chapters[chapter].pages[page], {\n pageKey: page,\n chapterKey: chapter\n });\n });\n return _.set(chapter, pages, chapters);\n }, {});\n}\n\nexport function createPageList(formConfig, formPages) {\n let pageList = formPages;\n if (formConfig.introduction) {\n pageList = [\n {\n pageKey: 'introduction',\n path: 'introduction'\n }\n ].concat(pageList);\n }\n\n return pageList\n .concat([\n {\n pageKey: 'review-and-submit',\n path: 'review-and-submit',\n chapterKey: 'review'\n }\n ])\n .map(page => {\n return _.set('path', `${formConfig.urlPrefix || ''}${page.path}`, page);\n });\n}\n\n/*\n * Create the routes based on a form config. This goes through each chapter in a form\n * config, pulls out the config for each page, then generates a list of Route components with the\n * config as props\n */\nexport function createRoutes(formConfig) {\n const formPages = createFormPageList(formConfig);\n const pageList = createPageList(formConfig, formPages);\n let routes = formPages\n .map(page => {\n return {\n path: page.path,\n component: page.component || FormPage,\n pageConfig: page,\n pageList,\n urlPrefix: formConfig.urlPrefix\n };\n });\n if (formConfig.introduction) {\n routes = [\n {\n path: 'introduction',\n component: formConfig.introduction,\n formConfig,\n pageList\n }\n ].concat(routes);\n }\n\n return routes.concat([\n {\n path: 'review-and-submit',\n formConfig,\n component: ReviewPage,\n pageList\n },\n {\n path: 'confirmation',\n component: formConfig.confirmation\n },\n {\n path: '*',\n onEnter: (nextState, replace) => replace(formConfig.urlPrefix || '/')\n }\n ]);\n}\n\nfunction formatDayMonth(val) {\n if (val) {\n const dayOrMonth = val.toString();\n if (Number(dayOrMonth) && dayOrMonth.length === 1) {\n return `0${val}`;\n } else if (Number(dayOrMonth)) {\n return dayOrMonth;\n }\n }\n\n return 'XX';\n}\n\nfunction formatYear(val) {\n if (!val || !val.length) {\n return 'XXXX';\n }\n\n return val;\n}\n\nexport function formatISOPartialDate({ month, day, year }) {\n if (month || day || year) {\n return `${formatYear(year)}-${formatDayMonth(month)}-${formatDayMonth(day)}`;\n }\n\n return undefined;\n}\n\nexport function formatReviewDate(dateString, monthYear = false) {\n if (dateString) {\n const [year, month, day] = dateString.split('-', 3);\n\n return monthYear\n ? `${formatDayMonth(month)}/${formatYear(year)}`\n : `${formatDayMonth(month)}/${formatDayMonth(day)}/${formatYear(year)}`;\n }\n\n return undefined;\n}\nexport function parseISODate(dateString) {\n if (typeof dateString === 'string') {\n const [year, month, day] = dateString.split('-', 3);\n\n return {\n month: month === 'XX' ? '' : Number(month).toString(),\n day: day === 'XX' ? '' : Number(day).toString(),\n year: year === 'XXXX' ? '' : year\n };\n }\n\n return {\n month: '',\n day: '',\n year: ''\n };\n}\n\n/*\n * Removes 'view:' fields from data object\n */\nexport function filterViewFields(data) {\n return Object.keys(data).reduce((newData, nextProp) => {\n const field = data[nextProp];\n\n if (Array.isArray(field)) {\n const newArray = field.map((item) => filterViewFields(item));\n\n return _.set(nextProp, newArray, newData);\n }\n\n if (typeof field === 'object') {\n if (nextProp.startsWith('view:')) {\n return _.assign(newData, filterViewFields(field));\n }\n return _.set(nextProp, filterViewFields(field), newData);\n }\n\n if (!nextProp.startsWith('view:')) {\n return _.set(nextProp, field, newData);\n }\n\n return newData;\n }, {});\n}\n\nexport function filterInactivePages(pages, form) {\n return pages.reduce((formData, page) => {\n return Object.keys(page.schema.properties)\n .reduce((currentData, prop) => {\n return _.unset(prop, currentData);\n }, formData);\n }, form.data);\n}\n\nexport function stringifyFormReplacer(key, value) {\n // an object with country is an address\n if (value && typeof value.country !== 'undefined' &&\n (!value.street || !value.city || (!value.postalCode && !value.zipcode))) {\n return undefined;\n }\n\n // clean up empty objects, which we have no reason to send\n if (typeof value === 'object') {\n const fields = Object.keys(value);\n if (fields.length === 0 || fields.every(field => value[field] === undefined)) {\n return undefined;\n }\n\n // autosuggest widgets save value and label info, but we should just return the value\n if (value.widget === 'autosuggest') {\n return value.id;\n }\n\n // Exclude file data\n if (value.confirmationCode && value.file) {\n return _.omit('file', value);\n }\n }\n\n // Clean up empty objects in arrays\n if (Array.isArray(value)) {\n const newValues = value.filter(v => !!stringifyFormReplacer(key, v));\n // If every item in the array is cleared, remove the whole array\n return newValues.length > 0 ? newValues : undefined;\n }\n\n return value;\n}\n\nexport function isInProgress(pathName) {\n const trimmedPathname = pathName.replace(/\\/$/, '');\n return !(\n trimmedPathname.endsWith('introduction')\n || trimmedPathname.endsWith('confirmation')\n || trimmedPathname.endsWith('form-saved')\n || trimmedPathname.endsWith('error')\n );\n}\n\n/*\n * Normal transform for schemaform data\n */\nexport function transformForSubmit(formConfig, form, replacer = stringifyFormReplacer) {\n const inactivePages = getInactivePages(createFormPageList(formConfig), form.data);\n const withoutInactivePages = filterInactivePages(inactivePages, form);\n const withoutViewFields = filterViewFields(withoutInactivePages);\n\n return JSON.stringify(withoutViewFields, replacer) || '{}';\n}\n\nfunction isHiddenField(schema) {\n return !!schema['ui:collapsed'] || !!schema['ui:hidden'];\n}\n\n/*\n * Pull the array fields from a schema. Used to separate out array fields\n * from the rest of page to be displayed on the review page\n */\nexport function getArrayFields(data) {\n const fields = [];\n const findArrays = (obj, ui, path = []) => {\n if (obj.type === 'array' && !isHiddenField(obj) && !_.get('ui:options.keepInPageOnReview', ui)) {\n fields.push({\n path,\n schema: _.set('definitions', data.schema.definitions, obj),\n uiSchema: _.get(path, data.uiSchema) || data.uiSchema\n });\n }\n\n if (obj.type === 'object' && !isHiddenField(obj)) {\n Object.keys(obj.properties).forEach(prop => {\n findArrays(obj.properties[prop], ui[prop], path.concat(prop));\n });\n }\n };\n\n findArrays(data.schema, data.uiSchema);\n\n return fields;\n}\n\n/*\n * Checks to see if there are non array fields in a page schema, so that\n * we don’t show a blank page header on the review page if a page is just\n * a growable table\n */\nexport function hasFieldsOtherThanArray(schema) {\n if (schema.$ref || (schema.type !== 'object' && schema.type !== 'array')) {\n return true;\n }\n\n if (schema.type === 'object') {\n return Object.keys(schema.properties).some(nextProp => {\n return hasFieldsOtherThanArray(schema.properties[nextProp]);\n });\n }\n\n return false;\n}\n\n/*\n * Return a schema without array fields. If the schema has only array fields,\n * then return undefined (because there’s no reason to use an object schema with\n * no properties)\n */\nexport function getNonArraySchema(schema, uiSchema = {}) {\n if (schema.type === 'array' && !_.get('ui:options.keepInPageOnReview', uiSchema)) {\n return undefined;\n }\n\n if (schema.type === 'object') {\n const newProperties = Object.keys(schema.properties).reduce((current, next) => {\n const newSchema = getNonArraySchema(schema.properties[next], uiSchema[next]);\n\n if (typeof newSchema === 'undefined') {\n return _.unset(next, current);\n }\n\n if (newSchema !== schema.properties[next]) {\n return _.set(next, newSchema, current);\n }\n\n return current;\n }, schema.properties);\n\n if (Object.keys(newProperties).length === 0) {\n return undefined;\n }\n\n if (newProperties !== schema.properties) {\n let newSchema = _.set('properties', newProperties, schema);\n if (newSchema.required) {\n const newRequired = _.intersection(Object.keys(newSchema.properties), newSchema.required);\n if (newRequired.length !== newSchema.required.length) {\n newSchema = _.set('required', newRequired, newSchema);\n }\n }\n\n return newSchema;\n }\n }\n\n return schema;\n}\n\n\nexport const pureWithDeepEquals = shouldUpdate((props, nextProps) => {\n return !deepEquals(props, nextProps);\n});\n\n/**\n * Recursively checks to see if the schema is valid.\n *\n * Note: This only returns true. If the schema is invalid, an error is thrown to\n * stop everything.\n *\n * @param {Object} schema - The schema in question\n * @return {bool} - true if we succeed\n * @throws {Error} - If the schema is invalid\n */\nexport function checkValidSchema(schema, errors = [], path = ['root']) {\n if (typeof schema.type !== 'string') {\n errors.push(`Missing type in ${path.join('.')} schema.`);\n }\n\n if (schema.type === 'object') {\n if (typeof schema.properties !== 'object') {\n errors.push(`Missing object properties in ${path.join('.')} schema.`);\n } else {\n Object.keys(schema.properties).forEach((propName) => {\n checkValidSchema(schema.properties[propName], errors, [...path, propName]);\n });\n }\n }\n\n if (schema.type === 'array') {\n // We check this both before items is turned into additionalItems and after,\n // so we need to account for it being both an object and an array.\n if (Array.isArray(schema.items)) {\n if (!schema.additionalItems) {\n errors.push(`${path.join('.')} should contain additionalItems when items is an array.`);\n }\n schema.items.forEach((item, index) => {\n checkValidSchema(item, errors, [...path, 'items', index]);\n });\n } else if (typeof schema.items === 'object') {\n if (schema.additionalItems) {\n errors.push(`${path.join('.')} should not contain additionalItems when items is an object.`);\n }\n checkValidSchema(schema.items, errors, [...path, 'items']);\n } else {\n errors.push(`Missing items schema in ${path.join('.')}.`);\n }\n\n // Check additionalItems\n if (schema.additionalItems) {\n checkValidSchema(schema.additionalItems, errors, [...path, 'additionalItems']);\n }\n }\n\n // We’ve recursed all the way back down to ['root']; throw an error containing\n // all the error messages.\n if (path.length === 1 && errors.length > 0) {\n // console.log(`Error${errors.length > 1 ? 's' : ''} found in schema: ${errors.join(' ')} -- ${path.join('.')}`);\n throw new Error(`Error${errors.length > 1 ? 's' : ''} found in schema: ${errors.join(' ')}`);\n } else {\n return true;\n }\n}\n\nexport function setArrayRecordTouched(prefix, index) {\n return { [`${prefix}_${index}`]: true };\n}\n\nexport function createUSAStateLabels(states) {\n return states.USA.reduce((current, { label, value }) => {\n return _.merge(current, { [value]: label });\n }, {});\n}\n\n/*\n * Take a list of pages and create versions of them\n * for each item in an array\n */\nfunction generateArrayPages(arrayPages, data) {\n const items = _.get(arrayPages[0].arrayPath, data) || [];\n return items\n .reduce((pages, item, index) =>\n pages.concat(arrayPages.map(page =>\n _.assign(page, {\n path: page.path.replace(':index', index),\n index\n })\n )),\n []\n )\n // doing this after the map so that we don’t change indexes\n .filter(page => !page.itemFilter || page.itemFilter(items[page.index]));\n}\n\n/*\n * We want to generate the pages we need for each item in the array\n * being used by an array page. We also want to group those pages by item.\n * So, this grabs contiguous sections of array pages and at the end generates\n * the right number of pages based on the items in the array\n */\nexport function expandArrayPages(pageList, data) {\n const result = pageList.reduce((acc, nextPage) => {\n const { lastArrayPath, arrayPages, currentList } = acc;\n // If we see an array page and we’re starting a section or in the middle of one, just add it\n // to the temporary array\n if (nextPage.showPagePerItem && (!lastArrayPath || nextPage.arrayPath === lastArrayPath)) {\n arrayPages.push(nextPage);\n return acc;\n // Now we’ve hit the end of a section of array pages using the same array, so\n // actually generate the pages now\n } else if (nextPage.arrayPath !== lastArrayPath && !!arrayPages.length) {\n const newList = currentList.concat(generateArrayPages(arrayPages, data), nextPage);\n return _.assign(acc, {\n lastArrayPath: null,\n arrayPages: [],\n currentList: newList\n });\n }\n\n return _.set('currentList', currentList.concat(nextPage), acc);\n }, { lastArrayPath: null, arrayPages: [], currentList: [] });\n\n if (result.arrayPages.length > 0) {\n return result.currentList.concat(generateArrayPages(result.arrayPages, data));\n }\n\n return result.currentList;\n}\n\n/**\n * getPageKeys returns a list of keys for the currently active pages\n *\n * @param pages {Array} List of page configs\n * @param formData {Object} Current form data\n * @returns {Array} A list of page keys from the page config\n * and the index if it’s a pagePerItem page\n */\nexport function getPageKeys(pages, formData) {\n const eligiblePageList = getActivePages(pages, formData);\n const expandedPageList = expandArrayPages(eligiblePageList, formData);\n\n return expandedPageList.map(page => {\n let pageKey = page.pageKey;\n if (typeof page.index !== 'undefined') {\n pageKey += page.index;\n }\n return pageKey;\n });\n}\n\n/**\n * getActiveChapters returns the list of chapter keys with active pages\n *\n * @param formConfig {Object} The form config object\n * @param formData {Object} The current form data\n * @returns {Array} The list of chapter key strings for active chapters\n */\nexport function getActiveChapters(formConfig, formData) {\n const formPages = createFormPageList(formConfig);\n const pageList = createPageList(formConfig, formPages);\n const eligiblePageList = getActivePages(pageList, formData);\n const expandedPageList = expandArrayPages(eligiblePageList, formData);\n\n return _.uniq(expandedPageList.map(p => p.chapterKey).filter(key => !!key && key !== 'review'));\n}\n\n/**\n * Returns the schema, omitting all `required` arrays.\n *\n * @param schema {Object}\n * @returns {Object} The schema without any `required` arrays\n */\nexport function omitRequired(schema) {\n if (typeof schema !== 'object' || Array.isArray(schema)) {\n return schema;\n }\n\n const newSchema = _.omit('required', schema);\n Object.keys(newSchema).forEach(key => {\n newSchema[key] = omitRequired(newSchema[key]);\n });\n\n return newSchema;\n}\n\n/**\n * Helper function for reporting events to Google Analytics. An alias for window.dataLayer.push.\n * @module platform/monitoring/record-event\n * @see https://developers.google.com/tag-manager/devguide\n * @param {object} data - The event data that will be sent to GA.\n */\nexport function recordEvent(data) {\n return window.dataLayer.push(data);\n}\n"]} \ No newline at end of file diff --git a/lib/js/review/ArrayField.js b/lib/js/review/ArrayField.js index f5f751a..dc50141 100644 --- a/lib/js/review/ArrayField.js +++ b/lib/js/review/ArrayField.js @@ -429,4 +429,5 @@ ArrayField.propTypes = { formData: _propTypes2.default.object, arrayData: _propTypes2.default.array, pageTitle: _propTypes2.default.string -}; \ No newline at end of file +}; +//# sourceMappingURL=ArrayField.js.map \ No newline at end of file diff --git a/lib/js/review/ArrayField.js.map b/lib/js/review/ArrayField.js.map new file mode 100644 index 0000000..a8932f2 --- /dev/null +++ b/lib/js/review/ArrayField.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/ArrayField.jsx"],"names":["Element","Scroll","scroller","ArrayField","props","arrayData","Array","isArray","state","items","editing","map","handleAdd","bind","handleSave","handleSetData","scrollToTop","scrollToRow","isLocked","newProps","newState","length","setState","index","schema","additionalItems","setTimeout","scrollTo","path","window","Forms","scroll","duration","delay","smooth","offset","id","status","concat","getItemSchema","undefined","definitions","indexToRemove","formData","filter","val","setData","data","newArray","newEditingArray","uiSchema","pageTitle","formContext","uiOptions","fieldName","title","reviewTitle","arrayPageConfig","pageKey","itemCountLocked","itemsNeeded","minItems","item","isLast","isEditing","showReviewButton","itemSchema","itemTitle","itemName","onBlur","handleEdit","handleRemove","React","Component","propTypes","PropTypes","object","isRequired","string","array"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;AAEA;;;;AAEA;;AAIA;;;;AACA;;;;;;;;;;AAEA,IAAMA,UAAUC,sBAAOD,OAAvB;AACA,IAAME,WAAWD,sBAAOC,QAAxB;;AAEA;;;;;;;;IAOMC,U;;;AACJ,sBAAYC,KAAZ,EAAmB;AAAA;;AAEjB;AACA;AAHiB,wHACXA,KADW;;AAIjB,QAAMC,YAAYC,MAAMC,OAAN,CAAcH,MAAMC,SAApB,IAAiCD,MAAMC,SAAvC,GAAmD,IAArE;AACA,UAAKG,KAAL,GAAa;AACXC,aAAOJ,aAAa,EADT;AAEXK,eAAS,CAAC,MAAKN,KAAL,CAAWC,SAAX,IAAwB,EAAzB,EAA6BM,GAA7B,CAAiC;AAAA,eAAM,KAAN;AAAA,OAAjC;AAFE,KAAb;AAIA,UAAKC,SAAL,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A,qBAPZ;AAQE,4BAAQ;AAAA,6BAAM,OAAKuB,UAAL,CAAgB/C,KAAhB,EAAuB,CAACyC,SAAxB,CAAN;AAAA,qBARV;AASE,8BAAU;AAAA,6BAAM,OAAKlD,UAAL,CAAgBS,KAAhB,CAAN;AAAA,qBATZ;AAUE;AAVF;AADF;AADF,aADF;AAkBD,WA5DA,CAFH;AA+DGqC,yBACC;AAAA;AAAA,cAAK,WAAU,+DAAf;AACE;AAAA;AAAA,gBAAK,WAAU,gBAAf;AACG,iCAAM,2BAAN,EAAmCV,QAAnC,KAAgD;AADnD;AADF;AAhEJ;AATF,OADF;AAkFD;;;;EAlPsBsB,gBAAMC,S;;kBAqPhBtE,U;;;AAEfA,WAAWuE,SAAX,GAAuB;AACrBlD,UAAQmD,oBAAUC,MAAV,CAAiBC,UADJ;AAErB3B,YAAUyB,oBAAUC,MAFC;AAGrBlB,WAASiB,oBAAUG,MAAV,CAAiBD,UAHL;AAIrBjD,QAAM+C,oBAAUI,KAAV,CAAgBF,UAJD;AAKrBlC,YAAUgC,oBAAUC,MALC;AAMrBvE,aAAWsE,oBAAUI,KANA;AAOrB5B,aAAWwB,oBAAUG;AAPA,CAAvB","file":"ArrayField.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport _ from 'lodash/fp';\nimport Scroll from 'react-scroll';\n\nimport {\n getDefaultFormState\n} from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';\n\nimport SchemaForm from '../components/SchemaForm';\nimport { focusElement } from '../utilities/ui';\n\nconst Element = Scroll.Element;\nconst scroller = Scroll.scroller;\n\n/* Growable table (Array) field on the Review page\n *\n * The idea here is that, because our pattern for growable tables on the review\n * page is that each item can be in review or edit mode, we will treat each item\n * as its own form page and this component will handle the edit/review states and\n * make sure data is properly updated in the Redux store\n */\nclass ArrayField extends React.Component {\n constructor(props) {\n super(props);\n // In contrast to the normal array field, we don’t want to add an empty item\n // and always show at least one item on the review page\n const arrayData = Array.isArray(props.arrayData) ? props.arrayData : null;\n this.state = {\n items: arrayData || [],\n editing: (this.props.arrayData || []).map(() => false)\n };\n this.handleAdd = this.handleAdd.bind(this);\n this.handleSave = this.handleSave.bind(this);\n this.handleSetData = this.handleSetData.bind(this);\n this.scrollToTop = this.scrollToTop.bind(this);\n this.scrollToRow = this.scrollToRow.bind(this);\n this.isLocked = this.isLocked.bind(this);\n }\n\n componentWillReceiveProps(newProps) {\n if (newProps.arrayData !== this.props.arrayData) {\n const arrayData = Array.isArray(newProps.arrayData) ? newProps.arrayData : [];\n const newState = {\n items: arrayData\n };\n if (arrayData.length !== this.state.items.length) {\n newState.editing = arrayData.map(() => false);\n }\n\n this.setState(newState);\n }\n }\n\n getItemSchema(index) {\n const schema = this.props.schema;\n if (schema.items.length > index) {\n return schema.items[index];\n }\n\n return schema.additionalItems;\n }\n\n scrollToTop() {\n setTimeout(() => {\n // Hacky; won’t work if the array field is used in two pages and one isn’t\n // a BasicArrayField nor if the array field is used in three pages.\n scroller.scrollTo(`topOfTable_${this.props.path[this.props.path.length - 1]}${this.isLocked() ? '_locked' : ''}`, window.Forms.scroll || {\n duration: 500,\n delay: 0,\n smooth: true,\n offset: -60\n });\n }, 100);\n }\n\n scrollToRow(id) {\n setTimeout(() => {\n scroller.scrollTo(`table_${id}`, window.Forms.scroll || {\n duration: 500,\n delay: 0,\n smooth: true,\n offset: 0\n });\n }, 100);\n }\n\n /*\n * Clicking edit on the item in review mode\n */\n handleEdit(index, status = true) {\n this.setState(_.set(['editing', index], status, this.state), () => {\n const id = `${this.props.path[this.props.path.length - 1]}_${index}`;\n this.scrollToRow(id);\n focusElement(`#table_${id}`);\n });\n }\n\n /*\n * Clicking Add Another in the header of the array field section\n */\n handleAdd() {\n const newState = {\n items: this.state.items.concat(getDefaultFormState(this.getItemSchema(this.state.items.length), undefined, this.props.schema.definitions) || {}),\n editing: this.state.editing.concat(true)\n };\n this.setState(newState, () => {\n this.scrollToRow(`${this.props.path[this.props.path.length - 1]}_${this.state.items.length - 1}`);\n });\n }\n\n /*\n * Clicking Remove when editing an item\n */\n handleRemove(indexToRemove) {\n const { path, formData } = this.props;\n const newState = _.assign(this.state, {\n items: this.state.items.filter((val, index) => index !== indexToRemove),\n editing: this.state.editing.filter((val, index) => index !== indexToRemove),\n });\n this.setState(newState, () => {\n this.props.setData(_.set(path, this.state.items, formData));\n this.scrollToTop();\n });\n }\n\n /*\n * Called on any form data change.\n *\n * When data is changed, since we’re only editing one array item at a time,\n * we need to update the full page’s form data and call the Redux setData action\n */\n handleSetData(index, data) {\n const { path, formData } = this.props;\n const newArray = _.set(index, data, this.state.items);\n this.setState({ items: newArray }, () => {\n this.props.setData(_.set(path, newArray, formData));\n });\n }\n\n /*\n * Clicking Update in edit mode.\n *\n * This is only called if the form is valid\n * and data is already saved through handleSetData, so we just need to change\n * the edting state\n */\n handleSave(index) {\n const newEditingArray = _.set(index, false, this.state.editing);\n this.setState({ editing: newEditingArray }, () => {\n this.scrollToTop();\n });\n }\n\n isLocked() {\n return this.props.uiSchema['ui:field'] === 'BasicArrayField';\n }\n\n render() {\n const {\n schema,\n uiSchema,\n path,\n pageTitle,\n formContext\n } = this.props;\n\n const uiOptions = uiSchema['ui:options'] || {};\n const fieldName = path[path.length - 1];\n const title = _.get('ui:title', uiSchema) || uiOptions.reviewTitle || pageTitle;\n const arrayPageConfig = {\n uiSchema: uiSchema.items,\n pageKey: fieldName\n };\n\n // TODO: Make this better; it’s super hacky for now.\n const itemCountLocked = this.isLocked();\n // Make sure we default to an empty array if the item count is locked and no\n // arrayData is passed (mysteriously)\n const items = itemCountLocked ? (this.props.arrayData || []) : this.state.items;\n const itemsNeeded = (schema.minItems || 0) > 0 && items.length === 0;\n\n return (\n
\n {title &&\n
\n
{title}
\n {itemsNeeded && }\n {!itemCountLocked &&\n \n }\n
}\n
\n \n {items.map((item, index) => {\n const isLast = items.length === (index + 1);\n const isEditing = this.state.editing[index];\n const showReviewButton = !itemCountLocked && (!schema.minItems || items.length > schema.minItems);\n const itemSchema = this.getItemSchema(index);\n const itemTitle = itemSchema ? itemSchema.title : '';\n\n if (isEditing) {\n return (\n
\n \n
\n
\n {isLast && uiOptions.itemName && items.length > 1\n ?
New {uiOptions.itemName}
\n : null}\n this.handleSetData(index, data)}\n onEdit={() => this.handleEdit(index, !isEditing)}\n onSubmit={() => this.handleSave(index)}>\n
\n
\n \n
\n
\n {showReviewButton && }\n
\n
\n \n
\n
\n
\n );\n }\n return (\n
\n
\n this.handleSetData(index, data)}\n onEdit={() => this.handleEdit(index, !isEditing)}\n onSubmit={() => this.handleSave(index)}>\n
\n \n
\n
\n );\n })}\n {itemsNeeded &&\n
\n
\n {_.get('ui:errorMessages.minItems', uiSchema) || 'You need to add at least one item.'}\n
\n
}\n
\n
\n );\n }\n}\n\nexport default ArrayField;\n\nArrayField.propTypes = {\n schema: PropTypes.object.isRequired,\n uiSchema: PropTypes.object,\n pageKey: PropTypes.string.isRequired,\n path: PropTypes.array.isRequired,\n formData: PropTypes.object,\n arrayData: PropTypes.array,\n pageTitle: PropTypes.string\n};\n"]} \ No newline at end of file diff --git a/lib/js/review/CurrencyWidget.js b/lib/js/review/CurrencyWidget.js index 0ef4541..9b2ffc3 100644 --- a/lib/js/review/CurrencyWidget.js +++ b/lib/js/review/CurrencyWidget.js @@ -28,4 +28,5 @@ function CurrencyWidget(_ref) { null, value ); -} \ No newline at end of file +} +//# sourceMappingURL=CurrencyWidget.js.map \ No newline at end of file diff --git a/lib/js/review/CurrencyWidget.js.map b/lib/js/review/CurrencyWidget.js.map new file mode 100644 index 0000000..43372e5 --- /dev/null +++ b/lib/js/review/CurrencyWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/CurrencyWidget.jsx"],"names":["CurrencyWidget","value","toFixed"],"mappings":";;;;;kBAEwBA,c;;AAFxB;;;;;;AAEe,SAASA,cAAT,OAAmC;AAAA,MAATC,KAAS,QAATA,KAAS;;AAChD,MAAIA,SAAS,OAAOA,KAAP,KAAiB,QAA9B,EAAwC;AACtC,WAAO;AAAA;AAAA;AAAA;AAAQA,YAAMC,OAAN,CAAc,CAAd;AAAR,KAAP;AACD;;AAED,SAAO;AAAA;AAAA;AAAOD;AAAP,GAAP;AACD","file":"CurrencyWidget.js","sourcesContent":["import React from 'react';\n\nexport default function CurrencyWidget({ value }) {\n if (value && typeof value === 'number') {\n return ${value.toFixed(2)};\n }\n\n return {value};\n}\n"]} \ No newline at end of file diff --git a/lib/js/review/ObjectField.js b/lib/js/review/ObjectField.js index f37e025..46cc79b 100644 --- a/lib/js/review/ObjectField.js +++ b/lib/js/review/ObjectField.js @@ -227,4 +227,5 @@ ObjectField.propTypes = { }) }; -exports.default = ObjectField; \ No newline at end of file +exports.default = ObjectField; +//# sourceMappingURL=ObjectField.js.map \ No newline at end of file diff --git a/lib/js/review/ObjectField.js.map b/lib/js/review/ObjectField.js.map new file mode 100644 index 0000000..3cc68e6 --- /dev/null +++ b/lib/js/review/ObjectField.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/ObjectField.jsx"],"names":["ObjectField","isRequired","bind","orderAndFilterProperties","properties","props","uiSchema","item","expandUnderField","nextProps","nextState","name","value","formData","Object","keys","length","schema","undefined","registry","definitions","onChange","Array","isArray","required","indexOf","errorSchema","idSchema","formContext","SchemaField","fields","isRoot","$id","renderField","propName","onPropertyChange","onBlur","showField","hiddenOnSchema","collapsedOnSchema","hideOnReviewIfFalse","hideOnReview","renderedProperties","map","objectFields","index","first","rest","visible","filter","prop","title","pageTitle","hideTitle","hideHeaderRow","onEdit","React","Component","defaultProps","disabled","readonly","propTypes","PropTypes","object","bool","shape","widgets","objectOf","oneOfType","func"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;AAGA;;;;;;;;;;;;AAOA;;;;;IAKMA,W;;;AAWJ,yBAAc;AAAA;;AAAA;;AAEZ,UAAKC,UAAL,GAAkB,MAAKA,UAAL,CAAgBC,IAAhB,OAAlB;AACA,UAAKC,wBA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Field.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport _ from 'lodash/fp';\n\nimport {\n getDefaultFormState,\n orderProperties,\n shouldRender,\n getDefaultRegistry,\n} from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';\n\n/*\n * This is largely copied from the react-jsonschema-form library,\n * but with the way descriptions are used changed\n */\n\nclass ObjectField extends React.Component {\n static defaultProps = {\n uiSchema: {},\n errorSchema: {},\n idSchema: {},\n registry: getDefaultRegistry(),\n required: false,\n disabled: false,\n readonly: false,\n }\n\n constructor() {\n super();\n this.isRequired = this.isRequired.bind(this);\n this.orderAndFilterProperties = _.flow(\n properties => orderProperties(properties, _.get('ui:order', this.props.uiSchema)),\n _.groupBy((item) => {\n const expandUnderField = _.get([item, 'ui:options', 'expandUnder'], this.props.uiSchema);\n return expandUnderField || item;\n }),\n _.values\n );\n }\n\n shouldComponentUpdate(nextProps, nextState) {\n return shouldRender(this, nextProps, nextState);\n }\n\n onPropertyChange(name) {\n return (value) => {\n const formData = Object.keys(this.props.formData || {}).length\n ? this.props.formData\n : getDefaultFormState(this.props.schema, undefined, this.props.registry.definitions);\n this.props.onChange(_.set(name, value, formData));\n };\n }\n\n getStateFromProps(props) {\n const { schema, formData, registry } = props;\n return getDefaultFormState(schema, formData, registry.definitions) || {};\n }\n\n isRequired(name) {\n const schema = this.props.schema;\n return Array.isArray(schema.required) &&\n schema.required.indexOf(name) !== -1;\n }\n\n render() {\n const {\n uiSchema,\n errorSchema,\n idSchema,\n schema,\n formContext\n } = this.props;\n const SchemaField = this.props.registry.fields.SchemaField;\n\n const properties = Object.keys(schema.properties);\n const isRoot = idSchema.$id === 'root';\n const formData = this.props.formData || {};\n\n const renderField = (propName) => {\n return (\n \n );\n };\n\n const showField = (propName) => {\n const hiddenOnSchema = schema.properties[propName]['ui:hidden'];\n const collapsedOnSchema = schema.properties[propName]['ui:collapsed'];\n const hideOnReviewIfFalse = _.get([propName, 'ui:options', 'hideOnReviewIfFalse'], uiSchema) === true;\n const hideOnReview = _.get([propName, 'ui:options', 'hideOnReview'], uiSchema) === true;\n return (!hideOnReviewIfFalse || !!formData[propName]) && !hideOnReview && !hiddenOnSchema && !collapsedOnSchema;\n };\n\n const renderedProperties = this.orderAndFilterProperties(properties)\n .map((objectFields, index) => {\n const [first, ...rest] = objectFields;\n // expand under functionality is controlled in the reducer by setting ui:collapsed, so\n // we can check if its expanded by seeing if there are any visible \"children\"\n const visible = rest.filter(prop => !_.get(['properties', prop, 'ui:collapsed'], schema));\n if (objectFields.length > 1 && visible.length > 0) {\n return objectFields.filter(showField).map(renderField);\n }\n return showField(first) ? renderField(first, index) : null;\n });\n\n if (isRoot) {\n let title = formContext.pageTitle;\n if (!formContext.hideTitle && typeof title === 'function') {\n title = title(formData, formContext);\n }\n return (\n
\n {!formContext.hideHeaderRow &&
\n
{!formContext.hideTitle ? title : null}
\n \n
}\n
\n {renderedProperties}\n
\n
\n );\n }\n\n return
{renderedProperties}
;\n }\n}\n\nObjectField.propTypes = {\n schema: PropTypes.object.isRequired,\n uiSchema: PropTypes.object,\n errorSchema: PropTypes.object,\n idSchema: PropTypes.object,\n formData: PropTypes.object,\n required: PropTypes.bool,\n disabled: PropTypes.bool,\n readonly: PropTypes.bool,\n registry: PropTypes.shape({\n widgets: PropTypes.objectOf(PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.object,\n ])).isRequired,\n fields: PropTypes.objectOf(PropTypes.func).isRequired,\n definitions: PropTypes.object.isRequired,\n formContext: PropTypes.object.isRequired,\n })\n};\n\nexport default ObjectField;\n\n"]} \ No newline at end of file diff --git a/lib/js/review/PhoneNumberWidget.js b/lib/js/review/PhoneNumberWidget.js index c5bbcd6..cd3f2fc 100644 --- a/lib/js/review/PhoneNumberWidget.js +++ b/lib/js/review/PhoneNumberWidget.js @@ -25,4 +25,5 @@ function PhoneNumberWidget(_ref) { null, formatted ); -} \ No newline at end of file +} +//# sourceMappingURL=PhoneNumberWidget.js.map \ No newline at end of file diff --git a/lib/js/review/PhoneNumberWidget.js.map b/lib/js/review/PhoneNumberWidget.js.map new file mode 100644 index 0000000..5543636 --- /dev/null +++ b/lib/js/review/PhoneNumberWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/PhoneNumberWidget.jsx"],"names":["PhoneNumberWidget","value","formatted","length","substr"],"mappings":";;;;;kBAGwBA,iB;;AAHxB;;;;;;AAEA;AACe,SAASA,iBAAT,OAAsC;AAAA,MAATC,KAAS,QAATA,KAAS;;AACnD,MAAIC,YAAYD,KAAhB;AACA,MAAIA,SAASA,MAAME,MAAN,KAAiB,EAA9B,EAAkC;AAChCD,sBAAgBD,MAAMG,MAAN,CAAa,CAAb,EAAgB,CAAhB,CAAhB,UAAuCH,MAAMG,MAAN,CAAa,CAAb,EAAgB,CAAhB,CAAvC,SAA6DH,MAAMG,MAAN,CAAa,CAAb,CAA7D;AACD;;AAED,SAAO;AAAA;AAAA;AAAOF;AAAP,GAAP;AACD","file":"PhoneNumberWidget.js","sourcesContent":["import React from 'react';\n\n// When coming from a PhoneNumberWidget (not review), value will be only numbers\nexport default function PhoneNumberWidget({ value }) {\n let formatted = value;\n if (value && value.length === 10) {\n formatted = `(${value.substr(0, 3)}) ${value.substr(3, 3)}-${value.substr(6)}`;\n }\n\n return {formatted};\n}\n"]} \ No newline at end of file diff --git a/lib/js/review/ReadOnlyArrayField.js b/lib/js/review/ReadOnlyArrayField.js index 266835c..6220048 100644 --- a/lib/js/review/ReadOnlyArrayField.js +++ b/lib/js/review/ReadOnlyArrayField.js @@ -135,4 +135,5 @@ ReadOnlyArrayField.propTypes = { }) }; -exports.default = ReadOnlyArrayField; \ No newline at end of file +exports.default = ReadOnlyArrayField; +//# sourceMappingURL=ReadOnlyArrayField.js.map \ No newline at end of file diff --git a/lib/js/review/ReadOnlyArrayField.js.map b/lib/js/review/ReadOnlyArrayField.js.map new file mode 100644 index 0000000..cf89c01 --- /dev/null +++ b/lib/js/review/ReadOnlyArrayField.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/ReadOnlyArrayField.jsx"],"names":["ReadOnlyArrayField","shouldComponentUpdate","nextProps","props","getItemSchema","index","schema","items","uiSchema","errorSchema","idSchema","formData","disabled","readonly","registry","definitions","SchemaField","fields","uiOptions","map","item","itemSchema","itemIdPrefix","$id","itemIdSchema","itemName","undefined","f","React","Component","propTypes","PropTypes","object","isRequired","array","bool","shape","widgets","objectOf","oneOfType","func","formContext"],"mappings":";;;;;;;;AAAA;;;;AACA;;;;AAEA;;;;;;;;;;IAKMA,kB;;;;;;;;;;;;;;8MACJC,qB,GAAwB,UAACC,SAAD,EAAe;AACrC,aAAO,CAAC,uBAAW,MAAKC,KAAhB,EAAuBD,SAAvB,CAAR;AACD,K,QAEDE,a,GAAgB,UAACC,KAAD,EAAW;AACzB,aAAO,MAAKF,KAAL,CAAWG,MAAX,CAAkBC,KAAlB,CAAwBF,KAAxB,CAAP;AACD,K;;;;;6BAEQ;AAAA;;AAAA,mBASH,KAAKF,KATF;AAAA,UAELK,QAFK,UAELA,QAFK;AAAA,UAGLC,WAHK,UAGLA,WAHK;AAAA,UAILC,QAJK,UAILA,QAJK;AAAA,UAKLC,QALK,UAKLA,QALK;AAAA,UAMLC,QANK,UAMLA,QANK;AAAA,UAOLC,QAPK,UAOLA,QAPK;AAAA,UAQLC,QARK,UAQLA,QARK;;AAUP,UAAMC,cAAcD,SAASC,WAA7B;AAVO,UAWCC,WAXD,GAWiBF,SAASG,MAX1B,CAWCD,WAXD;;AAYP,UAAME,YAAYV,SAAS,YAAT,KAA0B,EAA5C;;AAEA,UAAMD,QAAQI,YAAY,EAA1B;;AAEA,aACE;AAAA;AAAA,UAAK,WAAU,4BAAf;AACE;AAAA;AAAA;AACGJ,gBAAMY,GAAN,CAAU,UAACC,IAAD,EAAOf,KAAP,EAAiB;AAC1B,gBAAMgB,aAAa,OAAKjB,aAAL,CAAmBC,KAAnB,CAAnB;AACA,gBAAMiB,eAAkBZ,SAASa,GAA3B,S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AUO,QAAV,CAAmBP,oBAAUS,IAA7B,EAAmCP,UALnB;AAMxBlB,iBAAagB,oBAAUC,MAAV,CAAiBC,UANN;AAOxBQ,iBAAaV,oBAAUC,MAAV,CAAiBC;AAPN,GAAhB;AARmB,CAA/B;;kBAmBejC,kB","file":"ReadOnlyArrayField.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\n\nimport {\n toIdSchema,\n deepEquals\n} from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';\n\nclass ReadOnlyArrayField extends React.Component {\n shouldComponentUpdate = (nextProps) => {\n return !deepEquals(this.props, nextProps);\n }\n\n getItemSchema = (index) => {\n return this.props.schema.items[index];\n }\n\n render() {\n const {\n uiSchema,\n errorSchema,\n idSchema,\n formData,\n disabled,\n readonly,\n registry\n } = this.props;\n const definitions = registry.definitions;\n const { SchemaField } = registry.fields;\n const uiOptions = uiSchema['ui:options'] || {};\n\n const items = formData || [];\n\n return (\n
\n
\n {items.map((item, index) => {\n const itemSchema = this.getItemSchema(index);\n const itemIdPrefix = `${idSchema.$id}_${index}`;\n const itemIdSchema = toIdSchema(itemSchema, itemIdPrefix, definitions);\n\n return (\n
\n
\n
\n
{uiOptions.itemName}
\n f}\n onBlur={f => f}\n registry={this.props.registry}\n required={false}\n disabled={disabled}\n readonly={readonly}/>\n
\n
\n
\n );\n })}\n
\n
\n );\n }\n}\n\nReadOnlyArrayField.propTypes = {\n schema: PropTypes.object.isRequired,\n uiSchema: PropTypes.object,\n errorSchema: PropTypes.object,\n idSchema: PropTypes.object,\n formData: PropTypes.array,\n disabled: PropTypes.bool,\n readonly: PropTypes.bool,\n registry: PropTypes.shape({\n widgets: PropTypes.objectOf(PropTypes.oneOfType([\n PropTypes.func,\n PropTypes.object,\n ])).isRequired,\n fields: PropTypes.objectOf(PropTypes.func).isRequired,\n definitions: PropTypes.object.isRequired,\n formContext: PropTypes.object.isRequired,\n })\n};\n\nexport default ReadOnlyArrayField;\n"]} \ No newline at end of file diff --git a/lib/js/review/ReviewChapters.js b/lib/js/review/ReviewChapters.js index ba00746..09b8344 100644 --- a/lib/js/review/ReviewChapters.js +++ b/lib/js/review/ReviewChapters.js @@ -242,4 +242,5 @@ exports.default = (0, _reactRouter.withRouter)((0, _reactRedux.connect)(mapState // for tests -exports.ReviewChapters = ReviewChapters; \ No newline at end of file +exports.ReviewChapters = ReviewChapters; +//# sourceMappingURL=ReviewChapters.js.map \ No newline at end of file diff --git a/lib/js/review/ReviewChapters.js.map b/lib/js/review/ReviewChapters.js.map new file mode 100644 index 0000000..4159644 --- /dev/null +++ b/lib/js/review/ReviewChapters.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/ReviewChapters.jsx"],"names":["scroller","Scroll","ReviewChapters","props","formData","pageList","viewedPages","Set","setViewedPages","name","open","pageKeys","closeReviewChapter","openReviewChapter","scrollToChapter","chapters","form","formContext","setValid","map","chapter","expandedPages","formConfig","handleEdit","handleSetData","showUnviewedPageWarning","handleToggleChapter","uploadFile","React","Component","chapterKey","scrollTo","window","Forms","scroll","duration","delay","smooth","pageKey","editing","index","fullPageKey","setEditMode","setData","onSetData","mapStateToProps","state","ownProps","data","openChapters","chapterNames","pagesByChapter","pages","chapterName","activePages","chapterFormConfig","includes","some","has","key","mapDispatchToProps","propTypes","PropTypes","array","isRequired","func","object"],"mappings":";;;;;;;;;AAAA;;;;AACA;;;;AACA;;AACA;;AACA;;;;AAEA;;;;AACA;;AAOA;;AAIA;;;;;;;;;;AAUA,IAAMA,WAAWC,sBAAOD,QAAxB;;IACME,c;;;;;;;;;;;;;;;;;;;wCAEgB;AAAA,mBAId,KAAKC,KAJS;AAAA,UAEhBC,QAFgB,UAEhBA,QAFgB;AAAA,UAGhBC,QAHgB,UAGhBA,QAHgB;;AAKlB,UAAMC,cAAc,IAAIC,GAAJ,CAAQ,0BAAYF,QAAZ,EAAsBD,QAAtB,CAAR,CAApB;AACA,WAAKD,KAAL,CAAWK,cAAX,CAA0BF,WAA1B;AACD;;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UyD,oBAAUC,KAAV,CAAgBC,UATD;AAUzBrB,WAASmB,oBAAUG,IAAV,CAAeD,UAVC;AAWzBtB,eAAaoB,oBAAUG,IAAV,CAAeD,UAXH;AAYzBxD,kBAAgBsD,oBAAUG,IAAV,CAAeD,UAZN;AAazBrC,cAAYmC,oBAAUG,IAAV,CAAeD,UAbF;AAczB1D,eAAawD,oBAAUI,MAAV,CAAiBF;AAdL,CAA3B;;kBAiBe,6BAAW,yBAAQnB,eAAR,EAAyBe,kBAAzB,EAA6C1D,cAA7C,CAAX,C;;AAEf;;QACSA,c,GAAAA,c","file":"ReviewChapters.js","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport { withRouter } from 'react-router';\nimport Scroll from 'react-scroll';\n\nimport ReviewCollapsibleChapter from './ReviewCollapsibleChapter';\nimport {\n createPageListByChapter,\n expandArrayPages,\n getActiveChapters,\n getActivePages,\n getPageKeys\n} from '../helpers';\nimport {\n getReviewPageOpenChapters,\n getViewedPages\n} from '../state/selectors';\nimport {\n closeReviewChapter,\n openReviewChapter,\n setData,\n setEditMode,\n setViewedPages,\n uploadFile\n} from '../actions';\n\n\nconst scroller = Scroll.scroller;\nclass ReviewChapters extends React.Component {\n\n componentDidMount() {\n const {\n formData,\n pageList\n } = this.props;\n const viewedPages = new Set(getPageKeys(pageList, formData));\n this.props.setViewedPages(viewedPages);\n }\n\n handleToggleChapter({ name, open, pageKeys }) {\n if (open) {\n this.props.closeReviewChapter(name, pageKeys);\n } else {\n this.props.openReviewChapter(name);\n this.scrollToChapter(name);\n }\n }\n\n scrollToChapter = (chapterKey) => {\n scroller.scrollTo(`chapter${chapterKey}ScrollElement`, window.Forms.scroll || {\n duration: 500,\n delay: 2,\n smooth: true,\n });\n }\n\n handleEdit = (pageKey, editing, index = null) => {\n const fullPageKey = `${pageKey}${index === null ? '' : index}`;\n if (editing) {\n this.props.setViewedPages([fullPageKey]);\n }\n this.props.setEditMode(pageKey, editing, index);\n }\n\n handleSetData = (...args) => {\n this.props.setData(...args);\n if (this.props.onSetData) {\n this.props.onSetData();\n }\n }\n\n render() {\n const {\n chapters,\n form,\n formContext,\n setValid,\n viewedPages\n } = this.props;\n\n return (\n
\n
\n {chapters.map(chapter => (\n this.handleSetData(...args)}\n setValid={setValid}\n showUnviewedPageWarning={chapter.showUnviewedPageWarning}\n toggleButtonClicked={() => this.handleToggleChapter(chapter)}\n uploadFile={this.props.uploadFile}\n viewedPages={viewedPages}/>\n ))}\n
\n
\n );\n }\n}\n\nfunction mapStateToProps(state, ownProps) {\n // from ownprops\n const {\n formConfig,\n formContext,\n pageList\n } = ownProps;\n\n // from redux state\n const form = state.form;\n const formData = state.form.data;\n const openChapters = getReviewPageOpenChapters(state);\n const viewedPages = getViewedPages(state);\n\n const chapterNames = getActiveChapters(formConfig, formData);\n const pagesByChapter = createPageListByChapter(formConfig);\n const chapters = chapterNames.map(chapterName => {\n const pages = pagesByChapter[chapterName];\n\n const activePages = getActivePages(pages, formData);\n const expandedPages = expandArrayPages(activePages, formData);\n const chapterFormConfig = formConfig.chapters[chapterName];\n const open = openChapters.includes(chapterName);\n const pageKeys = getPageKeys(pages, formData);\n const showUnviewedPageWarning = pageKeys.some(key => !viewedPages.has(key));\n\n return {\n expandedPages,\n formConfig: chapterFormConfig,\n name: chapterName,\n open,\n pageKeys,\n showUnviewedPageWarning\n };\n });\n\n return {\n chapters,\n form,\n formData,\n formConfig,\n formContext,\n pageList,\n viewedPages\n };\n}\n\nconst mapDispatchToProps = {\n closeReviewChapter,\n openReviewChapter,\n setData,\n setEditMode,\n setViewedPages,\n uploadFile\n};\n\nReviewChapters.propTypes = {\n chapters: PropTypes.array.isRequired,\n closeReviewChapter: PropTypes.func.isRequired,\n form: PropTypes.object.isRequired,\n formData: PropTypes.object.isRequired,\n formConfig: PropTypes.object.isRequired,\n formContext: PropTypes.object,\n onSetData: PropTypes.func,\n openReviewChapter: PropTypes.func.isRequired,\n pageList: PropTypes.array.isRequired,\n setData: PropTypes.func.isRequired,\n setEditMode: PropTypes.func.isRequired,\n setViewedPages: PropTypes.func.isRequired,\n uploadFile: PropTypes.func.isRequired,\n viewedPages: PropTypes.object.isRequired\n};\n\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(ReviewChapters));\n\n// for tests\nexport { ReviewChapters };\n"]} \ No newline at end of file diff --git a/lib/js/review/ReviewCollapsibleChapter.js b/lib/js/review/ReviewCollapsibleChapter.js index 54d2d65..04035bb 100644 --- a/lib/js/review/ReviewCollapsibleChapter.js +++ b/lib/js/review/ReviewCollapsibleChapter.js @@ -309,4 +309,5 @@ ReviewCollapsibleChapter.propTypes = { chapterFormConfig: _propTypes2.default.object.isRequired, form: _propTypes2.default.object.isRequired, onEdit: _propTypes2.default.func.isRequired -}; \ No newline at end of file +}; +//# sourceMappingURL=ReviewCollapsibleChapter.js.map \ No newline at end of file diff --git a/lib/js/review/ReviewCollapsibleChapter.js.map b/lib/js/review/ReviewCollapsibleChapter.js.map new file mode 100644 index 0000000..ae996df --- /dev/null +++ b/lib/js/review/ReviewCollapsibleChapter.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/ReviewCollapsibleChapter.jsx"],"names":["Element","Scroll","scroller","ReviewCollapsibleChapter","handleSubmit","formData","key","path","index","newData","props","form","data","setData","handleEdit","bind","id","pageDiv","document","querySelector","editing","onEdit","scrollToPage","focusOnPage","scrollTo","window","Forms","scroll","duration","delay","smooth","pageContent","chapterFormConfig","expandedPages","formContext","pageKeys","showUnviewedPageWarning","viewedPages","ChapterDescription","reviewDescription","chapterTitle","title","reviewTitle","open","map","pageState","pages","page","pageKey","pageSchema","pageUiSchema","pageData","arrayFields","fullPageKey","showPagePerItem","editMode","schema","properties","arrayPath","items","uiSchema","classes","has","hideHeaderRow","length","onBlur","onChange","uploadFile","editModeOnReviewPage","arrayField","chapterKey","toggleButtonClicked","React","Component","propTypes","PropTypes","object","isRequired","func"],"mappings":";;;;;;;;;;;;;;;;;;;;A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apsibleChapter.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport Scroll from 'react-scroll';\nimport _ from 'lodash/fp';\nimport classNames from 'classnames';\n\nimport ProgressButton from '../components/ProgressButton';\nimport { focusElement } from '../utilities/ui';\nimport SchemaForm from '../components/SchemaForm';\nimport {\n getArrayFields,\n getNonArraySchema,\n} from '../helpers';\nimport ArrayField from './ArrayField';\n\nconst Element = Scroll.Element;\nconst scroller = Scroll.scroller;\n\n/*\n * Displays all the pages in a chapter on the review page\n */\nexport default class ReviewCollapsibleChapter extends React.Component {\n constructor() {\n super();\n this.handleEdit = this.handleEdit.bind(this);\n }\n\n componentWillMount() {\n this.id = _.uniqueId();\n }\n\n onChange(formData, path = null, index = null) {\n let newData = formData;\n if (path) {\n newData = _.set([path, index], formData, this.props.form.data);\n }\n this.props.setData(newData);\n }\n\n focusOnPage(key) {\n const pageDiv = document.querySelector(`#${key}`);\n focusElement(pageDiv);\n }\n\n handleEdit(key, editing, index = null) {\n this.props.onEdit(key, editing, index);\n this.scrollToPage(`${key}${index === null ? '' : index}`);\n this.focusOnPage(`${key}${index === null ? '' : index}`);\n }\n\n handleSubmit = (formData, key, path = null, index = null) => {\n // This makes sure defaulted data on a page with no changes is saved\n // Probably safe to do this for regular pages, too, but it hasn’t been necessary\n if (path) {\n const newData = _.set([path, index], formData, this.props.form.data);\n this.props.setData(newData);\n }\n\n this.handleEdit(key, false, index);\n }\n\n scrollToPage(key) {\n scroller.scrollTo(`${key}ScrollElement`, window.Forms.scroll || {\n duration: 500,\n delay: 2,\n smooth: true,\n });\n }\n\n render() {\n let pageContent = null;\n\n const {\n chapterFormConfig,\n expandedPages,\n form,\n formContext,\n pageKeys,\n showUnviewedPageWarning,\n viewedPages\n } = this.props;\n\n const ChapterDescription = chapterFormConfig.reviewDescription;\n let chapterTitle = chapterFormConfig.title;\n if (typeof chapterFormConfig.title === 'function') {\n chapterTitle = chapterFormConfig.title(true);\n }\n if (chapterFormConfig.reviewTitle) {\n chapterTitle = chapterFormConfig.reviewTitle;\n }\n\n if (this.props.open) {\n pageContent = (\n
\n {ChapterDescription &&\n }\n {expandedPages.map(page => {\n const pageState = form.pages[page.pageKey];\n let pageSchema;\n let pageUiSchema;\n let pageData;\n let arrayFields;\n let editing;\n let fullPageKey;\n\n if (page.showPagePerItem) {\n editing = pageState.editMode[page.index];\n pageSchema = pageState.schema.properties[page.arrayPath].items[page.index];\n pageUiSchema = pageState.uiSchema[page.arrayPath].items;\n pageData = _.get([page.arrayPath, page.index], form.data);\n arrayFields = [];\n fullPageKey = `${page.pageKey}${page.index}`;\n } else {\n editing = pageState.editMode;\n // TODO: support array fields inside of an array page?\n // Our pattern is to separate out array fields (growable tables) from\n // the normal page and display them separately. The review version of\n // ObjectField will hide them in the main section.\n arrayFields = getArrayFields(pageState, page);\n // This will be undefined if there are no fields other than an array\n // in a page, in which case we won’t render the form, just the array\n pageSchema = getNonArraySchema(pageState.schema, pageState.uiSchema);\n pageUiSchema = pageState.uiSchema;\n pageData = form.data;\n fullPageKey = page.pageKey;\n }\n\n const classes = classNames('form-review-panel-page', {\n 'schemaform-review-page-warning': !viewedPages.has(fullPageKey)\n });\n\n return (\n
\n \n {pageSchema &&\n this.handleEdit(page.pageKey, !editing, page.index)}\n onSubmit={({ formData }) => this.handleSubmit(formData, page.pageKey, page.arrayPath, page.index)}\n onChange={(formData) => this.onChange(formData, page.arrayPath, page.index)}\n uploadFile={this.props.uploadFile}\n reviewMode={!editing}\n formContext={formContext}\n editModeOnReviewPage={page.editModeOnReviewPage}>\n {!editing ?
: }\n }\n {arrayFields.map(arrayField => (\n
\n \n
\n ))}\n
\n );\n })}\n
\n );\n }\n\n const classes = classNames('usa-accordion-bordered', 'form-review-panel', {\n 'schemaform-review-chapter-warning': showUnviewedPageWarning\n });\n\n return (\n
\n \n
    \n
  • \n
    \n \n {chapterTitle}\n \n {showUnviewedPageWarning && }\n
    \n
    \n {pageContent}\n
    \n
  • \n
\n
\n );\n }\n}\n\n// TODO: refactor to pass form.data instead of the entire form object\nReviewCollapsibleChapter.propTypes = {\n chapterFormConfig: PropTypes.object.isRequired,\n form: PropTypes.object.isRequired,\n onEdit: PropTypes.func.isRequired\n};\n"]} \ No newline at end of file diff --git a/lib/js/review/ReviewFieldTemplate.js b/lib/js/review/ReviewFieldTemplate.js index 62be107..3df4ffd 100644 --- a/lib/js/review/ReviewFieldTemplate.js +++ b/lib/js/review/ReviewFieldTemplate.js @@ -46,4 +46,5 @@ function ReviewFieldTemplate(props) { children ) ); -} \ No newline at end of file +} +//# sourceMappingURL=ReviewFieldTemplate.js.map \ No newline at end of file diff --git a/lib/js/review/ReviewFieldTemplate.js.map b/lib/js/review/ReviewFieldTemplate.js.map new file mode 100644 index 0000000..2c8853d --- /dev/null +++ b/lib/js/review/ReviewFieldTemplate.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/ReviewFieldTemplate.jsx"],"names":["ReviewFieldTemplate","props","children","uiSchema","schema","label","description","textDescription","DescriptionField","type"],"mappings":";;;;;kBAMwBA,mB;;AANxB;;;;;;AAEA;;;;AAIe,SAASA,mBAAT,CAA6BC,KAA7B,EAAoC;AAAA,MACzCC,QADyC,GACVD,KADU,CACzCC,QADyC;AAAA,MAC/BC,QAD+B,GACVF,KADU,CAC/BE,QAD+B;AAAA,MACrBC,MADqB,GACVH,KADU,CACrBG,MADqB;;AAEjD,MAAMC,QAAQF,SAAS,UAAT,KAAwBF,MAAMI,KAA5C;AACA,MAAMC,cAAcH,SAAS,gBAAT,CAApB;AACA,MAAMI,kBAAkB,OAAOD,WAAP,KAAuB,QAAvB,GAAkCA,WAAlC,GAAgD,IAAxE;AACA,MAAME,mBAAmB,OAAOF,WAAP,KAAuB,UAAvB,GACrBH,SAAS,gBAAT,CADqB,GAErB,IAFJ;;AAIA,SAAOC,OAAOK,IAAP,KAAgB,QAAhB,IAA4BL,OAAOK,IAAP,KAAgB,OAA5C,GACHP,QADG,GAEH;AAAA;AAAA,MAAK,WAAU,YAAf;AACA;AAAA;AAAA;AACGG,WADH;AAEGE,yBAAmB;AAAA;AAAA;AAAIA;AAAJ,OAFtB;AAGGC,0BAAoB,8BAAC,gBAAD,IAAkB,SAASL,SAAS,YAAT,CAA3B,GAHvB;AAIG,OAACI,eAAD,IAAoB,CAACC,gBAArB,IAAyCF;AAJ5C,KADA;AAOA;AAAA;AAAA;AAAKJ;AAAL;AAPA,GAFJ;AAWD","file":"ReviewFieldTemplate.js","sourcesContent":["import React from 'react';\n\n/*\n * This is the template for each field (which in the schema library means label + widget)\n */\n\nexport default function ReviewFieldTemplate(props) {\n const { children, uiSchema, schema } = props;\n const label = uiSchema['ui:title'] || props.label;\n const description = uiSchema['ui:description'];\n const textDescription = typeof description === 'string' ? description : null;\n const DescriptionField = typeof description === 'function'\n ? uiSchema['ui:description']\n : null;\n\n return schema.type === 'object' || schema.type === 'array'\n ? children\n :
\n
\n {label}\n {textDescription &&

{textDescription}

}\n {DescriptionField && }\n {!textDescription && !DescriptionField && description}\n
\n
{children}
\n
;\n}\n"]} \ No newline at end of file diff --git a/lib/js/review/ReviewPage.js b/lib/js/review/ReviewPage.js index 94b7a32..8822049 100644 --- a/lib/js/review/ReviewPage.js +++ b/lib/js/review/ReviewPage.js @@ -118,4 +118,5 @@ ReviewPage.propTypes = { }; exports.default = (0, _reactRouter.withRouter)((0, _reactRedux.connect)(mapStateToProps, mapDispatchToProps)(ReviewPage)); -exports.ReviewPage = ReviewPage; \ No newline at end of file +exports.ReviewPage = ReviewPage; +//# sourceMappingURL=ReviewPage.js.map \ No newline at end of file diff --git a/lib/js/review/ReviewPage.js.map b/lib/js/review/ReviewPage.js.map new file mode 100644 index 0000000..95ff61f --- /dev/null +++ b/lib/js/review/ReviewPage.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/ReviewPage.jsx"],"names":["scroller","Scroll","scrollToTop","scrollTo","window","Forms","scroll","duration","delay","smooth","ReviewPage","props","formConfig","pageList","path","React","Component","mapStateToProps","state","ownProps","route","mapDispatchToProps","propTypes","PropTypes","array","isRequired","string","shape","object"],"mappings":";;;;;;;;;AAAA;;;;AACA;;;;AACA;;;;AACA;;AACA;;AAEA;;AACA;;;;AACA;;;;;;;;;;;;AAEA,IAAMA,WAAWC,sBAAOD,QAAxB;;AAEA,IAAME,cAAc,SAAdA,WAAc,GAAM;AACxBF,WAASG,QAAT,CAAkB,kBAAlB,EAAsCC,OAAOC,KAAP,CAAaC,MAAb,IAAuB;AAC3DC,cAAU,GADiD;AAE3DC,WAAO,CAFoD;AAG3DC,YAAQ;AAHmD,GAA7D;AAKD,CAND;;IAQMC,U;;;;;;;;;;;wCACgB;AAClBR;AACA,4BAAa,IAAb;AACD;;;6BAEQ;AAAA,mBAKH,KAAKS,KALF;AAAA,UAELC,UAFK,UAELA,UAFK;AAAA,UAGLC,QAHK,UAGLA,QAHK;AAAA,UAILC,IAJK,UAILA,IAJK;;;AAOP,aACE;AAAA;AAAA;AACE,sCAAC,wBAAD;AACE,sBAAYF,UADd;AAEE,oBAAUC,QAFZ,GADF;AAIE,sCAAC,0BAAD;AACE,sBAAYD,UADd;AAEE,oBAAUC,QAFZ;AAGE,gBAAMC,IAHR;AAJF,OADF;AAWD;;;;EAxBsBC,gBAAMC,S;;AA2B/B,SAASC,eAAT,CAAyBC,KAAzB,EAAgCC,QAAhC,EAA0C;AACxC,MAAMC,QAAQD,SAASC,KAAvB;AADwC,MAGtCR,UAHsC,GAMpCQ,KANoC,CAGtCR,UAHsC;AAAA,MAItCC,QAJsC,GAMpCO,KANoC,CAItCP,QAJsC;AAAA,MAKtCC,IALsC,GAMpCM,KANoC,CAKtCN,IALsC;;;AAQxC,SAAO;AACLF,0BADK;AAELC,sBAFK;AAGLC,cAHK;AAILM;AAJK,GAAP;AAMD;;AAED,IAAMC,qBAAqB,EAA3B;;AAGAX,WAAWY,SAAX,GAAuB;AACrBT,YAAUU,oBAAUC,KAAV,CAAgBC,UADL;AAErBX,QAAMS,oBAAUG,MAAV,CAAiBD,UAFF;AAGrBL,SAAOG,oBAAUI,KAAV,CAAgB;AACrBf,gBAAYW,oBAAUK,MAAV,CAAiBH;AADR,GAAhB,EAEJA;AALkB,CAAvB;;kBAQe,6BAAW,yBAAQR,eAAR,EAAyBI,kBAAzB,EAA6CX,UAA7C,CAAX,C;QAENA,U,GAAAA,U","file":"ReviewPage.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport Scroll from 'react-scroll';\nimport { connect } from 'react-redux';\nimport { withRouter } from 'react-router';\n\nimport { focusElement } from '../utilities/ui';\nimport ReviewChapters from '../review/ReviewChapters';\nimport SubmitController from '../review/SubmitController';\n\nconst scroller = Scroll.scroller;\n\nconst scrollToTop = () => {\n scroller.scrollTo('topScrollElement', window.Forms.scroll || {\n duration: 500,\n delay: 0,\n smooth: true,\n });\n};\n\nclass ReviewPage extends React.Component {\n componentDidMount() {\n scrollToTop();\n focusElement('h4');\n }\n\n render() {\n const {\n formConfig,\n pageList,\n path\n } = this.props;\n\n return (\n
\n \n \n
\n );\n }\n}\n\nfunction mapStateToProps(state, ownProps) {\n const route = ownProps.route;\n const {\n formConfig,\n pageList,\n path,\n } = route;\n\n return {\n formConfig,\n pageList,\n path,\n route\n };\n}\n\nconst mapDispatchToProps = {\n};\n\nReviewPage.propTypes = {\n pageList: PropTypes.array.isRequired,\n path: PropTypes.string.isRequired,\n route: PropTypes.shape({\n formConfig: PropTypes.object.isRequired\n }).isRequired\n};\n\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(ReviewPage));\n\nexport { ReviewPage };\n"]} \ No newline at end of file diff --git a/lib/js/review/SSNWidget.js b/lib/js/review/SSNWidget.js index 21bd0d9..7dba720 100644 --- a/lib/js/review/SSNWidget.js +++ b/lib/js/review/SSNWidget.js @@ -27,4 +27,5 @@ function SSNWidget(_ref) { null, value ); -} \ No newline at end of file +} +//# sourceMappingURL=SSNWidget.js.map \ No newline at end of file diff --git a/lib/js/review/SSNWidget.js.map b/lib/js/review/SSNWidget.js.map new file mode 100644 index 0000000..a716703 --- /dev/null +++ b/lib/js/review/SSNWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/SSNWidget.jsx"],"names":["SSNWidget","value","length","substr"],"mappings":";;;;;kBAEwBA,S;;AAFxB;;;;;;AAEe,SAASA,SAAT,OAA8B;AAAA,MAATC,KAAS,QAATA,KAAS;;AAC3C,MAAIA,SAASA,MAAMC,MAAN,KAAiB,CAA9B,EAAiC;AAC/B,WAAO;AAAA;AAAA;AAAUD,YAAME,MAAN,CAAa,CAAb,EAAgB,CAAhB,CAAV,SAAgCF,MAAME,MAAN,CAAa,CAAb,EAAgB,CAAhB,CAAhC,SAAsDF,MAAME,MAAN,CAAa,CAAb;AAAtD,KAAP;AACD;;AAED,SAAO;AAAA;AAAA;AAAOF;AAAP,GAAP;AACD","file":"SSNWidget.js","sourcesContent":["import React from 'react';\n\nexport default function SSNWidget({ value }) {\n if (value && value.length === 9) {\n return {`${value.substr(0, 3)}-${value.substr(3, 2)}-${value.substr(5)}`};\n }\n\n return {value};\n}\n"]} \ No newline at end of file diff --git a/lib/js/review/StringField.js b/lib/js/review/StringField.js index 94df5ad..29a690d 100644 --- a/lib/js/review/StringField.js +++ b/lib/js/review/StringField.js @@ -49,4 +49,5 @@ function StringField(props) { options: (0, _assign3.default)(uiOptions, { enumOptions: enumOptions, labels: labels }), value: formData }, props)); -} \ No newline at end of file +} +//# sourceMappingURL=StringField.js.map \ No newline at end of file diff --git a/lib/js/review/StringField.js.map b/lib/js/review/StringField.js.map new file mode 100644 index 0000000..c53eade --- /dev/null +++ b/lib/js/review/StringField.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/StringField.jsx"],"names":["StringField","props","registry","schema","uiSchema","formData","uiOptions","labels","enumOptions","Array","isArray","enum","Widget","defaultWidget","format","widget","widgets"],"mappings":";;;;;;;;;;;;;;;;kBAcwBA,W;;AAdxB;;;;AAGA;;;;AAMA;;;;;AAKe,SAASA,WAAT,CAAqBC,KAArB,EAA4B;AAAA,MACjCC,QADiC,GACQD,KADR,CACjCC,QADiC;AAAA,MACvBC,MADuB,GACQF,KADR,CACvBE,MADuB;AAAA,MACfC,QADe,GACQH,KADR,CACfG,QADe;AAAA,MACLC,QADK,GACQJ,KADR,CACLI,QADK;;AAEzC,MAAMC,YAAY,yBAAaF,QAAb,CAAlB;AACA,MAAMG,SAASD,UAAUC,MAAV,IAAoB,EAAnC;AACA,MAAMC,cAAcC,MAAMC,OAAN,CAAcP,OAAOQ,IAArB,KAA8B,wBAAYR,MAAZ,CAAlD;;AAEA,MAAIS,SAAS,mBAAM,iBAAN,EAAyBR,QAAzB,CAAb;AACA,MAAI,CAACQ,MAAL,EAAa;AACX,QAAMC,gBAAgBV,OAAOW,MAAP,KAAkBN,cAAc,QAAd,GAAyB,MAA3C,CAAtB;AACAI,aAAS,sBAAUT,MAAV,EAAkBG,UAAUS,MAAV,IAAoBF,aAAtC,EAAqDX,SAASc,OAA9D,CAAT;AACD;;AAED,SACE,8BAAC,MAAD;AACE,aAAS,sBAASV,SAAT,EAAoB,EAAEE,wBAAF,EAAeD,cAAf,EAApB,CADX;AAEE,WAAOF;AAFT,KAGMJ,KAHN,EADF;AAMD","file":"StringField.js","sourcesContent":["import React from 'react';\nimport _ from 'lodash/fp';\n\nimport {\n getUiOptions,\n getWidget,\n optionsList\n} from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';\n\n/*\n * This is a minimal string field implementation for the\n * review page, so we can pass custom review widgets\n * in the config\n */\nexport default function StringField(props) {\n const { registry, schema, uiSchema, formData } = props;\n const uiOptions = getUiOptions(uiSchema);\n const labels = uiOptions.labels || {};\n const enumOptions = Array.isArray(schema.enum) && optionsList(schema);\n\n let Widget = _.get('ui:reviewWidget', uiSchema);\n if (!Widget) {\n const defaultWidget = schema.format || (enumOptions ? 'select' : 'text');\n Widget = getWidget(schema, uiOptions.widget || defaultWidget, registry.widgets);\n }\n\n return (\n \n );\n}\n"]} \ No newline at end of file diff --git a/lib/js/review/SubmitButtons.js b/lib/js/review/SubmitButtons.js index 333ea05..ec8ca7e 100644 --- a/lib/js/review/SubmitButtons.js +++ b/lib/js/review/SubmitButtons.js @@ -242,4 +242,5 @@ function SubmitButtons(props) { ) ) ); -} \ No newline at end of file +} +//# sourceMappingURL=SubmitButtons.js.map \ No newline at end of file diff --git a/lib/js/review/SubmitButtons.js.map b/lib/js/review/SubmitButtons.js.map new file mode 100644 index 0000000..fcf2884 --- /dev/null +++ b/lib/js/review/SubmitButtons.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/SubmitButtons.jsx"],"names":["SubmitButtons","props","onBack","onSubmit","submission","renderErrorMessage","submitButton","submitMessage","status","moment","unix","extra","process","env","NODE_ENV"],"mappings":";;;;;kBAKwBA,a;;AALxB;;;;AACA;;;;AACA;;;;AACA;;;;AAEe,SAASA,aAAT,CAAuBC,KAAvB,EAA8B;AAAA,MAEzCC,MAFyC,GAMvCD,KANuC,CAEzCC,MAFyC;AAAA,MAGzCC,QAHyC,GAMvCF,KANuC,CAGzCE,QAHyC;AAAA,MAIzCC,UAJyC,GAMvCH,KANuC,CAIzCG,UAJyC;AAAA,MAKzCC,kBALyC,GAMvCJ,KANuC,CAKzCI,kBALyC;;AAO3C,MAAIC,qBAAJ;AACA,MAAIC,sBAAJ;AACA,MAAIH,WAAWI,MAAX,KAAsB,KAA1B,EAAiC;AAC/BF,mBACE,8BAAC,wBAAD;AACE,qBAAeH,QADjB;AAEE,kBAAW,oBAFb;AAGE,mBAAY,oBAHd,GADF;AAMD,GAPD,MAOO,IAAIC,WAAWI,MAAX,KAAsB,eAA1B,EAA2C;AAChDF,mBACE,8BAAC,wBAAD;AACE,qBAAeH,QADjB;AAEE,kBAAW,YAFb;AAGE,oBAHF;AAIE,mBAAY,qBAJd,GADF;AAOD,GARM,MAQA,IAAIC,WAAWI,MAAX,KAAsB,sBAA1B,EAAkD;AACvDF,mBACE,8BAAC,wBAAD;AACE,q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F;AAhBF,GADF;AAwBD","file":"SubmitButtons.js","sourcesContent":["import React from 'react';\nimport moment from 'moment';\nimport ProgressButton from '../components/ProgressButton';\nimport { timeFromNow } from '../utilities/date';\n\nexport default function SubmitButtons(props) {\n const {\n onBack,\n onSubmit,\n submission,\n renderErrorMessage\n } = props;\n let submitButton;\n let submitMessage;\n if (submission.status === false) {\n submitButton = (\n \n );\n } else if (submission.status === 'submitPending') {\n submitButton = (\n \n );\n } else if (submission.status === 'applicationSubmitted') {\n submitButton = (\n \n );\n } else if (submission.status === 'clientError') {\n submitButton = (\n \n );\n submitMessage = (\n
\n
\n

We’re sorry, there was an error connecting to Vets.gov.

\n

Please check your Internet connection and try again. If the problem persists, please contact the Vets.gov Help Desk.

\n
\n
\n );\n } else if (submission.status === 'throttledError') {\n submitButton = (\n \n );\n submitMessage = (\n
\n
\n

We’ve run into a problem

\n

We’re sorry. Your submission didn’t go through because we received too many requests from you. Please wait {timeFromNow(moment.unix(submission.extra))} and submit your request again.

\n
\n
\n );\n } else if (submission.status === 'validationError') {\n submitButton = (\n \n );\n submitMessage = (\n
\n
\n

We’re sorry. Some information in your application is missing or not valid.

\n

Please check each section of your application to make sure you’ve filled out all the information that is required.

\n
\n
\n );\n } else {\n if (renderErrorMessage) {\n submitMessage = renderErrorMessage();\n } else {\n submitMessage = (\n
\n
\n

We’re sorry, the application didn’t go through.

\n

You’ll have to start over. We suggest you wait 1 day while we fix this problem.

\n
\n
\n );\n }\n\n if (process.env.NODE_ENV !== 'production') {\n submitButton = (\n \n );\n }\n\n return (\n
\n
\n
\n {submitMessage}\n
\n
\n
\n \n {submitButton}\n
\n
\n );\n }\n return (\n
\n
\n
\n \n
\n
\n {submitButton}\n
\n
\n
 
\n
\n
\n
\n
\n {submitMessage}\n
\n
\n
\n );\n}\n"]} \ No newline at end of file diff --git a/lib/js/review/SubmitController.js b/lib/js/review/SubmitController.js index 9e2e700..6c09fa5 100644 --- a/lib/js/review/SubmitController.js +++ b/lib/js/review/SubmitController.js @@ -206,4 +206,5 @@ exports.default = (0, _reactRouter.withRouter)((0, _reactRedux.connect)(mapState // for tests -exports.SubmitController = SubmitController; \ No newline at end of file +exports.SubmitController = SubmitController; +//# sourceMappingURL=SubmitController.js.map \ No newline at end of file diff --git a/lib/js/review/SubmitController.js.map b/lib/js/review/SubmitController.js.map new file mode 100644 index 0000000..00cf0c5 --- /dev/null +++ b/lib/js/review/SubmitController.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/SubmitController.jsx"],"names":["SubmitController","goBack","props","form","pageList","router","eligiblePageList","data","expandedPageList","push","length","path","handleSubmit","formConfig","pagesByChapter","privacyAgreementAccepted","trackingPrefix","isValid","errors","submitForm","event","Raven","captureMessage","extra","prefix","setSubmission","nextProps","nextStatus","submission","status","previousStatus","newRoute","urlPrefix","renderErrorMessage","showPrivacyAgreementError","setPrivacyAgreement","React","Component","mapStateToProps","state","ownProps","hasAttemptedSubmit","mapDispatchToProps","propTypes","PropTypes","object","isRequired","array","bool","func","string"],"mappings":";;;;;;;;;AAAA;;;;AACA;;;;AACA;;;;AACA;;AACA;;AAEA;;;;AACA;;;;AACA;;AACA;;AAMA;;;;;;;;;;IAMMA,gB;;;;;;;;;;;;;;0MAWJC,M,GAAS,YAAM;AAAA,wBAKT,MAAKC,KALI;AAAA,UAEXC,IAFW,eAEXA,IAFW;AAAA,UAGXC,QAHW,eAGXA,QAHW;AAAA,UAIXC,MAJW,eAIXA,MAJW;;;AAOb,UAAMC,mBAAmB,6BAAeF,QAAf,EAAyBD,KAAKI,IAA9B,CAAzB;AACA,UAAMC,mBAAmB,+BAAiBF,gBAAjB,EAAmC,MAAKJ,KAAL,CAAWC,IAAX,CAAgBI,IAAnD,CAAzB;;AAEAF,aAAOI,IAAP,CAAYD,iBAAiBA,iBAAiBE,MAAjB,GAA0B,CAA3C,EAA8CC,IAA1D;AACD,K,QAEDC,Y,GAAe,YAAM;AAAA,yBAOf,MAAKV,KAPU;AAAA,UAEjBC,IA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AAiBC,UADI;AAE3BjC,cAAY+B,oBAAUC,MAAV,CAAiBC,UAFF;AAG3BhC,kBAAgB8B,oBAAUC,MAAV,CAAiBC,UAHN;AAI3B1C,YAAUwC,oBAAUG,KAAV,CAAgBD,UAJC;AAK3B/B,4BAA0B6B,oBAAUI,IAAV,CAAeF,UALd;AAM3Bb,sBAAoBW,oBAAUK,IANH;AAO3B5C,UAAQuC,oBAAUC,MAAV,CAAiBC,UAPE;AAQ3BX,uBAAqBS,oBAAUK,IAAV,CAAeH,UART;AAS3BrB,iBAAemB,oBAAUK,IAAV,CAAeH,UATH;AAU3B3B,cAAYyB,oBAAUK,IAAV,CAAeH,UAVA;AAW3BlB,cAAYgB,oBAAUC,MAAV,CAAiBC,UAXF;AAY3B9B,kBAAgB4B,oBAAUM,MAAV,CAAiBJ;AAZN,CAA7B;;kBAee,6BAAW,yBAAQR,eAAR,EAAyBI,kBAAzB,EAA6C1C,gBAA7C,CAAX,C;;AAEf;;QACSA,gB,GAAAA,gB","file":"SubmitController.js","sourcesContent":["import React from 'react';\nimport Raven from 'raven-js';\nimport PropTypes from 'prop-types';\nimport { connect } from 'react-redux';\nimport { withRouter } from 'react-router';\n\nimport SubmitButtons from './SubmitButtons';\nimport PrivacyAgreement from '../components/PrivacyAgreement';\nimport { isValidForm } from '../validation';\nimport {\n createPageListByChapter,\n expandArrayPages,\n getActivePages,\n recordEvent\n} from '../helpers';\nimport {\n setPrivacyAgreement,\n setSubmission,\n submitForm\n} from '../actions';\n\nclass SubmitController extends React.Component {\n\n componentWillReceiveProps(nextProps) {\n const nextStatus = nextProps.form.submission.status;\n const previousStatus = this.props.form.submission.status;\n if (nextStatus !== previousStatus && nextStatus === 'applicationSubmitted') {\n const newRoute = `${nextProps.formConfig.urlPrefix}confirmation`;\n this.props.router.push(newRoute);\n }\n }\n\n goBack = () => {\n const {\n form,\n pageList,\n router\n } = this.props;\n\n const eligiblePageList = getActivePages(pageList, form.data);\n const expandedPageList = expandArrayPages(eligiblePageList, this.props.form.data);\n\n router.push(expandedPageList[expandedPageList.length - 2].path);\n }\n\n handleSubmit = () => {\n const {\n form,\n formConfig,\n pagesByChapter,\n privacyAgreementAccepted,\n trackingPrefix\n } = this.props;\n\n const {\n isValid,\n errors\n } = isValidForm(form, pagesByChapter);\n\n if (isValid) {\n this.props.submitForm(formConfig, form);\n } else {\n // validation errors in this situation are not visible, so we’d\n // like to know if they’re common\n if (privacyAgreementAccepted) {\n recordEvent({\n event: `${trackingPrefix}-validation-failed`,\n });\n Raven.captureMessage('Validation issue not displayed', {\n extra: {\n errors,\n prefix: trackingPrefix\n }\n });\n this.props.setSubmission('status', 'validationError');\n }\n this.props.setSubmission('hasAttemptedSubmit', true);\n }\n }\n\n render() {\n const {\n privacyAgreementAccepted,\n renderErrorMessage,\n showPrivacyAgreementError,\n submission\n } = this.props;\n return (\n
\n

Note: According to federal law, there are criminal penalties, including a fine and/or imprisonment for up to 5 years, for withholding information or for providing incorrect information. (See 18 U.S.C. 1001)

\n \n \n
\n );\n }\n}\n\nfunction mapStateToProps(state, ownProps) {\n const {\n formConfig,\n pageList,\n renderErrorMessage\n } = ownProps;\n const router = ownProps.router;\n\n const form = state.form;\n const pagesByChapter = createPageListByChapter(formConfig);\n const trackingPrefix = formConfig.trackingPrefix;\n const submission = form.submission;\n const showPrivacyAgreementError = submission.hasAttemptedSubmit;\n const privacyAgreementAccepted = form.data.privacyAgreementAccepted;\n\n return {\n form,\n formConfig,\n pagesByChapter,\n pageList,\n privacyAgreementAccepted,\n renderErrorMessage,\n router,\n submission,\n showPrivacyAgreementError,\n trackingPrefix\n };\n}\n\nconst mapDispatchToProps = {\n setPrivacyAgreement,\n setSubmission,\n submitForm\n};\n\nSubmitController.propTypes = {\n form: PropTypes.object.isRequired,\n formConfig: PropTypes.object.isRequired,\n pagesByChapter: PropTypes.object.isRequired,\n pageList: PropTypes.array.isRequired,\n privacyAgreementAccepted: PropTypes.bool.isRequired,\n renderErrorMessage: PropTypes.func,\n router: PropTypes.object.isRequired,\n setPrivacyAgreement: PropTypes.func.isRequired,\n setSubmission: PropTypes.func.isRequired,\n submitForm: PropTypes.func.isRequired,\n submission: PropTypes.object.isRequired,\n trackingPrefix: PropTypes.string.isRequired\n};\n\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(SubmitController));\n\n// for tests\nexport { SubmitController };\n"]} \ No newline at end of file diff --git a/lib/js/review/widgets.js b/lib/js/review/widgets.js index 280e8a4..54d290b 100644 --- a/lib/js/review/widgets.js +++ b/lib/js/review/widgets.js @@ -97,4 +97,5 @@ var CheckboxWidget = exports.CheckboxWidget = function CheckboxWidget(_ref5) { null, value === true ? 'True' : '' ); -}; \ No newline at end of file +}; +//# sourceMappingURL=widgets.js.map \ No newline at end of file diff --git a/lib/js/review/widgets.js.map b/lib/js/review/widgets.js.map new file mode 100644 index 0000000..8582ada --- /dev/null +++ b/lib/js/review/widgets.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/review/widgets.jsx"],"names":["TextWidget","DateWidget","SelectWidget","value","options","monthYear","EmailWidget","TextareaWidget","enumOptions","labels","selected","find","opt","label","RadioWidget","yesNo","yesNoReverse","yesValue","noValue","displayValue","Y","N","CheckboxWidget"],"mappings":";;;;;;QAGgBA,U,GAAAA,U;QAIAC,U,GAAAA,U;QAOAC,Y,GAAAA,Y;;AAdhB;;;;AACA;;;;AAEO,SAASF,UAAT,OAA+B;AAAA,MAATG,KAAS,QAATA,KAAS;;AACpC,SAAO;AAAA;AAAA;AAAOA;AAAP,GAAP;AACD;;AAEM,SAASF,UAAT,QAAwC;AAAA,MAAlBE,KAAkB,SAAlBA,KAAkB;AAAA,MAAXC,OAAW,SAAXA,OAAW;;AAC7C,SAAO;AAAA;AAAA;AAAO,mCAAiBD,KAAjB,EAAwBC,QAAQC,SAAhC;AAAP,GAAP;AACD;;AAEM,IAAMC,oCAAcN,UAApB;AACA,IAAMO,0CAAiBP,UAAvB;;AAEA,SAASE,YAAT,QAA0C;AAAA,MAAlBE,OAAkB,SAAlBA,OAAkB;AAAA,MAATD,KAAS,SAATA,KAAS;AAAA,MACvCK,WADuC,GACVJ,OADU,CACvCI,WADuC;AAAA,wBACVJ,OADU,CAC1BK,MAD0B;AAAA,MAC1BA,MAD0B,mCACjB,EADiB;;AAE/C,MAAMC,WAAWF,YAAYG,IAAZ,CAAiB;AAAA,WAAOC,IAAIT,KAAJ,KAAcA,KAArB;AAAA,GAAjB,CAAjB;AACA,MAAIO,QAAJ,EAAc;AACZ,WAAO;AAAA;AAAA;AAAOD,aAAON,KAAP,KAAiBO,SAASG;AAAjC,KAAP;AACD;;AAED,SAAO,IAAP;AACD;;AAEM,IAAMC,oCAAcZ,YAApB;;AAEA,IAAMa,wBAAQ,SAARA,KAAQ,QAA6B;AAAA,MAA1BZ,KAA0B,SAA1BA,KAA0B;AAAA,4BAAnBC,OAAmB;AAAA,MAAnBA,OAAmB,iCAAT,EAAS;AAAA,8BACFA,OADE,CACxCY,YADwC;AAAA,MACxCA,YADwC,yCACzB,KADyB;AAAA,yBACFZ,OADE,CAClBK,MADkB;AAAA,MAClBA,MADkB,oCACT,EADS;;AAEhD,MAAMQ,WAAW,CAACD,YAAlB;AACA,MAAME,UAAU,CAACD,QAAjB;;AAEA,MAAIE,qBAAJ;AACA,MAAIhB,UAAUc,QAAd,EAAwB;AACtBE,mBAAeV,OAAOW,CAAP,IAAY,KAA3B;AACD,GAFD,MAEO,IAAIjB,UAAUe,OAAd,EAAuB;AAC5BC,mBAAeV,OAAOY,CAAP,IAAY,IAA3B;AACD;;AAED,SAAO;AAAA;AAAA;AAAOF;AAAP,GAAP;AACD,CAbM;;AAeA,IAAMG,0CAAiB,SAAjBA,cAAiB,QAAe;AAAA,MAAZnB,KAAY,SAAZA,KAAY;;AAC3C,SAAO;AAAA;AAAA;AAAOA,cAAU,IAAV,GAAiB,MAAjB,GAA0B;AAAjC,GAAP;AACD,CAFM","file":"widgets.js","sourcesContent":["import React from 'react';\nimport { formatReviewDate } from '../helpers';\n\nexport function TextWidget({ value }) {\n return {value};\n}\n\nexport function DateWidget({ value, options }) {\n return {formatReviewDate(value, options.monthYear)};\n}\n\nexport const EmailWidget = TextWidget;\nexport const TextareaWidget = TextWidget;\n\nexport function SelectWidget({ options, value }) {\n const { enumOptions, labels = {} } = options;\n const selected = enumOptions.find(opt => opt.value === value);\n if (selected) {\n return {labels[value] || selected.label};\n }\n\n return null;\n}\n\nexport const RadioWidget = SelectWidget;\n\nexport const yesNo = ({ value, options = {} }) => {\n const { yesNoReverse = false, labels = {} } = options;\n const yesValue = !yesNoReverse;\n const noValue = !yesValue;\n\n let displayValue;\n if (value === yesValue) {\n displayValue = labels.Y || 'Yes';\n } else if (value === noValue) {\n displayValue = labels.N || 'No';\n }\n\n return {displayValue};\n};\n\nexport const CheckboxWidget = ({ value }) => {\n return {value === true ? 'True' : ''};\n};\n"]} \ No newline at end of file diff --git a/lib/js/routing.js b/lib/js/routing.js index f2623ee..5caacea 100644 --- a/lib/js/routing.js +++ b/lib/js/routing.js @@ -48,4 +48,5 @@ function getPreviousPagePath(pageList, data, pathname) { var page = pageIndex >= 0 ? pageIndex - 1 : 0; return pages[page].path; -} \ No newline at end of file +} +//# sourceMappingURL=routing.js.map \ No newline at end of file diff --git a/lib/js/routing.js.map b/lib/js/routing.js.map new file mode 100644 index 0000000..c15e4d6 --- /dev/null +++ b/lib/js/routing.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/js/routing.js"],"names":["getNextPagePath","getPreviousPagePath","getEligiblePages","pageList","data","pathname","expandedPageList","eligiblePageList","pageIndex","item","path","pages","page"],"mappings":";;;;;;;;;;QAgBgBA,e,GAAAA,e;QAKAC,mB,GAAAA,mB;;AApBhB;;;;AAEA;;;;AAIA,SAASC,gBAAT,CAA0BC,QAA1B,EAAoCC,IAApC,EAA0CC,QAA1C,EAAoD;AAClD;AACA;AACA,MAAMC,mBAAmB,+BAAiBH,QAAjB,EAA2BC,IAA3B,CAAzB;AACA,MAAMG,mBAAmB,6BAAeD,gBAAf,EAAiCF,IAAjC,CAAzB;AACA,MAAMI,YAAY,yBAAY;AAAA,WAAQC,KAAKC,IAAL,KAAcL,QAAtB;AAAA,GAAZ,EAA4CE,gBAA5C,CAAlB;AACA,SAAO,EAAEI,OAAOJ,gBAAT,EAA2BC,oBAA3B,EAAP;AACD;;AAEM,SAASR,eAAT,CAAyBG,QAAzB,EAAmCC,IAAnC,EAAyCC,QAAzC,EAAmD;AAAA,0BAC3BH,iBAAiBC,QAAjB,EAA2BC,IAA3B,EAAiCC,QAAjC,CAD2B;AAAA,MAChDM,KADgD,qBAChDA,KADgD;AAAA,MACzCH,SADyC,qBACzCA,SADyC;;AAExD,SAAOG,MAAMH,YAAY,CAAlB,EAAqBE,IAA5B;AACD;;AAEM,SAAST,mBAAT,CAA6BE,QAA7B,EAAuCC,IAAvC,EAA6CC,QAA7C,EAAuD;AAAA,2BAC/BH,iBAAiBC,QAAjB,EAA2BC,IAA3B,EAAiCC,QAAjC,CAD+B;AAAA,MACpDM,KADoD,sBACpDA,KADoD;AAAA,MAC7CH,SAD6C,sBAC7CA,SAD6C;AAE5D;AACA;;;AACA,MAAMI,OAAOJ,aAAa,CAAb,GAAiBA,YAAY,CAA7B,GAAiC,CAA9C;AACA,SAAOG,MAAMC,IAAN,EAAYF,IAAnB;AACD","file":"routing.js","sourcesContent":["import _ from 'lodash/fp';\nimport { expandArrayPages, getActivePages } from './helpers';\n\n/*\n * Returns the page list without conditional pages that have not satisfied\n * their dependencies and therefore should be skipped.\n */\nfunction getEligiblePages(pageList, data, pathname) {\n // Any `showPagePerItem` pages are expanded to create items for each array item.\n // We update the `path` for each of those pages to replace `:index` with the current item index.\n const expandedPageList = expandArrayPages(pageList, data);\n const eligiblePageList = getActivePages(expandedPageList, data);\n const pageIndex = _.findIndex(item => item.path === pathname, eligiblePageList);\n return { pages: eligiblePageList, pageIndex };\n}\n\nexport function getNextPagePath(pageList, data, pathname) {\n const { pages, pageIndex } = getEligiblePages(pageList, data, pathname);\n return pages[pageIndex + 1].path;\n}\n\nexport function getPreviousPagePath(pageList, data, pathname) {\n const { pages, pageIndex } = getEligiblePages(pageList, data, pathname);\n // if we found the current page, go to previous one\n // if not, go back to the beginning because they shouldn’t be here\n const page = pageIndex >= 0 ? pageIndex - 1 : 0;\n return pages[page].path;\n}\n"]} \ No newline at end of file diff --git a/lib/js/state/helpers.js b/lib/js/state/helpers.js index d81e46a..b0e98da 100644 --- a/lib/js/state/helpers.js +++ b/lib/js/state/helpers.js @@ -571,4 +571,5 @@ function createInitialState(formConfig) { initialState = recalculateSchemaAndData(initialState); return initialState; -} \ No newline at end of file +} +//# sourceMappingURL=helpers.js.map \ No newline at end of file diff --git a/lib/js/state/helpers.js.map b/lib/js/state/helpers.js.map new file mode 100644 index 0000000..37bd64f --- /dev/null +++ b/lib/js/state/helpers.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/state/helpers.js"],"names":["updateRequiredFields","isContentExpanded","setHiddenFields","removeHiddenData","updateSchemaFromUiSchema","replaceRefSchemas","updateItemsSchema","updateSchemaAndData","recalculateSchemaAndData","createInitialState","isHiddenField","schema","get","path","data","reduce","current","next","uiSchema","formData","index","type","newRequired","Object","keys","properties","requiredArray","nextProp","field","isRequired","arrayHasField","some","prop","filter","concat","required","newSchema","currentSchema","nextSchema","length","newItemSchemas","items","map","item","idx","newItem","matcher","containingObject","slice","updatedSchema","hideIf","expandUnder","expandUnderCondition","newProperties","undefined","nextData","newItems","updateSchema","newSchemaProps","definitions","Error","$ref","refPath","replace","split","definition","fieldData","Array","isArray","additionalItems","fillIn","fill","updatedItems","newData","initialState","pages","state","pageKey","page","newState","showPagePerItem","arrayData","arrayPath","editMode","formConfig","submission","status","errorMessage","id","timestamp","hasAttemptedSubmit","formId","loadedData","metadata","reviewPageView","openChapters","viewedPages","Set","trackingPrefix","pageAndDataState","defaultDefinitions","isArrayPage","initialData","itemFilter","privacyAgreementAccepted"],"mappings":";;;;;;;;;;;;;;;;;;;;;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CAAb;;AAEA;AACAiB,UAAMD,KAAN,CAAYG,KAAKD,OAAjB,IAA4B;AAC1B3D,gBAAU4D,KAAK5D,QADW;AAE1BP,oBAF0B;AAG1BwE,gBAAUkB,cAAc,EAAd,GAAmB,KAHH;AAI1BrB,uBAAiBF,KAAKE,eAJI;AAK1BE,iBAAWJ,KAAKI,SALU;AAM1BqB,kBAAYzB,KAAKyB;AANS,KAA5B;;AASA3B,UAAM9D,IAAN,GAAa,qBAAQ8D,MAAM9D,IAAd,EAAoBA,IAApB,CAAb;AACA;;AAEA,WAAO8D,KAAP;AACD,GAxBsB,EAwBpB;AACD9D,UAAM;AACJ0F,gCAA0B;AADtB,KADL;AAID7B,WAAO;AAJN,GAxBoB,CAAzB;;AA+BAD,iBAAe,sBAASA,YAAT,EAAuByB,gBAAvB,CAAf;AACA;AACA;AACAzB,iBAAelE,yBAAyBkE,YAAzB,CAAf;;AAEA,SAAOA,YAAP;AACD","file":"helpers.js","sourcesContent":["import _ from 'lodash/fp';\nimport { getDefaultFormState } from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';\n\nimport {\n checkValidSchema,\n createFormPageList\n} from '../helpers';\n\nfunction isHiddenField(schema) {\n return !!schema['ui:collapsed'] || !!schema['ui:hidden'];\n}\n\nfunction get(path, data) {\n return path.reduce((current, next) => {\n return typeof current === 'undefined' ? current : current[next];\n }, data);\n}\n\n/*\n * This function goes through a schema/uiSchema and updates the required array\n * based on any ui:required field properties in the uiSchema.\n *\n * If no required fields are changing, it makes sure to not mutate the existing schema,\n * so we can still take advantage of any shouldComponentUpdate optimizations\n */\nexport function updateRequiredFields(schema, uiSchema, formData, index = null) {\n if (!uiSchema) {\n return schema;\n }\n\n if (schema.type === 'object') {\n const newRequired = Object.keys(schema.properties).reduce((requiredArray, nextProp) => {\n const field = uiSchema[nextProp];\n if (field && field['ui:required']) {\n const isRequired = field['ui:required'](formData, index);\n const arrayHasField = requiredArray.some(prop => prop === nextProp);\n\n if (arrayHasField && !isRequired) {\n return requiredArray.filter(prop => prop !== nextProp);\n } else if (!arrayHasField && isRequired) {\n return requiredArray.concat(nextProp);\n }\n\n return requiredArray;\n }\n\n return requiredArray;\n }, schema.required || []);\n\n const newSchema = Object.keys(schema.properties).reduce((currentSchema, nextProp) => {\n if (uiSchema) {\n const nextSchema = updateRequiredFields(currentSchema.properties[nextProp], uiSchema[nextProp], formData, index);\n if (nextSchema !== currentSchema.properties[nextProp]) {\n return _.set(['properties', nextProp], nextSchema, currentSchema);\n }\n }\n\n return currentSchema;\n }, schema);\n\n if (newSchema.required !== newRequired && (newSchema.required || newRequired.length > 0)) {\n return _.set('required', newRequired, newSchema);\n }\n\n return newSchema;\n }\n\n if (schema.type === 'array') {\n // each item has its own schema, so we need to update the required fields on those schemas\n // and then check for differences\n const newItemSchemas = schema.items.map((item, idx) => updateRequiredFields(item, uiSchema.items, formData, idx));\n if (newItemSchemas.some((newItem, idx) => newItem !== schema.items[idx])) {\n return _.set('items', newItemSchemas, schema);\n }\n }\n\n return schema;\n}\n\nexport function isContentExpanded(data, matcher) {\n if (typeof matcher === 'undefined') {\n return !!data;\n } else if (typeof matcher === 'function') {\n return matcher(data);\n }\n\n return data === matcher;\n}\n\n/*\n * This steps through a schema and sets any fields to hidden, based on a\n * hideIf function from uiSchema and the current page data. Sets 'ui:hidden'\n * which is a non-standard JSON Schema property\n *\n * The path parameter will contain the path, relative to formData, to the\n * form data corresponding to the current schema object\n */\nexport function setHiddenFields(schema, uiSchema, formData, path = []) {\n if (!uiSchema) {\n return schema;\n }\n\n // expandUnder fields are relative to the parent object of the current\n // field, so get that object using path here\n const containingObject = get(path.slice(0, -1), formData) || formData;\n\n let updatedSchema = schema;\n const hideIf = get(['ui:options', 'hideIf'], uiSchema);\n const index = path.reduce((current, next) => {\n return typeof next === 'number' ? next : current;\n }, null);\n\n if (hideIf && hideIf(formData, index)) {\n if (!updatedSchema['ui:hidden']) {\n updatedSchema = _.set('ui:hidden', true, updatedSchema);\n }\n } else if (updatedSchema['ui:hidden']) {\n updatedSchema = _.unset('ui:hidden', updatedSchema);\n }\n\n const expandUnder = get(['ui:options', 'expandUnder'], uiSchema);\n const expandUnderCondition = get(['ui:options', 'expandUnderCondition'], uiSchema);\n if (expandUnder && !isContentExpanded(containingObject[expandUnder], expandUnderCondition)) {\n if (!updatedSchema['ui:collapsed']) {\n updatedSchema = _.set('ui:collapsed', true, updatedSchema);\n }\n } else if (updatedSchema['ui:collapsed']) {\n updatedSchema = _.unset('ui:collapsed', updatedSchema);\n }\n\n if (updatedSchema.type === 'object') {\n const newProperties = Object.keys(updatedSchema.properties).reduce((current, next) => {\n const newSchema = setHiddenFields(updatedSchema.properties[next], uiSchema[next], formData, path.concat(next));\n\n if (newSchema !== updatedSchema.properties[next]) {\n return _.set(next, newSchema, current);\n }\n\n return current;\n }, updatedSchema.properties);\n\n if (newProperties !== updatedSchema.properties) {\n return _.set('properties', newProperties, updatedSchema);\n }\n }\n\n if (updatedSchema.type === 'array') {\n // each item has its own schema, so we need to update the required fields on those schemas\n // and then check for differences\n const newItemSchemas = updatedSchema.items.map((item, idx) =>\n setHiddenFields(item, uiSchema.items, formData, path.concat(idx))\n );\n\n if (newItemSchemas.some((newItem, idx) => newItem !== updatedSchema.items[idx])) {\n return _.set('items', newItemSchemas, updatedSchema);\n }\n }\n\n return updatedSchema;\n}\n\n/*\n * Steps through data and removes any fields that are marked as hidden\n * This is done so that hidden fields don’t cause validation errors that\n * a user can’t see.\n */\nexport function removeHiddenData(schema, data) {\n // null is necessary here because Rails 4 will convert empty arrays to null\n // In the forms, there's no difference between an empty array and null or undefined\n if (isHiddenField(schema) || typeof data === 'undefined' || data === null) {\n return undefined;\n }\n\n if (schema.type === 'object') {\n return Object.keys(data).reduce((current, next) => {\n if (typeof data[next] !== 'undefined' && schema.properties[next]) {\n const nextData = removeHiddenData(schema.properties[next], data[next]);\n\n // if the data was removed, then just unset it\n if (typeof nextData === 'undefined') {\n return _.unset(next, current);\n }\n\n // if data was updated (like a nested prop was removed), update it\n if (nextData !== data[next]) {\n return _.set(next, nextData, current);\n }\n }\n\n return current;\n }, data);\n }\n\n if (schema.type === 'array') {\n const newItems = data.map((item, index) => {\n return removeHiddenData(schema.items[index], item);\n });\n\n if (newItems.some((newItem, idx) => newItem !== data[idx])) {\n return newItems;\n }\n\n return data;\n }\n\n return data;\n}\n\n/*\n * This is similar to the hidden fields schema function above, except more general.\n * It will step through a schema and replace parts of it based on an updateSchema\n * function in uiSchema. This means the schema can be re-calculated based on data\n * a user has entered.\n */\nexport function updateSchemaFromUiSchema(schema, uiSchema, formData, index = null, path = []) {\n if (!uiSchema) {\n return schema;\n }\n\n let currentSchema = schema;\n\n if (currentSchema.type === 'object') {\n const newSchema = Object.keys(currentSchema.properties).reduce((current, next) => {\n const nextProp = updateSchemaFromUiSchema(current.properties[next], uiSchema[next], formData, index, path.concat(next));\n\n if (current.properties[next] !== nextProp) {\n return _.set(['properties', next], nextProp, current);\n }\n\n return current;\n }, currentSchema);\n\n if (newSchema !== schema) {\n currentSchema = newSchema;\n }\n }\n\n if (currentSchema.type === 'array') {\n // each item has its own schema, so we need to update the required fields on those schemas\n // and then check for differences\n const newItemSchemas = currentSchema.items.map((item, idx) =>\n updateSchemaFromUiSchema(item, uiSchema.items, formData, idx, path.concat(idx))\n );\n\n if (newItemSchemas.some((newItem, idx) => newItem !== currentSchema.items[idx])) {\n currentSchema = _.set('items', newItemSchemas, currentSchema);\n }\n }\n\n const updateSchema = get(['ui:options', 'updateSchema'], uiSchema);\n\n if (updateSchema) {\n const newSchemaProps = updateSchema(formData, currentSchema, uiSchema, index, path);\n\n const newSchema = Object.keys(newSchemaProps).reduce((current, next) => {\n if (newSchemaProps[next] !== schema[next]) {\n return _.set(next, newSchemaProps[next], current);\n }\n\n return current;\n }, currentSchema);\n\n if (newSchema !== currentSchema) {\n return newSchema;\n }\n }\n\n return currentSchema;\n}\n\nexport function replaceRefSchemas(schema, definitions, path = '') {\n // this can happen if you import a field that doesn’t exist from a schema\n if (!schema) {\n throw new Error(`Schema is undefined at ${path}`);\n }\n if (schema.$ref) {\n // There’s a whole spec for JSON pointers, but we don’t use anything more complicated\n // than this so far\n const refPath = schema.$ref.replace('#/definitions/', '').split('/');\n const definition = get(refPath, definitions);\n if (!definition) {\n throw new Error(`Missing definition for ${schema.$ref} at ${path}. You probably need to add it to defaultDefinitions`);\n }\n\n return replaceRefSchemas(definition, definitions, path);\n }\n\n if (schema.type === 'object') {\n const newSchema = Object.keys(schema.properties).reduce((current, next) => {\n const nextProp = replaceRefSchemas(schema.properties[next], definitions, `${path}.${next}`);\n\n if (current.properties[next] !== nextProp) {\n return _.set(['properties', next], nextProp, current);\n }\n\n return current;\n }, schema);\n\n return newSchema;\n }\n\n if (schema.type === 'array') {\n const newItems = replaceRefSchemas(schema.items, definitions, `${path}.items`);\n\n if (newItems !== schema.items) {\n return _.set('items', newItems, schema);\n }\n }\n\n return schema;\n}\n\n/**\n * This function updates an array schema to use the array of\n * item schema format and keeps that array in sync with the\n * data in that array in the form data.\n *\n * This allows us to have conditional fields for each array item,\n * because our conditional field implementation depends on modifying\n * schemas\n *\n * @param {Object} schema The current JSON Schema object\n * @param {any} fieldData The data associated with the current schema\n */\nexport function updateItemsSchema(schema, fieldData = null) {\n if (schema.type === 'array') {\n let newSchema = schema;\n\n // This happens the first time this function is called when\n // generating the form\n if (!Array.isArray(schema.items)) {\n newSchema = _.assign(schema, {\n items: [],\n additionalItems: schema.items\n });\n }\n\n if (!fieldData) {\n // If there’s no data, the list of schemas should be empty\n newSchema = _.set('items', [], newSchema);\n } else if (fieldData.length > newSchema.items.length) {\n // Here we’re filling in the items array to make it the same\n // length as the array of form data. This happens when you add\n // another record on the form, mainly.\n const fillIn = Array(fieldData.length - newSchema.items.length)\n .fill(newSchema.additionalItems);\n newSchema = _.set('items', newSchema.items.concat(fillIn), newSchema);\n } else if (fieldData.length < newSchema.items.length) {\n // If someone removed a record we’re removing the last schema item\n // This may not be the actual removed schema, but the schemas will\n // always be updated in the next step\n newSchema = _.set('items', _.dropRight(1, newSchema.items), newSchema);\n }\n\n const updatedItems = newSchema.items.map(\n (item, index) => updateItemsSchema(item, fieldData[index])\n );\n if (newSchema.items.some((item, index) => item !== updatedItems[index])) {\n return _.set('items', updatedItems, newSchema);\n }\n\n return newSchema;\n }\n\n if (schema.type === 'object') {\n const newSchema = Object.keys(schema.properties).reduce((current, next) => {\n const nextProp = updateItemsSchema(schema.properties[next], fieldData ? fieldData[next] : null);\n\n if (current.properties[next] !== nextProp) {\n return _.set(['properties', next], nextProp, current);\n }\n\n return current;\n }, schema);\n\n return newSchema;\n }\n\n return schema;\n}\n\n/**\n * This is the main sequence of updates that happens when data is changed\n * on a form. Most updates are applied to the schema, except that the data\n * is updated to remove newly hidden data\n *\n * @param {Object} schema The current JSON Schema\n * @param {Object} uiSchema The current UI Schema (does not change)\n * @param {Object} formData Flattened data for the entire form\n */\nexport function updateSchemaAndData(schema, uiSchema, formData) {\n let newSchema = updateItemsSchema(schema, formData);\n newSchema = updateRequiredFields(newSchema, uiSchema, formData);\n\n // Update the schema with any fields that are now hidden because of the data change\n newSchema = setHiddenFields(newSchema, uiSchema, formData);\n\n // Update the schema with any general updates based on the new data\n newSchema = updateSchemaFromUiSchema(newSchema, uiSchema, formData);\n\n // Remove any data that’s now hidden in the schema\n const newData = removeHiddenData(newSchema, formData);\n\n // We need to do this again because array data might have been removed\n newSchema = updateItemsSchema(newSchema, newData);\n\n checkValidSchema(newSchema);\n\n return {\n data: newData,\n schema: newSchema\n };\n}\n\nexport function recalculateSchemaAndData(initialState) {\n return Object.keys(initialState.pages)\n .reduce((state, pageKey) => {\n // on each data change, we need to do the following steps\n // Recalculate any required fields, based on the new data\n const page = state.pages[pageKey];\n const formData = initialState.data;\n\n const { data, schema } = updateSchemaAndData(page.schema, page.uiSchema, formData);\n\n let newState = state;\n\n if (formData !== data) {\n newState = _.set('data', data, state);\n }\n\n if (page.schema !== schema) {\n newState = _.set(['pages', pageKey, 'schema'], schema, newState);\n }\n\n if (page.showPagePerItem) {\n const arrayData = _.get(page.arrayPath, newState.data) || [];\n // If an item was added or removed for the data used by a showPagePerItem page,\n // we have to reset everything because we can’t match the edit states to rows directly\n // This will rarely ever be noticeable\n if (page.editMode.length !== arrayData.length) {\n newState = _.set(['pages', pageKey, 'editMode'], arrayData.map(() => false), newState);\n }\n }\n\n return newState;\n }, initialState);\n}\n\nexport function createInitialState(formConfig) {\n let initialState = {\n submission: {\n status: false,\n errorMessage: false,\n id: false,\n timestamp: false,\n hasAttemptedSubmit: false\n },\n formId: formConfig.formId,\n loadedData: {\n formData: {},\n metadata: {}\n },\n reviewPageView: {\n openChapters: [],\n viewedPages: new Set()\n },\n trackingPrefix: formConfig.trackingPrefix\n };\n\n const pageAndDataState = createFormPageList(formConfig)\n .reduce((state, page) => {\n const definitions = _.assign(formConfig.defaultDefinitions || {}, page.schema.definitions);\n let schema = replaceRefSchemas(page.schema, definitions, page.pageKey);\n // Throw an error if the new schema is invalid\n checkValidSchema(schema);\n schema = updateItemsSchema(schema);\n const isArrayPage = page.showPagePerItem;\n const data = getDefaultFormState(schema, page.initialData, schema.definitions);\n\n /* eslint-disable no-param-reassign */\n state.pages[page.pageKey] = {\n uiSchema: page.uiSchema,\n schema,\n editMode: isArrayPage ? [] : false,\n showPagePerItem: page.showPagePerItem,\n arrayPath: page.arrayPath,\n itemFilter: page.itemFilter\n };\n\n state.data = _.merge(state.data, data);\n /* eslint-enable no-param-reassign */\n\n return state;\n }, {\n data: {\n privacyAgreementAccepted: false,\n },\n pages: {},\n });\n\n initialState = _.assign(initialState, pageAndDataState);\n // Take another pass and recalculate the schema and data based on the default data\n // We do this to avoid passing undefined for the whole form state when the form first renders\n initialState = recalculateSchemaAndData(initialState);\n\n return initialState;\n}\n\n"]} \ No newline at end of file diff --git a/lib/js/state/index.js b/lib/js/state/index.js index 24d4d13..a4db788 100644 --- a/lib/js/state/index.js +++ b/lib/js/state/index.js @@ -29,4 +29,5 @@ function createSchemaFormReducer(formConfig) { return state; }; -} \ No newline at end of file +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/lib/js/state/index.js.map b/lib/js/state/index.js.map new file mode 100644 index 0000000..7786ba9 --- /dev/null +++ b/lib/js/state/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/state/index.js"],"names":["createSchemaFormReducer","formConfig","initialState","formReducers","reducers","state","action","reducer","type"],"mappings":";;;;;kBAKwBA,uB;;AALxB;;AAGA;;;;;;AAEe,SAASA,uBAAT,CAAiCC,UAAjC,EAAqH;AAAA,MAAxEC,YAAwE,uEAAzD,iCAAmBD,UAAnB,CAAyD;AAAA,MAAzBE,YAAyB,uEAAVC,kBAAU;;AAClI,SAAO,YAAkC;AAAA,QAAjCC,KAAiC,uEAAzBH,YAAyB;AAAA,QAAXI,MAAW;;AACvC,QAAMC,UAAUJ,aAAaG,OAAOE,IAApB,CAAhB;;AAEA,QAAID,OAAJ,EAAa;AACX,aAAOA,QAAQF,KAAR,EAAeC,MAAf,CAAP;AACD;;AAED,WAAOD,KAAP;AACD,GARD;AASD","file":"index.js","sourcesContent":["import {\n createInitialState,\n} from '../state/helpers';\nimport reducers from '../state/reducers';\n\nexport default function createSchemaFormReducer(formConfig, initialState = createInitialState(formConfig), formReducers = reducers) {\n return (state = initialState, action) => {\n const reducer = formReducers[action.type];\n\n if (reducer) {\n return reducer(state, action);\n }\n\n return state;\n };\n}\n"]} \ No newline at end of file diff --git a/lib/js/state/reducers.js b/lib/js/state/reducers.js index 1259d80..ca39c3b 100644 --- a/lib/js/state/reducers.js +++ b/lib/js/state/reducers.js @@ -75,4 +75,5 @@ exports.default = (_OPEN_REVIEW_CHAPTER$ = {}, _defineProperty(_OPEN_REVIEW_CHAP }); return (0, _set3.default)('reviewPageView.viewedPages', viewedPages, state); -}), _OPEN_REVIEW_CHAPTER$); \ No newline at end of file +}), _OPEN_REVIEW_CHAPTER$); +//# sourceMappingURL=reducers.js.map \ No newline at end of file diff --git a/lib/js/state/reducers.js.map b/lib/js/state/reducers.js.map new file mode 100644 index 0000000..639d9a2 --- /dev/null +++ b/lib/js/state/reducers.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/state/reducers.js"],"names":["OPEN_REVIEW_CHAPTER","state","action","openChapters","reviewPageView","openedChapter","CLOSE_REVIEW_CHAPTER","filter","value","closedChapter","newState","viewedPages","Set","pageKeys","forEach","add","pageKey","SET_DATA","data","SET_EDIT_MODE","pages","page","showPagePerItem","index","edit","SET_PRIVACY_AGREEMENT","privacyAgreementAccepted","SET_SUBMISSION","field","extra","submission","SET_SUBMITTED","response","status","SET_VIEWED_PAGES"],"mappings":";;;;;;;;;;;;;;;;AAEA;;AAWA;;;;;;;;sFAKGA,4B,EAAsB,UAACC,KAAD,EAAQC,MAAR,EAAmB;AACxC,MAAMC,4CACDF,MAAMG,cAAN,CAAqBD,YADpB,IAEJD,OAAOG,aAFH,EAAN;;AAKA,SAAO,mBAAM,6BAAN,EAAqCF,YAArC,EAAmDF,KAAnD,CAAP;AACD,C,0CACAK,6B,EAAuB,UAACL,KAAD,EAAQC,MAAR,EAAmB;AACzC,MAAMC,eAAeF,MAClBG,cADkB,CAElBD,YAFkB,CAGlBI,MAHkB,CAGX;AAAA,WAASC,UAAUN,OAAOO,aAA1B;AAAA,GAHW,CAArB;;AAKA,MAAMC,WAAW,mBAAM,6BAAN,EAAqCP,YAArC,EAAmDF,KAAnD,CAAjB;;AAEA,MAAMU,cAAc,IAAIC,GAAJ,CAAQX,MACzBG,cADyB,CAEzBO,WAFiB,CAApB;;AAIAT,SAAOW,QAAP,CAAgBC,OAAhB,CAAwB;AAAA,WAAWH,YAAYI,GAAZ,CAAgBC,OAAhB,CAAX;AAAA,GAAxB;;AAEA,SAAO,mBAAM,4BAAN,EAAoCL,WAApC,EAAiDD,QAAjD,CAAP;AACD,C,0CACAO,iB,EAAW,UAAChB,KAAD,EAAQC,MAAR,EAAmB;AAC7B,MAAMQ,WAAW,mBAAM,MAAN,EAAcR,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MS,cAAc,IAAIC,GAAJ,CAAQX,MACzBG,cADyB,CAEzBO,WAFiB,CAApB;;AAIAT,SAAOW,QAAP,CAAgBC,OAAhB,CAAwB;AAAA,WAAWH,YAAYI,GAAZ,CAAgBC,OAAhB,CAAX;AAAA,GAAxB;;AAEA,SAAO,mBAAM,4BAAN,EAAoCL,WAApC,EAAiDV,KAAjD,CAAP;AACD,C","file":"reducers.js","sourcesContent":["import _ from 'lodash/fp';\n\nimport {\n CLOSE_REVIEW_CHAPTER,\n OPEN_REVIEW_CHAPTER,\n SET_DATA,\n SET_EDIT_MODE,\n SET_PRIVACY_AGREEMENT,\n SET_SUBMISSION,\n SET_SUBMITTED,\n SET_VIEWED_PAGES\n} from '../actions';\n\nimport {\n recalculateSchemaAndData\n} from '../state/helpers';\n\nexport default {\n [OPEN_REVIEW_CHAPTER]: (state, action) => {\n const openChapters = [\n ...state.reviewPageView.openChapters,\n action.openedChapter\n ];\n\n return _.set('reviewPageView.openChapters', openChapters, state);\n },\n [CLOSE_REVIEW_CHAPTER]: (state, action) => {\n const openChapters = state\n .reviewPageView\n .openChapters\n .filter(value => value !== action.closedChapter);\n\n const newState = _.set('reviewPageView.openChapters', openChapters, state);\n\n const viewedPages = new Set(state\n .reviewPageView\n .viewedPages);\n\n action.pageKeys.forEach(pageKey => viewedPages.add(pageKey));\n\n return _.set('reviewPageView.viewedPages', viewedPages, newState);\n },\n [SET_DATA]: (state, action) => {\n const newState = _.set('data', action.data, state);\n\n return recalculateSchemaAndData(newState);\n },\n [SET_EDIT_MODE]: (state, action) => {\n if (state.pages[action.page].showPagePerItem) {\n return _.set(['pages', action.page, 'editMode', action.index], action.edit, state);\n }\n return _.set(['pages', action.page, 'editMode'], action.edit, state);\n },\n [SET_PRIVACY_AGREEMENT]: (state, action) => {\n return _.set('data.privacyAgreementAccepted', action.privacyAgreementAccepted, state);\n },\n [SET_SUBMISSION]: (state, action) => {\n const newState = _.set(['submission', action.field], action.value, state);\n if (action.extra) {\n newState.submission.extra = action.extra;\n }\n\n return newState;\n },\n [SET_SUBMITTED]: (state, action) => {\n const submission = _.assign(state.submission, {\n response: action.response,\n status: 'applicationSubmitted'\n });\n\n return _.set('submission', submission, state);\n },\n [SET_VIEWED_PAGES]: (state, action) => {\n const viewedPages = new Set(state\n .reviewPageView\n .viewedPages);\n\n action.pageKeys.forEach(pageKey => viewedPages.add(pageKey));\n\n return _.set('reviewPageView.viewedPages', viewedPages, state);\n }\n};\n"]} \ No newline at end of file diff --git a/lib/js/state/selectors.js b/lib/js/state/selectors.js index 86079a2..1f8fcee 100644 --- a/lib/js/state/selectors.js +++ b/lib/js/state/selectors.js @@ -17,4 +17,5 @@ var getReviewPageOpenChapters = exports.getReviewPageOpenChapters = function get }; var getViewedPages = exports.getViewedPages = function getViewedPages(state) { return state.form.reviewPageView.viewedPages; -}; \ No newline at end of file +}; +//# sourceMappingURL=selectors.js.map \ No newline at end of file diff --git a/lib/js/state/selectors.js.map b/lib/js/state/selectors.js.map new file mode 100644 index 0000000..a675d70 --- /dev/null +++ b/lib/js/state/selectors.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/state/selectors.js"],"names":["getFormData","state","form","data","getFormPages","pages","getSubmission","submission","getReviewPageOpenChapters","reviewPageView","openChapters","getViewedPages","viewedPages"],"mappings":";;;;;AAAO,IAAMA,oCAAc,SAAdA,WAAc;AAAA,SAASC,MAAMC,IAAN,CAAWC,IAApB;AAAA,CAApB;AACA,IAAMC,sCAAe,SAAfA,YAAe;AAAA,SAASH,MAAMC,IAAN,CAAWG,KAApB;AAAA,CAArB;AACA,IAAMC,wCAAgB,SAAhBA,aAAgB;AAAA,SAASL,MAAMC,IAAN,CAAWK,UAApB;AAAA,CAAtB;AACA,IAAMC,gEAA4B,SAA5BA,yBAA4B;AAAA,SAASP,MAAMC,IAAN,CAAWO,cAAX,CAA0BC,YAAnC;AAAA,CAAlC;AACA,IAAMC,0CAAiB,SAAjBA,cAAiB;AAAA,SAASV,MAAMC,IAAN,CAAWO,cAAX,CAA0BG,WAAnC;AAAA,CAAvB","file":"selectors.js","sourcesContent":["export const getFormData = state => state.form.data;\nexport const getFormPages = state => state.form.pages;\nexport const getSubmission = state => state.form.submission;\nexport const getReviewPageOpenChapters = state => state.form.reviewPageView.openChapters;\nexport const getViewedPages = state => state.form.reviewPageView.viewedPages;\n"]} \ No newline at end of file diff --git a/lib/js/utilities/address/index.js b/lib/js/utilities/address/index.js index 1e9f0e9..1050366 100644 --- a/lib/js/utilities/address/index.js +++ b/lib/js/utilities/address/index.js @@ -25,4 +25,5 @@ function isValidUSZipCode(value) { function isValidCanPostalCode(value) { return (/^[a-zA-Z]\d[a-zA-Z][ -]{0,1}\d[a-zA-Z]\d$/.test(value) ); -} \ No newline at end of file +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/lib/js/utilities/address/index.js.map b/lib/js/utilities/address/index.js.map new file mode 100644 index 0000000..cd7a9ec --- /dev/null +++ b/lib/js/utilities/address/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/address/index.js"],"names":["isValidUSZipCode","isValidCanPostalCode","countries","value","label","states","CAN","MEX","USA","USA_OTHER","concat","sort","a","b","localeCompare","test"],"mappings":";;;;;QA+VgBA,gB,GAAAA,gB;QAIAC,oB,GAAAA,oB;AAnWT,IAAMC,gCAAY,CACvB,EAAEC,OAAO,KAAT,EAAgBC,OAAO,eAAvB,EADuB,EAEvB,EAAED,OAAO,KAAT,EAAgBC,OAAO,aAAvB,EAFuB,EAGvB,EAAED,OAAO,KAAT,EAAgBC,OAAO,SAAvB,EAHuB,EAIvB,EAAED,OAAO,KAAT,EAAgBC,OAAO,SAAvB,EAJuB,EAKvB,EAAED,OAAO,KAAT,EAAgBC,OAAO,SAAvB,EALuB,EAMvB,EAAED,OAAO,KAAT,EAAgBC,OAAO,QAAvB,EANuB,EAOvB,EAAED,OAAO,KAAT,EAAgBC,OAAO,UAAvB,EAPuB,EAQvB,EAAED,OAAO,KAAT,E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hBQ,IAFgB,CAEX,UAACC,CAAD,EAAIC,CAAJ;AAAA,SAAUD,EAAER,KAAF,CAAQU,aAAR,CAAsBD,EAAET,KAAxB,CAAV;AAAA,CAFW,CAAnB;;AAIO,SAASJ,gBAAT,CAA0BG,KAA1B,EAAiC;AACtC,SAAO,qCAAoCY,IAApC,CAAyCZ,KAAzC;AAAP;AACD;;AAEM,SAASF,oBAAT,CAA8BE,KAA9B,EAAqC;AAC1C,SAAO,6CAA4CY,IAA5C,CAAiDZ,KAAjD;AAAP;AACD","file":"index.js","sourcesContent":["export const countries = [\n { value: 'USA', label: 'United States' },\n { value: 'AFG', label: 'Afghanistan' },\n { value: 'ALB', label: 'Albania' },\n { value: 'DZA', label: 'Algeria' },\n { value: 'AND', label: 'Andorra' },\n { value: 'AGO', label: 'Angola' },\n { value: 'AIA', label: 'Anguilla' },\n { value: 'ATA', label: 'Antarctica' },\n { value: 'ATG', label: 'Antigua' },\n { value: 'ARG', label: 'Argentina' },\n { value: 'ARM', label: 'Armenia' },\n { value: 'ABW', label: 'Aruba' },\n { value: 'AUS', label: 'Australia' },\n { value: 'AUT', label: 'Austria' },\n { value: 'AZE', label: 'Azerbaijan' },\n { value: 'BHS', label: 'Bahamas' },\n { value: 'BHR', label: 'Bahrain' },\n { value: 'BGD', label: 'Bangladesh' },\n { value: 'BRB', label: 'Barbados' },\n { value: 'BLR', label: 'Belarus' },\n { value: 'BEL', label: 'Belgium' },\n { value: 'BLZ', label: 'Belize' },\n { value: 'BEN', label: 'Benin' },\n { value: 'BMU', label: 'Bermuda' },\n { value: 'BTN', label: 'Bhutan' },\n { value: 'BOL', label: 'Bolivia' },\n { value: 'BIH', label: 'Bosnia' },\n { value: 'BWA', label: 'Botswana' },\n { value: 'BVT', label: 'Bouvet Island' },\n { value: 'BRA', label: 'Brazil' },\n { value: 'IOT', label: 'British Indian Ocean Territories' },\n { value: 'BRN', label: 'Brunei Darussalam' },\n { value: 'BGR', label: 'Bulgaria' },\n { value: 'BFA', label: 'Burkina Faso' },\n { value: 'BDI', label: 'Burundi' },\n { value: 'KHM', label: 'Cambodia' },\n { value: 'CMR', label: 'Cameroon' },\n { value: 'CAN', label: 'Canada' },\n { value: 'CPV', label: 'Cape Verde' },\n { value: 'CYM', label: 'Cayman' },\n { value: 'CAF', label: 'Central African Republic' },\n { value: 'TCD', label: 'Chad' },\n { value: 'CHL', label: 'Chile' },\n { value: 'CHN', label: 'China' },\n { value: 'CXR', label: 'Christmas Island' },\n { value: 'CCK', label: 'Cocos Islands' },\n { value: 'COL', label: 'Colombia' },\n { value: 'COM', label: 'Comoros' },\n { value: 'COG', label: 'Congo' },\n { value: 'COD', label: 'Democratic Republic of the Congo' },\n { value: 'COK', label: 'Cook Islands' },\n { value: 'CRI', label: 'Costa Rica' },\n { value: 'CIV', label: 'Ivory Coast' },\n { value: 'HRV', label: 'Croatia' },\n { value: 'CUB', label: 'Cuba' },\n { value: 'CYP', label: 'Cyprus' },\n { value: 'CZE', label: 'Czech Republic' },\n { value: 'DNK', label: 'Denmark' },\n { value: 'DJI', label: 'Djibouti' },\n { value: 'DMA', label: 'Dominica' },\n { value: 'DOM', label: 'Dominican Republic' },\n { value: 'ECU', label: 'Ecuador' },\n { value: 'EGY', label: 'Egypt' },\n { value: 'SLV', label: 'El Salvador' },\n { value: 'GNQ', label: 'Equatorial Guinea' },\n { value: 'ERI', label: 'Eritrea' },\n { value: 'EST', label: 'Estonia' },\n { value: 'ETH', label: 'Ethiopia' },\n { value: 'FLK', label: 'Falkland Islands' },\n { value: 'FRO', label: 'Faroe Islands' },\n { value: 'FJI', label: 'Fiji' },\n { value: 'FIN', label: 'Finland' },\n { value: 'FRA', label: 'France' },\n { value: 'GUF', label: 'French Guiana' },\n { value: 'PYF', label: 'French Polynesia' },\n { value: 'ATF', label: 'French Southern Territories' },\n { value: 'GAB', label: 'Gabon' },\n { value: 'GMB', label: 'Gambia' },\n { value: 'GEO', label: 'Georgia' },\n { value: 'DEU', label: 'Germany' },\n { value: 'GHA', label: 'Ghana' },\n { value: 'GIB', label: 'Gibraltar' },\n { value: 'GRC', label: 'Greece' },\n { value: 'GRL', label: 'Greenland' },\n { value: 'GRD', label: 'Grenada' },\n { value: 'GLP', label: 'Guadeloupe' },\n { value: 'GTM', label: 'Guatemala' },\n { value: 'GIN', label: 'Guinea' },\n { value: 'GNB', label: 'Guinea-Bissau' },\n { value: 'GUY', label: 'Guyana' },\n { value: 'HTI', label: 'Haiti' },\n { value: 'HMD', label: 'Heard Island' },\n { value: 'HND', label: 'Honduras' },\n { value: 'HKG', label: 'Hong Kong' },\n { value: 'HUN', label: 'Hungary' },\n { value: 'ISL', label: 'Iceland' },\n { value: 'IND', label: 'India' },\n { value: 'IDN', label: 'Indonesia' },\n { value: 'IRN', label: 'Iran' },\n { value: 'IRQ', label: 'Iraq' },\n { value: 'IRL', label: 'Ireland' },\n { value: 'ISR', label: 'Israel' },\n { value: 'ITA', label: 'Italy' },\n { value: 'JAM', label: 'Jamaica' },\n { value: 'JPN', label: 'Japan' },\n { value: 'JOR', label: 'Jordan' },\n { value: 'KAZ', label: 'Kazakhstan' },\n { value: 'KEN', label: 'Kenya' },\n { value: 'KIR', label: 'Kiribati' },\n { value: 'PRK', label: 'North Korea' },\n { value: 'KOR', label: 'South Korea' },\n { value: 'KWT', label: 'Kuwait' },\n { value: 'KGZ', label: 'Kyrgyzstan' },\n { value: 'LAO', label: 'Laos' },\n { value: 'LVA', label: 'Latvia' },\n { value: 'LBN', label: 'Lebanon' },\n { value: 'LSO', label: 'Lesotho' },\n { value: 'LBR', label: 'Liberia' },\n { value: 'LBY', label: 'Libya' },\n { value: 'LIE', label: 'Liechtenstein' },\n { value: 'LTU', label: 'Lithuania' },\n { value: 'LUX', label: 'Luxembourg' },\n { value: 'MAC', label: 'Macao' },\n { value: 'MKD', label: 'Macedonia' },\n { value: 'MDG', label: 'Madagascar' },\n { value: 'MWI', label: 'Malawi' },\n { value: 'MYS', label: 'Malaysia' },\n { value: 'MDV', label: 'Maldives' },\n { value: 'MLI', label: 'Mali' },\n { value: 'MLT', label: 'Malta' },\n { value: 'MTQ', label: 'Martinique' },\n { value: 'MRT', label: 'Mauritania' },\n { value: 'MUS', label: 'Mauritius' },\n { value: 'MYT', label: 'Mayotte' },\n { value: 'MEX', label: 'Mexico' },\n { value: 'FSM', label: 'Micronesia' },\n { value: 'MDA', label: 'Moldova' },\n { value: 'MCO', label: 'Monaco' },\n { value: 'MNG', label: 'Mongolia' },\n { value: 'MSR', label: 'Montserrat' },\n { value: 'MAR', label: 'Morocco' },\n { value: 'MOZ', label: 'Mozambique' },\n { value: 'MMR', label: 'Myanmar' },\n { value: 'NAM', label: 'Namibia' },\n { value: 'NRU', label: 'Nauru' },\n { value: 'NPL', label: 'Nepal' },\n { value: 'ANT', label: 'Netherlands Antilles' },\n { value: 'NLD', label: 'Netherlands' },\n { value: 'NCL', label: 'New Caledonia' },\n { value: 'NZL', label: 'New Zealand' },\n { value: 'NIC', label: 'Nicaragua' },\n { value: 'NER', label: 'Niger' },\n { value: 'NGA', label: 'Nigeria' },\n { value: 'NIU', label: 'Niue' },\n { value: 'NFK', label: 'Norfolk' },\n { value: 'NOR', label: 'Norway' },\n { value: 'OMN', label: 'Oman' },\n { value: 'PAK', label: 'Pakistan' },\n { value: 'PAN', label: 'Panama' },\n { value: 'PNG', label: 'Papua New Guinea' },\n { value: 'PRY', label: 'Paraguay' },\n { value: 'PER', label: 'Peru' },\n { value: 'PHL', label: 'Philippines' },\n { value: 'PCN', label: 'Pitcairn' },\n { value: 'POL', label: 'Poland' },\n { value: 'PRT', label: 'Portugal' },\n { value: 'QAT', label: 'Qatar' },\n { value: 'REU', label: 'Reunion' },\n { value: 'ROU', label: 'Romania' },\n { value: 'RUS', label: 'Russia' },\n { value: 'RWA', label: 'Rwanda' },\n { value: 'SHN', label: 'Saint Helena' },\n { value: 'KNA', label: 'Saint Kitts and Nevis' },\n { value: 'LCA', label: 'Saint Lucia' },\n { value: 'SPM', label: 'Saint Pierre and Miquelon' },\n { value: 'VCT', label: 'Saint Vincent and the Grenadines' },\n { value: 'SMR', label: 'San Marino' },\n { value: 'STP', label: 'Sao Tome and Principe' },\n { value: 'SAU', label: 'Saudi Arabia' },\n { value: 'SEN', label: 'Senegal' },\n { value: 'SCG', label: 'Serbia' },\n { value: 'SYC', label: 'Seychelles' },\n { value: 'SLE', label: 'Sierra Leone' },\n { value: 'SGP', label: 'Singapore' },\n { value: 'SVK', label: 'Slovakia' },\n { value: 'SVN', label: 'Slovenia' },\n { value: 'SLB', label: 'Solomon Islands' },\n { value: 'SOM', label: 'Somalia' },\n { value: 'ZAF', label: 'South Africa' },\n { value: 'SGS', label: 'South Georgia and the South Sandwich Islands' },\n { value: 'ESP', label: 'Spain' },\n { value: 'LKA', label: 'Sri Lanka' },\n { value: 'SDN', label: 'Sudan' },\n { value: 'SUR', label: 'Suriname' },\n { value: 'SWZ', label: 'Swaziland' },\n { value: 'SWE', label: 'Sweden' },\n { value: 'CHE', label: 'Switzerland' },\n { value: 'SYR', label: 'Syrian Arab Republic' },\n { value: 'TWN', label: 'Taiwan' },\n { value: 'TJK', label: 'Tajikistan' },\n { value: 'TZA', label: 'Tanzania' },\n { value: 'THA', label: 'Thailand' },\n { value: 'TLS', label: 'Timor-Leste' },\n { value: 'TGO', label: 'Togo' },\n { value: 'TKL', label: 'Tokelau' },\n { value: 'TON', label: 'Tonga' },\n { value: 'TTO', label: 'Trinidad and Tobago' },\n { value: 'TUN', label: 'Tunisia' },\n { value: 'TUR', label: 'Turkey' },\n { value: 'TKM', label: 'Turkmenistan' },\n { value: 'TCA', label: 'Turks and Caicos Islands' },\n { value: 'TUV', label: 'Tuvalu' },\n { value: 'UGA', label: 'Uganda' },\n { value: 'UKR', label: 'Ukraine' },\n { value: 'ARE', label: 'United Arab Emirates' },\n { value: 'GBR', label: 'United Kingdom' },\n { value: 'URY', label: 'Uruguay' },\n { value: 'UZB', label: 'Uzbekistan' },\n { value: 'VUT', label: 'Vanuatu' },\n { value: 'VAT', label: 'Vatican' },\n { value: 'VEN', label: 'Venezuela' },\n { value: 'VNM', label: 'Vietnam' },\n { value: 'VGB', label: 'British Virgin Islands' },\n { value: 'WLF', label: 'Wallis and Futuna' },\n { value: 'ESH', label: 'Western Sahara' },\n { value: 'YEM', label: 'Yemen' },\n { value: 'ZMB', label: 'Zambia' },\n { value: 'ZWE', label: 'Zimbabwe' }\n];\n\nexport const states = {\n CAN: [\n { label: 'Alberta', value: 'AB' },\n { label: 'British Columbia', value: 'BC' },\n { label: 'Manitoba', value: 'MB' },\n { label: 'New Brunswick', value: 'NB' },\n { label: 'Newfoundland', value: 'NF' },\n { label: 'Northwest Territories', value: 'NT' },\n { label: 'Nova Scotia', value: 'NV' },\n { label: 'Nunavut Province', value: 'NU' },\n { label: 'Ontario', value: 'ON' },\n { label: 'Prince Edward Island', value: 'PE' },\n { label: 'Quebec', value: 'QC' },\n { label: 'Saskatchewan', value: 'SK' },\n { label: 'Yukon Territory', value: 'YT' }\n ],\n MEX: [\n { label: 'Aguascalientes', value: 'aguascalientes' },\n { label: 'Baja California Norte', value: 'baja-california-norte' },\n { label: 'Baja California Sur', value: 'baja-california-sur' },\n { label: 'Campeche', value: 'campeche' },\n { label: 'Chiapas', value: 'chiapas' },\n { label: 'Chihuahua', value: 'chihuahua' },\n { label: 'Coahuila', value: 'coahuila' },\n { label: 'Colima', value: 'colima' },\n { label: 'Distrito Federal', value: 'distrito-federal' },\n { label: 'Durango', value: 'durango' },\n { label: 'Guanajuato', value: 'guanajuato' },\n { label: 'Guerrero', value: 'guerrero' },\n { label: 'Hidalgo', value: 'hidalgo' },\n { label: 'Jalisco', value: 'jalisco' },\n { label: 'México', value: 'mexico' },\n { label: 'Michoacán', value: 'michoacan' },\n { label: 'Morelos', value: 'morelos' },\n { label: 'Nayarit', value: 'nayarit' },\n { label: 'Nuevo León', value: 'nuevo-leon' },\n { label: 'Oaxaca', value: 'oaxaca' },\n { label: 'Puebla', value: 'puebla' },\n { label: 'Querétaro', value: 'queretaro' },\n { label: 'Quintana Roo', value: 'quintana-roo' },\n { label: 'San Luis Potosí', value: 'san-luis-potosi' },\n { label: 'Sinaloa', value: 'sinaloa' },\n { label: 'Sonora', value: 'sonora' },\n { label: 'Tabasco', value: 'tabasco' },\n { label: 'Tamaulipas', value: 'tamaulipas' },\n { label: 'Tlaxcala', value: 'tlaxcala' },\n { label: 'Veracruz', value: 'veracruz' },\n { label: 'Yucatán', value: 'yucatan' },\n { label: 'Zacatecas', value: 'zacatecas' }\n ],\n USA: [\n { label: 'Alabama', value: 'AL' },\n { label: 'Alaska', value: 'AK' },\n { label: 'American Samoa', value: 'AS' },\n { label: 'Arizona', value: 'AZ' },\n { label: 'Arkansas', value: 'AR' },\n { label: 'Armed Forces Americas (AA)', value: 'AA' },\n { label: 'Armed Forces Europe (AE)', value: 'AE' },\n { label: 'Armed Forces Pacific (AP)', value: 'AP' },\n { label: 'California', value: 'CA' },\n { label: 'Colorado', value: 'CO' },\n { label: 'Connecticut', value: 'CT' },\n { label: 'Delaware', value: 'DE' },\n { label: 'District Of Columbia', value: 'DC' },\n { label: 'Federated States Of Micronesia', value: 'FM' },\n { label: 'Florida', value: 'FL' },\n { label: 'Georgia', value: 'GA' },\n { label: 'Guam', value: 'GU' },\n { label: 'Hawaii', value: 'HI' },\n { label: 'Idaho', value: 'ID' },\n { label: 'Illinois', value: 'IL' },\n { label: 'Indiana', value: 'IN' },\n { label: 'Iowa', value: 'IA' },\n { label: 'Kansas', value: 'KS' },\n { label: 'Kentucky', value: 'KY' },\n { label: 'Louisiana', value: 'LA' },\n { label: 'Maine', value: 'ME' },\n { label: 'Marshall Islands', value: 'MH' },\n { label: 'Maryland', value: 'MD' },\n { label: 'Massachusetts', value: 'MA' },\n { label: 'Michigan', value: 'MI' },\n { label: 'Minnesota', value: 'MN' },\n { label: 'Mississippi', value: 'MS' },\n { label: 'Missouri', value: 'MO' },\n { label: 'Montana', value: 'MT' },\n { label: 'Nebraska', value: 'NE' },\n { label: 'Nevada', value: 'NV' },\n { label: 'New Hampshire', value: 'NH' },\n { label: 'New Jersey', value: 'NJ' },\n { label: 'New Mexico', value: 'NM' },\n { label: 'New York', value: 'NY' },\n { label: 'North Carolina', value: 'NC' },\n { label: 'North Dakota', value: 'ND' },\n { label: 'Northern Mariana Islands', value: 'MP' },\n { label: 'Ohio', value: 'OH' },\n { label: 'Oklahoma', value: 'OK' },\n { label: 'Oregon', value: 'OR' },\n { label: 'Palau', value: 'PW' },\n { label: 'Pennsylvania', value: 'PA' },\n { label: 'Puerto Rico', value: 'PR' },\n { label: 'Rhode Island', value: 'RI' },\n { label: 'South Carolina', value: 'SC' },\n { label: 'South Dakota', value: 'SD' },\n { label: 'Tennessee', value: 'TN' },\n { label: 'Texas', value: 'TX' },\n { label: 'Utah', value: 'UT' },\n { label: 'Vermont', value: 'VT' },\n { label: 'Virgin Islands', value: 'VI' },\n { label: 'Virginia', value: 'VA' },\n { label: 'Washington', value: 'WA' },\n { label: 'West Virginia', value: 'WV' },\n { label: 'Wisconsin', value: 'WI' },\n { label: 'Wyoming', value: 'WY' }\n ]\n};\n\nstates.USA_OTHER = states.USA\n .concat([{ label: 'Other', value: 'Other' }])\n .sort((a, b) => a.label.localeCompare(b.label));\n\nexport function isValidUSZipCode(value) {\n return /(^\\d{5}$)|(^\\d{5}[ -]{0,1}\\d{4}$)/.test(value);\n}\n\nexport function isValidCanPostalCode(value) {\n return /^[a-zA-Z]\\d[a-zA-Z][ -]{0,1}\\d[a-zA-Z]\\d$/.test(value);\n}\n"]} \ No newline at end of file diff --git a/lib/js/utilities/data/checkValidPath.js b/lib/js/utilities/data/checkValidPath.js index 05f3ff5..35998a1 100644 --- a/lib/js/utilities/data/checkValidPath.js +++ b/lib/js/utilities/data/checkValidPath.js @@ -13,4 +13,5 @@ function checkValidPath(arrayPath) { })) { throw new Error('Path is invalid; please make sure it doesn\'t contain undefined or null segments'); } -} \ No newline at end of file +} +//# sourceMappingURL=checkValidPath.js.map \ No newline at end of file diff --git a/lib/js/utilities/data/checkValidPath.js.map b/lib/js/utilities/data/checkValidPath.js.map new file mode 100644 index 0000000..841ae25 --- /dev/null +++ b/lib/js/utilities/data/checkValidPath.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/data/checkValidPath.js"],"names":["checkValidPath","arrayPath","some","e","undefined","Error"],"mappings":";;;;;kBAGwBA,c;AAHxB;;;AAGe,SAASA,cAAT,CAAwBC,SAAxB,EAAmC;AAChD,MAAIA,UAAUC,IAAV,CAAe;AAAA,WAAKC,MAAMC,SAAN,IAAmBD,MAAM,IAA9B;AAAA,GAAf,CAAJ,EAAwD;AACtD,UAAM,IAAIE,KAAJ,CAAU,kFAAV,CAAN;AACD;AACF","file":"checkValidPath.js","sourcesContent":["/**\n * If the path contains invalid segments, throws an error.\n */\nexport default function checkValidPath(arrayPath) {\n if (arrayPath.some(e => e === undefined && e === null)) {\n throw new Error('Path is invalid; please make sure it doesn\\'t contain undefined or null segments');\n }\n}\n"]} \ No newline at end of file diff --git a/lib/js/utilities/data/clone.js b/lib/js/utilities/data/clone.js index ca972e3..14043b2 100644 --- a/lib/js/utilities/data/clone.js +++ b/lib/js/utilities/data/clone.js @@ -30,4 +30,5 @@ function clone(object) { throw new Error('Unknown type in clone: ' + (typeof object === 'undefined' ? 'undefined' : _typeof(object))); } /* eslint-enable no-prototype-builtins */ -} \ No newline at end of file +} +//# sourceMappingURL=clone.js.map \ No newline at end of file diff --git a/lib/js/utilities/data/clone.js.map b/lib/js/utilities/data/clone.js.map new file mode 100644 index 0000000..86ba209 --- /dev/null +++ b/lib/js/utilities/data/clone.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/data/clone.js"],"names":["clone","object","Array","isArray","slice","Set","prototype","isPrototypeOf","Map","Object","assign","Error"],"mappings":";;;;;;;;kBAMwBA,K;AANxB;;;;;;AAMe,SAASA,KAAT,CAAeC,MAAf,EAAuB;AACpC;AACA,iBAAeA,MAAf,yCAAeA,MAAf;AACE,SAAK,QAAL;AACE,UAAIC,MAAMC,OAAN,CAAcF,MAAd,CAAJ,EAA2B;AACzB,eAAOA,OAAOG,KAAP,EAAP;AACD,OAFD,MAEO,IAAIC,IAAIC,SAAJ,CAAcC,aAAd,CAA4BN,MAA5B,CAAJ,EAAyC;AAC9C,eAAO,IAAII,GAAJ,CAAQJ,MAAR,CAAP;AACD,OAFM,MAEA,IAAIO,IAAIF,SAAJ,CAAcC,aAAd,CAA4BN,MAA5B,CAAJ,EAAyC;AAC9C,eAAO,IAAIO,GAAJ,CAAQP,MAAR,CAAP;AACD;AACD;AACA,aAAOQ,OAAOC,MAAP,CAAc,EAAd,EAAkBT,MAAlB,CAAP;AACF;AACE,YAAM,IAAIU,KAAJ,qCAA2CV,MAA3C,yCAA2CA,MAA3C,GAAN;AAZJ;AAcA;AACD","file":"clone.js","sourcesContent":["/**\n * Returns a shallow clone of an object.\n *\n * @param {Object} object\n * @return {Object}\n */\nexport default function clone(object) {\n /* eslint-disable no-prototype-builtins */\n switch (typeof object) {\n case 'object':\n if (Array.isArray(object)) {\n return object.slice();\n } else if (Set.prototype.isPrototypeOf(object)) {\n return new Set(object);\n } else if (Map.prototype.isPrototypeOf(object)) {\n return new Map(object);\n }\n // Probably just ye olde object\n return Object.assign({}, object);\n default:\n throw new Error(`Unknown type in clone: ${typeof object}`);\n }\n /* eslint-enable no-prototype-builtins */\n}\n\n"]} \ No newline at end of file diff --git a/lib/js/utilities/data/cloneDeep.js b/lib/js/utilities/data/cloneDeep.js index 6048b06..511c765 100644 --- a/lib/js/utilities/data/cloneDeep.js +++ b/lib/js/utilities/data/cloneDeep.js @@ -44,4 +44,5 @@ function cloneDeep(object) { }); return newObj; -} \ No newline at end of file +} +//# sourceMappingURL=cloneDeep.js.map \ No newline at end of file diff --git a/lib/js/utilities/data/cloneDeep.js.map b/lib/js/utilities/data/cloneDeep.js.map new file mode 100644 index 0000000..c75ab99 --- /dev/null +++ b/lib/js/utilities/data/cloneDeep.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/data/cloneDeep.js"],"names":["cloneDeep","object","newObj","cloneArrayElement","e","Object","keys","forEach","Array","isArray","key","slice","map"],"mappings":";;;;;;;;kBAWwBA,S;;AAXxB;;;;;;AAEA;;;;;;;;;AASe,SAASA,SAAT,CAAmBC,MAAnB,EAA2B;AACxC,MAAMC,SAAS,qBAAMD,MAAN,CAAf;;AAEA,MAAME,oBAAoB,SAApBA,iBAAoB,IAAK;AAC7B;AACA,QAAI,QAAOC,CAAP,yCAAOA,CAAP,OAAa,QAAb,IAAyBA,MAAM,IAAnC,EAAyC;AACvC,aAAOJ,UAAUI,CAAV,CAAP;AACD;;AAED,WAAOA,CAAP;AACD,GAPD;;AASAC,SAAOC,IAAP,CAAYJ,MAAZ,EAAoBK,OAApB,CAA4B,eAAO;AACjC,QAAIC,MAAMC,OAAN,CAAcP,OAAOQ,GAAP,CAAd,CAAJ,EAAgC;AAC9BR,aAAOQ,GAAP,IAAcR,OAAOQ,GAAP,EAAYC,KAAZ,GAAoBC,GAApB,CAAwBT,iBAAxB,CAAd;AACD,KAFD,MAEO,IAAI,QAAOD,OAAOQ,GAAP,CAAP,MAAuB,QAA3B,EAAqC;AAC1CR,aAAOQ,GAAP,IAAcV,UAAUE,OAAOQ,GAAP,CAAV,CAAd;AACD;AACF,GAND;;AAQA,SAAOR,MAAP;AACD","file":"cloneDeep.js","sourcesContent":["import clone from './clone';\n\n/**\n * Deeply clones an object. It's probably not super performant on deeply nested objects, but\n * it gets the job done for now.\n *\n * Functions retain the same reference, but their `this` context changes like we'd expect.\n *\n * @param {Array|Object} object\n * @return {Object}\n */\nexport default function cloneDeep(object) {\n const newObj = clone(object);\n\n const cloneArrayElement = e => {\n // Deep clones arrays and objects\n if (typeof e === 'object' && e !== null) {\n return cloneDeep(e);\n }\n\n return e;\n };\n\n Object.keys(newObj).forEach(key => {\n if (Array.isArray(newObj[key])) {\n newObj[key] = newObj[key].slice().map(cloneArrayElement);\n } else if (typeof newObj[key] === 'object') {\n newObj[key] = cloneDeep(newObj[key]);\n }\n });\n\n return newObj;\n}\n\n"]} \ No newline at end of file diff --git a/lib/js/utilities/data/debounce.js b/lib/js/utilities/data/debounce.js index 764f65a..cc82401 100644 --- a/lib/js/utilities/data/debounce.js +++ b/lib/js/utilities/data/debounce.js @@ -28,4 +28,5 @@ function debounce(wait, func) { }; return debouncedFunc; -} \ No newline at end of file +} +//# sourceMappingURL=debounce.js.map \ No newline at end of file diff --git a/lib/js/utilities/data/debounce.js.map b/lib/js/utilities/data/debounce.js.map new file mode 100644 index 0000000..8cdec73 --- /dev/null +++ b/lib/js/utilities/data/debounce.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/data/debounce.js"],"names":["debounce","wait","func","timeoutId","debouncedFunc","debouncedFunction","args","context","clearTimeout","setTimeout","apply","cancel"],"mappings":";;;;;kBAIwBA,Q;AAJxB;;;;AAIe,SAASA,QAAT,CAAkBC,IAAlB,EAAwBC,IAAxB,EAA8B;AAC3C,MAAIC,kBAAJ;;AAEA,MAAMC,gBAAgB,SAASC,iBAAT,GAAoC;AAAA,sCAANC,IAAM;AAANA,UAAM;AAAA;;AACxD,QAAMC,UAAU,IAAhB;AACAC,iBAAaL,SAAb;AACAA,gBAAYM,WAAW;AAAA,aAAMP,KAAKQ,KAAL,CAAWH,OAAX,EAAoBD,IAApB,CAAN;AAAA,KAAX,EAA4CL,IAA5C,CAAZ;AACD,GAJD;;AAMAG,gBAAcO,MAAd,GAAuB,SAASA,MAAT,GAAkB;AACvCH,iBAAaL,SAAb;AACD,GAFD;;AAIA,SAAOC,aAAP;AACD","file":"debounce.js","sourcesContent":["/**\n * @param {number}\n * @param {function}\n */\nexport default function debounce(wait, func) {\n let timeoutId;\n\n const debouncedFunc = function debouncedFunction(...args) {\n const context = this;\n clearTimeout(timeoutId);\n timeoutId = setTimeout(() => func.apply(context, args), wait);\n };\n\n debouncedFunc.cancel = function cancel() {\n clearTimeout(timeoutId);\n };\n\n return debouncedFunc;\n}\n"]} \ No newline at end of file diff --git a/lib/js/utilities/data/deconstructPath.js b/lib/js/utilities/data/deconstructPath.js index b3f0297..21cdc81 100644 --- a/lib/js/utilities/data/deconstructPath.js +++ b/lib/js/utilities/data/deconstructPath.js @@ -23,4 +23,5 @@ function deconstructPath(path) { }).map(coerceNumber); return arrayPath; -} \ No newline at end of file +} +//# sourceMappingURL=deconstructPath.js.map \ No newline at end of file diff --git a/lib/js/utilities/data/deconstructPath.js.map b/lib/js/utilities/data/deconstructPath.js.map new file mode 100644 index 0000000..329b96b --- /dev/null +++ b/lib/js/utilities/data/deconstructPath.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/data/deconstructPath.js"],"names":["deconstructPath","coerceNumber","e","num","parseInt","path","arrayPath","split","filter","map"],"mappings":";;;;;kBAawBA,e;AAbxB;AACA,SAASC,YAAT,CAAsBC,CAAtB,EAAyB;AACvB,MAAMC,MAAMC,SAASF,CAAT,EAAY,EAAZ,CAAZ;AACA,SAAOA,WAASC,GAAT,GAAiBA,GAAjB,GAAuBD,CAA9B;AACD;;AAED;;;;;;;AAOe,SAASF,eAAT,CAAyBK,IAAzB,EAA+B;AAC5C,MAAMC,YAAYD,KACfE,KADe,CACT,QADS,EAEfC,MAFe,CAER;AAAA,WAAKN,MAAM,EAAX;AAAA,GAFQ,EAGfO,GAHe,CAGXR,YAHW,CAAlB;;AAKA,SAAOK,SAAP;AACD","file":"deconstructPath.js","sourcesContent":["// Coerce to numbers where applicable\nfunction coerceNumber(e) {\n const num = parseInt(e, 10);\n return e === `${num}` ? num : e;\n}\n\n/**\n * Takes a string and casts it into an array.\n * Can take strings like a.b[4].c\n *\n * @param {string} path\n * @return {Array}\n */\nexport default function deconstructPath(path) {\n const arrayPath = path\n .split(/[.[\\]]/)\n .filter(e => e !== '')\n .map(coerceNumber);\n\n return arrayPath;\n}\n"]} \ No newline at end of file diff --git a/lib/js/utilities/data/get.js b/lib/js/utilities/data/get.js index 46f1ad9..722af22 100644 --- a/lib/js/utilities/data/get.js +++ b/lib/js/utilities/data/get.js @@ -36,4 +36,5 @@ function get(path, object, defaultValue) { // Should this clone? the current value? It might use a different ref--not sure. return typeof currentValue !== 'undefined' ? currentValue : defaultValue; -} \ No newline at end of file +} +//# sourceMappingURL=get.js.map \ No newline at end of file diff --git a/lib/js/utilities/data/get.js.map b/lib/js/utilities/data/get.js.map new file mode 100644 index 0000000..b7f95aa --- /dev/null +++ b/lib/js/utilities/data/get.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/data/get.js"],"names":["get","path","object","defaultValue","arrayPath","Array","isArray","currentValue","reduce","current","next"],"mappings":";;;;;kBAewBA,G;;AAfxB;;;;AACA;;;;;;AAEA;;;;;;;;;;;;AAYe,SAASA,GAAT,CAAaC,IAAb,EAAmBC,MAAnB,EAA2BC,YAA3B,EAAyC;AACtD,MAAMC,YAAYC,MAAMC,OAAN,CAAcL,IAAd,IAAsBA,IAAtB,GAA6B,+BAAgBA,IAAhB,CAA/C;AACA,gCAAeG,SAAf;AACA,MAAMG,eAAeH,UAAUI,MAAV,CAAiB,UAACC,OAAD,EAAUC,IAAV,EAAmB;AACvD,WAAO,OAAOD,OAAP,KAAmB,WAAnB,GAAiCA,OAAjC,GAA2CA,QAAQC,IAAR,CAAlD;AACD,GAFoB,EAElBR,MAFkB,CAArB;;AAIA;AACA,SAAQ,OAAOK,YAAP,KAAwB,WAAzB,GAAwCA,YAAxC,GAAuDJ,YAA9D;AACD","file":"get.js","sourcesContent":["import deconstructPath from './deconstructPath';\nimport checkValidPath from './checkValidPath';\n\n/**\n * Gets a the value at the end of the path.\n *\n * Note: This function does not return a clone of this value, so if the return\n * result of this function is an object, modifying it will also change the original\n * object it was grabbed from.\n *\n * @param {Object} object\n * @param {Array|string} path\n * @param {*} [defaultValue]\n * @return {*}\n */\nexport default function get(path, object, defaultValue) {\n const arrayPath = Array.isArray(path) ? path : deconstructPath(path);\n checkValidPath(arrayPath);\n const currentValue = arrayPath.reduce((current, next) => {\n return typeof current === 'undefined' ? current : current[next];\n }, object);\n\n // Should this clone? the current value? It might use a different ref--not sure.\n return (typeof currentValue !== 'undefined') ? currentValue : defaultValue;\n}\n\n"]} \ No newline at end of file diff --git a/lib/js/utilities/data/index.js b/lib/js/utilities/data/index.js index 5cfeab9..127be1e 100644 --- a/lib/js/utilities/data/index.js +++ b/lib/js/utilities/data/index.js @@ -44,4 +44,5 @@ exports.default = { get: _get2.default, omit: _omit2.default, set: _set2.default -}; \ No newline at end of file +}; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/lib/js/utilities/data/index.js.map b/lib/js/utilities/data/index.js.map new file mode 100644 index 0000000..8a12624 --- /dev/null +++ b/lib/js/utilities/data/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/data/index.js"],"names":["clone","cloneDeep","debounce","get","omit","set"],"mappings":";;;;;;AAOA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;AAZA;;;;;;;kBAce;AACbA,wBADa;AAEbC,gCAFa;AAGbC,8BAHa;AAIbC,oBAJa;AAKbC,sBALa;AAMbC;AANa,C","file":"index.js","sourcesContent":["/**\n * Lodash replacements is a collection of functions designed to replace common lodash ones.\n * These function will more closely resemble lodash/fp functions in that they should be\n * non-mutative and support the lodash/fp parameter order. They should _not_ support auto-\n * currying for simplicity.\n */\n\nimport clone from './clone';\nimport cloneDeep from './cloneDeep';\nimport debounce from './debounce';\nimport get from './get';\nimport omit from './omit';\nimport set from './set';\n\nexport default {\n clone,\n cloneDeep,\n debounce,\n get,\n omit,\n set\n};\n\n"]} \ No newline at end of file diff --git a/lib/js/utilities/data/omit.js b/lib/js/utilities/data/omit.js index 286ae64..7e66649 100644 --- a/lib/js/utilities/data/omit.js +++ b/lib/js/utilities/data/omit.js @@ -18,4 +18,5 @@ function omit(fields, object) { return newObj; }, {}); -} \ No newline at end of file +} +//# sourceMappingURL=omit.js.map \ No newline at end of file diff --git a/lib/js/utilities/data/omit.js.map b/lib/js/utilities/data/omit.js.map new file mode 100644 index 0000000..a487965 --- /dev/null +++ b/lib/js/utilities/data/omit.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/data/omit.js"],"names":["omit","fields","object","Object","keys","reduce","newObj","k","includes"],"mappings":";;;;;kBAMwBA,I;AANxB;;;;;;AAMe,SAASA,IAAT,CAAcC,MAAd,EAAsBC,MAAtB,EAA8B;AAC3C,SAAOC,OAAOC,IAAP,CAAYF,MAAZ,EAAoBG,MAApB,CAA2B,UAACC,MAAD,EAASC,CAAT,EAAe;AAC/C,QAAI,CAACN,OAAOO,QAAP,CAAgBD,CAAhB,CAAL,EAAyB;AACvBD,aAAOC,CAAP,IAAYL,OAAOK,CAAP,CAAZ,CADuB,CACA;AACxB;;AAED,WAAOD,MAAP;AACD,GANM,EAMJ,EANI,CAAP;AAOD","file":"omit.js","sourcesContent":["/**\n * Returns a deep clone of the provided object without the specified fields.\n *\n * @param {Array} fields\n * @param {Object} object\n */\nexport default function omit(fields, object) {\n return Object.keys(object).reduce((newObj, k) => {\n if (!fields.includes(k)) {\n newObj[k] = object[k]; // eslint-disable-line\n }\n\n return newObj;\n }, {});\n}\n"]} \ No newline at end of file diff --git a/lib/js/utilities/data/set.js b/lib/js/utilities/data/set.js index 28c7308..edf3c59 100644 --- a/lib/js/utilities/data/set.js +++ b/lib/js/utilities/data/set.js @@ -87,4 +87,5 @@ function set(path, value, object) { var arrayPath = Array.isArray(path) ? path : (0, _deconstructPath2.default)(path); (0, _checkValidPath2.default)(arrayPath); return baseSet(arrayPath, value, object, 0); -} \ No newline at end of file +} +//# sourceMappingURL=set.js.map \ No newline at end of file diff --git a/lib/js/utilities/data/set.js.map b/lib/js/utilities/data/set.js.map new file mode 100644 index 0000000..93cd415 --- /dev/null +++ b/lib/js/utilities/data/set.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/data/set.js"],"names":["set","baseSet","arrayPath","value","object","level","length","newObj","pathSegment","nextPathSegment","Array","Error","path","isArray"],"mappings":";;;;;;;;kBAgEwBA,G;;AAhExB;;;;AACA;;;;AACA;;;;;;AAEA;;;;;;;;;;;;;;;AAeA,SAASC,OAAT,CAAiBC,SAAjB,EAA4BC,KAA5B,EAAmCC,MAAnC,EAAsD;AAAA,MAAXC,KAAW,uEAAH,CAAG;;AACpD,MAAIA,SAASH,UAAUI,MAAvB,EAA+B;AAC7B;AACA,WAAOH,KAAP;AACD;;AAED,MAAMI,SAAS,qBAAMH,MAAN,CAAf;;AAEA,MAAMI,cAAcN,UAAUG,KAAV,CAApB;AACA,MAAMI,kBAAkBP,UAAUG,QAAQ,CAAlB,CAAxB;;AAEA;AACA,MAAI,OAAOE,OAAOC,WAAP,CAAP,KAA+B,WAAnC,EAAgD;AAC9C;AACA,mBAAeC,eAAf,yCAAeA,eAAf;AACE,WAAK,QAAL;AACEF,eAAOC,WAAP,IAAsB,EAAtB;AACA;AACF,WAAK,QAAL;AACE;AACAD,eAAOC,WAAP,IAAsB,IAAIE,KAAJ,CAAUD,kBAAkB,CAA5B,CAAtB;AACA;AACF,WAAK,WAAL;AACE;AACA;AACF;AACE,cAAM,IAAIE,KAAJ,8CAAoDF,eAApD,yCAAoDA,eAApD,kDAA6GJ,QAAQ,CAArH,oBAAoII,eAApI,OAAN;AAZJ;AAcD;;AAEDF,SAAOC,WAAP,IAAsBP,QAAQC,SAAR,EAAmBC,KAAnB,EAA0BI,OAAOC,WAAP,CAA1B,EAA+CH,QAAQ,CAAvD,CAAtB;;AAEA,SAAOE,MAAP;AACD;;AAGD;;;;;;;;;AASe,SAASP,GAAT,CAAaY,IAAb,EAAmBT,KAAnB,EAA0BC,MAA1B,EAAkC;AAC/C,MAAMF,YAAYQ,MAAMG,OAAN,CAAcD,IAAd,IAAsBA,IAAtB,GAA6B,+BAAgBA,IAAhB,CAA/C;AACA,gCAAeV,SAAf;AACA,SAAOD,QAAQC,SAAR,EAAmBC,KAAnB,EAA0BC,MAA1B,EAAkC,CAAlC,CAAP;AACD","file":"set.js","sourcesContent":["import deconstructPath from './deconstructPath';\nimport clone from './clone';\nimport checkValidPath from './checkValidPath';\n\n/**\n * Same as `set`, but uses the level param to determine when to clone and give a more helpful error message.\n *\n * Note: Sub-objects in the path will not be `===` to objects in the same path in the existing data, but all\n * other objects will be. By not cloning the data outside the path, we allow components (and Redux's connect\n * HoC) to quickly tell which parts of the root object have changed, by doing a `===` comparison.\n *\n * TODO: Link to some documentation which will be a better explanation than the above\n *\n * @param {Array|string} path\n * @param {*} value\n * @param {Array|Object} object\n * @param {Number} level How many times we've recursed\n * @return {Object} A new object with the appropriate value set\n */\nfunction baseSet(arrayPath, value, object, level = 0) {\n if (level >= arrayPath.length) {\n // We're at the end of our path; time to assign\n return value;\n }\n\n const newObj = clone(object);\n\n const pathSegment = arrayPath[level];\n const nextPathSegment = arrayPath[level + 1];\n\n // Handle a path that doesn't exist\n if (typeof newObj[pathSegment] === 'undefined') {\n // The type of this element depends on the next path chunk\n switch (typeof nextPathSegment) {\n case 'string':\n newObj[pathSegment] = {};\n break;\n case 'number':\n // The array should be big enough to get whatever index we're looking for\n newObj[pathSegment] = new Array(nextPathSegment + 1);\n break;\n case 'undefined':\n // Do nothing; this will be assigned on the next iteration\n break;\n default:\n throw new Error(`Unrecognized path element type: ${typeof nextPathSegment}. Expected string or number. arrayPath[${level + 1}] contains ${nextPathSegment}.`);\n }\n }\n\n newObj[pathSegment] = baseSet(arrayPath, value, newObj[pathSegment], level + 1);\n\n return newObj;\n}\n\n\n/**\n * Sets the value at the end of the path, creating the appropriate objects along the way if needed.\n * Separate from `baseSet` to not expose the level param.\n *\n * @param {Array|string} path\n * @param {*} value\n * @param {Object} object\n * @return {Object} A new object with the appropriate value set\n */\nexport default function set(path, value, object) {\n const arrayPath = Array.isArray(path) ? path : deconstructPath(path);\n checkValidPath(arrayPath);\n return baseSet(arrayPath, value, object, 0);\n}\n\n"]} \ No newline at end of file diff --git a/lib/js/utilities/date/index.js b/lib/js/utilities/date/index.js index b7350f7..af76ffd 100644 --- a/lib/js/utilities/date/index.js +++ b/lib/js/utilities/date/index.js @@ -86,4 +86,5 @@ function timeFromNow(date) { } return 'a moment'; -} \ No newline at end of file +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/lib/js/utilities/date/index.js.map b/lib/js/utilities/date/index.js.map new file mode 100644 index 0000000..87fae0b --- /dev/null +++ b/lib/js/utilities/date/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/date/index.js"],"names":["dateToMoment","timeFromNow","months","label","value","twentyNineDays","thirtyDays","thirtyOneDays","days","formatDiff","diff","desc","dateField","year","month","parseInt","day","date","userFromDate","fromDate","dayDiff","hourDiff","minuteDiff","secondDiff"],"mappings":";;;;;;QAwCgBA,Y,GAAAA,Y;QAiBAC,W,GAAAA,W;;AAzDhB;;;;;;AAEO,IAAMC,0BAAS,CACpB,EAAEC,OAAO,KAAT,EAAgBC,OAAO,CAAvB,EADoB,EAEpB,EAAED,OAAO,KAAT,EAAgBC,OAAO,CAAvB,EAFoB,EAGpB,EAAED,OAAO,KAAT,EAAgBC,OAAO,CAAvB,EAHoB,EAIpB,EAAED,OAAO,KAAT,EAAgBC,OAAO,CAAvB,EAJoB,EAKpB,EAAED,OAAO,KAAT,EAAgBC,OAAO,CAAvB,EALoB,EAMpB,EAAED,OAAO,KAAT,EAAgBC,OAAO,CAAvB,EANoB,EAOpB,EAAED,OAAO,KAAT,EAAgBC,OAAO,CAAvB,EAPoB,EAQpB,EAAED,OAAO,KAAT,EAAgBC,OAAO,CAAvB,EARoB,EASpB,EAAED,OAAO,KAAT,EAAgBC,OAAO,CAAvB,EAToB,EAUpB,EAAED,OAAO,KAAT,EAAgBC,OAAO,EAAvB,EAVoB,EAWpB,EAAED,OAAO,KAAT,EAAgBC,OAAO,EAAvB,EAXoB,EAYpB,EAAED,OAAO,KAAT,EAAgBC,OAAO,EAA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,MAAIE,YAAY,CAAhB,EAAmB;AACjB,WAAOZ,WAAWY,QAAX,EAAqB,MAArB,CAAP;AACD;;AAED,MAAMC,aAAaL,KAAKP,IAAL,CAAUS,QAAV,EAAoB,SAApB,CAAnB;;AAEA,MAAIG,cAAc,CAAlB,EAAqB;AACnB,WAAOb,WAAWa,UAAX,EAAuB,QAAvB,CAAP;AACD;;AAED,MAAMC,aAAaN,KAAKP,IAAL,CAAUS,QAAV,EAAoB,SAApB,CAAnB;;AAEA,MAAII,cAAc,CAAlB,EAAqB;AACnB,WAAOd,WAAWc,UAAX,EAAuB,QAAvB,CAAP;AACD;;AAED,SAAO,UAAP;AACD","file":"index.js","sourcesContent":["import moment from 'moment';\n\nexport const months = [\n { label: 'Jan', value: 1 },\n { label: 'Feb', value: 2 },\n { label: 'Mar', value: 3 },\n { label: 'Apr', value: 4 },\n { label: 'May', value: 5 },\n { label: 'Jun', value: 6 },\n { label: 'Jul', value: 7 },\n { label: 'Aug', value: 8 },\n { label: 'Sep', value: 9 },\n { label: 'Oct', value: 10 },\n { label: 'Nov', value: 11 },\n { label: 'Dec', value: 12 }\n];\n\nconst twentyNineDays = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29'];\nconst thirtyDays = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30'];\nconst thirtyOneDays = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '30', '31'];\n\nexport const days = {\n 1: thirtyOneDays,\n 2: twentyNineDays,\n 3: thirtyOneDays,\n 4: thirtyDays,\n 5: thirtyOneDays,\n 6: thirtyDays,\n 7: thirtyOneDays,\n 8: thirtyOneDays,\n 9: thirtyDays,\n 10: thirtyOneDays,\n 11: thirtyDays,\n 12: thirtyOneDays\n};\n\nfunction formatDiff(diff, desc) {\n return `${diff} ${desc}${diff === 1 ? '' : 's'}`;\n}\n\nexport function dateToMoment(dateField) {\n return moment({\n year: dateField.year.value,\n month: dateField.month.value ? parseInt(dateField.month.value, 10) - 1 : '',\n day: dateField.day ? dateField.day.value : null\n });\n}\n\n/**\n * timeFromNow returns the number of days, hours, or minutes until\n * the provided date occurs. It’s meant to be less fuzzy than moment’s\n * timeFromNow so it can be used for expiration dates\n *\n * @param date {Moment Date} The future date to check against\n * @param userFromDate {Moment Date} The earlier date in the range. Defaults to today.\n * @returns {string} The string description of how long until date occurs\n */\nexport function timeFromNow(date, userFromDate = null) {\n // Not using defaulting because we want today to be when this function\n // is called, not when the file is parsed and run\n const fromDate = userFromDate || moment();\n const dayDiff = date.diff(fromDate, 'days');\n\n if (dayDiff >= 1) {\n return formatDiff(dayDiff, 'day');\n }\n\n const hourDiff = date.diff(fromDate, 'hours');\n\n if (hourDiff >= 1) {\n return formatDiff(hourDiff, 'hour');\n }\n\n const minuteDiff = date.diff(fromDate, 'minutes');\n\n if (minuteDiff >= 1) {\n return formatDiff(minuteDiff, 'minute');\n }\n\n const secondDiff = date.diff(fromDate, 'seconds');\n\n if (secondDiff >= 1) {\n return formatDiff(secondDiff, 'second');\n }\n\n return 'a moment';\n}\n"]} \ No newline at end of file diff --git a/lib/js/utilities/fuzzy-matching.js b/lib/js/utilities/fuzzy-matching.js index b424a87..f67b652 100644 --- a/lib/js/utilities/fuzzy-matching.js +++ b/lib/js/utilities/fuzzy-matching.js @@ -46,4 +46,5 @@ function sortListByFuzzyMatch(value, list) { }).map(function (sorted) { return sorted.original; }); -} \ No newline at end of file +} +//# sourceMappingURL=fuzzy-matching.js.map \ No newline at end of file diff --git a/lib/js/utilities/fuzzy-matching.js.map b/lib/js/utilities/fuzzy-matching.js.map new file mode 100644 index 0000000..1c71216 --- /dev/null +++ b/lib/js/utilities/fuzzy-matching.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/utilities/fuzzy-matching.js"],"names":["sortListByFuzzyMatch","value","list","prop","map","label","option","toUpperCase","replace","val","score","includes","Infinity","Math","min","apply","split","fastLevenshtein","get","word","filter","wordScore","length","original","sort","a","b","result","sorted"],"mappings":";;;;;kBAEwBA,oB;;AAFxB;;;;;;AAEe,SAASA,oBAAT,CAA8BC,KAA9B,EAAqCC,IAArC,EAA2D;AAAA,MAAhBC,IAAgB,uEAAT,OAAS;;AACxE,SAAOD,KACJE,GADI,CACA,kBAAU;AACb,QAAMC,QAAQC,OAAOH,IAAP,EAAaI,WAAb,GAA2BC,OAA3B,CAAmC,aAAnC,EAAkD,EAAlD,CAAd;AACA,QAAMC,MAAMR,MAAMM,WAAN,GAAoBC,OAApB,CAA4B,aAA5B,EAA2C,EAA3C,CAAZ;AACA,QAAIE,QAAQL,MAAMM,QAAN,CAAeF,GAAf,IAAsB,CAAtB,GAA0BG,QAAtC;;AAEA;AACA;AACA,QAAIF,QAAQ,CAAR,IAAa,CAACD,IAAIE,QAAJ,CAAa,GAAb,CAAlB,EAAqC;AACnCD,cAAQG,KAAKC,GAAL,CAASC,KAAT,CAAe,IAAf,EACNV,MACGW,KADH,CACS,MADT,EAEGZ,GAFH,CAEO;AAAA,eAAQa,0BAAgBC,GAAhB,CAAoBC,IAApB,EAA0BV,GAA1B,CAAR;AAAA,OAFP,EAGGW,MAHH,CAGU;AAAA,eAAaC,YAAYZ,IAAIa,MAA7B;AAAA,OAHV,CADM,CAAR;AAMD,KAPD,MAOO,IAAIZ,QAAQ,CAAZ,EAAe;AACpBA,cAAQO,0BAAgBC,GAAhB,CAAoBb,KAApB,EAA2BI,GAA3B,CAAR;AACD;;AAED,WAAO;AACLC,kBADK;AAELa,gBAAUjB;AAFL,KAAP;AAID,GAvBI,EAwBJkB,IAxBI,CAwBC,UAACC,CAAD,EAAIC,CAAJ,EAAU;AACd,QAAMC,SAASF,EAAEf,KAAF,GAAUgB,EAAEhB,KAA3B;;AAEA,QAAIiB,WAAW,CAAf,EAAkB;AAChB,aAAOF,EAAEF,QAAF,CAAWpB,IAAX,EAAiBmB,MAAjB,GAA0BI,EAAEH,QAAF,CAAWpB,IAAX,EAAiBmB,MAAlD;AACD;;AAED,WAAOK,MAAP;AACD,GAhCI,EAiCJvB,GAjCI,CAiCA;AAAA,WAAUwB,OAAOL,QAAjB;AAAA,GAjCA,CAAP;AAkCD","file":"fuzzy-matching.js","sourcesContent":["import fastLevenshtein from 'fast-levenshtein';\n\nexport default function sortListByFuzzyMatch(value, list, prop = 'label') {\n return list\n .map(option => {\n const label = option[prop].toUpperCase().replace(/[^a-zA-Z ]/g, '');\n const val = value.toUpperCase().replace(/[^a-zA-Z ]/g, '');\n let score = label.includes(val) ? 0 : Infinity;\n\n // if the search term is just one word, split the\n // list into words and find the best match\n if (score > 0 && !val.includes(' ')) {\n score = Math.min.apply(null,\n label\n .split(/[ ,]/)\n .map(word => fastLevenshtein.get(word, val))\n .filter(wordScore => wordScore < val.length)\n );\n } else if (score > 0) {\n score = fastLevenshtein.get(label, val);\n }\n\n return {\n score,\n original: option\n };\n })\n .sort((a, b) => {\n const result = a.score - b.score;\n\n if (result === 0) {\n return a.original[prop].length - b.original[prop].length;\n }\n\n return result;\n })\n .map(sorted => sorted.original);\n}\n"]} \ No newline at end of file diff --git a/lib/js/utilities/ui/index.js b/lib/js/utilities/ui/index.js index 89f4fdd..5b476db 100644 --- a/lib/js/utilities/ui/index.js +++ b/lib/js/utilities/ui/index.js @@ -60,4 +60,5 @@ function scrollToFirstError() { _reactScroll2.default.animateScroll.scrollTo(position - 10, getScrollOptions()); focusElement(errorEl); } -} \ No newline at end of file +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/lib/js/utilities/ui/index.js.map b/lib/js/utilities/ui/index.js.map new file mode 100644 index 0000000..258948e --- /dev/null +++ b/lib/js/utilities/ui/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/ui/index.js"],"names":["focusElement","setGlobalScroll","getScrollOptions","scrollToFirstError","selectorOrElement","options","el","document","querySelector","tabIndex","setAttribute","focus","window","Forms","scroll","duration","delay","smooth","additionalOptions","globals","defaults","errorEl","currentPosition","pageYOffset","documentElement","scrollTop","body","position","getBoundingClientRect","top","Scroll","animateScroll","scrollTo"],"mappings":";;;;;;;;;;QAGgBA,Y,GAAAA,Y;QAaAC,e,GAAAA,e;QAWAC,gB,GAAAA,gB;QAUAC,kB,GAAAA,kB;;AApChB;;;;;;AAEO,SAASH,YAAT,CAAsBI,iBAAtB,EAAyCC,OAAzC,EAAkD;AACvD,MAAMC,KAAK,OAAOF,iBAAP,KAA6B,QAA7B,GACPG,SAASC,aAAT,CAAuBJ,iBAAvB,CADO,GAEPA,iBAFJ;;AAIA,MAAIE,EAAJ,EAAQ;AACN,QAAIA,GAAGG,QAAH,IAAe,CAAnB,EAAsB;AACpBH,SAAGI,YAAH,CAAgB,UAAhB,EAA4B,IAA5B;AACD;AACDJ,OAAGK,KAAH,CAASN,OAAT;AACD;AACF;;AAEM,SAASJ,eAAT,GAA2B;AAChCW,SAAOC,KAAP,GAAeD,OAAOC,KAAP,IAAgB;AAC7BC,YAAQ;AACNC,gBAAU,GADJ;AAENC,aAAO,CAFD;AAGNC,cAAQ;AAHF;AADqB,GAA/B;AAOD;;AAED;AACO,SAASf,gBAAT,CAA0BgB,iBAA1B,EAA6C;AAClD,MAAMC,UAAUP,OAAOC,KAAP,IAAgB,EAAhC;AACA,MAAMO,WAAW;AACfL,cAAU,GADK;AAEfC,WAAO,CAFQ;AAGfC,YAAQ;AAHO,GAAjB;AAKA,SAAO,qBAAQ,EAAR,EAAYG,QAAZ,EAAsBD,QAAQL,MAA9B,EAAsCI,iBAAtC,CAAP;AACD;;AAEM,SAASf,kBAAT,GAA8B;AACnC,MAAMkB,UAAUd,SAASC,aAAT,CAAuB,qCAAvB,CAAhB;AACA,MAAIa,OAAJ,EAAa;AACX;AACA,QAAMC,kBAAkBV,OAAOW,WAAP,IAAsBhB,SAASiB,eAAT,CAAyBC,SAA/C,IAA4DlB,SAASmB,IAAT,CAAcD,SAA1E,IAAuF,CAA/G;AACA,QAAME,WAAWN,QAAQO,qBAAR,GAAgCC,GAAhC,GAAsCP,eAAvD;AACAQ,0BAAOC,aAAP,CAAqBC,QAArB,CAA8BL,WAAW,EAAzC,EAA6CzB,kBAA7C;AACAF,iBAAaqB,OAAb;AACD;AACF","file":"index.js","sourcesContent":["import _ from 'lodash';\nimport Scroll from 'react-scroll';\n\nexport function focusElement(selectorOrElement, options) {\n const el = typeof selectorOrElement === 'string'\n ? document.querySelector(selectorOrElement)\n : selectorOrElement;\n\n if (el) {\n if (el.tabIndex <= 0) {\n el.setAttribute('tabindex', '-1');\n }\n el.focus(options);\n }\n}\n\nexport function setGlobalScroll() {\n window.Forms = window.Forms || {\n scroll: {\n duration: 500,\n delay: 0,\n smooth: true\n }\n };\n}\n\n// Allows smooth scrolling to be overridden by our E2E tests\nexport function getScrollOptions(additionalOptions) {\n const globals = window.Forms || {};\n const defaults = {\n duration: 500,\n delay: 0,\n smooth: true\n };\n return _.merge({}, defaults, globals.scroll, additionalOptions);\n}\n\nexport function scrollToFirstError() {\n const errorEl = document.querySelector('.usa-input-error, .input-error-date');\n if (errorEl) {\n // document.body.scrollTop doesn’t work with all browsers, so we’ll cover them all like so:\n const currentPosition = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop || 0;\n const position = errorEl.getBoundingClientRect().top + currentPosition;\n Scroll.animateScroll.scrollTo(position - 10, getScrollOptions());\n focusElement(errorEl);\n }\n}\n"]} \ No newline at end of file diff --git a/lib/js/utilities/validations/index.js b/lib/js/utilities/validations/index.js index 0170ab2..4935bb9 100644 --- a/lib/js/utilities/validations/index.js +++ b/lib/js/utilities/validations/index.js @@ -141,4 +141,5 @@ function isValidPartialMonthYearInPast(month, year) { } var momentDate = (0, _moment2.default)({ year: year, month: month ? parseInt(month, 10) - 1 : null }); return !year || isValidPartialMonthYear(month, year) && momentDate.isValid() && momentDate.isSameOrBefore((0, _moment2.default)().startOf('month')); -} \ No newline at end of file +} +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/lib/js/utilities/validations/index.js.map b/lib/js/utilities/validations/index.js.map new file mode 100644 index 0000000..c8d89b1 --- /dev/null +++ b/lib/js/utilities/validations/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../../src/js/utilities/validations/index.js"],"names":["isValidSSN","isValidYear","isValidPartialDate","isValidCurrentOrPastDate","isValidCurrentOrPastYear","isValidCurrentOrFutureMonthYear","dateToMoment","isValidDateRange","isValidRoutingNumber","isValidPartialMonthYear","isValidPartialMonthYearInPast","value","test","noBadSameDigitNumber","every","sameDigitRegex","RegExp","i","Number","add","year","day","month","momentDate","parseInt","isSameOrBefore","endOf","isSameOrAfter","isBlank","isBlankDateField","field","dateField","fromDate","toDate","momentStart","momentEnd","isBefore","digits","split","map","val","weighted","Error","isValid","startOf"],"mappings":";;;;;;;;;;;;QAUgBA,U,GAAAA,U;QAwBAC,W,GAAAA,W;QAIAC,kB,GAAAA,kB;QAQAC,wB,GAAAA,wB;QAKAC,wB,GAAAA,wB;QAIAC,+B,GAAAA,+B;QAaAC,Y,GAAAA,Y;QAQAC,gB,GAAAA,gB;QAWAC,oB,GAAAA,oB;QAaAC,uB,GAAAA,uB;QAWAC,6B,GAAAA,6B;;AA9GhB;;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAASV,UAAT,CAAoBW,KAApB,EAA2B;AAChC,MAAIA,UAAU,WAAV,IAAyBA,UAAU,aAAvC,EAAsD;AACpD,WAAO,KAAP;AACD,GAFD,MAEO,IAAI,uBAAuBC,IAAvB,CAA4BD,KAA5B,CAAJ,EAAwC;AAC7C,WAAO,KAAP;AACD,GAFM,MAEA,IAAI,uBAAuBC,IAAvB,CAA4BD,KAA5B,CAAJ,EAAwC;AAC7C,WAAO,KAAP;AACD,GAFM,MAEA,IAAI,uBAAuBC,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pB,WAAWE,cAAX,CAA0B,wBAASmB,OAAT,CAAiB,OAAjB,CAA1B,CAAhF;AACD","file":"index.js","sourcesContent":["import _ from 'lodash';\nimport moment from 'moment';\n\n// Conditions for valid SSN from the original 1010ez pdf form:\n// '123456789' is not a valid SSN\n// A value where the first 3 digits are 0 is not a valid SSN\n// A value where the 4th and 5th digits are 0 is not a valid SSN\n// A value where the last 4 digits are 0 is not a valid SSN\n// A value with 3 digits, an optional -, 2 digits, an optional -, and 4 digits is a valid SSN\n// 9 of the same digits (e.g., '111111111') is not a valid SSN\nexport function isValidSSN(value) {\n if (value === '123456789' || value === '123-45-6789') {\n return false;\n } else if (/^0{3}-?\\d{2}-?\\d{4}$/.test(value)) {\n return false;\n } else if (/^\\d{3}-?0{2}-?\\d{4}$/.test(value)) {\n return false;\n } else if (/^\\d{3}-?\\d{2}-?0{4}$/.test(value)) {\n return false;\n }\n\n const noBadSameDigitNumber = _.range(0, 10)\n .every(i => {\n const sameDigitRegex = new RegExp(`${i}{3}-?${i}{2}-?${i}{4}`);\n return !sameDigitRegex.test(value);\n });\n\n if (!noBadSameDigitNumber) {\n return false;\n }\n\n return /^\\d{9}$/.test(value) || /^\\d{3}-\\d{2}-\\d{4}$/.test(value);\n}\n\nexport function isValidYear(value) {\n return Number(value) >= 1900 && Number(value) <= moment().add(100, 'year').year();\n}\n\nexport function isValidPartialDate(day, month, year) {\n if (year && !isValidYear(year)) {\n return false;\n }\n\n return true;\n}\n\nexport function isValidCurrentOrPastDate(day, month, year) {\n const momentDate = moment({ day, month: parseInt(month, 10) - 1, year });\n return momentDate.isSameOrBefore(moment().endOf('day'), 'day');\n}\n\nexport function isValidCurrentOrPastYear(value) {\n return Number(value) >= 1900 && Number(value) < moment().year() + 1;\n}\n\nexport function isValidCurrentOrFutureMonthYear(month, year) {\n const momentDate = moment({ month: parseInt(month, 10) - 1, year });\n return momentDate.isSameOrAfter(moment(), 'month');\n}\n\nfunction isBlank(value) {\n return value === '';\n}\n\nfunction isBlankDateField(field) {\n return isBlank(field.day.value) && isBlank(field.month.value) && isBlank(field.year.value);\n}\n\nexport function dateToMoment(dateField) {\n return moment({\n year: dateField.year.value,\n month: dateField.month.value ? parseInt(dateField.month.value, 10) - 1 : '',\n day: dateField.day ? dateField.day.value : null\n });\n}\n\nexport function isValidDateRange(fromDate, toDate) {\n if (isBlankDateField(toDate) || isBlankDateField(fromDate)) {\n return true;\n }\n const momentStart = dateToMoment(fromDate);\n const momentEnd = dateToMoment(toDate);\n\n return momentStart.isBefore(momentEnd);\n}\n\n// Pulled from https://en.wikipedia.org/wiki/Routing_transit_number#Check_digit\nexport function isValidRoutingNumber(value) {\n if (/^\\d{9}$/.test(value)) {\n const digits = value.split('').map(val => parseInt(val, 10));\n const weighted =\n 3 * (digits[0] + digits[3] + digits[6]) +\n 7 * (digits[1] + digits[4] + digits[7]) +\n (digits[2] + digits[5] + digits[8]);\n\n return (weighted % 10) === 0;\n }\n return false;\n}\n\nexport function isValidPartialMonthYear(month, year) {\n if (typeof month === 'object') {\n throw new Error('Pass a month and a year to function');\n }\n if (month && (Number(month) > 12 || Number(month) < 1)) {\n return false;\n }\n\n return isValidPartialDate(null, null, year);\n}\n\nexport function isValidPartialMonthYearInPast(month, year) {\n if (typeof month === 'object') {\n throw new Error('Pass a month and a year to function');\n }\n const momentDate = moment({ year, month: month ? parseInt(month, 10) - 1 : null });\n return !year || isValidPartialMonthYear(month, year) && momentDate.isValid() && momentDate.isSameOrBefore(moment().startOf('month'));\n}\n"]} \ No newline at end of file diff --git a/lib/js/validation.js b/lib/js/validation.js index 8c75e94..75007ff 100644 --- a/lib/js/validation.js +++ b/lib/js/validation.js @@ -459,4 +459,5 @@ function validateAutosuggestOption(errors, formData) { if (formData && formData.widget === 'autosuggest' && !formData.id && formData.label) { errors.addError('Please select an option from the suggestions'); } -} \ No newline at end of file +} +//# sourceMappingURL=validation.js.map \ No newline at end of file diff --git a/lib/js/validation.js.map b/lib/js/validation.js.map new file mode 100644 index 0000000..886eb89 --- /dev/null +++ b/lib/js/validation.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../src/js/validation.js"],"names":["transformErrors","uiSchemaValidate","errorSchemaIsValid","isValidForm","validateSSN","validateDate","validateMonthYear","validateCurrentOrPastDate","validateCurrentOrPastMonthYear","validateFutureDateIfExpectedGrad","validateCurrentOrPastYear","validateMatch","validateRoutingNumber","convertToDateField","validateDateRange","getFileError","validateFileField","validateBooleanGroup","validateAutosuggestOption","defaultMessages","required","maxLength","max","minLength","min","format","type","getMessage","path","name","uiSchema","errorArgument","pathSpecificMessage","cleanPath","replace","errors","newErrors","map","error","property","argument","message","newMessage","schema","formData","currentIndex","currentData","items","forEach","item","index","newPath","currentSchema","length","additionalItems","currentErrors","__errors","addError","push","Object","keys","filter","prop","startsWith","nextPath","properties","validations","pathErrors","validation","validator","options","errorSchema","every","form","pageListByChapters","pageConfigs","validPages","pages","pageKey","data","v","Validator","privacyAgreementAccepted","isValid","reduce","page","showPagePerItem","itemFilter","arrayPath","arrayData","result","validate","valid","customErrors","concat","ssn","dateString","day","month","year","errorMessages","futureDate","highSchool","status","field1","field2","routingNumber","pattern","dateStr","date","dateField","part","datePart","value","dateRange","fromDate","from","toDate","to","file","errorMessage","uploading","confirmationCode","fileList","msg","userGroup","atLeastOne","group","widget","id","label"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8DgBA,e,GAAAA,e;QA0DAC,gB,GAAAA,gB;QAwDAC,kB,GAAAA,kB;QAQAC,W,GAAAA,W;QAgDAC,W,GAAAA,W;QAMAC,Y,GAAAA,Y;QAOAC,iB,GAAAA,iB;QAYAC,yB,GAAAA,yB;QASAC,8B,GAAAA,8B;QAYAC,gC,GAAAA,gC;QAWAC,yB,GAAAA,yB;QAMAC,a,GAAAA,a;QAQAC,qB,GAAAA,qB;QAMAC,kB,GAAAA,kB;QAWAC,iB,GAAAA,iB;QASAC,Y,GAAAA,Y;QAYAC,iB,GAAAA,iB;QAqBAC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2BmB,MAA3B,EAAmCwF,QAAnC,EAA6C;AAClDA,WAAS3E,OAAT,CAAiB,UAACuE,IAAD,EAAOrE,KAAP,EAAiB;AAChC,QAAMZ,QAAQvB,aAAawG,IAAb,CAAd;;AAEA,QAAIjF,SAAS,CAACH,OAAOe,KAAP,CAAd,EAA6B;AAC3B;AACAf,aAAOe,KAAP,IAAgB;AACdM,kBAAU,EADI;AAEdC,gBAFc,oBAELmE,GAFK,EAEA;AACZ,eAAKpE,QAAL,CAAcE,IAAd,CAAmBkE,GAAnB;AACD;AAJa,OAAhB;AAMA;AACD;;AAED,QAAItF,KAAJ,EAAW;AACTH,aAAOe,KAAP,EAAcO,QAAd,CAAuBnB,KAAvB;AACD;AACF,GAjBD;AAkBD;;AAEM,SAASrB,oBAAT,CAA8BkB,MAA9B,EAAsC0F,SAAtC,EAAiDpD,IAAjD,EAAuD9B,MAAvD,EAAmF;AAAA,MAApByD,aAAoB,uEAAJ,EAAI;AAAA,8BAC3BA,aAD2B,CAChF0B,UADgF;AAAA,MAChFA,UADgF,yCACnE,mCADmE;;AAExF,MAAMC,QAAQF,aAAa,EAA3B;AACA,MAAI,CAAClE,OAAOC,IAAP,CAAYmE,KAAZ,EAAmBlE,MAAnB,CAA0B;AAAA,WAAQkE,MAAM9E,IAAN,MAAgB,IAAxB;AAAA,GAA1B,EAAwDI,MAA7D,EAAqE;AACnElB,WAAOsB,QAAP,CAAgBqE,UAAhB;AACD;AACF;;AAEM,SAAS5G,yBAAT,CAAmCiB,MAAnC,EAA2CS,QAA3C,EAAqD;AAC1D,MAAIA,YACFA,SAASoF,MAAT,KAAoB,aADlB,IAEF,CAACpF,SAASqF,EAFR,IAGFrF,SAASsF,KAHX,EAGkB;AAChB/F,WAAOsB,QAAP,CAAgB,8CAAhB;AACD;AACF","file":"validation.js","sourcesContent":["import _ from 'lodash/fp';\nimport { Validator } from 'jsonschema';\n\nimport { isActivePage, parseISODate } from './helpers';\nimport {\n isValidSSN,\n isValidPartialDate,\n isValidCurrentOrPastDate,\n isValidCurrentOrPastYear,\n isValidCurrentOrFutureMonthYear,\n isValidDateRange,\n isValidRoutingNumber,\n isValidPartialMonthYear,\n isValidPartialMonthYearInPast\n} from './utilities/validations';\n\n/*\n * This contains the code for supporting our own custom validations and messages\n */\n\n/*\n * Override the default messages for these json schema error types\n */\nconst defaultMessages = {\n required: 'Please provide a response',\n 'enum': 'Please select a valid option',\n maxLength: (max) => `This field should be less than ${max} characters`,\n minLength: (min) => `This field should be at least ${min} character(s)`,\n format: (type) => {\n if (type === 'email') {\n return 'Please enter a valid email address';\n }\n\n return 'Please enter a valid value';\n }\n};\n\nfunction getMessage(path, name, uiSchema, errorArgument) {\n let pathSpecificMessage;\n if (path === 'instance') {\n pathSpecificMessage = _.get(['ui:errorMessages', name], uiSchema);\n } else {\n const cleanPath = path.replace('instance.', '').replace(/\\[\\d+\\]/g, '.items');\n pathSpecificMessage = _.get(`${cleanPath}['ui:errorMessages'].${name}`, uiSchema);\n }\n\n if (pathSpecificMessage) {\n return pathSpecificMessage;\n }\n\n return typeof defaultMessages[name] === 'function'\n ? defaultMessages[name](errorArgument)\n : defaultMessages[name];\n}\n\n/*\n * This takes the list of errors outputted by the json schema node library\n * and moves the required errors to the missing field, rather than the containing\n * object.\n *\n * It also replaces the error messages with any form specific messages.\n */\nexport function transformErrors(errors, uiSchema) {\n const newErrors = errors.map(error => {\n if (error.name === 'required') {\n const path = `${error.property}.${error.argument}`;\n return _.assign(error, {\n property: path,\n message: getMessage(path, error.name, uiSchema, error.argument)\n });\n }\n\n const newMessage = getMessage(error.property, error.name, uiSchema, error.argument);\n if (newMessage) {\n return _.set('message', newMessage, error);\n }\n\n return error;\n });\n\n return newErrors;\n}\n\n/**\n * This pulls custom validations specified in the uiSchema and validates the formData\n * against them.\n *\n * Expects validations that look like:\n *\n * someField: {\n * \"ui:validations\": [\n * someValidation\n * ]\n * }\n *\n * Each item in the ui:validations array can be a function OR an object:\n * - Functions are called with (in order)\n * pathErrors: Errors object for the field\n * currentData: Data for the field\n * formData: Current form data\n * schema: Current JSON Schema for the field\n * uiSchema['ui:errorMessages']: Error messsage object (if available) for the field\n * currentIndex: Used to select the correct field data to validate against\n * - Objects should have two properties, 'options' and 'validator'\n * options: Object (or anything, really) that will be passed to your validation function.\n * You can use this to allow your validation function to be configurable for\n * different fields on the form.\n * validator: Same signature as function above, but with extra 'options' object as the\n * second-to-last argument (...options, currentIndex)\n * Both versions of custom validators should call `addError()` to actually add any errors to the\n * errors object\n *\n * @param {Object} errors Errors object from rjsf, which includes an addError method\n * @param {Object} uiSchema The uiSchema for the current field\n * @param {Object} schema The schema for the current field\n * @param {Object} formData The (flattened) data for the entire form\n * @param {string} [path] The path to the current field relative to the root of the page.\n * @param {number} [currentIndex] Used to select the correct field data to validate against\n */\n\nexport function uiSchemaValidate(errors, uiSchema, schema, formData, path = '', currentIndex = null) {\n if (uiSchema && schema) {\n const currentData = path !== '' ? _.get(path, formData) : formData;\n if (uiSchema.items && currentData) {\n currentData.forEach((item, index) => {\n const newPath = `${path}[${index}]`;\n const currentSchema = index < schema.items.length\n ? schema.items[index]\n : schema.additionalItems;\n if (!_.get(newPath, errors)) {\n const currentErrors = path ? _.get(path, errors) : errors;\n currentErrors[index] = {\n __errors: [],\n addError(error) {\n this.__errors.push(error);\n }\n };\n }\n uiSchemaValidate(errors, uiSchema.items, currentSchema, formData, newPath, index);\n });\n } else if (!uiSchema.items) {\n Object.keys(uiSchema)\n .filter(prop => !prop.startsWith('ui:'))\n .forEach((item) => {\n const nextPath = path !== '' ? `${path}.${item}` : item;\n if (!_.get(nextPath, errors)) {\n const currentErrors = path === ''\n ? errors\n : _.get(path, errors);\n\n currentErrors[item] = {\n __errors: [],\n addError(error) {\n this.__errors.push(error);\n }\n };\n }\n uiSchemaValidate(errors, uiSchema[item], schema.properties[item], formData, nextPath, currentIndex);\n });\n }\n\n const validations = uiSchema['ui:validations'];\n if (validations && currentData) {\n validations.forEach(validation => {\n const pathErrors = path ? _.get(path, errors) : errors;\n if (typeof validation === 'function') {\n validation(pathErrors, currentData, formData, schema, uiSchema['ui:errorMessages'], currentIndex);\n } else {\n validation.validator(pathErrors, currentData, formData, schema, uiSchema['ui:errorMessages'], validation.options, currentIndex);\n }\n });\n }\n }\n return errors;\n}\n\nexport function errorSchemaIsValid(errorSchema) {\n if (errorSchema && errorSchema.__errors && errorSchema.__errors.length) {\n return false;\n }\n\n return _.values(_.omit('__errors', errorSchema)).every(errorSchemaIsValid);\n}\n\nexport function isValidForm(form, pageListByChapters) {\n const pageConfigs = _.flatten(_.values(pageListByChapters));\n const validPages = Object.keys(form.pages)\n .filter(pageKey => isActivePage(_.find({ pageKey }, pageConfigs), form.data));\n\n const v = new Validator();\n\n if (!form.data.privacyAgreementAccepted) {\n return { isValid: false };\n }\n\n return validPages.reduce(({ isValid, errors }, page) => {\n const { uiSchema, schema, showPagePerItem, itemFilter, arrayPath } = form.pages[page];\n let formData = form.data;\n\n if (showPagePerItem) {\n const arrayData = formData[arrayPath];\n if (arrayData) {\n formData = _.set(arrayPath, itemFilter ? arrayData.filter(itemFilter) : arrayData, formData);\n } else {\n formData = _.unset(arrayPath, formData);\n }\n }\n\n const result = v.validate(\n formData,\n schema\n );\n\n if (result.valid) {\n const customErrors = {};\n uiSchemaValidate(customErrors, uiSchema, schema, formData);\n\n return {\n isValid: isValid && errorSchemaIsValid(customErrors),\n errors: errors.concat(customErrors)\n };\n }\n\n return {\n isValid: false,\n // removes PII\n errors: errors.concat(result.errors.map(_.unset('instance')))\n };\n }, { isValid: true, errors: [] });\n}\n\n\nexport function validateSSN(errors, ssn) {\n if (ssn && !isValidSSN(ssn)) {\n errors.addError('Please enter a valid 9 digit SSN (dashes allowed)');\n }\n}\n\nexport function validateDate(errors, dateString) {\n const { day, month, year } = parseISODate(dateString);\n if (!isValidPartialDate(day, month, year)) {\n errors.addError('Please provide a valid date');\n }\n}\n\nexport function validateMonthYear(errors, dateString) {\n const { month, year } = parseISODate(dateString);\n if (!isValidPartialMonthYear(month, year)) {\n errors.addError('Please provide a valid date');\n }\n}\n\n/**\n * Adds an error message to errors if a date is an invalid date or in the future.\n *\n * The message it adds can be customized in uiSchema.errorMessages.futureDate\n */\nexport function validateCurrentOrPastDate(errors, dateString, formData, schema, errorMessages = {}) {\n const { futureDate = 'Please provide a valid current or past date' } = errorMessages;\n validateDate(errors, dateString);\n const { day, month, year } = parseISODate(dateString);\n if (!isValidCurrentOrPastDate(day, month, year)) {\n errors.addError(futureDate);\n }\n}\n\nexport function validateCurrentOrPastMonthYear(errors, dateString, formData, schema, errorMessages = {}) {\n const { futureDate = 'Please provide a valid current or past date' } = errorMessages;\n validateMonthYear(errors, dateString);\n const { month, year } = parseISODate(dateString);\n if (!isValidPartialMonthYearInPast(month, year)) {\n errors.addError(futureDate);\n }\n}\n\n/**\n * Adds an error message to errors if a date is an invalid date or in the past.\n */\nexport function validateFutureDateIfExpectedGrad(errors, dateString, formData) {\n validateDate(errors, dateString);\n const { month, year } = parseISODate(dateString);\n if (formData.highSchool.status === 'graduationExpected' && !isValidCurrentOrFutureMonthYear(month, year)) {\n errors.addError('Please provide a valid future date');\n }\n}\n\n/**\n * Adds an error message to errors if an integer year value is not between 1900 and the current year.\n */\nexport function validateCurrentOrPastYear(errors, year) {\n if (!isValidCurrentOrPastYear(year)) {\n errors.addError('Please provide a valid year');\n }\n}\n\nexport function validateMatch(field1, field2) {\n return (errors, formData) => {\n if (formData[field1] !== formData[field2]) {\n errors[field2].addError('Please ensure your entries match');\n }\n };\n}\n\nexport function validateRoutingNumber(errors, routingNumber, formData, schema, errorMessages) {\n if (!isValidRoutingNumber(routingNumber)) {\n errors.addError(errorMessages.pattern);\n }\n}\n\nexport function convertToDateField(dateStr) {\n const date = parseISODate(dateStr);\n return Object.keys(date).reduce((dateField, part) => {\n const datePart = {};\n datePart[part] = {\n value: date[part]\n };\n return _.assign(dateField, datePart);\n }, date);\n}\n\nexport function validateDateRange(errors, dateRange, formData, schema, errorMessages) {\n const fromDate = convertToDateField(dateRange.from);\n const toDate = convertToDateField(dateRange.to);\n\n if (!isValidDateRange(fromDate, toDate)) {\n errors.to.addError(errorMessages.pattern || 'To date must be after from date');\n }\n}\n\nexport function getFileError(file) {\n if (file.errorMessage) {\n return file.errorMessage;\n } else if (file.uploading) {\n return 'Uploading file...';\n } else if (!file.confirmationCode) {\n return 'Something went wrong...';\n }\n\n return null;\n}\n\nexport function validateFileField(errors, fileList) {\n fileList.forEach((file, index) => {\n const error = getFileError(file);\n\n if (error && !errors[index]) {\n /* eslint-disable no-param-reassign */\n errors[index] = {\n __errors: [],\n addError(msg) {\n this.__errors.push(msg);\n }\n };\n /* eslint-enable no-param-reassign */\n }\n\n if (error) {\n errors[index].addError(error);\n }\n });\n}\n\nexport function validateBooleanGroup(errors, userGroup, form, schema, errorMessages = {}) {\n const { atLeastOne = 'Please choose at least one option' } = errorMessages;\n const group = userGroup || {};\n if (!Object.keys(group).filter(item => group[item] === true).length) {\n errors.addError(atLeastOne);\n }\n}\n\nexport function validateAutosuggestOption(errors, formData) {\n if (formData &&\n formData.widget === 'autosuggest' &&\n !formData.id &&\n formData.label) {\n errors.addError('Please select an option from the suggestions');\n }\n}\n"]} \ No newline at end of file diff --git a/lib/js/widgets/ArrayCountWidget.js b/lib/js/widgets/ArrayCountWidget.js index a850be0..1c97971 100644 --- a/lib/js/widgets/ArrayCountWidget.js +++ b/lib/js/widgets/ArrayCountWidget.js @@ -118,4 +118,5 @@ var ArrayCountWidget = function (_React$Component) { return ArrayCountWidget; }(_react2.default.Component); -exports.default = ArrayCountWidget; \ No newline at end of file +exports.default = ArrayCountWidget; +//# sourceMappingURL=ArrayCountWidget.js.map \ No newline at end of file diff --git a/lib/js/widgets/ArrayCountWidget.js.map b/lib/js/widgets/ArrayCountWidget.js.map new file mode 100644 index 0000000..d25d447 --- /dev/null +++ b/lib/js/widgets/ArrayCountWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/ArrayCountWidget.jsx"],"names":["ArrayCountWidget","props","getValue","count","value","undefined","intCount","options","countOffset","length","slice","Array","fill","concat","updateArrayLength","event","setState","userCount","target","state","prevProps","prevState","parseInt","isNaN","onChange","formContext","reviewMode","uiSchema","id","disabled","autocomplete","widgetClassNames","onBlur","React","Component"],"mappings":";;;;;;;;AAAA;;;;;;;;;;;;IAEqBA,gB;;;AACnB,4BAAYC,KAAZ,EAAmB;AAAA;;AAAA,oIACXA,KADW;;AAAA,UA2BnBC,QA3BmB,GA2BR,UAACC,KAAD,EAAuB;AAAA,UAAfC,KAAe,uEAAP,EAAO;;AAChC,UAAID,UAAU,CAAd,EAAiB;AACf,eAAOE,SAAP;AACD;;AAED,UAAMC,WAAWH,SAAS,MAAKF,KAAL,CAAWM,OAAX,CAAmBC,WAAnB,IAAkC,CAA3C,CAAjB;;AAEA,UAAIF,WAAW,CAAf,EAAkB;AAChB,eAAOD,SAAP;AACD;;AAED,UAAIC,WAAWF,MAAMK,MAArB,EAA6B;AAC3B,eAAOL,MAAMM,KAAN,CAAY,CAAZ,EAAeJ,QAAf,CAAP;AACD;;AAED,aAAOK,MAAML,WAAWF,MAAMK,MAAvB,EAA+BG,IAA/B,CAAoC,EAApC,EAAwCC,MAAxC,CAA+CT,KAA/C,CAAP;AACD,KA3CkB;;AAAA,UA6CnBU,iBA7CmB,GA6CC,UAACC,KAAD,EAAW;AAC7B,YAAKC,QAAL,CAAc,EAAEC,WAAWF,MAAMG,MAAN,CAAad,KAA1B,EAAd;AACD,KA/CkB;;AAEjB,UAAKe,KAAL,GAAa,EAAEF,WAAWhB,MAAMG,KAAN,GACtBH,MAAMG,KAAN,CAAYK,MAAZ,IAAsB,MAAKR,KAAL,CAAWM,OAAX,CAAmBC,WAAnB,IAAkC,CAAxD,CADsB,GAEtBH,SAFS,EAAb;AAFiB;AAKlB;;;;uCAEkBe,S,EAAWC,S,EAAW;AACvC,UAAIA,UAAUJ,SAAV,KAAwB,KAAKE,KAAL,CAAWF,SAAvC,EAAkD;AAChD,YAAId,QAAQmB,SAAS,KAAKH,KAAL,CAAWF,SAApB,EAA+B,EAA/B,CAAZ;AACA,YAAIM,MAAMpB,KAAN,CAAJ,EAAkB;AAChBA,kBAAQ,CAAR;AACD;;AAED;AACA;AACA;AACA;AACA,YAAIA,QAAQ,EAAZ,EAAgB;AACdA,kBAAQ,EAAR;AACD;;AAED,aAAKF,KAAL,CAAWuB,QAAX,CAAoB,KAAKtB,QAAL,CAAcC,KAAd,EAAqB,KAAKF,KAAL,CAAWG,KAAhC,CAApB;AACD;AACF;AACD;AACA;;;;6BAuBS;AACP,UAAMH,QAAQ,KAAKA,KAAnB;;AAEA,UAAIA,MAAMwB,WAAN,CAAkBC,UAAtB,EAAkC;AAChC,eACE;AAAA;AAAA,YAAK,WAAU,YAAf;AACE;AAAA;AAAA;AAAKzB,kBAAM0B,QAAN,CAAe,UAAf;AAAL,WADF;AACuC;AAAA;AAAA;AAAK,iBAAKR,KAAL,CAAWF;AAAhB;AADvC,SADF;AAKD;;AAED,aACE,yCAAO,MAAK,QAAZ;AACE,cAAK,GADP;AAEE,aAAI,GAFN;AAGE,YAAIhB,MAAM2B,EAHZ;AAIE,cAAM3B,MAAM2B,EAJd;AAKE,kBAAU3B,MAAM4B,QALlB;AAME,sBAAc5B,MAAMM,OAAN,CAAcuB,YAAd,IAA8B,KAN9C;AAOE,mBAAW7B,MAAMM,OAAN,CAAcwB,gBAP3B;AAQE,eAAO,OAAO,KAAKZ,KAAL,CAAWF,SAAlB,KAAgC,WAAhC,GAA8C,EAA9C,GAAmD,KAAKE,KAAL,CAAWF,SARvE;AASE,gBAAQ;AAAA,iBAAMhB,MAAM+B,MAAN,CAAa/B,MAAM2B,EAAnB,CAAN;AAAA,SATV;AAUE,kBAAU,KAAKd,iBAVjB,GADF;AAaD;;;;EA1E2CmB,gBAAMC,S;;kBAA/BlC,gB","file":"ArrayCountWidget.js","sourcesContent":["import React from 'react';\n\nexport default class ArrayCountWidget extends React.Component {\n constructor(props) {\n super(props);\n this.state = { userCount: props.value\n ? props.value.length - (this.props.options.countOffset || 0)\n : undefined };\n }\n\n componentDidUpdate(prevProps, prevState) {\n if (prevState.userCount !== this.state.userCount) {\n let count = parseInt(this.state.userCount, 10);\n if (isNaN(count)) {\n count = 0;\n }\n\n // Too high of a count can crash the browser. We’ve been using\n // this for marriage counts and 29 is the record, so 29 seems like\n // a good upper limit. Filling out more than 29 pages is probably\n // not reasonable in a form anyway\n if (count > 29) {\n count = 29;\n }\n\n this.props.onChange(this.getValue(count, this.props.value));\n }\n }\n // We’re expanding or contracting the array based on the count\n // and returning undefined if the array should be empty\n getValue = (count, value = []) => {\n if (count === 0) {\n return undefined;\n }\n\n const intCount = count + (this.props.options.countOffset || 0);\n\n if (intCount < 0) {\n return undefined;\n }\n\n if (intCount < value.length) {\n return value.slice(0, intCount);\n }\n\n return Array(intCount - value.length).fill({}).concat(value);\n }\n\n updateArrayLength = (event) => {\n this.setState({ userCount: event.target.value });\n }\n\n render() {\n const props = this.props;\n\n if (props.formContext.reviewMode) {\n return (\n
\n
{props.uiSchema['ui:title']}
{this.state.userCount}
\n
\n );\n }\n\n return (\n props.onBlur(props.id)}\n onChange={this.updateArrayLength}/>\n );\n }\n}\n"]} \ No newline at end of file diff --git a/lib/js/widgets/CheckboxWidget.js b/lib/js/widgets/CheckboxWidget.js index 80bd196..5dcbc07 100644 --- a/lib/js/widgets/CheckboxWidget.js +++ b/lib/js/widgets/CheckboxWidget.js @@ -68,4 +68,5 @@ CheckboxWidget.propTypes = { disabled: _propTypes2.default.bool, options: _propTypes2.default.object, label: _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.object]) -}; \ No newline at end of file +}; +//# sourceMappingURL=CheckboxWidget.js.map \ No newline at end of file diff --git a/lib/js/widgets/CheckboxWidget.js.map b/lib/js/widgets/CheckboxWidget.js.map new file mode 100644 index 0000000..057078f --- /dev/null +++ b/lib/js/widgets/CheckboxWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/CheckboxWidget.jsx"],"names":["CheckboxWidget","id","value","required","disabled","label","onChange","options","requiredSpan","widgetClasses","widgetClassNames","event","target","checked","title","defaultProps","autofocus","propTypes","PropTypes","string","isRequired","bool","func","object","oneOfType"],"mappings":";;;;;;;AAAA;;;;AACA;;;;AACA;;;;;;AAEe,SAASA,cAAT,OAQZ;AAAA,MAPDC,EAOC,QAPDA,EAOC;AAAA,MANDC,KAMC,QANDA,KAMC;AAAA,MALDC,QAKC,QALDA,QAKC;AAAA,MAJDC,QAIC,QAJDA,QAIC;AAAA,MAHDC,KAGC,QAHDA,KAGC;AAAA,MAFDC,SAEC,QAFDA,QAEC;AAAA,MADDC,OACC,QADDA,OACC;;AACD,MAAMC,eAAeL,WAAW;AAAA;AAAA,MAAM,WAAU,oBAAhB;AAAA;AAAA,GAAX,GAA2D,IAAhF;AACA,MAAMM,gBAAgB,0BAAW,eAAX,EAA4BF,QAAQG,gBAApC,CAAtB;AACA,SACE;AAAA;AAAA,MAAK,WAAWD,aAAhB;AACE,6CAAO,MAAK,UAAZ;AACE,UAAIR,EADN;AAEE,YAAMA,EAFR;AAGE,eAAS,OAAOC,KAAP,KAAiB,WAAjB,GAA+B,KAA/B,GAAuCA,KAHlD;AAIE,gBAAUC,QAJZ;AAKE,gBAAUC,QALZ;AAME,gBAAU,kBAACO,KAAD;AAAA,eAAWL,UAASK,MAAMC,MAAN,CAAaC,OAAtB,CAAX;AAAA,OANZ,GADF;AAQE;AAAA;AAAA,QAAO,WAAU,kBAAjB,EAAoC,SAASZ,EAA7C;AACGM,cAAQO,KAAR,IAAiBT,KADpB;AAC2BG;AAD3B;AARF,GADF;AAcD;;;AAEDR,eAAee,YAAf,GAA8B;AAC5BC,aAAW;AADiB,CAA9B;;AAIAhB,eAAeiB,SAAf,GAA2B;AACzBhB,MAAIiB,oBAAUC,MAAV,CAAiBC,UADI;AAEzBlB,SAAOgB,oBAAUG,IAFQ;AAGzBlB,YAAUe,oBAAUG,IAHK;AAIzBf,YAAUY,oBAAUI,IAJK;AAKzBlB,YAAUc,oBAAUG,IALK;AAMzBd,WAASW,oBAAUK,MANM;AAOzBlB,SAAOa,oBAAUM,SAAV,CAAoB,CACzBN,oBAAUC,MADe,EAEzBD,oBAAUK,MAFe,CAApB;AAPkB,CAA3B","file":"CheckboxWidget.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport classNames from 'classnames';\n\nexport default function CheckboxWidget({\n id,\n value,\n required,\n disabled,\n label,\n onChange,\n options\n}) {\n const requiredSpan = required ? * : null;\n const widgetClasses = classNames('form-checkbox', options.widgetClassNames);\n return (\n
\n onChange(event.target.checked)}/>\n \n
\n );\n}\n\nCheckboxWidget.defaultProps = {\n autofocus: false,\n};\n\nCheckboxWidget.propTypes = {\n id: PropTypes.string.isRequired,\n value: PropTypes.bool,\n required: PropTypes.bool,\n onChange: PropTypes.func,\n disabled: PropTypes.bool,\n options: PropTypes.object,\n label: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.object\n ])\n};\n"]} \ No newline at end of file diff --git a/lib/js/widgets/CurrencyWidget.js b/lib/js/widgets/CurrencyWidget.js index d8dbc53..b81a5b1 100644 --- a/lib/js/widgets/CurrencyWidget.js +++ b/lib/js/widgets/CurrencyWidget.js @@ -86,4 +86,5 @@ var CurrencyWidget = function (_React$Component) { return CurrencyWidget; }(_react2.default.Component); -exports.default = CurrencyWidget; \ No newline at end of file +exports.default = CurrencyWidget; +//# sourceMappingURL=CurrencyWidget.js.map \ No newline at end of file diff --git a/lib/js/widgets/CurrencyWidget.js.map b/lib/js/widgets/CurrencyWidget.js.map new file mode 100644 index 0000000..eef5603 --- /dev/null +++ b/lib/js/widgets/CurrencyWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/CurrencyWidget.jsx"],"names":["CurrencyWidget","props","onBlur","id","handleChange","event","val","target","value","onChange","test","parsed","parseFloat","replace","isNaN","setState","toFixed","state","disabled","options","autocomplete","widgetClassNames","React","Component"],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T,KAAzB;;AAEA,aACE,yCAAO,MAAK,MAAZ;AACE,YAAIL,EADN;AAEE,cAAMA,EAFR;AAGE,kBAAUe,QAHZ;AAIE,sBAAcC,QAAQC,YAAR,IAAwB,KAJxC;AAKE,mBAAWD,QAAQE,gBALrB;AAME,eAAO,OAAOb,KAAP,KAAiB,WAAjB,GAA+B,EAA/B,GAAoCA,KAN7C;AAOE,gBAAQ,KAAKN,MAPf;AAQE,kBAAU,KAAKE,YARjB,GADF;AAWD;;;;EApDyCkB,gBAAMC,S;;kBAA7BvB,c","file":"CurrencyWidget.js","sourcesContent":["import React from 'react';\n\nexport default class CurrencyWidget extends React.Component {\n constructor(props) {\n super(props);\n let value = props.value;\n if (typeof value === 'number') {\n value = value.toFixed(2);\n }\n this.state = {\n value\n };\n }\n\n onBlur = () => {\n this.props.onBlur(this.props.id);\n }\n\n handleChange = (event) => {\n const val = event.target.value;\n if (val === '' || typeof val === 'undefined') {\n this.props.onChange();\n } else {\n // Needs to look like a currency\n if (!/^\\${0,1}[0-9,]*(\\.\\d{1,2})?$/.test(val)) {\n this.props.onChange(val);\n } else {\n // Needs to parse as a number\n const parsed = parseFloat(val.replace(/[^0-9.]/g, ''));\n if (!isNaN(parsed)) {\n this.props.onChange(parsed);\n } else {\n this.props.onChange(val);\n }\n }\n }\n this.setState({ value: val });\n }\n\n render() {\n const { id, disabled, options } = this.props;\n const value = this.state.value;\n\n return (\n \n );\n }\n}\n"]} \ No newline at end of file diff --git a/lib/js/widgets/DateWidget.js b/lib/js/widgets/DateWidget.js index e932a22..9c2e716 100644 --- a/lib/js/widgets/DateWidget.js +++ b/lib/js/widgets/DateWidget.js @@ -235,4 +235,5 @@ DateWidget.propTypes = { onChange: _propTypes2.default.func.isRequired, onBlur: _propTypes2.default.func.isRequired, value: _propTypes2.default.string -}; \ No newline at end of file +}; +//# sourceMappingURL=DateWidget.js.map \ No newline at end of file diff --git a/lib/js/widgets/DateWidget.js.map b/lib/js/widgets/DateWidget.js.map new file mode 100644 index 0000000..50e9c75 --- /dev/null +++ b/lib/js/widgets/DateWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/DateWidget.jsx"],"names":["getEmptyState","value","touched","month","day","year","DateWidget","props","isTouched","isIncomplete","handleChange","bind","handleBlur","state","newProps","formContext","pagePerItemIndex","setState","field","newState","onBlur","id","required","onChange","options","daysForSelectedMonth","monthYear","days","event","target","months","map","mnth","label","dayOpt","React","Component","propTypes","PropTypes","string","isRequired","func"],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;AACA;;;;AAGA;;AACA;;;;;;;;;;AAEA,SAASA,aAAT,CAAuBC,KAAvB,EAA8B;AAC5B,SAAO;AACLA,WAAO,2BAAaA,KAAb,CADF;AAELC,aAAS;AACPC,aAAO,KADA;AAEPC,WAAK,KAFE;AAGPC,YAAM;AAHC;AAFJ,GAAP;AAQD;;IAEoBC,U;;;AACnB,sBAAYC,KAAZ,EAAmB;AAAA;;AAAA,wHACXA,KADW;;AAAA,UAanBC,SAbmB,GAaP,gBAA0B;AAAA,UAAvBH,IAAuB,QAAvBA,IAAuB;AAAA,UAAjBF,KAAiB,QAAjBA,KAAiB;AAAA,UAAVC,GAAU,QAAVA,GAAU;;AACpC,UAAI,mBAAM,mBAAN,EAA2B,MAAKG,KAAhC,CAAJ,EAA4C;AAC1C,eAAOF,QAAQF,KAAf;AACD;;AAED,aAAOE,QAAQD,GAAR,IAAeD,KAAtB;AACD,KAnBkB;;AAAA,UAqBnBM,YArBmB,GAqBJ,iBAA0B;AAAA,UAAvBN,KAAuB,SAAvBA,KAAuB;AAAA,UAAhBE,IAAgB,SAAhBA,IAAgB;AAAA,UAAVD,GAAU,SAAVA,GAAU;;AACvC,UAAI,mBAAM,mBAAN,EAA2B,MAAKG,KAAhC,CAAJ,EAA4C;AAC1C,eAAO,CAACF,IAAD,IAAS,CAACF,KAAjB;AACD;;AAED,aAAO,CAACE,IAAD,IAAS,CAACF,KAAV,IAAmB,CAACC,GAA3B;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F;AAIE,qBAAOjB,GAJT;AAKE,wBAAU,kBAACwB,KAAD;AAAA,uBAAW,OAAKlB,YAAL,CAAkB,KAAlB,EAAyBkB,MAAMC,MAAN,CAAa5B,KAAtC,CAAX;AAAA,eALZ;AAME,sDAAQ,OAAM,EAAd,GANF;AAOGwB,oCAAwBA,qBAAqBM,GAArB,CAAyB;AAAA,qBAAU;AAAA;AAAA,kBAAQ,KAAKG,MAAb,EAAqB,OAAOA,MAA5B;AAAqCA;AAArC,eAAV;AAAA,aAAzB;AAP3B;AAFa,SAbjB;AAyBE;AAAA;AAAA,YAAK,WAAU,kDAAf;AACE;AAAA;AAAA,cAAO,WAAU,kBAAjB,EAAoC,SAAYb,EAAZ,SAApC;AAAA;AAAA,WADF;AAEE,mDAAO,MAAK,QAAZ;AACE,0BAAa,OADf;AAEE,kBAASA,EAAT,SAFF;AAGE,gBAAOA,EAAP,SAHF;AAIE,iBAAI,MAJN;AAKE,iBAAI,MALN;AAME,qBAAQ,UANV;AAOE,mBAAOhB,IAPT;AAQE,oBAAQ;AAAA,qBAAM,OAAKO,UAAL,CAAgB,MAAhB,CAAN;AAAA,aARV;AASE,sBAAU,kBAACgB,KAAD;AAAA,qBAAW,OAAKlB,YAAL,CAAkB,MAAlB,EAA0BkB,MAAMC,MAAN,CAAa5B,KAAvC,CAAX;AAAA,aATZ;AAFF;AAzBF,OADF;AAyCD;;;;EAtGqCkC,gBAAMC,S;;kBAAzB9B,U;;;AAyGrBA,WAAW+B,SAAX,GAAuB;AACrBhB,MAAIiB,oBAAUC,MAAV,CAAiBC,UADA;AAErBjB,YAAUe,oBAAUG,IAAV,CAAeD,UAFJ;AAGrBpB,UAAQkB,oBAAUG,IAAV,CAAeD,UAHF;AAIrBvC,SAAOqC,oBAAUC;AAJI,CAAvB","file":"DateWidget.js","sourcesContent":["import PropTypes from 'prop-types';\nimport React from 'react';\nimport _ from 'lodash/fp';\n\nimport { months, days } from '../utilities/date';\nimport { formatISOPartialDate, parseISODate } from '../helpers';\n\nfunction getEmptyState(value) {\n return {\n value: parseISODate(value),\n touched: {\n month: false,\n day: false,\n year: false\n }\n };\n}\n\nexport default class DateWidget extends React.Component {\n constructor(props) {\n super(props);\n this.handleChange = this.handleChange.bind(this);\n this.handleBlur = this.handleBlur.bind(this);\n this.state = getEmptyState(this.props.value);\n }\n\n componentWillReceiveProps(newProps) {\n if (newProps.formContext.pagePerItemIndex !== this.props.formContext.pagePerItemIndex) {\n this.setState(getEmptyState(newProps.value));\n }\n }\n\n isTouched = ({ year, month, day }) => {\n if (_.get('options.monthYear', this.props)) {\n return year && month;\n }\n\n return year && day && month;\n }\n\n isIncomplete = ({ month, year, day }) => {\n if (_.get('options.monthYear', this.props)) {\n return !year || !month;\n }\n\n return !year || !month || !day;\n }\n\n handleBlur(field) {\n const newState = _.set(['touched', field], true, this.state);\n this.setState(newState, () => {\n if (this.isTouched(newState.touched)) {\n this.props.onBlur(this.props.id);\n }\n });\n }\n\n handleChange(field, value) {\n let newState = _.set(['value', field], value, this.state);\n newState = _.set(['touched', field], true, newState);\n\n this.setState(newState, () => {\n if (this.props.required && (this.isIncomplete(newState.value))) {\n this.props.onChange();\n } else {\n this.props.onChange(formatISOPartialDate(newState.value));\n }\n });\n }\n\n render() {\n const { id, options = {} } = this.props;\n const { month, day, year } = this.state.value;\n let daysForSelectedMonth;\n\n const monthYear = options.monthYear;\n if (month) {\n daysForSelectedMonth = days[month];\n }\n return (\n
\n
\n \n this.handleChange('month', event.target.value)}>\n )}\n \n
\n {!monthYear &&
\n \n this.handleChange('day', event.target.value)}>\n )}\n \n
}\n
\n \n this.handleBlur('year')}\n onChange={(event) => this.handleChange('year', event.target.value)}/>\n
\n
\n );\n }\n}\n\nDateWidget.propTypes = {\n id: PropTypes.string.isRequired,\n onChange: PropTypes.func.isRequired,\n onBlur: PropTypes.func.isRequired,\n value: PropTypes.string\n};\n"]} \ No newline at end of file diff --git a/lib/js/widgets/EmailWidget.js b/lib/js/widgets/EmailWidget.js index f2bca5c..45adbb3 100644 --- a/lib/js/widgets/EmailWidget.js +++ b/lib/js/widgets/EmailWidget.js @@ -20,4 +20,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de function EmailWidget(props) { return _react2.default.createElement(_TextWidget2.default, _extends({ type: 'email' }, props)); -} \ No newline at end of file +} +//# sourceMappingURL=EmailWidget.js.map \ No newline at end of file diff --git a/lib/js/widgets/EmailWidget.js.map b/lib/js/widgets/EmailWidget.js.map new file mode 100644 index 0000000..00911b7 --- /dev/null +++ b/lib/js/widgets/EmailWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/EmailWidget.jsx"],"names":["EmailWidget","props"],"mappings":";;;;;;;;kBAGwBA,W;;AAHxB;;;;AACA;;;;;;AAEe,SAASA,WAAT,CAAqBC,KAArB,EAA4B;AACzC,SAAO,8BAAC,oBAAD,aAAY,MAAK,OAAjB,IAA6BA,KAA7B,EAAP;AACD","file":"EmailWidget.js","sourcesContent":["import React from 'react';\nimport TextWidget from './TextWidget';\n\nexport default function EmailWidget(props) {\n return ;\n}\n"]} \ No newline at end of file diff --git a/lib/js/widgets/PhoneNumberWidget.js b/lib/js/widgets/PhoneNumberWidget.js index e506a67..2f23adc 100644 --- a/lib/js/widgets/PhoneNumberWidget.js +++ b/lib/js/widgets/PhoneNumberWidget.js @@ -61,4 +61,5 @@ var PhoneNumberWidget = function (_React$Component) { return PhoneNumberWidget; }(_react2.default.Component); -exports.default = PhoneNumberWidget; \ No newline at end of file +exports.default = PhoneNumberWidget; +//# sourceMappingURL=PhoneNumberWidget.js.map \ No newline at end of file diff --git a/lib/js/widgets/PhoneNumberWidget.js.map b/lib/js/widgets/PhoneNumberWidget.js.map new file mode 100644 index 0000000..b54c232 --- /dev/null +++ b/lib/js/widgets/PhoneNumberWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/PhoneNumberWidget.jsx"],"names":["PhoneNumberWidget","props","handleChange","val","stripped","replace","setState","onChange","state","value","React","Component"],"mappings":";;;;;;;;;;AAAA;;;;AACA;;;;;;;;;;;;AAEA;;;;IAIqBA,iB;;;AACnB,6BAAYC,KAAZ,EAAmB;AAAA;;AAAA,sIACXA,KADW;;AAAA,UAInBC,YAJmB,GAIJ,UAACC,GAAD,EAAS;AACtB,UAAIC,iBAAJ;AACA,UAAID,GAAJ,EAAS;AACPC,mBAAWD,IAAIE,OAAJ,CAAY,YAAZ,EAA0B,EAA1B,CAAX;AACD;;AAED,YAAKC,QAAL,CAAc,EAAEH,QAAF,EAAd,EAAuB,YAAM;AAC3B,cAAKF,KAAL,CAAWM,QAAX,CAAoBH,QAApB;AACD,OAFD;AAGD,KAbkB;;AAEjB,UAAKI,KAAL,GAAa,EAAEL,KAAKF,MAAMQ,KAAb,EAAb;AAFiB;AAGlB;;;;6BAWQ;AACP,aAAO,8BAAC,oBAAD,eAAgB,KAAKR,KAArB,IAA4B,OAAO,KAAKO,KAAL,CAAWL,GAA9C,EAAmD,UAAU,KAAKD,YAAlE,IAAP;AACD;;;;EAjB4CQ,gBAAMC,S;;kBAAhCX,iB","file":"PhoneNumberWidget.js","sourcesContent":["import React from 'react';\nimport TextWidget from './TextWidget';\n\n/*\n * Handles removing dashes from SSNs by keeping the user input in local state\n * and saving the transformed version instead\n */\nexport default class PhoneNumberWidget extends React.Component {\n constructor(props) {\n super(props);\n this.state = { val: props.value };\n }\n handleChange = (val) => {\n let stripped;\n if (val) {\n stripped = val.replace(/[ \\-()x+]/g, '');\n }\n\n this.setState({ val }, () => {\n this.props.onChange(stripped);\n });\n }\n render() {\n return ;\n }\n}\n"]} \ No newline at end of file diff --git a/lib/js/widgets/RadioWidget.js b/lib/js/widgets/RadioWidget.js index 84a647e..a2bde01 100644 --- a/lib/js/widgets/RadioWidget.js +++ b/lib/js/widgets/RadioWidget.js @@ -77,4 +77,5 @@ function RadioWidget(_ref) { }) ); } -exports.default = RadioWidget; \ No newline at end of file +exports.default = RadioWidget; +//# sourceMappingURL=RadioWidget.js.map \ No newline at end of file diff --git a/lib/js/widgets/RadioWidget.js.map b/lib/js/widgets/RadioWidget.js.map new file mode 100644 index 0000000..59e8a13 --- /dev/null +++ b/lib/js/widgets/RadioWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/RadioWidget.jsx"],"names":["RadioWidget","options","value","disabled","onChange","id","enumOptions","labels","nestedContent","content","NestedContent","map","option","i","checked","radioButton","label"],"mappings":";;;;;;;AAAA;;;;AAEA;;;;;;AAEe,SAASA,WAAT,OAMZ;AAAA,MALDC,OAKC,QALDA,OAKC;AAAA,MAJDC,KAIC,QAJDA,KAIC;AAAA,MAHDC,QAGC,QAHDA,QAGC;AAAA,MAFDC,SAEC,QAFDA,QAEC;AAAA,MADDC,EACC,QADDA,EACC;AAAA,MACOC,WADP,GACwDL,OADxD,CACOK,WADP;AAAA,wBACwDL,OADxD,CACoBM,MADpB;AAAA,MACoBA,MADpB,mCAC6B,EAD7B;AAAA,8BACwDN,OADxD,CACiCO,aADjC;AAAA,MACiCA,aADjC,yCACiD,EADjD;;AAGD;;AACA,MAAIC,UAAUD,cAAcN,KAAd,CAAd;AACA,MAAI,OAAOO,OAAP,KAAmB,UAAvB,EAAmC;AACjC,QAAMC,gBAAgBD,OAAtB;AACAA,cAAU,8BAAC,aAAD,OAAV;AACD;;AAED,SACE;AAAA;AAAA;AACEH,gBAAYK,GAAZ,CAAgB,UAACC,MAAD,EAASC,CAAT,EAAe;AAC7B,UAAMC,UAAUF,OAAOV,KAAP,KAAiBA,KAAjC;AACA,UAAMa,cACJ;AAAA;AAAA,UAAK,WAAU,oBAAf,EAAoC,KAAKH,OAAOV,KAAhD;AACE,iDAAO,MAAK,OAAZ;AACE,wBAAa,OADf;AAEE,mBAASY,OAFX;AAGE,cAAOT,EAAP,SAAaQ,CAHf;AAIE,qBAASR,EAJX;AAKE,iBAAOO,OAAOV,KALhB;AAME,oBAAUC,QANZ;AAOE,oBAAU;AAAA,mBAAKC,UAASQ,OAAOV,KAAhB,CAAL;AAAA,WAPZ,GADF;AASE;AAAA;AAAA,YAAO,SAAYG,EAAZ,SAAkBQ,CAAzB;AACGN,iBAAOK,OAAOV,KAAd,KAAwBU,OAAOI;AADlC;AATF,OADF;;AAgBA,UAAIR,cAAcI,OAAOV,KAArB,CAAJ,EAAiC;AAC/B,eACE;AAAC,kCAAD;AAAA,YAAgB,MAAMY,OAAtB,EAA+B,KAAKF,OAAOV,KAA3C;AACGa,qBADH;AAEE;AAAA;AAAA,cAAK,WAAU,yBAAf;AACGN;AADH;AAFF,SADF;AAQD;;AAED,aAAOM,WAAP;AACD,KA9BD;AADF,GADF;AAmCD","file":"RadioWidget.js","sourcesContent":["import React from 'react';\n\nimport ExpandingGroup from '../components/ExpandingGroup';\n\nexport default function RadioWidget({\n options,\n value,\n disabled,\n onChange,\n id\n}) {\n const { enumOptions, labels = {}, nestedContent = {} } = options;\n\n // nested content could be a component or just jsx/text\n let content = nestedContent[value];\n if (typeof content === 'function') {\n const NestedContent = content;\n content = ;\n }\n\n return (\n
{\n enumOptions.map((option, i) => {\n const checked = option.value === value;\n const radioButton = (\n
\n onChange(option.value)}/>\n \n
\n );\n\n if (nestedContent[option.value]) {\n return (\n \n {radioButton}\n
\n {content}\n
\n
\n );\n }\n\n return radioButton;\n })\n }
\n );\n}\n"]} \ No newline at end of file diff --git a/lib/js/widgets/SSNWidget.js b/lib/js/widgets/SSNWidget.js index 1613c44..a92e4ca 100644 --- a/lib/js/widgets/SSNWidget.js +++ b/lib/js/widgets/SSNWidget.js @@ -62,4 +62,5 @@ var SSNWidget = function (_React$Component) { return SSNWidget; }(_react2.default.Component); -exports.default = SSNWidget; \ No newline at end of file +exports.default = SSNWidget; +//# sourceMappingURL=SSNWidget.js.map \ No newline at end of file diff --git a/lib/js/widgets/SSNWidget.js.map b/lib/js/widgets/SSNWidget.js.map new file mode 100644 index 0000000..6f47305 --- /dev/null +++ b/lib/js/widgets/SSNWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/SSNWidget.jsx"],"names":["SSNWidget","props","handleChange","val","strippedSSN","replace","setState","onChange","state","value","React","Component"],"mappings":";;;;;;;;;;AAAA;;;;AACA;;;;;;;;;;;;AAEA;;;;IAIqBA,S;;;AACnB,qBAAYC,KAAZ,EAAmB;AAAA;;AAAA,sHACXA,KADW;;AAAA,UAInBC,YAJmB,GAIJ,UAACC,GAAD,EAAS;AACtB;AACA,UAAIC,oBAAJ;AACA,UAAID,GAAJ,EAAS;AACPC,sBAAcD,IAAIE,OAAJ,CAAY,OAAZ,EAAqB,EAArB,CAAd;AACD;;AAED,YAAKC,QAAL,CAAc,EAAEH,QAAF,EAAd,EAAuB,YAAM;AAC3B,cAAKF,KAAL,CAAWM,QAAX,CAAoBH,WAApB;AACD,OAFD;AAGD,KAdkB;;AAEjB,UAAKI,KAAL,GAAa,EAAEL,KAAKF,MAAMQ,KAAb,EAAb;AAFiB;AAGlB;;;;6BAYQ;AACP,aAAO,8BAAC,oBAAD,eAAgB,KAAKR,KAArB,IAA4B,OAAO,KAAKO,KAAL,CAAWL,GAA9C,EAAmD,UAAU,KAAKD,YAAlE,IAAP;AACD;;;;EAlBoCQ,gBAAMC,S;;kBAAxBX,S","file":"SSNWidget.js","sourcesContent":["import React from 'react';\nimport TextWidget from './TextWidget';\n\n/*\n * Handles removing dashes from SSNs by keeping the user input in local state\n * and saving the transformed version instead\n */\nexport default class SSNWidget extends React.Component {\n constructor(props) {\n super(props);\n this.state = { val: props.value };\n }\n handleChange = (val) => {\n // If val is blank or undefined, pass undefined to onChange\n let strippedSSN;\n if (val) {\n strippedSSN = val.replace(/[- ]/g, '');\n }\n\n this.setState({ val }, () => {\n this.props.onChange(strippedSSN);\n });\n }\n render() {\n return ;\n }\n}\n"]} \ No newline at end of file diff --git a/lib/js/widgets/SelectWidget.js b/lib/js/widgets/SelectWidget.js index 024904b..a896734 100644 --- a/lib/js/widgets/SelectWidget.js +++ b/lib/js/widgets/SelectWidget.js @@ -81,4 +81,5 @@ function SelectWidget(_ref2) { ); } -exports.default = (0, _onlyUpdateForKeys2.default)(['id', 'value', 'schema'])(SelectWidget); \ No newline at end of file +exports.default = (0, _onlyUpdateForKeys2.default)(['id', 'value', 'schema'])(SelectWidget); +//# sourceMappingURL=SelectWidget.js.map \ No newline at end of file diff --git a/lib/js/widgets/SelectWidget.js.map b/lib/js/widgets/SelectWidget.js.map new file mode 100644 index 0000000..c0e3955 --- /dev/null +++ b/lib/js/widgets/SelectWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/SelectWidget.jsx"],"names":["processValue","value","type","undefined","getValue","event","target","SelectWidget","schema","id","options","required","disabled","readonly","multiple","onChange","onBlur","placeholder","enumOptions","labels","widgetClassNames","newValue","default","map","option","i","label"],"mappings":";;;;;;AAAA;;;;AACA;;AACA;;;;;;AAEA,SAASA,YAAT,OAAgCC,KAAhC,EAAuC;AAAA,MAAfC,IAAe,QAAfA,IAAe;;AACrC,MAAIA,SAAS,SAAb,EAAwB;AACtB,WAAOD,UAAU,MAAjB;AACD,GAFD,MAEO,IAAIC,SAAS,QAAb,EAAuB;AAC5B,WAAO,qBAASD,KAAT,CAAP;AACD;AACD,SAAOA,UAAU,EAAV,GAAeE,SAAf,GAA2BF,KAAlC;AACD;;AAED,SAASG,QAAT,CAAkBC,KAAlB,EAAyB;AACvB,SAAOA,MAAMC,MAAN,CAAaL,KAApB;AACD;;AAED,SAASM,YAAT,QAYG;AAAA,MAXDC,MAWC,SAXDA,MAWC;AAAA,MAVDC,EAUC,SAVDA,EAUC;AAAA,MATDC,OASC,SATDA,OASC;AAAA,MARDT,KAQC,SARDA,KAQC;AAAA,MAPDU,QAOC,SAPDA,QAOC;AAAA,MANDC,QAMC,SANDA,QAMC;AAAA,MALDC,QAKC,SALDA,QAKC;AAAA,MAJDC,QAIC,SAJDA,QAIC;AAAA,MAHDC,SAGC,SAHDA,QAGC;AAAA,MAFDC,OAEC,SAFDA,MAEC;AAAA,MADDC,WACC,SADDA,WACC;AAAA,MACOC,WADP,GACoCR,OADpC,CACOQ,WADP;AAAA,wBACoCR,OADpC,CACoBS,MADpB;AAAA,MACoBA,MADpB,mCAC6B,EAD7B;;AAED,SACE;AAAA;AAAA;AACE,UAAIV,EADN;AAEE,YAAMA,EAFR;AAGE,gBAAUK,QAHZ;AAIE,iBAAWJ,QAAQU,gBAJrB;AAKE,aAAOnB,SAAS,EALlB;AAME,gBAAUU,QANZ;AAOE,gBAAUC,QAPZ;AAQE,gBAAUC,QARZ;AASE,cAAQ,gBAACR,KAAD,EAAW;AACjB,YAAMgB,WAAWjB,SAASC,KAAT,EAAgBS,QAAhB,CAAjB;AACAE,gBAAOP,EAAP,EAAWT,aAAaQ,MAAb,EAAqBa,QAArB,CAAX;AACD,OAZH;AAaE,gBAAU,kBAAChB,KAAD,EAAW;AACnB,YAAMgB,WAAWjB,SAASC,KAAT,EAAgBS,QAAhB,CAAjB;AACAC,kBAASf,aAAaQ,MAAb,EAAqBa,QAArB,CAAT;AACD,OAhBH;AAiBG,KAACb,OAAOc,OAAR,IAAmB;AAAA;AAAA,QAAQ,OAAM,EAAd;AAAkBL;AAAlB,KAjBtB;AAkBGC,gBAAYK,GAAZ,CAAgB,UAACC,MAAD,EAASC,CAAT,EAAe;AAC9B,aAAO;AAAA;AAAA,UAAQ,KAAKA,CAAb,EAAgB,OAAOD,OAAOvB,KAA9B;AAAsCkB,eAAOK,OAAOvB,KAAd,KAAwBuB,OAAOE;AAArE,OAAP;AACD,KAFA;AAlBH,GADF;AAwBD;;kBAEc,iCAAkB,CAC/B,IAD+B,EAE/B,OAF+B,EAG/B,QAH+B,CAAlB,EAIZnB,YAJY,C","file":"SelectWidget.js","sourcesContent":["import React from 'react';\nimport { asNumber } from '@department-of-veterans-affairs/react-jsonschema-form/lib/utils';\nimport onlyUpdateForKeys from 'recompose/onlyUpdateForKeys';\n\nfunction processValue({ type }, value) {\n if (type === 'boolean') {\n return value === 'true';\n } else if (type === 'number') {\n return asNumber(value);\n }\n return value === '' ? undefined : value;\n}\n\nfunction getValue(event) {\n return event.target.value;\n}\n\nfunction SelectWidget({\n schema,\n id,\n options,\n value,\n required,\n disabled,\n readonly,\n multiple,\n onChange,\n onBlur,\n placeholder\n}) {\n const { enumOptions, labels = {} } = options;\n return (\n {\n const newValue = getValue(event, multiple);\n onBlur(id, processValue(schema, newValue));\n }}\n onChange={(event) => {\n const newValue = getValue(event, multiple);\n onChange(processValue(schema, newValue));\n }}>\n {!schema.default && }\n {enumOptions.map((option, i) => {\n return ;\n })\n }\n );\n}\n\nexport default onlyUpdateForKeys([\n 'id',\n 'value',\n 'schema',\n])(SelectWidget);\n"]} \ No newline at end of file diff --git a/lib/js/widgets/TextWidget.js b/lib/js/widgets/TextWidget.js index 051b36a..f5b7e56 100644 --- a/lib/js/widgets/TextWidget.js +++ b/lib/js/widgets/TextWidget.js @@ -36,4 +36,5 @@ function TextWidget(props) { TextWidget.defaultProps = { type: 'text' -}; \ No newline at end of file +}; +//# sourceMappingURL=TextWidget.js.map \ No newline at end of file diff --git a/lib/js/widgets/TextWidget.js.map b/lib/js/widgets/TextWidget.js.map new file mode 100644 index 0000000..b74e16a --- /dev/null +++ b/lib/js/widgets/TextWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/TextWidget.jsx"],"names":["TextWidget","numberTypes","Set","props","inputType","options","has","schema","type","id","disabled","maxLength","autocomplete","widgetClassNames","value","onBlur","event","onChange","target","undefined","defaultProps"],"mappings":";;;;;kBAIwBA,U;;AAJxB;;;;;;AAEA,IAAMC,cAAc,IAAIC,GAAJ,CAAQ,CAAC,QAAD,EAAW,SAAX,CAAR,CAApB;;AAEe,SAASF,UAAT,CAAoBG,KAApB,EAA2B;AACxC,MAAIC,YAAYD,MAAME,OAAN,CAAcD,SAA9B;AACA,MAAI,CAACA,SAAL,EAAgB;AACdA,gBAAYH,YAAYK,GAAZ,CAAgBH,MAAMI,MAAN,CAAaC,IAA7B,IAAqC,QAArC,GAAgDL,MAAMK,IAAlE;AACD;AACD,SACE,yCAAO,MAAMJ,SAAb;AACE,QAAID,MAAMM,EADZ;AAEE,UAAMN,MAAMM,EAFd;AAGE,cAAUN,MAAMO,QAHlB;AAIE,eAAWP,MAAMI,MAAN,CAAaI,SAJ1B;AAKE,kBAAcR,MAAME,OAAN,CAAcO,YAAd,IAA8B,KAL9C;AAME,eAAWT,MAAME,OAAN,CAAcQ,gBAN3B;AAOE,WAAO,OAAOV,MAAMW,KAAb,KAAuB,WAAvB,GAAqC,EAArC,GAA0CX,MAAMW,KAPzD;AAQE,YAAQ;AAAA,aAAMX,MAAMY,MAAN,CAAaZ,MAAMM,EAAnB,CAAN;AAAA,KARV;AASE,cAAU,kBAACO,KAAD;AAAA,aAAWb,MAAMc,QAAN,CAAeD,MAAME,MAAN,CAAaJ,KAAb,GAAqBE,MAAME,MAAN,CAAaJ,KAAlC,GAA0CK,SAAzD,CAAX;AAAA,KATZ,GADF;AAYD;;AAEDnB,WAAWoB,YAAX,GAA0B;AACxBZ,QAAM;AADkB,CAA1B","file":"TextWidget.js","sourcesContent":["import React from 'react';\n\nconst numberTypes = new Set(['number', 'integer']);\n\nexport default function TextWidget(props) {\n let inputType = props.options.inputType;\n if (!inputType) {\n inputType = numberTypes.has(props.schema.type) ? 'number' : props.type;\n }\n return (\n props.onBlur(props.id)}\n onChange={(event) => props.onChange(event.target.value ? event.target.value : undefined)}/>\n );\n}\n\nTextWidget.defaultProps = {\n type: 'text'\n};\n"]} \ No newline at end of file diff --git a/lib/js/widgets/YesNoWidget.js b/lib/js/widgets/YesNoWidget.js index 7ac020c..d796370 100644 --- a/lib/js/widgets/YesNoWidget.js +++ b/lib/js/widgets/YesNoWidget.js @@ -60,4 +60,5 @@ function YesNoWidget(_ref) { ) ); } -exports.default = YesNoWidget; \ No newline at end of file +exports.default = YesNoWidget; +//# sourceMappingURL=YesNoWidget.js.map \ No newline at end of file diff --git a/lib/js/widgets/YesNoWidget.js.map b/lib/js/widgets/YesNoWidget.js.map new file mode 100644 index 0000000..b6c14af --- /dev/null +++ b/lib/js/widgets/YesNoWidget.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/YesNoWidget.jsx"],"names":["YesNoWidget","id","value","disabled","onChange","options","yesNoReverse","labels","yesValue","noValue","Y","N"],"mappings":";;;;;;;AAAA;;;;;;AAEe,SAASA,WAAT,OAMZ;AAAA,MALDC,EAKC,QALDA,EAKC;AAAA,MAJDC,KAIC,QAJDA,KAIC;AAAA,MAHDC,QAGC,QAHDA,QAGC;AAAA,MAFDC,SAEC,QAFDA,QAEC;AAAA,0BADDC,OACC;AAAA,MADDA,OACC,gCADS,EACT;AAAA,8BAC6CA,OAD7C,CACOC,YADP;AAAA,MACOA,YADP,yCACsB,KADtB;AAAA,wBAC6CD,OAD7C,CAC6BE,MAD7B;AAAA,MAC6BA,MAD7B,mCACsC,EADtC;;AAED,MAAMC,WAAW,CAACF,YAAlB;AACA,MAAMG,UAAU,CAACD,QAAjB;AACA,SACE;AAAA;AAAA,MAAK,WAAU,oBAAf;AACE,6CAAO,MAAK,OAAZ;AACE,oBAAa,OADf;AAEE,eAASN,UAAUM,QAFrB;AAGE,UAAOP,EAAP,QAHF;AAIE,iBAASA,EAJX;AAKE,aAAM,GALR;AAME,gBAAUE,QANZ;AAOE,gBAAU;AAAA,eAAKC,UAASI,QAAT,CAAL;AAAA,OAPZ,GADF;AASE;AAAA;AAAA,QAAO,SAAYP,EAAZ,QAAP;AACGM,aAAOG,CAAP,IAAY;AADf,KATF;AAYE,6CAAO,MAAK,OAAZ;AACE,oBAAa,OADf;AAEE,eAASR,UAAUO,OAFrB;AAGE,UAAOR,EAAP,OAHF;AAIE,iBAASA,EAJX;AAKE,aAAM,GALR;AAME,gBAAUE,QANZ;AAOE,gBAAU;AAAA,eAAKC,UAASK,OAAT,CAAL;AAAA,OAPZ,GAZF;AAoBE;AAAA;AAAA,QAAO,SAAYR,EAAZ,OAAP;AACGM,aAAOI,CAAP,IAAY;AADf;AApBF,GADF;AA0BD","file":"YesNoWidget.js","sourcesContent":["import React from 'react';\n\nexport default function YesNoWidget({\n id,\n value,\n disabled,\n onChange,\n options = {}\n}) {\n const { yesNoReverse = false, labels = {} } = options;\n const yesValue = !yesNoReverse;\n const noValue = !yesValue;\n return (\n
\n onChange(yesValue)}/>\n \n onChange(noValue)}/>\n \n
\n );\n}\n"]} \ No newline at end of file diff --git a/lib/js/widgets/index.js b/lib/js/widgets/index.js index 329347d..31b84d9 100644 --- a/lib/js/widgets/index.js +++ b/lib/js/widgets/index.js @@ -44,4 +44,5 @@ var widgets = { yesNo: _YesNoWidget2.default }; -exports.default = widgets; \ No newline at end of file +exports.default = widgets; +//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/lib/js/widgets/index.js.map b/lib/js/widgets/index.js.map new file mode 100644 index 0000000..5a2d215 --- /dev/null +++ b/lib/js/widgets/index.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["../../../src/js/widgets/index.js"],"names":["widgets","TextWidget","SelectWidget","DateWidget","EmailWidget","RadioWidget","CheckboxWidget","yesNo","YesNoWidget"],"mappings":";;;;;;AAAA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;AACA;;;;;;AAEA,IAAMA,UAAU;AACdC,kCADc;AAEdC,sCAFc;AAGdC,kCAHc;AAIdC,oCAJc;AAKdC,oCALc;AAMdC,0CANc;AAOdC,SAAOC;AAPO,CAAhB;;kBAUeR,O","file":"index.js","sourcesContent":["import TextWidget from './TextWidget';\nimport SelectWidget from './SelectWidget';\nimport DateWidget from './DateWidget';\nimport EmailWidget from './EmailWidget';\nimport RadioWidget from './RadioWidget';\nimport CheckboxWidget from './CheckboxWidget';\nimport YesNoWidget from './YesNoWidget';\n\nconst widgets = {\n TextWidget,\n SelectWidget,\n DateWidget,\n EmailWidget,\n RadioWidget,\n CheckboxWidget,\n yesNo: YesNoWidget\n};\n\nexport default widgets;\n"]} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 42d5caa..e8dcaf0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,10 +9,10 @@ "resolved": "https://registry.npmjs.org/@department-of-veterans-affairs/react-jsonschema-form/-/react-jsonschema-form-1.0.0.tgz", "integrity": "sha512-HECDkslizFdoGaXmI8VSkw6Y9PmtVwImxa+tHSdmnC4qZSpFa50QI4ixk/0GHOOsdVMmi8bHZZ45MAXMOkYChw==", "requires": { - "jsonschema": "1.2.4", - "lodash.topath": "4.5.2", - "prop-types": "15.6.1", - "setimmediate": "1.0.5" + "jsonschema": "^1.0.2", + "lodash.topath": "^4.5.2", + "prop-types": "^15.6.1", + "setimmediate": "^1.0.5" } }, "@sinonjs/formatio": { @@ -36,8 +36,8 @@ "integrity": "sha512-3Sp6WZZ/lXl+nTDoGpGWHEpTnnC6X5fnkolYZR6nwIfzbxxvA8utPWe1gCt7i0m9uVGsSz2IS8K8mJ7HmlduMg==", "dev": true, "requires": { - "jsonparse": "1.3.1", - "through": "2.3.8" + "jsonparse": "^1.2.0", + "through": ">=2.2.7 <3" } }, "abab": { @@ -64,7 +64,7 @@ "integrity": "sha512-KjZwU26uG3u6eZcfGbTULzFcsoz6pegNKtHPksZPOUsiKo5bUmiBPa38FuHZ/Eun+XYh/JCCkS9AS3Lu4McQOQ==", "dev": true, "requires": { - "acorn": "5.5.3" + "acorn": "^5.0.0" } }, "acorn-jsx": { @@ -73,7 +73,7 @@ "integrity": "sha1-r9+UiPsezvyDSPb7IvRk4ypYs2s=", "dev": true, "requires": { - "acorn": "3.3.0" + "acorn": "^3.0.4" }, "dependencies": { "acorn": { @@ -90,8 +90,8 @@ "integrity": "sha512-efP54n3d1aLfjL2UMdaXa6DsswwzJeI5rqhbFvXMrKiJ6eJFpf+7R0zN7t8IC+XKn2YOAFAv6xbBNgHUkoHWLw==", "dev": true, "requires": { - "acorn": "5.5.3", - "xtend": "4.0.1" + "acorn": "^5.4.1", + "xtend": "^4.0.1" } }, "ajv": { @@ -100,10 +100,10 @@ "integrity": "sha1-c7Xuyj+rZT49P5Qis0GtQiBdyWU=", "dev": true, "requires": { - "co": "4.6.0", - "fast-deep-equal": "1.1.0", - "fast-json-stable-stringify": "2.0.0", - "json-schema-traverse": "0.3.1" + "co": "^4.6.0", + "fast-deep-equal": "^1.0.0", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.3.0" } }, "ajv-keywords": { @@ -142,8 +142,8 @@ "integrity": "sha512-5teOsQWABXHHBFP9y3skS5P3d/WfWXpv3FUpy+LorMrNYaT9pI4oLMQX7jzQ2KklNpGpWHzdCXTDT2Y3XGlZBw==", "dev": true, "requires": { - "micromatch": "3.1.10", - "normalize-path": "2.1.1" + "micromatch": "^3.1.4", + "normalize-path": "^2.1.1" } }, "aproba": { @@ -158,8 +158,8 @@ "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", "dev": true, "requires": { - "delegates": "1.0.0", - "readable-stream": "2.3.6" + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" } }, "argparse": { @@ -168,7 +168,7 @@ "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", "dev": true, "requires": { - "sprintf-js": "1.0.3" + "sprintf-js": "~1.0.2" } }, "aria-query": { @@ -178,7 +178,7 @@ "dev": true, "requires": { "ast-types-flow": "0.0.7", - "commander": "2.15.1" + "commander": "^2.11.0" }, "dependencies": { "commander": { @@ -237,8 +237,8 @@ "integrity": "sha1-GEtI9i2S10UrsxsyMWXH+L0CJm0=", "dev": true, "requires": { - "define-properties": "1.1.2", - "es-abstract": "1.11.0" + "define-properties": "^1.1.2", + "es-abstract": "^1.7.0" } }, "array-map": { @@ -259,7 +259,7 @@ "integrity": "sha1-mjRBDk9OPaI96jdb5b5w8kd47Dk=", "dev": true, "requires": { - "array-uniq": "1.0.3" + "array-uniq": "^1.0.1" } }, "array-uniq": { @@ -297,9 +297,9 @@ "integrity": "sha512-p32cOF5q0Zqs9uBiONKYLm6BClCoBCM5O9JfeUSlnQLBTxYdTK+pW+nXflm8UkKd2UYlEbYz5qEi0JuZR9ckSw==", "dev": true, "requires": { - "bn.js": "4.11.8", - "inherits": "2.0.3", - "minimalistic-assert": "1.0.1" + "bn.js": "^4.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" } }, "assert": { @@ -341,7 +341,7 @@ "integrity": "sha1-e9QXhNMkk5h66yOba04cV6hzuRc=", "dev": true, "requires": { - "acorn": "4.0.13" + "acorn": "^4.0.3" }, "dependencies": { "acorn": { @@ -388,12 +388,12 @@ "integrity": "sha512-cv9v1mYYBcAnZq4MHseJ9AIdjQmNahnpCpPO46oTkQJS2GggsBp2azHjNpAuQ95Epvsg+AIsyjYhfI9YwFxGSA==", "dev": true, "requires": { - "browserslist": "3.2.8", - "caniuse-lite": "1.0.30000855", - "normalize-range": "0.1.2", - "num2fraction": "1.2.2", - "postcss": "6.0.22", - "postcss-value-parser": "3.3.0" + "browserslist": "^3.2.8", + "caniuse-lite": "^1.0.30000851", + "normalize-range": "^0.1.2", + "num2fraction": "^1.2.2", + "postcss": "^6.0.22", + "postcss-value-parser": "^3.2.3" }, "dependencies": { "browserslist": { @@ -402,8 +402,8 @@ "integrity": "sha512-WHVocJYavUwVgVViC0ORikPHQquXwVh939TaelZ4WDqpWgTX/FsGhl/+P4qBUAGcRvtOgDgC+xftNWWp2RUTAQ==", "dev": true, "requires": { - "caniuse-lite": "1.0.30000855", - "electron-to-chromium": "1.3.48" + "caniuse-lite": "^1.0.30000844", + "electron-to-chromium": "^1.3.47" } }, "caniuse-lite": { @@ -453,21 +453,21 @@ "integrity": "sha1-UCq1SHTX24itALiHoGODzgPQAvE=", "dev": true, "requires": { - "babel-core": "6.26.3", - "babel-polyfill": "6.26.0", - "babel-register": "6.26.0", - "babel-runtime": "6.26.0", - "chokidar": "1.7.0", - "commander": "2.15.1", - "convert-source-map": "1.5.1", - "fs-readdir-recursive": "1.1.0", - "glob": "7.1.2", - "lodash": "4.17.10", - "output-file-sync": "1.1.2", - "path-is-absolute": "1.0.1", - "slash": "1.0.0", - "source-map": "0.5.7", - "v8flags": "2.1.1" + "babel-core": "^6.26.0", + "babel-polyfill": "^6.26.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "chokidar": "^1.6.1", + "commander": "^2.11.0", + "convert-source-map": "^1.5.0", + "fs-readdir-recursive": "^1.0.0", + "glob": "^7.1.2", + "lodash": "^4.17.4", + "output-file-sync": "^1.1.2", + "path-is-absolute": "^1.0.1", + "slash": "^1.0.0", + "source-map": "^0.5.6", + "v8flags": "^2.1.1" }, "dependencies": { "anymatch": { @@ -477,8 +477,8 @@ "dev": true, "optional": true, "requires": { - "micromatch": "2.3.11", - "normalize-path": "2.1.1" + "micromatch": "^2.1.5", + "normalize-path": "^2.0.0" } }, "arr-diff": { @@ -488,7 +488,7 @@ "dev": true, "optional": true, "requires": { - "arr-flatten": "1.1.0" + "arr-flatten": "^1.0.1" } }, "array-unique": { @@ -505,9 +505,9 @@ "dev": true, "optional": true, "requires": { - "expand-range": "1.8.2", - "preserve": "0.2.0", - "repeat-element": "1.1.2" + "expand-range": "^1.8.1", + "preserve": "^0.2.0", + "repeat-element": "^1.1.2" } }, "chokidar": { @@ -517,15 +517,15 @@ "dev": true, "optional": true, "requires": { - "anymatch": "1.3.2", - "async-each": "1.0.1", - "fsevents": "1.2.4", - "glob-parent": "2.0.0", - "inherits": "2.0.3", - "is-binary-path": "1.0.1", - "is-glob": "2.0.1", - "path-is-absolute": "1.0.1", - "readdirp": "2.1.0" + "anymatch": "^1.3.0", + "async-each": "^1.0.0", + "fsevents": "^1.0.0", + "glob-parent": "^2.0.0", + "inherits": "^2.0.1", + "is-binary-path": "^1.0.0", + "is-glob": "^2.0.0", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.0.0" } }, "commander": { @@ -541,7 +541,7 @@ "dev": true, "optional": true, "requires": { - "is-posix-bracket": "0.1.1" + "is-posix-bracket": "^0.1.0" } }, "extglob": { @@ -551,7 +551,7 @@ "dev": true, "optional": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } }, "glob-parent": { @@ -561,7 +561,7 @@ "dev": true, "optional": true, "requires": { - "is-glob": "2.0.1" + "is-glob": "^2.0.0" } }, "is-extglob": { @@ -576,7 +576,7 @@ "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } }, "kind-of": { @@ -586,7 +586,7 @@ "dev": true, "optional": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } }, "micromatch": { @@ -596,19 +596,19 @@ "dev": true, "optional": true, "requires": { - "arr-diff": "2.0.0", - "array-unique": "0.2.1", - "braces": "1.8.5", - "expand-brackets": "0.1.5", - "extglob": "0.3.2", - "filename-regex": "2.0.1", - "is-extglob": "1.0.0", - "is-glob": "2.0.1", - "kind-of": "3.2.2", - "normalize-path": "2.1.1", - "object.omit": "2.0.1", - "parse-glob": "3.0.4", - "regex-cache": "0.4.4" + "arr-diff": "^2.0.0", + "array-unique": "^0.2.1", + "braces": "^1.8.2", + "expand-brackets": "^0.1.4", + "extglob": "^0.3.1", + "filename-regex": "^2.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.1", + "kind-of": "^3.0.2", + "normalize-path": "^2.0.1", + "object.omit": "^2.0.0", + "parse-glob": "^3.0.4", + "regex-cache": "^0.4.2" } } } @@ -619,9 +619,9 @@ "integrity": "sha1-Y/1D99weO7fONZR9uP42mj9Yx0s=", "dev": true, "requires": { - "chalk": "1.1.3", - "esutils": "2.0.2", - "js-tokens": "3.0.2" + "chalk": "^1.1.3", + "esutils": "^2.0.2", + "js-tokens": "^3.0.2" } }, "babel-core": { @@ -630,25 +630,25 @@ "integrity": "sha512-6jyFLuDmeidKmUEb3NM+/yawG0M2bDZ9Z1qbZP59cyHLz8kYGKYwpJP0UwUKKUiTRNvxfLesJnTedqczP7cTDA==", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "babel-generator": "6.26.1", - "babel-helpers": "6.24.1", - "babel-messages": "6.23.0", - "babel-register": "6.26.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "convert-source-map": "1.5.1", - "debug": "2.6.9", - "json5": "0.5.1", - "lodash": "4.17.10", - "minimatch": "3.0.4", - "path-is-absolute": "1.0.1", - "private": "0.1.8", - "slash": "1.0.0", - "source-map": "0.5.7" + "babel-code-frame": "^6.26.0", + "babel-generator": "^6.26.0", + "babel-helpers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-register": "^6.26.0", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "convert-source-map": "^1.5.1", + "debug": "^2.6.9", + "json5": "^0.5.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.4", + "path-is-absolute": "^1.0.1", + "private": "^0.1.8", + "slash": "^1.0.0", + "source-map": "^0.5.7" } }, "babel-eslint": { @@ -657,10 +657,10 @@ "integrity": "sha1-sv4tgBJkcPXBlELcdXJTqJdxCCc=", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0" + "babel-code-frame": "^6.22.0", + "babel-traverse": "^6.23.1", + "babel-types": "^6.23.0", + "babylon": "^6.17.0" } }, "babel-generator": { @@ -669,14 +669,14 @@ "integrity": "sha512-HyfwY6ApZj7BYTcJURpM5tznulaBvyio7/0d4zFOeMPUmfxkCjHocCuoLa2SAGzBI8AREcH3eP3758F672DppA==", "dev": true, "requires": { - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "detect-indent": "4.0.0", - "jsesc": "1.3.0", - "lodash": "4.17.10", - "source-map": "0.5.7", - "trim-right": "1.0.1" + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "detect-indent": "^4.0.0", + "jsesc": "^1.3.0", + "lodash": "^4.17.4", + "source-map": "^0.5.7", + "trim-right": "^1.0.1" } }, "babel-helper-bindify-decorators": { @@ -685,9 +685,9 @@ "integrity": "sha1-FMGeXxQte0fxmlJDHlKxzLxAozA=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-builder-binary-assignment-operator-visitor": { @@ -696,9 +696,9 @@ "integrity": "sha1-zORReto1b0IgvK6KAsKzRvmlZmQ=", "dev": true, "requires": { - "babel-helper-explode-assignable-expression": "6.24.1", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-explode-assignable-expression": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-helper-builder-react-jsx": { @@ -707,9 +707,9 @@ "integrity": "sha1-Of+DE7dci2Xc7/HzHTg+D/KkCKA=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "esutils": "2.0.2" + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "esutils": "^2.0.2" } }, "babel-helper-call-delegate": { @@ -718,10 +718,10 @@ "integrity": "sha1-7Oaqzdx25Bw0YfiL/Fdb0Nqi340=", "dev": true, "requires": { - "babel-helper-hoist-variables": "6.24.1", - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-hoist-variables": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-define-map": { @@ -730,10 +730,10 @@ "integrity": "sha1-pfVtq0GiX5fstJjH66ypgZ+Vvl8=", "dev": true, "requires": { - "babel-helper-function-name": "6.24.1", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "lodash": "4.17.10" + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" } }, "babel-helper-explode-assignable-expression": { @@ -742,9 +742,9 @@ "integrity": "sha1-8luCz33BBDPFX3BZLVdGQArCLKo=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-explode-class": { @@ -753,10 +753,10 @@ "integrity": "sha1-fcKjkQ3uAHBW4eMdZAztPVTqqes=", "dev": true, "requires": { - "babel-helper-bindify-decorators": "6.24.1", - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-bindify-decorators": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-function-name": { @@ -765,11 +765,11 @@ "integrity": "sha1-00dbjAPtmCQqJbSDUasYOZ01gKk=", "dev": true, "requires": { - "babel-helper-get-function-arity": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-get-function-arity": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-get-function-arity": { @@ -778,8 +778,8 @@ "integrity": "sha1-j3eCqpNAfEHTqlCQj4mwMbG2hT0=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-helper-hoist-variables": { @@ -788,8 +788,8 @@ "integrity": "sha1-HssnaJydJVE+rbyZFKc/VAi+enY=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-helper-module-imports": { @@ -799,7 +799,7 @@ "dev": true, "requires": { "babel-types": "7.0.0-beta.3", - "lodash": "4.17.10" + "lodash": "^4.2.0" }, "dependencies": { "babel-types": { @@ -808,9 +808,9 @@ "integrity": "sha512-36k8J+byAe181OmCMawGhw+DtKO7AwexPVtsPXoMfAkjtZgoCX3bEuHWfdE5sYxRM8dojvtG/+O08M0Z/YDC6w==", "dev": true, "requires": { - "esutils": "2.0.2", - "lodash": "4.17.10", - "to-fast-properties": "2.0.0" + "esutils": "^2.0.2", + "lodash": "^4.2.0", + "to-fast-properties": "^2.0.0" } }, "to-fast-properties": { @@ -827,8 +827,8 @@ "integrity": "sha1-96E0J7qfc/j0+pk8VKl4gtEkQlc=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-helper-regex": { @@ -837,9 +837,9 @@ "integrity": "sha1-MlxZ+QL4LyS3T6zu0DY5VPZJXnI=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "lodash": "4.17.10" + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" } }, "babel-helper-remap-async-to-generator": { @@ -848,11 +848,11 @@ "integrity": "sha1-XsWBgnrXI/7N04HxySg5BnbkVRs=", "dev": true, "requires": { - "babel-helper-function-name": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helper-replace-supers": { @@ -861,12 +861,12 @@ "integrity": "sha1-v22/5Dk40XNpohPKiov3S2qQqxo=", "dev": true, "requires": { - "babel-helper-optimise-call-expression": "6.24.1", - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-optimise-call-expression": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-helpers": { @@ -875,8 +875,8 @@ "integrity": "sha1-NHHenK7DiOXIUOWX5Yom3fN2ArI=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-messages": { @@ -885,7 +885,7 @@ "integrity": "sha1-8830cDhYA1sqKVHG7F7fbGLyYw4=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-check-es2015-constants": { @@ -894,7 +894,7 @@ "integrity": "sha1-NRV7EBQm/S/9PaP3XH0ekYNbv4o=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-dynamic-import-node": { @@ -903,7 +903,7 @@ "integrity": "sha512-yeDwKaLgGdTpXL7RgGt5r6T4LmnTza/hUn5Ul8uZSGGMtEjYo13Nxai7SQaGCTEzUtg9Zq9qJn0EjEr7SeSlTQ==", "dev": true, "requires": { - "babel-plugin-syntax-dynamic-import": "6.18.0" + "babel-plugin-syntax-dynamic-import": "^6.18.0" } }, "babel-plugin-istanbul": { @@ -912,10 +912,10 @@ "integrity": "sha512-PWP9FQ1AhZhS01T/4qLSKoHGY/xvkZdVBGlKM/HuxxS3+sC66HhTNR7+MpbO/so/cz/wY94MeSWJuP1hXIPfwQ==", "dev": true, "requires": { - "babel-plugin-syntax-object-rest-spread": "6.13.0", - "find-up": "2.1.0", - "istanbul-lib-instrument": "1.10.1", - "test-exclude": "4.2.1" + "babel-plugin-syntax-object-rest-spread": "^6.13.0", + "find-up": "^2.1.0", + "istanbul-lib-instrument": "^1.10.1", + "test-exclude": "^4.2.1" } }, "babel-plugin-lodash": { @@ -924,11 +924,11 @@ "integrity": "sha512-lNsptTRfc0FTdW56O087EiKEADVEjJo2frDQ97olMjCKbRZfZPu7MvdyxnZLOoDpuTCtavN8/4Zk65x4gT+C3Q==", "dev": true, "requires": { - "babel-helper-module-imports": "7.0.0-beta.3", - "babel-types": "6.26.0", - "glob": "7.1.2", - "lodash": "4.17.10", - "require-package-name": "2.0.1" + "babel-helper-module-imports": "^7.0.0-beta.3", + "babel-types": "^6.26.0", + "glob": "^7.1.1", + "lodash": "^4.17.4", + "require-package-name": "^2.0.1" } }, "babel-plugin-react-transform": { @@ -937,7 +937,7 @@ "integrity": "sha1-UVu/qZaJOYEULZCx+bFjXeKZUQk=", "dev": true, "requires": { - "lodash": "4.17.10" + "lodash": "^4.6.1" } }, "babel-plugin-syntax-async-functions": { @@ -1006,9 +1006,9 @@ "integrity": "sha1-8FiQAUX9PpkHpt3yjaWfIVJYpds=", "dev": true, "requires": { - "babel-helper-remap-async-to-generator": "6.24.1", - "babel-plugin-syntax-async-generators": "6.13.0", - "babel-runtime": "6.26.0" + "babel-helper-remap-async-to-generator": "^6.24.1", + "babel-plugin-syntax-async-generators": "^6.5.0", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-async-to-generator": { @@ -1017,9 +1017,9 @@ "integrity": "sha1-ZTbjeK/2yx1VF6wOQOs+n8jQh2E=", "dev": true, "requires": { - "babel-helper-remap-async-to-generator": "6.24.1", - "babel-plugin-syntax-async-functions": "6.13.0", - "babel-runtime": "6.26.0" + "babel-helper-remap-async-to-generator": "^6.24.1", + "babel-plugin-syntax-async-functions": "^6.8.0", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-class-properties": { @@ -1028,10 +1028,10 @@ "integrity": "sha1-anl2PqYdM9NvN7YRqp3vgagbRqw=", "dev": true, "requires": { - "babel-helper-function-name": "6.24.1", - "babel-plugin-syntax-class-properties": "6.13.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-helper-function-name": "^6.24.1", + "babel-plugin-syntax-class-properties": "^6.8.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-plugin-transform-decorators": { @@ -1040,11 +1040,11 @@ "integrity": "sha1-eIAT2PjGtSIr33s0Q5Df13Vp4k0=", "dev": true, "requires": { - "babel-helper-explode-class": "6.24.1", - "babel-plugin-syntax-decorators": "6.13.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-explode-class": "^6.24.1", + "babel-plugin-syntax-decorators": "^6.13.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-arrow-functions": { @@ -1053,7 +1053,7 @@ "integrity": "sha1-RSaSy3EdX3ncf4XkQM5BufJE0iE=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-block-scoped-functions": { @@ -1062,7 +1062,7 @@ "integrity": "sha1-u8UbSflk1wy42OC5ToICRs46YUE=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-block-scoping": { @@ -1071,11 +1071,11 @@ "integrity": "sha1-1w9SmcEwjQXBL0Y4E7CgnnOxiV8=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "lodash": "4.17.10" + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "lodash": "^4.17.4" } }, "babel-plugin-transform-es2015-classes": { @@ -1084,15 +1084,15 @@ "integrity": "sha1-WkxYpQyclGHlZLSyo7+ryXolhNs=", "dev": true, "requires": { - "babel-helper-define-map": "6.26.0", - "babel-helper-function-name": "6.24.1", - "babel-helper-optimise-call-expression": "6.24.1", - "babel-helper-replace-supers": "6.24.1", - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-define-map": "^6.24.1", + "babel-helper-function-name": "^6.24.1", + "babel-helper-optimise-call-expression": "^6.24.1", + "babel-helper-replace-supers": "^6.24.1", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-computed-properties": { @@ -1101,8 +1101,8 @@ "integrity": "sha1-b+Ko0WiV1WNPTNmZttNICjCBWbM=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-plugin-transform-es2015-destructuring": { @@ -1111,7 +1111,7 @@ "integrity": "sha1-mXux8auWf2gtKwh2/jWNYOdlxW0=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-duplicate-keys": { @@ -1120,8 +1120,8 @@ "integrity": "sha1-c+s9MQypaePvnskcU3QabxV2Qj4=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-for-of": { @@ -1130,7 +1130,7 @@ "integrity": "sha1-9HyVsrYT3x0+zC/bdXNiPHUkhpE=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-function-name": { @@ -1139,9 +1139,9 @@ "integrity": "sha1-g0yJhTvDaxrw86TF26qU/Y6sqos=", "dev": true, "requires": { - "babel-helper-function-name": "6.24.1", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-function-name": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-literals": { @@ -1150,7 +1150,7 @@ "integrity": "sha1-T1SgLWzWbPkVKAAZox0xklN3yi4=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-modules-amd": { @@ -1159,9 +1159,9 @@ "integrity": "sha1-Oz5UAXI5hC1tGcMBHEvS8AoA0VQ=", "dev": true, "requires": { - "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-plugin-transform-es2015-modules-commonjs": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-plugin-transform-es2015-modules-commonjs": { @@ -1170,10 +1170,10 @@ "integrity": "sha512-CV9ROOHEdrjcwhIaJNBGMBCodN+1cfkwtM1SbUHmvyy35KGT7fohbpOxkE2uLz1o6odKK2Ck/tz47z+VqQfi9Q==", "dev": true, "requires": { - "babel-plugin-transform-strict-mode": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-types": "6.26.0" + "babel-plugin-transform-strict-mode": "^6.24.1", + "babel-runtime": "^6.26.0", + "babel-template": "^6.26.0", + "babel-types": "^6.26.0" } }, "babel-plugin-transform-es2015-modules-systemjs": { @@ -1182,9 +1182,9 @@ "integrity": "sha1-/4mhQrkRmpBhlfXxBuzzBdlAfSM=", "dev": true, "requires": { - "babel-helper-hoist-variables": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-helper-hoist-variables": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-plugin-transform-es2015-modules-umd": { @@ -1193,9 +1193,9 @@ "integrity": "sha1-rJl+YoXNGO1hdq22B9YCNErThGg=", "dev": true, "requires": { - "babel-plugin-transform-es2015-modules-amd": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0" + "babel-plugin-transform-es2015-modules-amd": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1" } }, "babel-plugin-transform-es2015-object-super": { @@ -1204,8 +1204,8 @@ "integrity": "sha1-JM72muIcuDp/hgPa0CH1cusnj40=", "dev": true, "requires": { - "babel-helper-replace-supers": "6.24.1", - "babel-runtime": "6.26.0" + "babel-helper-replace-supers": "^6.24.1", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-parameters": { @@ -1214,12 +1214,12 @@ "integrity": "sha1-V6w1GrScrxSpfNE7CfZv3wpiXys=", "dev": true, "requires": { - "babel-helper-call-delegate": "6.24.1", - "babel-helper-get-function-arity": "6.24.1", - "babel-runtime": "6.26.0", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-call-delegate": "^6.24.1", + "babel-helper-get-function-arity": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-template": "^6.24.1", + "babel-traverse": "^6.24.1", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-shorthand-properties": { @@ -1228,8 +1228,8 @@ "integrity": "sha1-JPh11nIch2YbvZmkYi5R8U3jiqA=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-spread": { @@ -1238,7 +1238,7 @@ "integrity": "sha1-1taKmfia7cRTbIGlQujdnxdG+NE=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-sticky-regex": { @@ -1247,9 +1247,9 @@ "integrity": "sha1-AMHNsaynERLN8M9hJsLta0V8zbw=", "dev": true, "requires": { - "babel-helper-regex": "6.26.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-helper-regex": "^6.24.1", + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-plugin-transform-es2015-template-literals": { @@ -1258,7 +1258,7 @@ "integrity": "sha1-qEs0UPfp+PH2g51taH2oS7EjbY0=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-typeof-symbol": { @@ -1267,7 +1267,7 @@ "integrity": "sha1-3sCfHN3/lLUqxz1QXITfWdzOs3I=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-es2015-unicode-regex": { @@ -1276,9 +1276,9 @@ "integrity": "sha1-04sS9C6nMj9yk4fxinxa4frrNek=", "dev": true, "requires": { - "babel-helper-regex": "6.26.0", - "babel-runtime": "6.26.0", - "regexpu-core": "2.0.0" + "babel-helper-regex": "^6.24.1", + "babel-runtime": "^6.22.0", + "regexpu-core": "^2.0.0" } }, "babel-plugin-transform-exponentiation-operator": { @@ -1287,9 +1287,9 @@ "integrity": "sha1-KrDJx/MJj6SJB3cruBP+QejeOg4=", "dev": true, "requires": { - "babel-helper-builder-binary-assignment-operator-visitor": "6.24.1", - "babel-plugin-syntax-exponentiation-operator": "6.13.0", - "babel-runtime": "6.26.0" + "babel-helper-builder-binary-assignment-operator-visitor": "^6.24.1", + "babel-plugin-syntax-exponentiation-operator": "^6.8.0", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-flow-strip-types": { @@ -1298,8 +1298,8 @@ "integrity": "sha1-hMtnKTXUNxT9wyvOhFaNh0Qc988=", "dev": true, "requires": { - "babel-plugin-syntax-flow": "6.18.0", - "babel-runtime": "6.26.0" + "babel-plugin-syntax-flow": "^6.18.0", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-object-rest-spread": { @@ -1308,8 +1308,8 @@ "integrity": "sha1-DzZpLVD+9rfi1LOsFHgTepY7ewY=", "dev": true, "requires": { - "babel-plugin-syntax-object-rest-spread": "6.13.0", - "babel-runtime": "6.26.0" + "babel-plugin-syntax-object-rest-spread": "^6.8.0", + "babel-runtime": "^6.26.0" } }, "babel-plugin-transform-react-display-name": { @@ -1318,7 +1318,7 @@ "integrity": "sha1-Z+K/Hx6ck6sI25Z5LgU5K/LMKNE=", "dev": true, "requires": { - "babel-runtime": "6.26.0" + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-react-jsx": { @@ -1327,9 +1327,9 @@ "integrity": "sha1-hAoCjn30YN/DotKfDA2R9jduZqM=", "dev": true, "requires": { - "babel-helper-builder-react-jsx": "6.26.0", - "babel-plugin-syntax-jsx": "6.18.0", - "babel-runtime": "6.26.0" + "babel-helper-builder-react-jsx": "^6.24.1", + "babel-plugin-syntax-jsx": "^6.8.0", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-react-jsx-self": { @@ -1338,8 +1338,8 @@ "integrity": "sha1-322AqdomEqEh5t3XVYvL7PBuY24=", "dev": true, "requires": { - "babel-plugin-syntax-jsx": "6.18.0", - "babel-runtime": "6.26.0" + "babel-plugin-syntax-jsx": "^6.8.0", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-react-jsx-source": { @@ -1348,8 +1348,8 @@ "integrity": "sha1-ZqwSFT9c0tF7PBkmj0vwGX9E7NY=", "dev": true, "requires": { - "babel-plugin-syntax-jsx": "6.18.0", - "babel-runtime": "6.26.0" + "babel-plugin-syntax-jsx": "^6.8.0", + "babel-runtime": "^6.22.0" } }, "babel-plugin-transform-react-remove-prop-types": { @@ -1364,7 +1364,7 @@ "integrity": "sha1-4HA2lvveJ/Cj78rPi03KL3s6jy8=", "dev": true, "requires": { - "regenerator-transform": "0.10.1" + "regenerator-transform": "^0.10.0" } }, "babel-plugin-transform-strict-mode": { @@ -1373,8 +1373,8 @@ "integrity": "sha1-1fr3qleKZbvlkc9e2uBKDGcCB1g=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0" + "babel-runtime": "^6.22.0", + "babel-types": "^6.24.1" } }, "babel-polyfill": { @@ -1383,9 +1383,9 @@ "integrity": "sha1-N5k3q8Z9eJWXCtxiHyhM2WbPIVM=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "core-js": "2.5.6", - "regenerator-runtime": "0.10.5" + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "regenerator-runtime": "^0.10.5" }, "dependencies": { "core-js": { @@ -1408,36 +1408,36 @@ "integrity": "sha512-W6VIyA6Ch9ePMI7VptNn2wBM6dbG0eSz25HEiL40nQXCsXGTGZSTZu1Iap+cj3Q0S5a7T9+529l/5Bkvd+afNA==", "dev": true, "requires": { - "babel-plugin-check-es2015-constants": "6.22.0", - "babel-plugin-syntax-trailing-function-commas": "6.22.0", - "babel-plugin-transform-async-to-generator": "6.24.1", - "babel-plugin-transform-es2015-arrow-functions": "6.22.0", - "babel-plugin-transform-es2015-block-scoped-functions": "6.22.0", - "babel-plugin-transform-es2015-block-scoping": "6.26.0", - "babel-plugin-transform-es2015-classes": "6.24.1", - "babel-plugin-transform-es2015-computed-properties": "6.24.1", - "babel-plugin-transform-es2015-destructuring": "6.23.0", - "babel-plugin-transform-es2015-duplicate-keys": "6.24.1", - "babel-plugin-transform-es2015-for-of": "6.23.0", - "babel-plugin-transform-es2015-function-name": "6.24.1", - "babel-plugin-transform-es2015-literals": "6.22.0", - "babel-plugin-transform-es2015-modules-amd": "6.24.1", - "babel-plugin-transform-es2015-modules-commonjs": "6.26.2", - "babel-plugin-transform-es2015-modules-systemjs": "6.24.1", - "babel-plugin-transform-es2015-modules-umd": "6.24.1", - "babel-plugin-transform-es2015-object-super": "6.24.1", - "babel-plugin-transform-es2015-parameters": "6.24.1", - "babel-plugin-transform-es2015-shorthand-properties": "6.24.1", - "babel-plugin-transform-es2015-spread": "6.22.0", - "babel-plugin-transform-es2015-sticky-regex": "6.24.1", - "babel-plugin-transform-es2015-template-literals": "6.22.0", - "babel-plugin-transform-es2015-typeof-symbol": "6.23.0", - "babel-plugin-transform-es2015-unicode-regex": "6.24.1", - "babel-plugin-transform-exponentiation-operator": "6.24.1", - "babel-plugin-transform-regenerator": "6.26.0", - "browserslist": "2.11.3", - "invariant": "2.2.4", - "semver": "5.5.0" + "babel-plugin-check-es2015-constants": "^6.22.0", + "babel-plugin-syntax-trailing-function-commas": "^6.22.0", + "babel-plugin-transform-async-to-generator": "^6.22.0", + "babel-plugin-transform-es2015-arrow-functions": "^6.22.0", + "babel-plugin-transform-es2015-block-scoped-functions": "^6.22.0", + "babel-plugin-transform-es2015-block-scoping": "^6.23.0", + "babel-plugin-transform-es2015-classes": "^6.23.0", + "babel-plugin-transform-es2015-computed-properties": "^6.22.0", + "babel-plugin-transform-es2015-destructuring": "^6.23.0", + "babel-plugin-transform-es2015-duplicate-keys": "^6.22.0", + "babel-plugin-transform-es2015-for-of": "^6.23.0", + "babel-plugin-transform-es2015-function-name": "^6.22.0", + "babel-plugin-transform-es2015-literals": "^6.22.0", + "babel-plugin-transform-es2015-modules-amd": "^6.22.0", + "babel-plugin-transform-es2015-modules-commonjs": "^6.23.0", + "babel-plugin-transform-es2015-modules-systemjs": "^6.23.0", + "babel-plugin-transform-es2015-modules-umd": "^6.23.0", + "babel-plugin-transform-es2015-object-super": "^6.22.0", + "babel-plugin-transform-es2015-parameters": "^6.23.0", + "babel-plugin-transform-es2015-shorthand-properties": "^6.22.0", + "babel-plugin-transform-es2015-spread": "^6.22.0", + "babel-plugin-transform-es2015-sticky-regex": "^6.22.0", + "babel-plugin-transform-es2015-template-literals": "^6.22.0", + "babel-plugin-transform-es2015-typeof-symbol": "^6.23.0", + "babel-plugin-transform-es2015-unicode-regex": "^6.22.0", + "babel-plugin-transform-exponentiation-operator": "^6.22.0", + "babel-plugin-transform-regenerator": "^6.22.0", + "browserslist": "^2.1.2", + "invariant": "^2.2.2", + "semver": "^5.3.0" } }, "babel-preset-flow": { @@ -1446,7 +1446,7 @@ "integrity": "sha1-5xIYiHCFrpoktb5Baa/7WZgWxJ0=", "dev": true, "requires": { - "babel-plugin-transform-flow-strip-types": "6.22.0" + "babel-plugin-transform-flow-strip-types": "^6.22.0" } }, "babel-preset-react": { @@ -1455,12 +1455,12 @@ "integrity": "sha1-umnfrqRfw+xjm2pOzqbhdwLJE4A=", "dev": true, "requires": { - "babel-plugin-syntax-jsx": "6.18.0", - "babel-plugin-transform-react-display-name": "6.25.0", - "babel-plugin-transform-react-jsx": "6.24.1", - "babel-plugin-transform-react-jsx-self": "6.22.0", - "babel-plugin-transform-react-jsx-source": "6.22.0", - "babel-preset-flow": "6.23.0" + "babel-plugin-syntax-jsx": "^6.3.13", + "babel-plugin-transform-react-display-name": "^6.23.0", + "babel-plugin-transform-react-jsx": "^6.24.1", + "babel-plugin-transform-react-jsx-self": "^6.22.0", + "babel-plugin-transform-react-jsx-source": "^6.22.0", + "babel-preset-flow": "^6.23.0" } }, "babel-preset-stage-2": { @@ -1469,10 +1469,10 @@ "integrity": "sha1-2eKWD7PXEYfw5k7sYrwHdnIZvcE=", "dev": true, "requires": { - "babel-plugin-syntax-dynamic-import": "6.18.0", - "babel-plugin-transform-class-properties": "6.24.1", - "babel-plugin-transform-decorators": "6.24.1", - "babel-preset-stage-3": "6.24.1" + "babel-plugin-syntax-dynamic-import": "^6.18.0", + "babel-plugin-transform-class-properties": "^6.24.1", + "babel-plugin-transform-decorators": "^6.24.1", + "babel-preset-stage-3": "^6.24.1" } }, "babel-preset-stage-3": { @@ -1481,11 +1481,11 @@ "integrity": "sha1-g2raCp56f6N8sTj7kyb4eTSkg5U=", "dev": true, "requires": { - "babel-plugin-syntax-trailing-function-commas": "6.22.0", - "babel-plugin-transform-async-generator-functions": "6.24.1", - "babel-plugin-transform-async-to-generator": "6.24.1", - "babel-plugin-transform-exponentiation-operator": "6.24.1", - "babel-plugin-transform-object-rest-spread": "6.26.0" + "babel-plugin-syntax-trailing-function-commas": "^6.22.0", + "babel-plugin-transform-async-generator-functions": "^6.24.1", + "babel-plugin-transform-async-to-generator": "^6.24.1", + "babel-plugin-transform-exponentiation-operator": "^6.24.1", + "babel-plugin-transform-object-rest-spread": "^6.22.0" } }, "babel-register": { @@ -1494,13 +1494,13 @@ "integrity": "sha1-btAhFz4vy0htestFxgCahW9kcHE=", "dev": true, "requires": { - "babel-core": "6.26.3", - "babel-runtime": "6.26.0", - "core-js": "2.5.6", - "home-or-tmp": "2.0.0", - "lodash": "4.17.10", - "mkdirp": "0.5.1", - "source-map-support": "0.4.18" + "babel-core": "^6.26.0", + "babel-runtime": "^6.26.0", + "core-js": "^2.5.0", + "home-or-tmp": "^2.0.0", + "lodash": "^4.17.4", + "mkdirp": "^0.5.1", + "source-map-support": "^0.4.15" }, "dependencies": { "core-js": { @@ -1517,8 +1517,8 @@ "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=", "dev": true, "requires": { - "core-js": "2.5.6", - "regenerator-runtime": "0.11.1" + "core-js": "^2.4.0", + "regenerator-runtime": "^0.11.0" }, "dependencies": { "core-js": { @@ -1535,11 +1535,11 @@ "integrity": "sha1-3gPi0WOWsGn0bdn/+FIfsaDjXgI=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "lodash": "4.17.10" + "babel-runtime": "^6.26.0", + "babel-traverse": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "lodash": "^4.17.4" } }, "babel-traverse": { @@ -1548,15 +1548,15 @@ "integrity": "sha1-RqnL1+3MYsjlwGTi0tjQ9ANXZu4=", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "babel-messages": "6.23.0", - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "debug": "2.6.9", - "globals": "9.18.0", - "invariant": "2.2.4", - "lodash": "4.17.10" + "babel-code-frame": "^6.26.0", + "babel-messages": "^6.23.0", + "babel-runtime": "^6.26.0", + "babel-types": "^6.26.0", + "babylon": "^6.18.0", + "debug": "^2.6.8", + "globals": "^9.18.0", + "invariant": "^2.2.2", + "lodash": "^4.17.4" } }, "babel-types": { @@ -1565,10 +1565,10 @@ "integrity": "sha1-o7Bz+Uq0nrb6Vc1lInozQ4BjJJc=", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "esutils": "2.0.2", - "lodash": "4.17.10", - "to-fast-properties": "1.0.3" + "babel-runtime": "^6.26.0", + "esutils": "^2.0.2", + "lodash": "^4.17.4", + "to-fast-properties": "^1.0.3" } }, "babylon": { @@ -1589,13 +1589,13 @@ "integrity": "sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg==", "dev": true, "requires": { - "cache-base": "1.0.1", - "class-utils": "0.3.6", - "component-emitter": "1.2.1", - "define-property": "1.0.0", - "isobject": "3.0.1", - "mixin-deep": "1.3.1", - "pascalcase": "0.1.1" + "cache-base": "^1.0.1", + "class-utils": "^0.3.5", + "component-emitter": "^1.2.1", + "define-property": "^1.0.0", + "isobject": "^3.0.1", + "mixin-deep": "^1.2.0", + "pascalcase": "^0.1.1" }, "dependencies": { "define-property": { @@ -1604,7 +1604,7 @@ "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { - "is-descriptor": "1.0.2" + "is-descriptor": "^1.0.0" } }, "is-accessor-descriptor": { @@ -1613,7 +1613,7 @@ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -1622,7 +1622,7 @@ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -1631,9 +1631,9 @@ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } } } @@ -1651,7 +1651,7 @@ "dev": true, "optional": true, "requires": { - "tweetnacl": "0.14.5" + "tweetnacl": "^0.14.3" } }, "binary-extensions": { @@ -1672,7 +1672,7 @@ "integrity": "sha1-E+v+d4oDIFz+A3UUgeu0szAMEmo=", "dev": true, "requires": { - "inherits": "2.0.3" + "inherits": "~2.0.0" } }, "bn.js": { @@ -1693,7 +1693,7 @@ "integrity": "sha1-OciRjO/1eZ+D+UkqhI9iWt0Mdm8=", "dev": true, "requires": { - "hoek": "2.16.3" + "hoek": "2.x.x" } }, "brace-expansion": { @@ -1702,7 +1702,7 @@ "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { - "balanced-match": "1.0.0", + "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, @@ -1712,16 +1712,16 @@ "integrity": "sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w==", "dev": true, "requires": { - "arr-flatten": "1.1.0", - "array-unique": "0.3.2", - "extend-shallow": "2.0.1", - "fill-range": "4.0.0", - "isobject": "3.0.1", - "repeat-element": "1.1.2", - "snapdragon": "0.8.2", - "snapdragon-node": "2.1.1", - "split-string": "3.1.0", - "to-regex": "3.0.2" + "arr-flatten": "^1.1.0", + "array-unique": "^0.3.2", + "extend-shallow": "^2.0.1", + "fill-range": "^4.0.0", + "isobject": "^3.0.1", + "repeat-element": "^1.1.2", + "snapdragon": "^0.8.1", + "snapdragon-node": "^2.0.1", + "split-string": "^3.0.2", + "to-regex": "^3.0.1" }, "dependencies": { "extend-shallow": { @@ -1730,7 +1730,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -1747,12 +1747,12 @@ "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", "dev": true, "requires": { - "JSONStream": "1.3.3", - "combine-source-map": "0.8.0", - "defined": "1.0.0", - "safe-buffer": "5.1.2", - "through2": "2.0.3", - "umd": "3.0.3" + "JSONStream": "^1.0.3", + "combine-source-map": "~0.8.0", + "defined": "^1.0.0", + "safe-buffer": "^5.1.1", + "through2": "^2.0.0", + "umd": "^3.0.0" } }, "browser-process-hrtime": { @@ -1790,53 +1790,53 @@ "integrity": "sha1-tanJAgJD8McORnW+yCI7xifkFc4=", "dev": true, "requires": { - "JSONStream": "1.3.3", - "assert": "1.4.1", - "browser-pack": "6.1.0", - "browser-resolve": "1.11.2", - "browserify-zlib": "0.1.4", - "buffer": "4.9.1", - "cached-path-relative": "1.0.1", - "concat-stream": "1.5.2", - "console-browserify": "1.1.0", - "constants-browserify": "1.0.0", - "crypto-browserify": "3.12.0", - "defined": "1.0.0", - "deps-sort": "2.0.0", - "domain-browser": "1.1.7", - "duplexer2": "0.1.4", - "events": "1.1.1", - "glob": "7.1.2", - "has": "1.0.1", - "htmlescape": "1.1.1", - "https-browserify": "0.0.1", - "inherits": "2.0.3", - "insert-module-globals": "7.1.0", - "labeled-stream-splicer": "2.0.1", - "module-deps": "4.1.1", - "os-browserify": "0.1.2", - "parents": "1.0.1", - "path-browserify": "0.0.0", - "process": "0.11.10", - "punycode": "1.4.1", - "querystring-es3": "0.2.1", - "read-only-stream": "2.0.0", - "readable-stream": "2.3.6", - "resolve": "1.7.1", - "shasum": "1.0.2", - "shell-quote": "1.6.1", - "stream-browserify": "2.0.1", - "stream-http": "2.8.3", - "string_decoder": "0.10.31", - "subarg": "1.0.0", - "syntax-error": "1.4.0", - "through2": "2.0.3", - "timers-browserify": "1.4.2", - "tty-browserify": "0.0.1", - "url": "0.11.0", - "util": "0.10.3", - "vm-browserify": "0.0.4", - "xtend": "4.0.1" + "JSONStream": "^1.0.3", + "assert": "^1.4.0", + "browser-pack": "^6.0.1", + "browser-resolve": "^1.11.0", + "browserify-zlib": "~0.1.2", + "buffer": "^4.1.0", + "cached-path-relative": "^1.0.0", + "concat-stream": "~1.5.1", + "console-browserify": "^1.1.0", + "constants-browserify": "~1.0.0", + "crypto-browserify": "^3.0.0", + "defined": "^1.0.0", + "deps-sort": "^2.0.0", + "domain-browser": "~1.1.0", + "duplexer2": "~0.1.2", + "events": "~1.1.0", + "glob": "^7.1.0", + "has": "^1.0.0", + "htmlescape": "^1.1.0", + "https-browserify": "~0.0.0", + "inherits": "~2.0.1", + "insert-module-globals": "^7.0.0", + "labeled-stream-splicer": "^2.0.0", + "module-deps": "^4.0.8", + "os-browserify": "~0.1.1", + "parents": "^1.0.1", + "path-browserify": "~0.0.0", + "process": "~0.11.0", + "punycode": "^1.3.2", + "querystring-es3": "~0.2.0", + "read-only-stream": "^2.0.0", + "readable-stream": "^2.0.2", + "resolve": "^1.1.4", + "shasum": "^1.0.0", + "shell-quote": "^1.6.1", + "stream-browserify": "^2.0.0", + "stream-http": "^2.0.0", + "string_decoder": "~0.10.0", + "subarg": "^1.0.0", + "syntax-error": "^1.1.1", + "through2": "^2.0.0", + "timers-browserify": "^1.0.1", + "tty-browserify": "~0.0.0", + "url": "~0.11.0", + "util": "~0.10.1", + "vm-browserify": "~0.0.1", + "xtend": "^4.0.0" }, "dependencies": { "concat-stream": { @@ -1845,9 +1845,9 @@ "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.0.6", - "typedarray": "0.0.6" + "inherits": "~2.0.1", + "readable-stream": "~2.0.0", + "typedarray": "~0.0.5" }, "dependencies": { "readable-stream": { @@ -1856,12 +1856,12 @@ "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "string_decoder": "0.10.31", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "string_decoder": "~0.10.x", + "util-deprecate": "~1.0.1" } } } @@ -1892,12 +1892,12 @@ "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", "dev": true, "requires": { - "buffer-xor": "1.0.3", - "cipher-base": "1.0.4", - "create-hash": "1.2.0", - "evp_bytestokey": "1.0.3", - "inherits": "2.0.3", - "safe-buffer": "5.1.2" + "buffer-xor": "^1.0.3", + "cipher-base": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.3", + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, "browserify-cipher": { @@ -1906,9 +1906,9 @@ "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", "dev": true, "requires": { - "browserify-aes": "1.2.0", - "browserify-des": "1.0.1", - "evp_bytestokey": "1.0.3" + "browserify-aes": "^1.0.4", + "browserify-des": "^1.0.0", + "evp_bytestokey": "^1.0.0" } }, "browserify-des": { @@ -1917,9 +1917,9 @@ "integrity": "sha512-zy0Cobe3hhgpiOM32Tj7KQ3Vl91m0njwsjzZQK1L+JDf11dzP9qIvjreVinsvXrgfjhStXwUWAEpB9D7Gwmayw==", "dev": true, "requires": { - "cipher-base": "1.0.4", - "des.js": "1.0.0", - "inherits": "2.0.3" + "cipher-base": "^1.0.1", + "des.js": "^1.0.0", + "inherits": "^2.0.1" } }, "browserify-rsa": { @@ -1928,8 +1928,8 @@ "integrity": "sha1-IeCr+vbyApzy+vsTNWenAdQTVSQ=", "dev": true, "requires": { - "bn.js": "4.11.8", - "randombytes": "2.0.6" + "bn.js": "^4.1.0", + "randombytes": "^2.0.1" } }, "browserify-sign": { @@ -1938,13 +1938,13 @@ "integrity": "sha1-qk62jl17ZYuqa/alfmMMvXqT0pg=", "dev": true, "requires": { - "bn.js": "4.11.8", - "browserify-rsa": "4.0.1", - "create-hash": "1.2.0", - "create-hmac": "1.1.7", - "elliptic": "6.4.0", - "inherits": "2.0.3", - "parse-asn1": "5.1.1" + "bn.js": "^4.1.1", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.2", + "elliptic": "^6.0.0", + "inherits": "^2.0.1", + "parse-asn1": "^5.0.0" } }, "browserify-zlib": { @@ -1953,7 +1953,7 @@ "integrity": "sha1-uzX4pRn2AOD6a4SFJByXnQFB+y0=", "dev": true, "requires": { - "pako": "0.2.9" + "pako": "~0.2.0" } }, "browserslist": { @@ -1962,8 +1962,8 @@ "integrity": "sha512-yWu5cXT7Av6mVwzWc8lMsJMHWn4xyjSuGYi4IozbVTLUOEYPSagUB8kiMDUHA1fS3zjr8nkxkn9jdvug4BBRmA==", "dev": true, "requires": { - "caniuse-lite": "1.0.30000839", - "electron-to-chromium": "1.3.45" + "caniuse-lite": "^1.0.30000792", + "electron-to-chromium": "^1.3.30" } }, "buffer": { @@ -1972,9 +1972,9 @@ "integrity": "sha1-bRu2AbB6TvztlwlBMgkwJ8lbwpg=", "dev": true, "requires": { - "base64-js": "1.3.0", - "ieee754": "1.1.12", - "isarray": "1.0.0" + "base64-js": "^1.0.2", + "ieee754": "^1.1.4", + "isarray": "^1.0.0" } }, "buffer-from": { @@ -2007,15 +2007,15 @@ "integrity": "sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ==", "dev": true, "requires": { - "collection-visit": "1.0.0", - "component-emitter": "1.2.1", - "get-value": "2.0.6", - "has-value": "1.0.0", - "isobject": "3.0.1", - "set-value": "2.0.0", - "to-object-path": "0.3.0", - "union-value": "1.0.0", - "unset-value": "1.0.0" + "collection-visit": "^1.0.0", + "component-emitter": "^1.2.1", + "get-value": "^2.0.6", + "has-value": "^1.0.0", + "isobject": "^3.0.1", + "set-value": "^2.0.0", + "to-object-path": "^0.3.0", + "union-value": "^1.0.0", + "unset-value": "^1.0.0" } }, "cached-path-relative": { @@ -2030,7 +2030,7 @@ "integrity": "sha1-lAhe9jWB7NPaqSREqP6U6CV3dR8=", "dev": true, "requires": { - "callsites": "0.2.0" + "callsites": "^0.2.0" } }, "callsites": { @@ -2051,8 +2051,8 @@ "integrity": "sha1-MIvur/3ygRkFHvodkyITyRuPkuc=", "dev": true, "requires": { - "camelcase": "2.1.1", - "map-obj": "1.0.1" + "camelcase": "^2.0.0", + "map-obj": "^1.0.0" } }, "caniuse-lite": { @@ -2073,12 +2073,12 @@ "integrity": "sha1-D2RYS6ZC8PKs4oBiefTwbKI61zw=", "dev": true, "requires": { - "assertion-error": "1.1.0", - "check-error": "1.0.2", - "deep-eql": "3.0.1", - "get-func-name": "2.0.0", - "pathval": "1.1.0", - "type-detect": "4.0.8" + "assertion-error": "^1.0.1", + "check-error": "^1.0.1", + "deep-eql": "^3.0.0", + "get-func-name": "^2.0.0", + "pathval": "^1.0.0", + "type-detect": "^4.0.0" } }, "chai-as-promised": { @@ -2087,7 +2087,7 @@ "integrity": "sha512-azL6xMoi+uxu6z4rhWQ1jbdUhOMhis2PvscD/xjLqNMkv3BPPp2JyyuTHOrf9BOosGpNQ11v6BKv/g57RXbiaA==", "dev": true, "requires": { - "check-error": "1.0.2" + "check-error": "^1.0.2" } }, "chain-function": { @@ -2101,11 +2101,11 @@ "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", "dev": true, "requires": { - "ansi-styles": "2.2.1", - "escape-string-regexp": "1.0.5", - "has-ansi": "2.0.0", - "strip-ansi": "3.0.1", - "supports-color": "2.0.0" + "ansi-styles": "^2.2.1", + "escape-string-regexp": "^1.0.2", + "has-ansi": "^2.0.0", + "strip-ansi": "^3.0.0", + "supports-color": "^2.0.0" } }, "change-emitter": { @@ -2131,12 +2131,12 @@ "integrity": "sha1-S59TqBsn5NXawxwP/Qz6A8xoMNs=", "dev": true, "requires": { - "css-select": "1.2.0", - "dom-serializer": "0.1.0", - "entities": "1.1.1", - "htmlparser2": "3.9.2", - "lodash": "4.17.10", - "parse5": "3.0.3" + "css-select": "~1.2.0", + "dom-serializer": "~0.1.0", + "entities": "~1.1.1", + "htmlparser2": "^3.9.1", + "lodash": "^4.15.0", + "parse5": "^3.0.1" } }, "chokidar": { @@ -2145,18 +2145,18 @@ "integrity": "sha512-zW8iXYZtXMx4kux/nuZVXjkLP+CyIK5Al5FHnj1OgTKGZfp4Oy6/ymtMSKFv3GD8DviEmUPmJg9eFdJ/JzudMg==", "dev": true, "requires": { - "anymatch": "2.0.0", - "async-each": "1.0.1", - "braces": "2.3.2", - "fsevents": "1.2.4", - "glob-parent": "3.1.0", - "inherits": "2.0.3", - "is-binary-path": "1.0.1", - "is-glob": "4.0.0", - "normalize-path": "2.1.1", - "path-is-absolute": "1.0.1", - "readdirp": "2.1.0", - "upath": "1.1.0" + "anymatch": "^2.0.0", + "async-each": "^1.0.0", + "braces": "^2.3.0", + "fsevents": "^1.1.2", + "glob-parent": "^3.1.0", + "inherits": "^2.0.1", + "is-binary-path": "^1.0.0", + "is-glob": "^4.0.0", + "normalize-path": "^2.1.1", + "path-is-absolute": "^1.0.0", + "readdirp": "^2.0.0", + "upath": "^1.0.0" } }, "choma": { @@ -2165,8 +2165,8 @@ "integrity": "sha512-4KwEouEHt6SfG8vYnN2gSJfq/cGmnY2gubnUgsgkRXzHoSRAgluX2YXQgDg6bTDWuOmUrTb/cfwMpNlvnnPZCg==", "dev": true, "requires": { - "chalk": "2.4.1", - "seedrandom": "2.4.3" + "chalk": "^2.3.2", + "seedrandom": "^2.4.3" }, "dependencies": { "ansi-styles": { @@ -2175,7 +2175,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.1" + "color-convert": "^1.9.0" } }, "chalk": { @@ -2184,9 +2184,9 @@ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "supports-color": { @@ -2195,7 +2195,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -2206,8 +2206,8 @@ "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", "dev": true, "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.2" + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, "circular-json": { @@ -2222,10 +2222,10 @@ "integrity": "sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg==", "dev": true, "requires": { - "arr-union": "3.1.0", - "define-property": "0.2.5", - "isobject": "3.0.1", - "static-extend": "0.1.2" + "arr-union": "^3.1.0", + "define-property": "^0.2.5", + "isobject": "^3.0.0", + "static-extend": "^0.1.1" }, "dependencies": { "define-property": { @@ -2234,7 +2234,7 @@ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } } } @@ -2256,7 +2256,7 @@ "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", "dev": true, "requires": { - "restore-cursor": "2.0.0" + "restore-cursor": "^2.0.0" } }, "cli-width": { @@ -2271,9 +2271,9 @@ "integrity": "sha1-EgYBU3qRbSmUD5NNo7SNWFo5IT0=", "dev": true, "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wrap-ansi": "2.1.0" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wrap-ansi": "^2.0.0" }, "dependencies": { "is-fullwidth-code-point": { @@ -2282,7 +2282,7 @@ "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "string-width": { @@ -2291,9 +2291,9 @@ "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } } } @@ -2316,8 +2316,8 @@ "integrity": "sha1-S8A3PBZLwykbTTaMgpzxqApZ3KA=", "dev": true, "requires": { - "map-visit": "1.0.0", - "object-visit": "1.0.1" + "map-visit": "^1.0.0", + "object-visit": "^1.0.0" } }, "color-convert": { @@ -2326,7 +2326,7 @@ "integrity": "sha512-mjGanIiwQJskCC18rPR6OmrZ6fm2Lc7PeGFYwCmy5J34wC6F1PzdGL6xeMfmgicfYcNLGuVFA3WzXtIDCQSZxQ==", "dev": true, "requires": { - "color-name": "1.1.3" + "color-name": "^1.1.1" } }, "color-name": { @@ -2347,10 +2347,10 @@ "integrity": "sha1-pY0N8ELBhvz4IqjoAV9UUNLXmos=", "dev": true, "requires": { - "convert-source-map": "1.1.3", - "inline-source-map": "0.6.2", - "lodash.memoize": "3.0.4", - "source-map": "0.5.7" + "convert-source-map": "~1.1.0", + "inline-source-map": "~0.6.0", + "lodash.memoize": "~3.0.3", + "source-map": "~0.5.3" }, "dependencies": { "convert-source-map": { @@ -2367,7 +2367,7 @@ "integrity": "sha1-cj599ugBrFYTETp+RFqbactjKBg=", "dev": true, "requires": { - "delayed-stream": "1.0.0" + "delayed-stream": "~1.0.0" } }, "commander": { @@ -2376,7 +2376,7 @@ "integrity": "sha1-nJkJQXbhIkDLItbFFGCYQA/g99Q=", "dev": true, "requires": { - "graceful-readlink": "1.0.1" + "graceful-readlink": ">= 1.0.0" } }, "component-emitter": { @@ -2397,10 +2397,10 @@ "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", "dev": true, "requires": { - "buffer-from": "1.0.0", - "inherits": "2.0.3", - "readable-stream": "2.3.6", - "typedarray": "0.0.6" + "buffer-from": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^2.2.2", + "typedarray": "^0.0.6" } }, "console-browserify": { @@ -2409,7 +2409,7 @@ "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", "dev": true, "requires": { - "date-now": "0.1.4" + "date-now": "^0.1.4" } }, "console-control-strings": { @@ -2459,13 +2459,13 @@ "integrity": "sha512-GiNXLwAFPYHy25XmTPpafYvn3CLAkJ8FLsscq78MQd1Kh0OU6Yzhn4eV2MVF4G9WEQZoWEGltatdR+ntGPMl5A==", "dev": true, "requires": { - "is-directory": "0.3.1", - "js-yaml": "3.12.0", - "minimist": "1.2.0", - "object-assign": "4.1.1", - "os-homedir": "1.0.2", - "parse-json": "2.2.0", - "require-from-string": "1.2.1" + "is-directory": "^0.3.1", + "js-yaml": "^3.4.3", + "minimist": "^1.2.0", + "object-assign": "^4.1.0", + "os-homedir": "^1.0.1", + "parse-json": "^2.2.0", + "require-from-string": "^1.1.0" }, "dependencies": { "esprima": { @@ -2480,8 +2480,8 @@ "integrity": "sha512-PIt2cnwmPfL4hKNwqeiuz4bKfnzHTBv6HyVgjahA6mPLwPDzjDWrplJBMjHUFxku/N3FlmrbyPclad+I+4mJ3A==", "dev": true, "requires": { - "argparse": "1.0.10", - "esprima": "4.0.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" } }, "minimist": { @@ -2498,8 +2498,8 @@ "integrity": "sha512-GbEHQPMOswGpKXM9kCWVrremUcBmjteUaQ01T9rkKCPDXfUHX0IoP9LpHYo2NPFampa4e+/pFDc3jQdxrxQLaw==", "dev": true, "requires": { - "bn.js": "4.11.8", - "elliptic": "6.4.0" + "bn.js": "^4.1.0", + "elliptic": "^6.0.0" } }, "create-hash": { @@ -2508,11 +2508,11 @@ "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", "dev": true, "requires": { - "cipher-base": "1.0.4", - "inherits": "2.0.3", - "md5.js": "1.3.4", - "ripemd160": "2.0.2", - "sha.js": "2.4.11" + "cipher-base": "^1.0.1", + "inherits": "^2.0.1", + "md5.js": "^1.3.4", + "ripemd160": "^2.0.1", + "sha.js": "^2.4.0" } }, "create-hmac": { @@ -2521,12 +2521,12 @@ "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", "dev": true, "requires": { - "cipher-base": "1.0.4", - "create-hash": "1.2.0", - "inherits": "2.0.3", - "ripemd160": "2.0.2", - "safe-buffer": "5.1.2", - "sha.js": "2.4.11" + "cipher-base": "^1.0.3", + "create-hash": "^1.1.0", + "inherits": "^2.0.1", + "ripemd160": "^2.0.0", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" } }, "create-react-class": { @@ -2534,9 +2534,9 @@ "resolved": "https://registry.npmjs.org/create-react-class/-/create-react-class-15.6.3.tgz", "integrity": "sha512-M+/3Q6E6DLO6Yx3OwrWjwHBnvfXXYA7W+dFjt/ZDBemHO1DDZhsalX/NUtnTYclN6GfnBDRh4qRHjcDHmlJBJg==", "requires": { - "fbjs": "0.8.16", - "loose-envify": "1.3.1", - "object-assign": "4.1.1" + "fbjs": "^0.8.9", + "loose-envify": "^1.3.1", + "object-assign": "^4.1.1" } }, "cross-spawn": { @@ -2545,9 +2545,9 @@ "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", "dev": true, "requires": { - "lru-cache": "4.1.3", - "shebang-command": "1.2.0", - "which": "1.3.0" + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" } }, "cryptiles": { @@ -2556,7 +2556,7 @@ "integrity": "sha1-O9/s3GCBR8HGcgL6KR59ylnqo7g=", "dev": true, "requires": { - "boom": "2.10.1" + "boom": "2.x.x" } }, "crypto-browserify": { @@ -2565,17 +2565,17 @@ "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", "dev": true, "requires": { - "browserify-cipher": "1.0.1", - "browserify-sign": "4.0.4", - "create-ecdh": "4.0.3", - "create-hash": "1.2.0", - "create-hmac": "1.1.7", - "diffie-hellman": "5.0.3", - "inherits": "2.0.3", - "pbkdf2": "3.0.16", - "public-encrypt": "4.0.2", - "randombytes": "2.0.6", - "randomfill": "1.0.4" + "browserify-cipher": "^1.0.0", + "browserify-sign": "^4.0.0", + "create-ecdh": "^4.0.0", + "create-hash": "^1.1.0", + "create-hmac": "^1.1.0", + "diffie-hellman": "^5.0.0", + "inherits": "^2.0.1", + "pbkdf2": "^3.0.3", + "public-encrypt": "^4.0.0", + "randombytes": "^2.0.0", + "randomfill": "^1.0.3" } }, "css-select": { @@ -2584,10 +2584,10 @@ "integrity": "sha1-KzoRBTnFNV8c2NMUYj6HCxIeyFg=", "dev": true, "requires": { - "boolbase": "1.0.0", - "css-what": "2.1.0", + "boolbase": "~1.0.0", + "css-what": "2.1", "domutils": "1.5.1", - "nth-check": "1.0.1" + "nth-check": "~1.0.1" } }, "css-what": { @@ -2608,7 +2608,7 @@ "integrity": "sha512-tNvaxM5blOnxanyxI6panOsnfiyLRj3HV4qjqqS45WPNS1usdYWRUQjqTEEELK73lpeP/1KoIGYUwrBn/VcECA==", "dev": true, "requires": { - "cssom": "0.3.2" + "cssom": "0.3.x" } }, "currently-unhandled": { @@ -2617,7 +2617,7 @@ "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", "dev": true, "requires": { - "array-find-index": "1.0.2" + "array-find-index": "^1.0.1" } }, "d": { @@ -2626,7 +2626,7 @@ "integrity": "sha1-dUu1v+VUUdpppYuU1F9MWwRi1Y8=", "dev": true, "requires": { - "es5-ext": "0.10.42" + "es5-ext": "^0.10.9" } }, "damerau-levenshtein": { @@ -2641,7 +2641,7 @@ "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "dev": true, "requires": { - "assert-plus": "1.0.0" + "assert-plus": "^1.0.0" } }, "data-urls": { @@ -2650,9 +2650,9 @@ "integrity": "sha512-ai40PPQR0Fn1lD2PPie79CibnlMN2AYiDhwFX/rZHVsxbs5kNJSjegqXIprhouGXlRdEnfybva7kqRGnB6mypA==", "dev": true, "requires": { - "abab": "1.0.4", - "whatwg-mimetype": "2.1.0", - "whatwg-url": "6.4.1" + "abab": "^1.0.4", + "whatwg-mimetype": "^2.0.0", + "whatwg-url": "^6.4.0" } }, "date-now": { @@ -2688,7 +2688,7 @@ "integrity": "sha512-+QeIQyN5ZuO+3Uk5DYh6/1eKO0m0YmJFGNmFHGACpf1ClL1nmlV/p4gNgbl2pJGxgXb4faqo6UE+M5ACEMyVcw==", "dev": true, "requires": { - "type-detect": "4.0.8" + "type-detect": "^4.0.0" } }, "deep-is": { @@ -2703,8 +2703,8 @@ "integrity": "sha1-g6c/L+pWmJj7c3GTyPhzyvbUXJQ=", "dev": true, "requires": { - "foreach": "2.0.5", - "object-keys": "1.0.11" + "foreach": "^2.0.5", + "object-keys": "^1.0.8" } }, "define-property": { @@ -2713,8 +2713,8 @@ "integrity": "sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ==", "dev": true, "requires": { - "is-descriptor": "1.0.2", - "isobject": "3.0.1" + "is-descriptor": "^1.0.2", + "isobject": "^3.0.1" }, "dependencies": { "is-accessor-descriptor": { @@ -2723,7 +2723,7 @@ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -2732,7 +2732,7 @@ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -2741,9 +2741,9 @@ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } } } @@ -2760,13 +2760,13 @@ "integrity": "sha1-wSyYHQZ4RshLyvhiz/kw2Qf/0ag=", "dev": true, "requires": { - "globby": "5.0.0", - "is-path-cwd": "1.0.0", - "is-path-in-cwd": "1.0.1", - "object-assign": "4.1.1", - "pify": "2.3.0", - "pinkie-promise": "2.0.1", - "rimraf": "2.6.2" + "globby": "^5.0.0", + "is-path-cwd": "^1.0.0", + "is-path-in-cwd": "^1.0.0", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "rimraf": "^2.2.8" } }, "delayed-stream": { @@ -2793,10 +2793,10 @@ "integrity": "sha1-CRckkC6EZYJg65EHSMzNGvbiH7U=", "dev": true, "requires": { - "JSONStream": "1.3.3", - "shasum": "1.0.2", - "subarg": "1.0.0", - "through2": "2.0.3" + "JSONStream": "^1.0.3", + "shasum": "^1.0.0", + "subarg": "^1.0.0", + "through2": "^2.0.0" } }, "des.js": { @@ -2805,8 +2805,8 @@ "integrity": "sha1-wHTS4qpqipoH29YfmhXCzYPsjsw=", "dev": true, "requires": { - "inherits": "2.0.3", - "minimalistic-assert": "1.0.1" + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0" } }, "detect-indent": { @@ -2815,7 +2815,7 @@ "integrity": "sha1-920GQ1LN9Docts5hnE7jqUdd4gg=", "dev": true, "requires": { - "repeating": "2.0.1" + "repeating": "^2.0.0" } }, "detective": { @@ -2824,8 +2824,8 @@ "integrity": "sha512-H6PmeeUcZloWtdt4DAkFyzFL94arpHr3NOwwmVILFiy+9Qd4JTxxXrzfyGk/lmct2qVGBwTSwSXagqu2BxmWig==", "dev": true, "requires": { - "acorn": "5.5.3", - "defined": "1.0.0" + "acorn": "^5.2.1", + "defined": "^1.0.0" } }, "diff": { @@ -2840,9 +2840,9 @@ "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", "dev": true, "requires": { - "bn.js": "4.11.8", - "miller-rabin": "4.0.1", - "randombytes": "2.0.6" + "bn.js": "^4.1.0", + "miller-rabin": "^4.0.0", + "randombytes": "^2.0.0" } }, "dir-glob": { @@ -2851,8 +2851,8 @@ "integrity": "sha512-37qirFDz8cA5fimp9feo43fSuRo2gHwaIn6dXL8Ber1dGwUosDrGZeCCXq57WnIqE4aQ+u3eQZzsk1yOzhdwag==", "dev": true, "requires": { - "arrify": "1.0.1", - "path-type": "3.0.0" + "arrify": "^1.0.1", + "path-type": "^3.0.0" }, "dependencies": { "path-type": { @@ -2861,7 +2861,7 @@ "integrity": "sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg==", "dev": true, "requires": { - "pify": "3.0.0" + "pify": "^3.0.0" } }, "pify": { @@ -2884,7 +2884,7 @@ "integrity": "sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw==", "dev": true, "requires": { - "esutils": "2.0.2" + "esutils": "^2.0.2" } }, "dom-helpers": { @@ -2898,8 +2898,8 @@ "integrity": "sha1-BzxpdUbOB4DOI75KKOKT5AvDDII=", "dev": true, "requires": { - "domelementtype": "1.1.3", - "entities": "1.1.1" + "domelementtype": "~1.1.1", + "entities": "~1.1.1" }, "dependencies": { "domelementtype": { @@ -2928,7 +2928,7 @@ "integrity": "sha512-raigMkn7CJNNo6Ihro1fzG7wr3fHuYVytzquZKX5n0yizGsTcYgzdIUwj1X9pK0VvjeihV+XiclP+DjwbsSKug==", "dev": true, "requires": { - "webidl-conversions": "4.0.2" + "webidl-conversions": "^4.0.2" } }, "domhandler": { @@ -2937,7 +2937,7 @@ "integrity": "sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA==", "dev": true, "requires": { - "domelementtype": "1.3.0" + "domelementtype": "1" } }, "domready": { @@ -2952,8 +2952,8 @@ "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", "dev": true, "requires": { - "dom-serializer": "0.1.0", - "domelementtype": "1.3.0" + "dom-serializer": "0", + "domelementtype": "1" } }, "downshift": { @@ -2967,7 +2967,7 @@ "integrity": "sha1-ixLauHjA1p4+eJEFFmKjL8a93ME=", "dev": true, "requires": { - "readable-stream": "2.3.6" + "readable-stream": "^2.0.2" } }, "ecc-jsbn": { @@ -2977,7 +2977,7 @@ "dev": true, "optional": true, "requires": { - "jsbn": "0.1.1" + "jsbn": "~0.1.0" } }, "electron-to-chromium": { @@ -3004,13 +3004,13 @@ "integrity": "sha1-ysmvh2LIWDYYcAPI3+GT5eLq5d8=", "dev": true, "requires": { - "bn.js": "4.11.8", - "brorand": "1.1.0", - "hash.js": "1.1.3", - "hmac-drbg": "1.0.1", - "inherits": "2.0.3", - "minimalistic-assert": "1.0.1", - "minimalistic-crypto-utils": "1.0.1" + "bn.js": "^4.4.0", + "brorand": "^1.0.1", + "hash.js": "^1.0.0", + "hmac-drbg": "^1.0.0", + "inherits": "^2.0.1", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.0" } }, "emoji-regex": { @@ -3024,7 +3024,7 @@ "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.12.tgz", "integrity": "sha1-U4tm8+5izRq1HsMjgp0flIDHS+s=", "requires": { - "iconv-lite": "0.4.23" + "iconv-lite": "~0.4.13" } }, "entities": { @@ -3039,22 +3039,22 @@ "integrity": "sha512-l8csyPyLmtxskTz6pX9W8eDOyH1ckEtDttXk/vlFWCjv00SkjTjtoUrogqp4yEvMyneU9dUJoOLnqFoiHb8IHA==", "dev": true, "requires": { - "cheerio": "1.0.0-rc.2", - "function.prototype.name": "1.1.0", - "has": "1.0.1", - "is-boolean-object": "1.0.0", - "is-callable": "1.1.3", - "is-number-object": "1.0.3", - "is-string": "1.0.4", - "is-subset": "0.1.1", - "lodash": "4.17.10", - "object-inspect": "1.6.0", - "object-is": "1.0.1", - "object.assign": "4.1.0", - "object.entries": "1.0.4", - "object.values": "1.0.4", - "raf": "3.4.0", - "rst-selector-parser": "2.2.3" + "cheerio": "^1.0.0-rc.2", + "function.prototype.name": "^1.0.3", + "has": "^1.0.1", + "is-boolean-object": "^1.0.0", + "is-callable": "^1.1.3", + "is-number-object": "^1.0.3", + "is-string": "^1.0.4", + "is-subset": "^0.1.1", + "lodash": "^4.17.4", + "object-inspect": "^1.5.0", + "object-is": "^1.0.1", + "object.assign": "^4.1.0", + "object.entries": "^1.0.4", + "object.values": "^1.0.4", + "raf": "^3.4.0", + "rst-selector-parser": "^2.2.3" } }, "enzyme-adapter-react-15": { @@ -3063,11 +3063,11 @@ "integrity": "sha512-GxQ+ZYbo6YFwwpaLc9LLyAwsx+F1au628/+hwTx3XV2OiuvHGyWgC/r1AAK1HlDRjujzfwwMNZTc/JxkjIuYVg==", "dev": true, "requires": { - "enzyme-adapter-utils": "1.3.0", - "lodash": "4.17.10", - "object.assign": "4.1.0", - "object.values": "1.0.4", - "prop-types": "15.6.1" + "enzyme-adapter-utils": "^1.1.0", + "lodash": "^4.17.4", + "object.assign": "^4.0.4", + "object.values": "^1.0.4", + "prop-types": "^15.5.10" } }, "enzyme-adapter-utils": { @@ -3076,9 +3076,9 @@ "integrity": "sha512-vVXSt6uDv230DIv+ebCG66T1Pm36Kv+m74L1TrF4kaE7e1V7Q/LcxO0QRkajk5cA6R3uu9wJf5h13wOTezTbjA==", "dev": true, "requires": { - "lodash": "4.17.10", - "object.assign": "4.1.0", - "prop-types": "15.6.1" + "lodash": "^4.17.4", + "object.assign": "^4.0.4", + "prop-types": "^15.6.0" } }, "error-ex": { @@ -3087,7 +3087,7 @@ "integrity": "sha1-+FWobOYa3E6GIcPNoh56dhLDqNw=", "dev": true, "requires": { - "is-arrayish": "0.2.1" + "is-arrayish": "^0.2.1" } }, "es-abstract": { @@ -3096,11 +3096,11 @@ "integrity": "sha512-ZnQrE/lXTTQ39ulXZ+J1DTFazV9qBy61x2bY071B+qGco8Z8q1QddsLdt/EF8Ai9hcWH72dWS0kFqXLxOxqslA==", "dev": true, "requires": { - "es-to-primitive": "1.1.1", - "function-bind": "1.1.1", - "has": "1.0.1", - "is-callable": "1.1.3", - "is-regex": "1.0.4" + "es-to-primitive": "^1.1.1", + "function-bind": "^1.1.1", + "has": "^1.0.1", + "is-callable": "^1.1.3", + "is-regex": "^1.0.4" } }, "es-to-primitive": { @@ -3109,9 +3109,9 @@ "integrity": "sha1-RTVSSKiJeQNLZ5Lhm7gfK3l13Q0=", "dev": true, "requires": { - "is-callable": "1.1.3", - "is-date-object": "1.0.1", - "is-symbol": "1.0.1" + "is-callable": "^1.1.1", + "is-date-object": "^1.0.1", + "is-symbol": "^1.0.1" } }, "es5-ext": { @@ -3120,9 +3120,9 @@ "integrity": "sha512-AJxO1rmPe1bDEfSR6TJ/FgMFYuTBhR5R57KW58iCkYACMyFbrkqVyzXSurYoScDGvgyMpk7uRF/lPUPPTmsRSA==", "dev": true, "requires": { - "es6-iterator": "2.0.3", - "es6-symbol": "3.1.1", - "next-tick": "1.0.0" + "es6-iterator": "~2.0.3", + "es6-symbol": "~3.1.1", + "next-tick": "1" } }, "es6-iterator": { @@ -3131,9 +3131,9 @@ "integrity": "sha1-p96IkUGgWpSwhUQDstCg+/qY87c=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42", - "es6-symbol": "3.1.1" + "d": "1", + "es5-ext": "^0.10.35", + "es6-symbol": "^3.1.1" } }, "es6-map": { @@ -3142,12 +3142,12 @@ "integrity": "sha1-kTbgUD3MBqMBaQ8LsU/042TpSfA=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42", - "es6-iterator": "2.0.3", - "es6-set": "0.1.5", - "es6-symbol": "3.1.1", - "event-emitter": "0.3.5" + "d": "1", + "es5-ext": "~0.10.14", + "es6-iterator": "~2.0.1", + "es6-set": "~0.1.5", + "es6-symbol": "~3.1.1", + "event-emitter": "~0.3.5" } }, "es6-set": { @@ -3156,11 +3156,11 @@ "integrity": "sha1-0rPsXU2ADO2BjbU40ol02wpzzLE=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42", - "es6-iterator": "2.0.3", + "d": "1", + "es5-ext": "~0.10.14", + "es6-iterator": "~2.0.1", "es6-symbol": "3.1.1", - "event-emitter": "0.3.5" + "event-emitter": "~0.3.5" } }, "es6-symbol": { @@ -3169,8 +3169,8 @@ "integrity": "sha1-vwDvT9q2uhtG7Le2KbTH7VcVzHc=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42" + "d": "1", + "es5-ext": "~0.10.14" } }, "es6-weak-map": { @@ -3179,10 +3179,10 @@ "integrity": "sha1-XjqzIlH/0VOKH45f+hNXdy+S2W8=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42", - "es6-iterator": "2.0.3", - "es6-symbol": "3.1.1" + "d": "1", + "es5-ext": "^0.10.14", + "es6-iterator": "^2.0.1", + "es6-symbol": "^3.1.1" } }, "escape-string-regexp": { @@ -3197,11 +3197,11 @@ "integrity": "sha512-6hTjO1NAWkHnDk3OqQ4YrCuwwmGHL9S3nPlzBOUG/R44rda3wLNrfvQ5fkSGjyhHFKM7ALPKcKGrwvCLe0lC7Q==", "dev": true, "requires": { - "esprima": "3.1.3", - "estraverse": "4.2.0", - "esutils": "2.0.2", - "optionator": "0.8.2", - "source-map": "0.6.1" + "esprima": "^3.1.3", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "optionator": "^0.8.1", + "source-map": "~0.6.1" }, "dependencies": { "source-map": { @@ -3219,10 +3219,10 @@ "integrity": "sha1-4Bl16BJ4GhY6ba392AOY3GTIicM=", "dev": true, "requires": { - "es6-map": "0.1.5", - "es6-weak-map": "2.0.2", - "esrecurse": "4.2.1", - "estraverse": "4.2.0" + "es6-map": "^0.1.3", + "es6-weak-map": "^2.0.1", + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" } }, "eslint": { @@ -3231,44 +3231,44 @@ "integrity": "sha512-bT3/1x1EbZB7phzYu7vCr1v3ONuzDtX8WjuM9c0iYxe+cq+pwcKEoQjl7zd3RpC6YOLgnSy3cTN58M2jcoPDIQ==", "dev": true, "requires": { - "ajv": "5.5.2", - "babel-code-frame": "6.26.0", - "chalk": "2.4.1", - "concat-stream": "1.6.2", - "cross-spawn": "5.1.0", - "debug": "3.1.0", - "doctrine": "2.1.0", - "eslint-scope": "3.7.1", - "eslint-visitor-keys": "1.0.0", - "espree": "3.5.4", - "esquery": "1.0.1", - "esutils": "2.0.2", - "file-entry-cache": "2.0.0", - "functional-red-black-tree": "1.0.1", - "glob": "7.1.2", - "globals": "11.5.0", - "ignore": "3.3.8", - "imurmurhash": "0.1.4", - "inquirer": "3.3.0", - "is-resolvable": "1.1.0", - "js-yaml": "3.11.0", - "json-stable-stringify-without-jsonify": "1.0.1", - "levn": "0.3.0", - "lodash": "4.17.10", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "natural-compare": "1.4.0", - "optionator": "0.8.2", - "path-is-inside": "1.0.2", - "pluralize": "7.0.0", - "progress": "2.0.0", - "regexpp": "1.1.0", - "require-uncached": "1.0.3", - "semver": "5.5.0", - "strip-ansi": "4.0.0", - "strip-json-comments": "2.0.1", + "ajv": "^5.3.0", + "babel-code-frame": "^6.22.0", + "chalk": "^2.1.0", + "concat-stream": "^1.6.0", + "cross-spawn": "^5.1.0", + "debug": "^3.1.0", + "doctrine": "^2.1.0", + "eslint-scope": "^3.7.1", + "eslint-visitor-keys": "^1.0.0", + "espree": "^3.5.4", + "esquery": "^1.0.0", + "esutils": "^2.0.2", + "file-entry-cache": "^2.0.0", + "functional-red-black-tree": "^1.0.1", + "glob": "^7.1.2", + "globals": "^11.0.1", + "ignore": "^3.3.3", + "imurmurhash": "^0.1.4", + "inquirer": "^3.0.6", + "is-resolvable": "^1.0.0", + "js-yaml": "^3.9.1", + "json-stable-stringify-without-jsonify": "^1.0.1", + "levn": "^0.3.0", + "lodash": "^4.17.4", + "minimatch": "^3.0.2", + "mkdirp": "^0.5.1", + "natural-compare": "^1.4.0", + "optionator": "^0.8.2", + "path-is-inside": "^1.0.2", + "pluralize": "^7.0.0", + "progress": "^2.0.0", + "regexpp": "^1.0.1", + "require-uncached": "^1.0.3", + "semver": "^5.3.0", + "strip-ansi": "^4.0.0", + "strip-json-comments": "~2.0.1", "table": "4.0.2", - "text-table": "0.2.0" + "text-table": "~0.2.0" }, "dependencies": { "ansi-regex": { @@ -3283,7 +3283,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.1" + "color-convert": "^1.9.0" } }, "chalk": { @@ -3292,9 +3292,9 @@ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "debug": { @@ -3324,8 +3324,8 @@ "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", "dev": true, "requires": { - "argparse": "1.0.10", - "esprima": "4.0.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" } }, "strip-ansi": { @@ -3334,7 +3334,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } }, "supports-color": { @@ -3343,7 +3343,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -3354,7 +3354,7 @@ "integrity": "sha512-m0q9fiMBzDAIbirlGnpJNWToIhdhJmXXnMG+IFflYzzod9231ZhtmGKegKg8E9T8F1YuVaDSU1FnCm5b9iXVhQ==", "dev": true, "requires": { - "eslint-config-airbnb-base": "11.3.2" + "eslint-config-airbnb-base": "^11.3.0" } }, "eslint-config-airbnb-base": { @@ -3363,7 +3363,7 @@ "integrity": "sha512-/fhjt/VqzBA2SRsx7ErDtv6Ayf+XLw9LIOqmpBuHFCVwyJo2EtzGWMB9fYRFBoWWQLxmNmCpenNiH0RxyeS41w==", "dev": true, "requires": { - "eslint-restricted-globals": "0.1.1" + "eslint-restricted-globals": "^0.1.1" } }, "eslint-import-resolver-node": { @@ -3372,8 +3372,8 @@ "integrity": "sha512-sfmTqJfPSizWu4aymbPr4Iidp5yKm8yDkHp+Ir3YiTHiiDfxh69mOUsmiqW6RZ9zRXFaF64GtYmN7e+8GHBv6Q==", "dev": true, "requires": { - "debug": "2.6.9", - "resolve": "1.7.1" + "debug": "^2.6.9", + "resolve": "^1.5.0" } }, "eslint-module-utils": { @@ -3382,8 +3382,8 @@ "integrity": "sha1-snA2LNiLGkitMIl2zn+lTphBF0Y=", "dev": true, "requires": { - "debug": "2.6.9", - "pkg-dir": "1.0.0" + "debug": "^2.6.8", + "pkg-dir": "^1.0.0" } }, "eslint-plugin-import": { @@ -3392,16 +3392,16 @@ "integrity": "sha1-2tMXgSktZmSyUxf9BJ0uKy8CIF0=", "dev": true, "requires": { - "contains-path": "0.1.0", - "debug": "2.6.9", + "contains-path": "^0.1.0", + "debug": "^2.6.8", "doctrine": "1.5.0", - "eslint-import-resolver-node": "0.3.2", - "eslint-module-utils": "2.2.0", - "has": "1.0.1", - "lodash": "4.17.10", - "minimatch": "3.0.4", - "read-pkg-up": "2.0.0", - "resolve": "1.7.1" + "eslint-import-resolver-node": "^0.3.1", + "eslint-module-utils": "^2.2.0", + "has": "^1.0.1", + "lodash": "^4.17.4", + "minimatch": "^3.0.3", + "read-pkg-up": "^2.0.0", + "resolve": "^1.6.0" }, "dependencies": { "doctrine": { @@ -3410,8 +3410,8 @@ "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=", "dev": true, "requires": { - "esutils": "2.0.2", - "isarray": "1.0.0" + "esutils": "^2.0.2", + "isarray": "^1.0.0" } }, "load-json-file": { @@ -3420,10 +3420,10 @@ "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "strip-bom": "3.0.0" + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "strip-bom": "^3.0.0" } }, "path-type": { @@ -3432,7 +3432,7 @@ "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", "dev": true, "requires": { - "pify": "2.3.0" + "pify": "^2.0.0" } }, "read-pkg": { @@ -3441,9 +3441,9 @@ "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", "dev": true, "requires": { - "load-json-file": "2.0.0", - "normalize-package-data": "2.4.0", - "path-type": "2.0.0" + "load-json-file": "^2.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^2.0.0" } }, "read-pkg-up": { @@ -3452,8 +3452,8 @@ "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", "dev": true, "requires": { - "find-up": "2.1.0", - "read-pkg": "2.0.0" + "find-up": "^2.0.0", + "read-pkg": "^2.0.0" } }, "strip-bom": { @@ -3470,13 +3470,13 @@ "integrity": "sha512-5I9SpoP7gT4wBFOtXT8/tXNPYohHBVfyVfO17vkbC7r9kEIxYJF12D3pKqhk8+xnk12rfxKClS3WCFpVckFTPQ==", "dev": true, "requires": { - "aria-query": "0.7.1", - "array-includes": "3.0.3", + "aria-query": "^0.7.0", + "array-includes": "^3.0.3", "ast-types-flow": "0.0.7", - "axobject-query": "0.1.0", - "damerau-levenshtein": "1.0.4", - "emoji-regex": "6.5.1", - "jsx-ast-utils": "1.4.1" + "axobject-query": "^0.1.0", + "damerau-levenshtein": "^1.0.0", + "emoji-regex": "^6.1.0", + "jsx-ast-utils": "^1.4.0" } }, "eslint-plugin-no-unsafe-innerhtml": { @@ -3485,7 +3485,7 @@ "integrity": "sha1-fQKHjI6b95FriINtWsEitC8VGTI=", "dev": true, "requires": { - "eslint": "3.19.0" + "eslint": "^3.7.1" }, "dependencies": { "ajv": { @@ -3494,8 +3494,8 @@ "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", "dev": true, "requires": { - "co": "4.6.0", - "json-stable-stringify": "1.0.1" + "co": "^4.6.0", + "json-stable-stringify": "^1.0.1" } }, "ajv-keywords": { @@ -3516,7 +3516,7 @@ "integrity": "sha1-ZNo/fValRBLll5S9Ytw1KV6PKYc=", "dev": true, "requires": { - "restore-cursor": "1.0.1" + "restore-cursor": "^1.0.1" } }, "eslint": { @@ -3525,41 +3525,41 @@ "integrity": "sha1-yPxiAcf0DdCJQbh8CFdnOGpnmsw=", "dev": true, "requires": { - "babel-code-frame": "6.26.0", - "chalk": "1.1.3", - "concat-stream": "1.6.2", - "debug": "2.6.9", - "doctrine": "2.1.0", - "escope": "3.6.0", - "espree": "3.5.4", - "esquery": "1.0.1", - "estraverse": "4.2.0", - "esutils": "2.0.2", - "file-entry-cache": "2.0.0", - "glob": "7.1.2", - "globals": "9.18.0", - "ignore": "3.3.8", - "imurmurhash": "0.1.4", - "inquirer": "0.12.0", - "is-my-json-valid": "2.17.2", - "is-resolvable": "1.1.0", - "js-yaml": "3.11.0", - "json-stable-stringify": "1.0.1", - "levn": "0.3.0", - "lodash": "4.17.10", - "mkdirp": "0.5.1", - "natural-compare": "1.4.0", - "optionator": "0.8.2", - "path-is-inside": "1.0.2", - "pluralize": "1.2.1", - "progress": "1.1.8", - "require-uncached": "1.0.3", - "shelljs": "0.7.8", - "strip-bom": "3.0.0", - "strip-json-comments": "2.0.1", - "table": "3.8.3", - "text-table": "0.2.0", - "user-home": "2.0.0" + "babel-code-frame": "^6.16.0", + "chalk": "^1.1.3", + "concat-stream": "^1.5.2", + "debug": "^2.1.1", + "doctrine": "^2.0.0", + "escope": "^3.6.0", + "espree": "^3.4.0", + "esquery": "^1.0.0", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "file-entry-cache": "^2.0.0", + "glob": "^7.0.3", + "globals": "^9.14.0", + "ignore": "^3.2.0", + "imurmurhash": "^0.1.4", + "inquirer": "^0.12.0", + "is-my-json-valid": "^2.10.0", + "is-resolvable": "^1.0.0", + "js-yaml": "^3.5.1", + "json-stable-stringify": "^1.0.0", + "levn": "^0.3.0", + "lodash": "^4.0.0", + "mkdirp": "^0.5.0", + "natural-compare": "^1.4.0", + "optionator": "^0.8.2", + "path-is-inside": "^1.0.1", + "pluralize": "^1.2.1", + "progress": "^1.1.8", + "require-uncached": "^1.0.2", + "shelljs": "^0.7.5", + "strip-bom": "^3.0.0", + "strip-json-comments": "~2.0.1", + "table": "^3.7.8", + "text-table": "~0.2.0", + "user-home": "^2.0.0" } }, "esprima": { @@ -3574,8 +3574,8 @@ "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", "dev": true, "requires": { - "escape-string-regexp": "1.0.5", - "object-assign": "4.1.1" + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" } }, "inquirer": { @@ -3584,19 +3584,19 @@ "integrity": "sha1-HvK/1jUE3wvHV4X/+MLEHfEvB34=", "dev": true, "requires": { - "ansi-escapes": "1.4.0", - "ansi-regex": "2.1.1", - "chalk": "1.1.3", - "cli-cursor": "1.0.2", - "cli-width": "2.2.0", - "figures": "1.7.0", - "lodash": "4.17.10", - "readline2": "1.0.1", - "run-async": "0.1.0", - "rx-lite": "3.1.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "through": "2.3.8" + "ansi-escapes": "^1.1.0", + "ansi-regex": "^2.0.0", + "chalk": "^1.0.0", + "cli-cursor": "^1.0.1", + "cli-width": "^2.0.0", + "figures": "^1.3.5", + "lodash": "^4.3.0", + "readline2": "^1.0.1", + "run-async": "^0.1.0", + "rx-lite": "^3.1.2", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.0", + "through": "^2.3.6" } }, "is-fullwidth-code-point": { @@ -3605,7 +3605,7 @@ "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "js-yaml": { @@ -3614,8 +3614,8 @@ "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", "dev": true, "requires": { - "argparse": "1.0.10", - "esprima": "4.0.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" } }, "onetime": { @@ -3642,8 +3642,8 @@ "integrity": "sha1-NGYfRohjJ/7SmRR5FSJS35LapUE=", "dev": true, "requires": { - "exit-hook": "1.1.1", - "onetime": "1.1.0" + "exit-hook": "^1.0.0", + "onetime": "^1.0.0" } }, "run-async": { @@ -3652,7 +3652,7 @@ "integrity": "sha1-yK1KXhEGYeQCp9IbUw4AnyX444k=", "dev": true, "requires": { - "once": "1.4.0" + "once": "^1.3.0" } }, "rx-lite": { @@ -3673,9 +3673,9 @@ "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } }, "strip-bom": { @@ -3690,12 +3690,12 @@ "integrity": "sha1-K7xULw/amGGnVdOUf+/Ys/UThV8=", "dev": true, "requires": { - "ajv": "4.11.8", - "ajv-keywords": "1.5.1", - "chalk": "1.1.3", - "lodash": "4.17.10", + "ajv": "^4.7.0", + "ajv-keywords": "^1.0.0", + "chalk": "^1.1.1", + "lodash": "^4.0.0", "slice-ansi": "0.0.4", - "string-width": "2.1.1" + "string-width": "^2.0.0" }, "dependencies": { "ansi-regex": { @@ -3716,8 +3716,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -3726,7 +3726,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -3739,10 +3739,10 @@ "integrity": "sha512-H3ne8ob4Bn6NXSN9N9twsn7t8dyHT5bF/ibQepxIHi6JiPIdC2gXlfYvZYucbdrWio4FxBq7Z4mSauQP+qmMkQ==", "dev": true, "requires": { - "doctrine": "2.1.0", - "has": "1.0.1", - "jsx-ast-utils": "2.0.1", - "prop-types": "15.6.1" + "doctrine": "^2.0.2", + "has": "^1.0.1", + "jsx-ast-utils": "^2.0.1", + "prop-types": "^15.6.0" }, "dependencies": { "jsx-ast-utils": { @@ -3751,7 +3751,7 @@ "integrity": "sha1-6AGxs5mF4g//yHtA43SAgOLcrH8=", "dev": true, "requires": { - "array-includes": "3.0.3" + "array-includes": "^3.0.3" } } } @@ -3762,8 +3762,8 @@ "integrity": "sha1-rLJqf/KJsz8XfIwSwwRmEtWOCJY=", "dev": true, "requires": { - "babel-eslint": "7.2.3", - "eslint": "4.19.1" + "babel-eslint": ">=4.1.1", + "eslint": ">=1.1" } }, "eslint-restricted-globals": { @@ -3778,8 +3778,8 @@ "integrity": "sha1-PWPD7f2gLgbgGkUq2IyqzHzctug=", "dev": true, "requires": { - "esrecurse": "4.2.1", - "estraverse": "4.2.0" + "esrecurse": "^4.1.0", + "estraverse": "^4.1.1" } }, "eslint-stats": { @@ -3788,8 +3788,8 @@ "integrity": "sha1-xdGVW1X2hFuWkB5joRIp2EYN0mk=", "dev": true, "requires": { - "chalk": "0.5.1", - "lodash": "4.17.10" + "chalk": "^0.5.1", + "lodash": "^4.17.4" }, "dependencies": { "ansi-regex": { @@ -3810,11 +3810,11 @@ "integrity": "sha1-Zjs6ZItotV0EaQ1JFnqoN4WPIXQ=", "dev": true, "requires": { - "ansi-styles": "1.1.0", - "escape-string-regexp": "1.0.5", - "has-ansi": "0.1.0", - "strip-ansi": "0.3.0", - "supports-color": "0.2.0" + "ansi-styles": "^1.1.0", + "escape-string-regexp": "^1.0.0", + "has-ansi": "^0.1.0", + "strip-ansi": "^0.3.0", + "supports-color": "^0.2.0" } }, "has-ansi": { @@ -3823,7 +3823,7 @@ "integrity": "sha1-hPJlqujA5qiKEtcCKJS3VoiUxi4=", "dev": true, "requires": { - "ansi-regex": "0.2.1" + "ansi-regex": "^0.2.0" } }, "strip-ansi": { @@ -3832,7 +3832,7 @@ "integrity": "sha1-JfSOoiynkYfzF0pNuHWTR7sSYiA=", "dev": true, "requires": { - "ansi-regex": "0.2.1" + "ansi-regex": "^0.2.1" } }, "supports-color": { @@ -3855,8 +3855,8 @@ "integrity": "sha512-yAcIQxtmMiB/jL32dzEp2enBeidsB7xWPLNiw3IIkpVds1P+h7qF9YwJq1yUNzp2OKXgAprs4F61ih66UsoD1A==", "dev": true, "requires": { - "acorn": "5.5.3", - "acorn-jsx": "3.0.1" + "acorn": "^5.5.0", + "acorn-jsx": "^3.0.0" } }, "esprima": { @@ -3871,7 +3871,7 @@ "integrity": "sha512-SmiyZ5zIWH9VM+SRUReLS5Q8a7GxtRdxEBVZpm98rJM7Sb+A9DVCndXfkeFUd3byderg+EbDkfnevfCwynWaNA==", "dev": true, "requires": { - "estraverse": "4.2.0" + "estraverse": "^4.0.0" } }, "esrecurse": { @@ -3880,7 +3880,7 @@ "integrity": "sha512-64RBB++fIOAXPw3P9cy89qfMlvZEXZkqqJkjqqXIvzP5ezRZjW+lPWjw35UX/3EhUPFYbg5ER4JYgDw4007/DQ==", "dev": true, "requires": { - "estraverse": "4.2.0" + "estraverse": "^4.1.0" } }, "estraverse": { @@ -3901,8 +3901,8 @@ "integrity": "sha1-34xp7vFkeSPHFXuc6DhAYQsCzDk=", "dev": true, "requires": { - "d": "1.0.0", - "es5-ext": "0.10.42" + "d": "1", + "es5-ext": "~0.10.14" } }, "events": { @@ -3917,8 +3917,8 @@ "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", "dev": true, "requires": { - "md5.js": "1.3.4", - "safe-buffer": "5.1.2" + "md5.js": "^1.3.4", + "safe-buffer": "^5.1.1" } }, "execa": { @@ -3927,13 +3927,13 @@ "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", "dev": true, "requires": { - "cross-spawn": "5.1.0", - "get-stream": "3.0.0", - "is-stream": "1.1.0", - "npm-run-path": "2.0.2", - "p-finally": "1.0.0", - "signal-exit": "3.0.2", - "strip-eof": "1.0.0" + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" } }, "exit-hook": { @@ -3948,13 +3948,13 @@ "integrity": "sha1-t3c14xXOMPa27/D4OwQVGiJEliI=", "dev": true, "requires": { - "debug": "2.6.9", - "define-property": "0.2.5", - "extend-shallow": "2.0.1", - "posix-character-classes": "0.1.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "debug": "^2.3.3", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "posix-character-classes": "^0.1.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" }, "dependencies": { "define-property": { @@ -3963,7 +3963,7 @@ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } }, "extend-shallow": { @@ -3972,7 +3972,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -3984,7 +3984,7 @@ "dev": true, "optional": true, "requires": { - "fill-range": "2.2.4" + "fill-range": "^2.1.0" }, "dependencies": { "fill-range": { @@ -3994,11 +3994,11 @@ "dev": true, "optional": true, "requires": { - "is-number": "2.1.0", - "isobject": "2.1.0", - "randomatic": "3.0.0", - "repeat-element": "1.1.2", - "repeat-string": "1.6.1" + "is-number": "^2.1.0", + "isobject": "^2.0.0", + "randomatic": "^3.0.0", + "repeat-element": "^1.1.2", + "repeat-string": "^1.5.2" } }, "is-number": { @@ -4008,7 +4008,7 @@ "dev": true, "optional": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" } }, "isobject": { @@ -4028,7 +4028,7 @@ "dev": true, "optional": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -4045,8 +4045,8 @@ "integrity": "sha1-Jqcarwc7OfshJxcnRhMcJwQCjbg=", "dev": true, "requires": { - "assign-symbols": "1.0.0", - "is-extendable": "1.0.1" + "assign-symbols": "^1.0.0", + "is-extendable": "^1.0.1" }, "dependencies": { "is-extendable": { @@ -4055,7 +4055,7 @@ "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "dev": true, "requires": { - "is-plain-object": "2.0.4" + "is-plain-object": "^2.0.4" } } } @@ -4066,9 +4066,9 @@ "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", "dev": true, "requires": { - "chardet": "0.4.2", - "iconv-lite": "0.4.23", - "tmp": "0.0.33" + "chardet": "^0.4.0", + "iconv-lite": "^0.4.17", + "tmp": "^0.0.33" } }, "extglob": { @@ -4077,14 +4077,14 @@ "integrity": "sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw==", "dev": true, "requires": { - "array-unique": "0.3.2", - "define-property": "1.0.0", - "expand-brackets": "2.1.4", - "extend-shallow": "2.0.1", - "fragment-cache": "0.2.1", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "array-unique": "^0.3.2", + "define-property": "^1.0.0", + "expand-brackets": "^2.1.4", + "extend-shallow": "^2.0.1", + "fragment-cache": "^0.2.1", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" }, "dependencies": { "define-property": { @@ -4093,7 +4093,7 @@ "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { - "is-descriptor": "1.0.2" + "is-descriptor": "^1.0.0" } }, "extend-shallow": { @@ -4102,7 +4102,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } }, "is-accessor-descriptor": { @@ -4111,7 +4111,7 @@ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -4120,7 +4120,7 @@ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -4129,9 +4129,9 @@ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } } } @@ -4164,13 +4164,13 @@ "resolved": "https://registry.npmjs.org/fbjs/-/fbjs-0.8.16.tgz", "integrity": "sha1-XmdDL1UNxBtXK/VYR7ispk5TN9s=", "requires": { - "core-js": "1.2.7", - "isomorphic-fetch": "2.2.1", - "loose-envify": "1.3.1", - "object-assign": "4.1.1", - "promise": "7.3.1", - "setimmediate": "1.0.5", - "ua-parser-js": "0.7.18" + "core-js": "^1.0.0", + "isomorphic-fetch": "^2.1.1", + "loose-envify": "^1.0.0", + "object-assign": "^4.1.0", + "promise": "^7.1.1", + "setimmediate": "^1.0.5", + "ua-parser-js": "^0.7.9" }, "dependencies": { "isomorphic-fetch": { @@ -4178,8 +4178,8 @@ "resolved": "https://registry.npmjs.org/isomorphic-fetch/-/isomorphic-fetch-2.2.1.tgz", "integrity": "sha1-YRrhrPFPXoH3KVB0coGf6XM1WKk=", "requires": { - "node-fetch": "1.7.3", - "whatwg-fetch": "2.0.4" + "node-fetch": "^1.0.1", + "whatwg-fetch": ">=0.10.0" } } } @@ -4190,7 +4190,7 @@ "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", "dev": true, "requires": { - "escape-string-regexp": "1.0.5" + "escape-string-regexp": "^1.0.5" } }, "file-entry-cache": { @@ -4199,8 +4199,8 @@ "integrity": "sha1-w5KZDD5oR4PYOLjISkXYoEhFg2E=", "dev": true, "requires": { - "flat-cache": "1.3.0", - "object-assign": "4.1.1" + "flat-cache": "^1.2.1", + "object-assign": "^4.0.1" } }, "filename-regex": { @@ -4216,10 +4216,10 @@ "integrity": "sha1-1USBHUKPmOsGpj3EAtJAPDKMOPc=", "dev": true, "requires": { - "extend-shallow": "2.0.1", - "is-number": "3.0.0", - "repeat-string": "1.6.1", - "to-regex-range": "2.1.1" + "extend-shallow": "^2.0.1", + "is-number": "^3.0.0", + "repeat-string": "^1.6.1", + "to-regex-range": "^2.1.0" }, "dependencies": { "extend-shallow": { @@ -4228,7 +4228,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -4239,7 +4239,7 @@ "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, "requires": { - "locate-path": "2.0.0" + "locate-path": "^2.0.0" } }, "flat-cache": { @@ -4248,10 +4248,10 @@ "integrity": "sha1-0wMLMrOBVPTjt+nHCfSQ9++XxIE=", "dev": true, "requires": { - "circular-json": "0.3.3", - "del": "2.2.2", - "graceful-fs": "4.1.11", - "write": "0.2.1" + "circular-json": "^0.3.1", + "del": "^2.0.2", + "graceful-fs": "^4.1.2", + "write": "^0.2.1" } }, "for-in": { @@ -4267,7 +4267,7 @@ "dev": true, "optional": true, "requires": { - "for-in": "1.0.2" + "for-in": "^1.0.1" } }, "foreach": { @@ -4288,9 +4288,9 @@ "integrity": "sha1-SXBJi+YEwgwAXU9cI67NIda0kJk=", "dev": true, "requires": { - "asynckit": "0.4.0", + "asynckit": "^0.4.0", "combined-stream": "1.0.6", - "mime-types": "2.1.18" + "mime-types": "^2.1.12" } }, "foundation-sites": { @@ -4305,7 +4305,7 @@ "integrity": "sha1-QpD60n8T6Jvn8zeZxrxaCr//DRk=", "dev": true, "requires": { - "map-cache": "0.2.2" + "map-cache": "^0.2.2" } }, "front-matter": { @@ -4314,7 +4314,7 @@ "integrity": "sha1-91mDufL0E75ljJPf172M5AePXNs=", "dev": true, "requires": { - "js-yaml": "3.11.0" + "js-yaml": "^3.4.6" }, "dependencies": { "esprima": { @@ -4329,8 +4329,8 @@ "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", "dev": true, "requires": { - "argparse": "1.0.10", - "esprima": "4.0.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" } } } @@ -4341,9 +4341,9 @@ "integrity": "sha1-N5TzeMWLNC6n27sjCVEJxLO2IpE=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "jsonfile": "3.0.1", - "universalify": "0.1.1" + "graceful-fs": "^4.1.2", + "jsonfile": "^3.0.0", + "universalify": "^0.1.0" } }, "fs-readdir-recursive": { @@ -4365,92 +4365,92 @@ "dev": true, "optional": true, "requires": { - "nan": "2.10.0", - "node-pre-gyp": "0.10.0" + "nan": "^2.9.2", + "node-pre-gyp": "^0.10.0" }, "dependencies": { "abbrev": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "resolved": false, "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "dev": true, "optional": true }, "ansi-regex": { "version": "2.1.1", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", + "resolved": false, "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true }, "aproba": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz", + "resolved": false, "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "dev": true, "optional": true }, "are-we-there-yet": { "version": "1.1.4", - "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-1.1.4.tgz", + "resolved": false, "integrity": "sha1-u13KOCu5TwXhUZQ3PRb9O6HKEQ0=", "dev": true, "optional": true, "requires": { - "delegates": "1.0.0", - "readable-stream": "2.3.6" + "delegates": "^1.0.0", + "readable-stream": "^2.0.6" } }, "balanced-match": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", + "resolved": false, "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true }, "brace-expansion": { "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "resolved": false, "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "requires": { - "balanced-match": "1.0.0", + "balanced-match": "^1.0.0", "concat-map": "0.0.1" } }, "chownr": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.0.1.tgz", + "resolved": false, "integrity": "sha1-4qdQQqlVGQi+vSW4Uj1fl2nXkYE=", "dev": true, "optional": true }, "code-point-at": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/code-point-at/-/code-point-at-1.1.0.tgz", + "resolved": false, "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true }, "concat-map": { "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "resolved": false, "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true }, "console-control-strings": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "resolved": false, "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", "dev": true }, "core-util-is": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "resolved": false, "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true, "optional": true }, "debug": { "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", + "resolved": false, "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", "dev": true, "optional": true, @@ -4460,179 +4460,179 @@ }, "deep-extend": { "version": "0.5.1", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.5.1.tgz", + "resolved": false, "integrity": "sha512-N8vBdOa+DF7zkRrDCsaOXoCs/E2fJfx9B9MrKnnSiHNh4ws7eSys6YQE4KvT1cecKmOASYQBhbKjeuDD9lT81w==", "dev": true, "optional": true }, "delegates": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "resolved": false, "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "dev": true, "optional": true }, "detect-libc": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-1.0.3.tgz", + "resolved": false, "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", "dev": true, "optional": true }, "fs-minipass": { "version": "1.2.5", - "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-1.2.5.tgz", + "resolved": false, "integrity": "sha512-JhBl0skXjUPCFH7x6x61gQxrKyXsxB5gcgePLZCwfyCGGsTISMoIeObbrvVeP6Xmyaudw4TT43qV2Gz+iyd2oQ==", "dev": true, "optional": true, "requires": { - "minipass": "2.2.4" + "minipass": "^2.2.1" } }, "fs.realpath": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "resolved": false, "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true, "optional": true }, "gauge": { "version": "2.7.4", - "resolved": "https://registry.npmjs.org/gauge/-/gauge-2.7.4.tgz", + "resolved": false, "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "dev": true, "optional": true, "requires": { - "aproba": "1.2.0", - "console-control-strings": "1.1.0", - "has-unicode": "2.0.1", - "object-assign": "4.1.1", - "signal-exit": "3.0.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wide-align": "1.1.2" + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" } }, "glob": { "version": "7.1.2", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", + "resolved": false, "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "optional": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "has-unicode": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "resolved": false, "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "dev": true, "optional": true }, "iconv-lite": { "version": "0.4.21", - "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.21.tgz", + "resolved": false, "integrity": "sha512-En5V9za5mBt2oUA03WGD3TwDv0MKAruqsuxstbMUZaj9W9k/m1CV/9py3l0L5kw9Bln8fdHQmzHSYtvpvTLpKw==", "dev": true, "optional": true, "requires": { - "safer-buffer": "2.1.2" + "safer-buffer": "^2.1.0" } }, "ignore-walk": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/ignore-walk/-/ignore-walk-3.0.1.tgz", + "resolved": false, "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", "dev": true, "optional": true, "requires": { - "minimatch": "3.0.4" + "minimatch": "^3.0.4" } }, "inflight": { "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "resolved": false, "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "optional": true, "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { "version": "2.0.3", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", + "resolved": false, "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", "dev": true }, "ini": { "version": "1.3.5", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", + "resolved": false, "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "dev": true, "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz", + "resolved": false, "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "isarray": { "version": "1.0.0", - "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "resolved": false, "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true, "optional": true }, "minimatch": { "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", + "resolved": false, "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.11" + "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", + "resolved": false, "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=", "dev": true }, "minipass": { "version": "2.2.4", - "resolved": "https://registry.npmjs.org/minipass/-/minipass-2.2.4.tgz", + "resolved": false, "integrity": "sha512-hzXIWWet/BzWhYs2b+u7dRHlruXhwdgvlTMDKC6Cb1U7ps6Ac6yQlR39xsbjWJE377YTCtKwIXIpJ5oP+j5y8g==", "dev": true, "requires": { - "safe-buffer": "5.1.1", - "yallist": "3.0.2" + "safe-buffer": "^5.1.1", + "yallist": "^3.0.0" } }, "minizlib": { "version": "1.1.0", - "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.1.0.tgz", + "resolved": false, "integrity": "sha512-4T6Ur/GctZ27nHfpt9THOdRZNgyJ9FZchYO1ceg5S8Q3DNLCKYy44nCZzgCJgcvx2UM8czmqak5BCxJMrq37lA==", "dev": true, "optional": true, "requires": { - "minipass": "2.2.4" + "minipass": "^2.2.1" } }, "mkdirp": { "version": "0.5.1", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", + "resolved": false, "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", "dev": true, "requires": { @@ -4641,161 +4641,161 @@ }, "ms": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", + "resolved": false, "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true, "optional": true }, "needle": { "version": "2.2.0", - "resolved": "https://registry.npmjs.org/needle/-/needle-2.2.0.tgz", + "resolved": false, "integrity": "sha512-eFagy6c+TYayorXw/qtAdSvaUpEbBsDwDyxYFgLZ0lTojfH7K+OdBqAF7TAFwDokJaGpubpSGG0wO3iC0XPi8w==", "dev": true, "optional": true, "requires": { - "debug": "2.6.9", - "iconv-lite": "0.4.21", - "sax": "1.2.4" + "debug": "^2.1.2", + "iconv-lite": "^0.4.4", + "sax": "^1.2.4" } }, "node-pre-gyp": { "version": "0.10.0", - "resolved": "https://registry.npmjs.org/node-pre-gyp/-/node-pre-gyp-0.10.0.tgz", + "resolved": false, "integrity": "sha512-G7kEonQLRbcA/mOoFoxvlMrw6Q6dPf92+t/l0DFSMuSlDoWaI9JWIyPwK0jyE1bph//CUEL65/Fz1m2vJbmjQQ==", "dev": true, "optional": true, "requires": { - "detect-libc": "1.0.3", - "mkdirp": "0.5.1", - "needle": "2.2.0", - "nopt": "4.0.1", - "npm-packlist": "1.1.10", - "npmlog": "4.1.2", - "rc": "1.2.7", - "rimraf": "2.6.2", - "semver": "5.5.0", - "tar": "4.4.1" + "detect-libc": "^1.0.2", + "mkdirp": "^0.5.1", + "needle": "^2.2.0", + "nopt": "^4.0.1", + "npm-packlist": "^1.1.6", + "npmlog": "^4.0.2", + "rc": "^1.1.7", + "rimraf": "^2.6.1", + "semver": "^5.3.0", + "tar": "^4" } }, "nopt": { "version": "4.0.1", - "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", + "resolved": false, "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", "dev": true, "optional": true, "requires": { - "abbrev": "1.1.1", - "osenv": "0.1.5" + "abbrev": "1", + "osenv": "^0.1.4" } }, "npm-bundled": { "version": "1.0.3", - "resolved": "https://registry.npmjs.org/npm-bundled/-/npm-bundled-1.0.3.tgz", + "resolved": false, "integrity": "sha512-ByQ3oJ/5ETLyglU2+8dBObvhfWXX8dtPZDMePCahptliFX2iIuhyEszyFk401PZUNQH20vvdW5MLjJxkwU80Ow==", "dev": true, "optional": true }, "npm-packlist": { "version": "1.1.10", - "resolved": "https://registry.npmjs.org/npm-packlist/-/npm-packlist-1.1.10.tgz", + "resolved": false, "integrity": "sha512-AQC0Dyhzn4EiYEfIUjCdMl0JJ61I2ER9ukf/sLxJUcZHfo+VyEfz2rMJgLZSS1v30OxPQe1cN0LZA1xbcaVfWA==", "dev": true, "optional": true, "requires": { - "ignore-walk": "3.0.1", - "npm-bundled": "1.0.3" + "ignore-walk": "^3.0.1", + "npm-bundled": "^1.0.1" } }, "npmlog": { "version": "4.1.2", - "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-4.1.2.tgz", + "resolved": false, "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "dev": true, "optional": true, "requires": { - "are-we-there-yet": "1.1.4", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" } }, "number-is-nan": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", + "resolved": false, "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "dev": true }, "object-assign": { "version": "4.1.1", - "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", + "resolved": false, "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true, "optional": true }, "once": { "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "resolved": false, "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "os-homedir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", + "resolved": false, "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true, "optional": true }, "os-tmpdir": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", + "resolved": false, "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true, "optional": true }, "osenv": { "version": "0.1.5", - "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", + "resolved": false, "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "dev": true, "optional": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } }, "path-is-absolute": { "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "resolved": false, "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true, "optional": true }, "process-nextick-args": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.0.tgz", + "resolved": false, "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", "dev": true, "optional": true }, "rc": { "version": "1.2.7", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.7.tgz", + "resolved": false, "integrity": "sha512-LdLD8xD4zzLsAT5xyushXDNscEjB7+2ulnl8+r1pnESlYtlJtVSoCMBGr30eDRJ3+2Gq89jK9P9e4tCEH1+ywA==", "dev": true, "optional": true, "requires": { - "deep-extend": "0.5.1", - "ini": "1.3.5", - "minimist": "1.2.0", - "strip-json-comments": "2.0.1" + "deep-extend": "^0.5.1", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" }, "dependencies": { "minimist": { "version": "1.2.0", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.0.tgz", + "resolved": false, "integrity": "sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ=", "dev": true, "optional": true @@ -4804,150 +4804,150 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", + "resolved": false, "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "optional": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.1", - "string_decoder": "1.1.1", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, "rimraf": { "version": "2.6.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.2.tgz", + "resolved": false, "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "dev": true, "optional": true, "requires": { - "glob": "7.1.2" + "glob": "^7.0.5" } }, "safe-buffer": { "version": "5.1.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.1.tgz", + "resolved": false, "integrity": "sha512-kKvNJn6Mm93gAczWVJg7wH+wGYWNrDHdWvpUmHyEsgCtIwwo3bqPtV4tR5tuPaUhTOo/kvhVwd8XwwOllGYkbg==", "dev": true }, "safer-buffer": { "version": "2.1.2", - "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "resolved": false, "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true, "optional": true }, "sax": { "version": "1.2.4", - "resolved": "https://registry.npmjs.org/sax/-/sax-1.2.4.tgz", + "resolved": false, "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true, "optional": true }, "semver": { "version": "5.5.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.5.0.tgz", + "resolved": false, "integrity": "sha512-4SJ3dm0WAwWy/NVeioZh5AntkdJoWKxHxcmyP622fOkgHa4z3R0TdBJICINyaSDE6uNwVc8gZr+ZinwZAH4xIA==", "dev": true, "optional": true }, "set-blocking": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "resolved": false, "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true, "optional": true }, "signal-exit": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.2.tgz", + "resolved": false, "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true, "optional": true }, "string-width": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz", + "resolved": false, "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } }, "string_decoder": { "version": "1.1.1", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "resolved": false, "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "optional": true, "requires": { - "safe-buffer": "5.1.1" + "safe-buffer": "~5.1.0" } }, "strip-ansi": { "version": "3.0.1", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", + "resolved": false, "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "strip-json-comments": { "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "resolved": false, "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true, "optional": true }, "tar": { "version": "4.4.1", - "resolved": "https://registry.npmjs.org/tar/-/tar-4.4.1.tgz", + "resolved": false, "integrity": "sha512-O+v1r9yN4tOsvl90p5HAP4AEqbYhx4036AGMm075fH9F8Qwi3oJ+v4u50FkT/KkvywNGtwkk0zRI+8eYm1X/xg==", "dev": true, "optional": true, "requires": { - "chownr": "1.0.1", - "fs-minipass": "1.2.5", - "minipass": "2.2.4", - "minizlib": "1.1.0", - "mkdirp": "0.5.1", - "safe-buffer": "5.1.1", - "yallist": "3.0.2" + "chownr": "^1.0.1", + "fs-minipass": "^1.2.5", + "minipass": "^2.2.4", + "minizlib": "^1.1.0", + "mkdirp": "^0.5.0", + "safe-buffer": "^5.1.1", + "yallist": "^3.0.2" } }, "util-deprecate": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "resolved": false, "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true, "optional": true }, "wide-align": { "version": "1.1.2", - "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.2.tgz", + "resolved": false, "integrity": "sha512-ijDLlyQ7s6x1JgCLur53osjm/UXUYD9+0PbYKrBsYisYXzCxN+HC3mYDNy/dWdmf3AwqwU3CXwDCvsNgGK1S0w==", "dev": true, "optional": true, "requires": { - "string-width": "1.0.2" + "string-width": "^1.0.2" } }, "wrappy": { "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "resolved": false, "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true }, "yallist": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.0.2.tgz", + "resolved": false, "integrity": "sha1-hFK0u36Dx8GI2AQcGoN8dz1ti7k=", "dev": true } @@ -4959,10 +4959,10 @@ "integrity": "sha1-XB+x8RdHcRTwYyoOtLcbPLD9MXE=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "inherits": "2.0.3", - "mkdirp": "0.5.1", - "rimraf": "2.6.2" + "graceful-fs": "^4.1.2", + "inherits": "~2.0.0", + "mkdirp": ">=0.5 0", + "rimraf": "2" } }, "function-bind": { @@ -4977,9 +4977,9 @@ "integrity": "sha512-Bs0VRrTz4ghD8pTmbJQD1mZ8A/mN0ur/jGz+A6FBxPDUPkm1tNfF6bhTYPA7i7aF4lZJVr+OXTNNrnnIl58Wfg==", "dev": true, "requires": { - "define-properties": "1.1.2", - "function-bind": "1.1.1", - "is-callable": "1.1.3" + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "is-callable": "^1.1.3" } }, "functional-red-black-tree": { @@ -4994,14 +4994,14 @@ "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "dev": true, "requires": { - "aproba": "1.2.0", - "console-control-strings": "1.1.0", - "has-unicode": "2.0.1", - "object-assign": "4.1.1", - "signal-exit": "3.0.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "wide-align": "1.1.3" + "aproba": "^1.0.3", + "console-control-strings": "^1.0.0", + "has-unicode": "^2.0.0", + "object-assign": "^4.1.0", + "signal-exit": "^3.0.0", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1", + "wide-align": "^1.1.0" }, "dependencies": { "is-fullwidth-code-point": { @@ -5010,7 +5010,7 @@ "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "string-width": { @@ -5019,9 +5019,9 @@ "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } } } @@ -5032,7 +5032,7 @@ "integrity": "sha512-BRdNm8hbWzFzWHERTrejLqwHDfS4GibPoq5wjTPIoJHoBtKGPg3xAFfxmM+9ztbXelxcf2hwQcaz1PtmFeue8g==", "dev": true, "requires": { - "globule": "1.2.1" + "globule": "^1.0.0" } }, "generate-function": { @@ -5047,7 +5047,7 @@ "integrity": "sha1-nA4cQDCM6AT0eDYYuTf6iPmdUNA=", "dev": true, "requires": { - "is-property": "1.0.2" + "is-property": "^1.0.0" } }, "get-caller-file": { @@ -5086,7 +5086,7 @@ "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "dev": true, "requires": { - "assert-plus": "1.0.0" + "assert-plus": "^1.0.0" } }, "glob": { @@ -5095,12 +5095,12 @@ "integrity": "sha512-MJTUg1kjuLeQCJ+ccE4Vpa6kKVXkPYJ2mOCQyUuKLcLQsdrMCpBPUi8qVE6+YuaJkozeA9NusTAw3hLr8Xe5EQ==", "dev": true, "requires": { - "fs.realpath": "1.0.0", - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.0.4", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } }, "glob-base": { @@ -5110,8 +5110,8 @@ "dev": true, "optional": true, "requires": { - "glob-parent": "2.0.0", - "is-glob": "2.0.1" + "glob-parent": "^2.0.0", + "is-glob": "^2.0.0" }, "dependencies": { "glob-parent": { @@ -5121,7 +5121,7 @@ "dev": true, "optional": true, "requires": { - "is-glob": "2.0.1" + "is-glob": "^2.0.0" } }, "is-extglob": { @@ -5136,7 +5136,7 @@ "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } } } @@ -5147,8 +5147,8 @@ "integrity": "sha1-nmr2KZ2NO9K9QEMIMr0RPfkGxa4=", "dev": true, "requires": { - "is-glob": "3.1.0", - "path-dirname": "1.0.2" + "is-glob": "^3.1.0", + "path-dirname": "^1.0.0" }, "dependencies": { "is-glob": { @@ -5157,7 +5157,7 @@ "integrity": "sha1-e6WuJCF4BKxwcHuWkiVnSGzD6Eo=", "dev": true, "requires": { - "is-extglob": "2.1.1" + "is-extglob": "^2.1.0" } } } @@ -5174,12 +5174,12 @@ "integrity": "sha1-69hGZ8oNuzMLmbz8aOrCvFQ3Dg0=", "dev": true, "requires": { - "array-union": "1.0.2", - "arrify": "1.0.1", - "glob": "7.1.2", - "object-assign": "4.1.1", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "array-union": "^1.0.1", + "arrify": "^1.0.0", + "glob": "^7.0.3", + "object-assign": "^4.0.1", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "globule": { @@ -5188,9 +5188,9 @@ "integrity": "sha512-g7QtgWF4uYSL5/dn71WxubOrS7JVGCnFPEnoeChJmBnyR9Mw8nGoEwOgJL/RC2Te0WhbsEUCejfH8SZNJ+adYQ==", "dev": true, "requires": { - "glob": "7.1.2", - "lodash": "4.17.10", - "minimatch": "3.0.4" + "glob": "~7.1.1", + "lodash": "~4.17.10", + "minimatch": "~3.0.2" } }, "gonzales-pe-sl": { @@ -5199,7 +5199,7 @@ "integrity": "sha1-aoaLw4BkXxQf7rBCxvl/zHG1n+Y=", "dev": true, "requires": { - "minimist": "1.1.3" + "minimist": "1.1.x" }, "dependencies": { "minimist": { @@ -5240,8 +5240,8 @@ "integrity": "sha1-ukAsJmGU8VlW7xXg/PJCmT9qff0=", "dev": true, "requires": { - "ajv": "5.5.2", - "har-schema": "2.0.0" + "ajv": "^5.1.0", + "har-schema": "^2.0.0" } }, "has": { @@ -5250,7 +5250,7 @@ "integrity": "sha1-hGFzP1OLCDfJNh45qauelwTcLyg=", "dev": true, "requires": { - "function-bind": "1.1.1" + "function-bind": "^1.0.2" } }, "has-ansi": { @@ -5259,7 +5259,7 @@ "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "has-flag": { @@ -5286,9 +5286,9 @@ "integrity": "sha1-GLKB2lhbHFxR3vJMkw7SmgvmsXc=", "dev": true, "requires": { - "get-value": "2.0.6", - "has-values": "1.0.0", - "isobject": "3.0.1" + "get-value": "^2.0.6", + "has-values": "^1.0.0", + "isobject": "^3.0.0" } }, "has-values": { @@ -5297,8 +5297,8 @@ "integrity": "sha1-lbC2P+whRmGab+V/51Yo1aOe/k8=", "dev": true, "requires": { - "is-number": "3.0.0", - "kind-of": "4.0.0" + "is-number": "^3.0.0", + "kind-of": "^4.0.0" }, "dependencies": { "kind-of": { @@ -5307,7 +5307,7 @@ "integrity": "sha1-IIE989cSkosgc3hpGkUGb65y3Vc=", "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -5318,8 +5318,8 @@ "integrity": "sha1-X8hoaEfs1zSZQDMZprCj8/auSRg=", "dev": true, "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.2" + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, "hash.js": { @@ -5328,8 +5328,8 @@ "integrity": "sha512-/UETyP0W22QILqS+6HowevwhEFJ3MBJnwTf75Qob9Wz9t0DPuisL8kW8YZMK62dHAKE1c1p+gY1TtOLY+USEHA==", "dev": true, "requires": { - "inherits": "2.0.3", - "minimalistic-assert": "1.0.1" + "inherits": "^2.0.3", + "minimalistic-assert": "^1.0.0" } }, "hawk": { @@ -5338,10 +5338,10 @@ "integrity": "sha1-B4REvXwWQLD+VA0sm3PVlnjo4cQ=", "dev": true, "requires": { - "boom": "2.10.1", - "cryptiles": "2.0.5", - "hoek": "2.16.3", - "sntp": "1.0.9" + "boom": "2.x.x", + "cryptiles": "2.x.x", + "hoek": "2.x.x", + "sntp": "1.x.x" } }, "he": { @@ -5355,10 +5355,10 @@ "resolved": "https://registry.npmjs.org/history/-/history-3.3.0.tgz", "integrity": "sha1-/O3M6PEpdTcVRdc1RhAzV5ptrpw=", "requires": { - "invariant": "2.2.4", - "loose-envify": "1.3.1", - "query-string": "4.3.4", - "warning": "3.0.0" + "invariant": "^2.2.1", + "loose-envify": "^1.2.0", + "query-string": "^4.2.2", + "warning": "^3.0.0" } }, "hmac-drbg": { @@ -5367,9 +5367,9 @@ "integrity": "sha1-0nRXAQJabHdabFRXk+1QL8DGSaE=", "dev": true, "requires": { - "hash.js": "1.1.3", - "minimalistic-assert": "1.0.1", - "minimalistic-crypto-utils": "1.0.1" + "hash.js": "^1.0.3", + "minimalistic-assert": "^1.0.0", + "minimalistic-crypto-utils": "^1.0.1" } }, "hoek": { @@ -5389,8 +5389,8 @@ "integrity": "sha1-42w/LSyufXRqhX440Y1fMqeILbg=", "dev": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.1" } }, "hosted-git-info": { @@ -5405,7 +5405,7 @@ "integrity": "sha512-71lZziiDnsuabfdYiUeWdCVyKuqwWi23L8YeIgV9jSSZHCtb6wB1BKWooH7L3tn4/FuZJMVWyNaIDr4RGmaSYw==", "dev": true, "requires": { - "whatwg-encoding": "1.0.3" + "whatwg-encoding": "^1.0.1" } }, "htmlescape": { @@ -5420,12 +5420,12 @@ "integrity": "sha1-G9+HrMoPP55T+k/M6w9LTLsAszg=", "dev": true, "requires": { - "domelementtype": "1.3.0", - "domhandler": "2.4.2", - "domutils": "1.5.1", - "entities": "1.1.1", - "inherits": "2.0.3", - "readable-stream": "2.3.6" + "domelementtype": "^1.3.0", + "domhandler": "^2.3.0", + "domutils": "^1.5.1", + "entities": "^1.1.1", + "inherits": "^2.0.1", + "readable-stream": "^2.0.2" } }, "http-signature": { @@ -5434,9 +5434,9 @@ "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "dev": true, "requires": { - "assert-plus": "1.0.0", - "jsprim": "1.4.1", - "sshpk": "1.14.1" + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" } }, "https-browserify": { @@ -5450,7 +5450,7 @@ "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.4.23.tgz", "integrity": "sha512-neyTUVFtahjf0mB3dZT77u+8O0QB89jFdnBkd5P1JgYPbPaia3gXXOVL2fq8VyU2gMMD7SaN7QukTB/pmXYvDA==", "requires": { - "safer-buffer": "2.1.2" + "safer-buffer": ">= 2.1.2 < 3" } }, "ieee754": { @@ -5483,7 +5483,7 @@ "integrity": "sha1-ji1INIdCEhtKghi3oTfppSBJ3IA=", "dev": true, "requires": { - "repeating": "2.0.1" + "repeating": "^2.0.0" } }, "indexof": { @@ -5498,8 +5498,8 @@ "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "requires": { - "once": "1.4.0", - "wrappy": "1.0.2" + "once": "^1.3.0", + "wrappy": "1" } }, "inherits": { @@ -5514,7 +5514,7 @@ "integrity": "sha1-+Tk0ccGKedFyT4Y/o4tYY3Ct4qU=", "dev": true, "requires": { - "source-map": "0.5.7" + "source-map": "~0.5.3" } }, "inquirer": { @@ -5523,20 +5523,20 @@ "integrity": "sha512-h+xtnyk4EwKvFWHrUYsWErEVR+igKtLdchu+o0Z1RL7VU/jVMFbYir2bp6bAj8efFNxWqHX0dIss6fJQ+/+qeQ==", "dev": true, "requires": { - "ansi-escapes": "3.1.0", - "chalk": "2.4.1", - "cli-cursor": "2.1.0", - "cli-width": "2.2.0", - "external-editor": "2.2.0", - "figures": "2.0.0", - "lodash": "4.17.10", + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.0", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^2.0.4", + "figures": "^2.0.0", + "lodash": "^4.3.0", "mute-stream": "0.0.7", - "run-async": "2.3.0", - "rx-lite": "4.0.8", - "rx-lite-aggregates": "4.0.8", - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "through": "2.3.8" + "run-async": "^2.2.0", + "rx-lite": "^4.0.8", + "rx-lite-aggregates": "^4.0.8", + "string-width": "^2.1.0", + "strip-ansi": "^4.0.0", + "through": "^2.3.6" }, "dependencies": { "ansi-regex": { @@ -5551,7 +5551,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.1" + "color-convert": "^1.9.0" } }, "chalk": { @@ -5560,9 +5560,9 @@ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "strip-ansi": { @@ -5571,7 +5571,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } }, "supports-color": { @@ -5580,7 +5580,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -5591,15 +5591,15 @@ "integrity": "sha512-LbYZdybvKjbbcKLp03lB323Cgc8f0iL0Rjh8U6JZ7K1gZSf7MxQH191iCNUcLX4qIQ6/yWe4Q4ZsQ+opcReNFg==", "dev": true, "requires": { - "JSONStream": "1.3.3", - "combine-source-map": "0.8.0", - "concat-stream": "1.6.2", - "is-buffer": "1.1.6", - "lexical-scope": "1.2.0", - "path-is-absolute": "1.0.1", - "process": "0.11.10", - "through2": "2.0.3", - "xtend": "4.0.1" + "JSONStream": "^1.0.3", + "combine-source-map": "^0.8.0", + "concat-stream": "^1.6.1", + "is-buffer": "^1.1.0", + "lexical-scope": "^1.2.0", + "path-is-absolute": "^1.0.1", + "process": "~0.11.0", + "through2": "^2.0.0", + "xtend": "^4.0.0" } }, "interpret": { @@ -5613,7 +5613,7 @@ "resolved": "https://registry.npmjs.org/invariant/-/invariant-2.2.4.tgz", "integrity": "sha512-phJfQVBuaJM5raOpJjSfkiD6BpbCE4Ns//LaXl6wGYtUBY83nWS6Rf9tXm2e8VaK60JEjYldbPif/A2B1C2gNA==", "requires": { - "loose-envify": "1.3.1" + "loose-envify": "^1.0.0" } }, "invert-kv": { @@ -5628,7 +5628,7 @@ "integrity": "sha1-qeEss66Nh2cn7u84Q/igiXtcmNY=", "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" }, "dependencies": { "kind-of": { @@ -5637,7 +5637,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -5654,7 +5654,7 @@ "integrity": "sha1-dfFmQrSA8YenEcgUFh/TpKdlWJg=", "dev": true, "requires": { - "binary-extensions": "1.11.0" + "binary-extensions": "^1.0.0" } }, "is-boolean-object": { @@ -5675,7 +5675,7 @@ "integrity": "sha1-VAVy0096wxGfj3bDDLwbHgN6/74=", "dev": true, "requires": { - "builtin-modules": "1.1.1" + "builtin-modules": "^1.0.0" } }, "is-callable": { @@ -5690,7 +5690,7 @@ "integrity": "sha1-C17mSDiOLIYCgueT8YVv7D8wG1Y=", "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" }, "dependencies": { "kind-of": { @@ -5699,7 +5699,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -5716,9 +5716,9 @@ "integrity": "sha512-avDYr0SB3DwO9zsMov0gKCESFYqCnE4hq/4z3TdUlukEy5t9C0YRq7HLrsN52NAcqXKaepeCD0n+B0arnVG3Hg==", "dev": true, "requires": { - "is-accessor-descriptor": "0.1.6", - "is-data-descriptor": "0.1.4", - "kind-of": "5.1.0" + "is-accessor-descriptor": "^0.1.6", + "is-data-descriptor": "^0.1.4", + "kind-of": "^5.0.0" }, "dependencies": { "kind-of": { @@ -5749,7 +5749,7 @@ "dev": true, "optional": true, "requires": { - "is-primitive": "2.0.0" + "is-primitive": "^2.0.0" } }, "is-extendable": { @@ -5770,7 +5770,7 @@ "integrity": "sha1-zGZ3aVYCvlUO8R6LSqYwU0K20Ko=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "is-fullwidth-code-point": { @@ -5785,7 +5785,7 @@ "integrity": "sha1-lSHHaEXMJhCoUgPd8ICpWML/q8A=", "dev": true, "requires": { - "is-extglob": "2.1.1" + "is-extglob": "^2.1.1" } }, "is-my-ip-valid": { @@ -5800,11 +5800,11 @@ "integrity": "sha512-IBhBslgngMQN8DDSppmgDv7RNrlFotuuDsKcrCP3+HbFaVivIBU7u9oiiErw8sH4ynx3+gOGQ3q2otkgiSi6kg==", "dev": true, "requires": { - "generate-function": "2.0.0", - "generate-object-property": "1.2.0", - "is-my-ip-valid": "1.0.0", - "jsonpointer": "4.0.1", - "xtend": "4.0.1" + "generate-function": "^2.0.0", + "generate-object-property": "^1.1.0", + "is-my-ip-valid": "^1.0.0", + "jsonpointer": "^4.0.0", + "xtend": "^4.0.0" } }, "is-number": { @@ -5813,7 +5813,7 @@ "integrity": "sha1-JP1iAaR4LPUFYcgQJ2r8fRLXEZU=", "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" }, "dependencies": { "kind-of": { @@ -5822,7 +5822,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -5839,7 +5839,7 @@ "integrity": "sha512-OTiixgpZAT1M4NHgS5IguFp/Vz2VI3U7Goh4/HA1adtwyLtSBrxYlcSYkhpAE07s4fKEcjrFxyvtQBND4vFQyQ==", "dev": true, "requires": { - "is-number": "4.0.0" + "is-number": "^4.0.0" }, "dependencies": { "is-number": { @@ -5862,7 +5862,7 @@ "integrity": "sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ==", "dev": true, "requires": { - "is-path-inside": "1.0.1" + "is-path-inside": "^1.0.0" } }, "is-path-inside": { @@ -5871,7 +5871,7 @@ "integrity": "sha1-jvW33lBDej/cprToZe96pVy0gDY=", "dev": true, "requires": { - "path-is-inside": "1.0.2" + "path-is-inside": "^1.0.1" } }, "is-plain-object": { @@ -5880,7 +5880,7 @@ "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", "dev": true, "requires": { - "isobject": "3.0.1" + "isobject": "^3.0.1" } }, "is-posix-bracket": { @@ -5915,7 +5915,7 @@ "integrity": "sha1-VRdIm1RwkbCTDglWVM7SXul+lJE=", "dev": true, "requires": { - "has": "1.0.1" + "has": "^1.0.1" } }, "is-resolvable": { @@ -5988,8 +5988,8 @@ "integrity": "sha512-9c4TNAKYXM5PRyVcwUZrF3W09nQ+sO7+jydgs4ZGW9dhsLG2VOlISJABombdQqQRXCwuYG3sYV/puGf5rp0qmA==", "dev": true, "requires": { - "node-fetch": "1.7.3", - "whatwg-fetch": "2.0.4" + "node-fetch": "^1.0.1", + "whatwg-fetch": ">=0.10.0" } }, "isstream": { @@ -6010,13 +6010,13 @@ "integrity": "sha512-1dYuzkOCbuR5GRJqySuZdsmsNKPL3PTuyPevQfoCXJePT9C8y1ga75neU+Tuy9+yS3G/dgx8wgOmp2KLpgdoeQ==", "dev": true, "requires": { - "babel-generator": "6.26.1", - "babel-template": "6.26.0", - "babel-traverse": "6.26.0", - "babel-types": "6.26.0", - "babylon": "6.18.0", - "istanbul-lib-coverage": "1.2.0", - "semver": "5.5.0" + "babel-generator": "^6.18.0", + "babel-template": "^6.16.0", + "babel-traverse": "^6.18.0", + "babel-types": "^6.18.0", + "babylon": "^6.18.0", + "istanbul-lib-coverage": "^1.2.0", + "semver": "^5.3.0" } }, "js-base64": { @@ -6043,32 +6043,32 @@ "integrity": "sha512-ou1VyfjwsSuWkudGxb03FotDajxAto6USAlmMZjE2lc0jCznt7sBWkhfRBRaWwbnmDqdMSTKTLT5d9sBFkkM7A==", "dev": true, "requires": { - "abab": "1.0.4", - "acorn": "5.5.3", - "acorn-globals": "4.1.0", - "array-equal": "1.0.0", - "cssom": "0.3.2", - "cssstyle": "0.3.1", - "data-urls": "1.0.0", - "domexception": "1.0.1", - "escodegen": "1.9.1", - "html-encoding-sniffer": "1.0.2", - "left-pad": "1.3.0", - "nwsapi": "2.0.0", + "abab": "^1.0.4", + "acorn": "^5.3.0", + "acorn-globals": "^4.1.0", + "array-equal": "^1.0.0", + "cssom": ">= 0.3.2 < 0.4.0", + "cssstyle": ">= 0.3.1 < 0.4.0", + "data-urls": "^1.0.0", + "domexception": "^1.0.0", + "escodegen": "^1.9.0", + "html-encoding-sniffer": "^1.0.2", + "left-pad": "^1.2.0", + "nwsapi": "^2.0.0", "parse5": "4.0.0", - "pn": "1.1.0", - "request": "2.87.0", - "request-promise-native": "1.0.5", - "sax": "1.2.4", - "symbol-tree": "3.2.2", - "tough-cookie": "2.3.4", - "w3c-hr-time": "1.0.1", - "webidl-conversions": "4.0.2", - "whatwg-encoding": "1.0.3", - "whatwg-mimetype": "2.1.0", - "whatwg-url": "6.4.1", - "ws": "4.1.0", - "xml-name-validator": "3.0.0" + "pn": "^1.1.0", + "request": "^2.83.0", + "request-promise-native": "^1.0.5", + "sax": "^1.2.4", + "symbol-tree": "^3.2.2", + "tough-cookie": "^2.3.3", + "w3c-hr-time": "^1.0.1", + "webidl-conversions": "^4.0.2", + "whatwg-encoding": "^1.0.3", + "whatwg-mimetype": "^2.1.0", + "whatwg-url": "^6.4.1", + "ws": "^4.0.0", + "xml-name-validator": "^3.0.0" }, "dependencies": { "parse5": { @@ -6103,7 +6103,7 @@ "integrity": "sha1-mnWdOcXy/1A/1TAGRu1EX4jE+a8=", "dev": true, "requires": { - "jsonify": "0.0.0" + "jsonify": "~0.0.0" } }, "json-stable-stringify-without-jsonify": { @@ -6136,7 +6136,7 @@ "integrity": "sha1-pezG9l9T9mLEQVx2daAzHQmS7GY=", "dev": true, "requires": { - "graceful-fs": "4.1.11" + "graceful-fs": "^4.1.6" } }, "jsonify": { @@ -6210,9 +6210,9 @@ "integrity": "sha512-MC94mHZRvJ3LfykJlTUipBqenZz1pacOZEMhhQ8dMGcDHs0SBE5GbsavUXV7YtP3icBW17W0Zy1I0lfASmo9Pg==", "dev": true, "requires": { - "inherits": "2.0.3", - "isarray": "2.0.4", - "stream-splicer": "2.0.0" + "inherits": "^2.0.1", + "isarray": "^2.0.4", + "stream-splicer": "^2.0.0" }, "dependencies": { "isarray": { @@ -6229,7 +6229,7 @@ "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", "dev": true, "requires": { - "invert-kv": "1.0.0" + "invert-kv": "^1.0.0" } }, "left-pad": { @@ -6244,8 +6244,8 @@ "integrity": "sha1-OwmSTt+fCDwEkP3UwLxEIeBHZO4=", "dev": true, "requires": { - "prelude-ls": "1.1.2", - "type-check": "0.3.2" + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2" } }, "lexical-scope": { @@ -6254,7 +6254,7 @@ "integrity": "sha1-/Ope3HBKSzqHls3KQZw6CvryLfQ=", "dev": true, "requires": { - "astw": "2.2.0" + "astw": "^2.0.0" } }, "load-json-file": { @@ -6263,11 +6263,11 @@ "integrity": "sha1-lWkFcI1YtLq0wiYbBPWfMcmTdMA=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "pinkie-promise": "2.0.1", - "strip-bom": "2.0.0" + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0", + "strip-bom": "^2.0.0" } }, "locate-path": { @@ -6276,8 +6276,8 @@ "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", "dev": true, "requires": { - "p-locate": "2.0.0", - "path-exists": "3.0.0" + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" } }, "lodash": { @@ -6291,7 +6291,7 @@ "integrity": "sha1-ypWPW82z1o0+w3rN8cWMHMvYhlw=", "dev": true, "requires": { - "lodash": "4.17.10" + "lodash": ">=3.7.0" } }, "lodash-es": { @@ -6375,7 +6375,7 @@ "integrity": "sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg==", "dev": true, "requires": { - "chalk": "2.4.1" + "chalk": "^2.0.1" }, "dependencies": { "ansi-styles": { @@ -6384,7 +6384,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.1" + "color-convert": "^1.9.0" } }, "chalk": { @@ -6393,9 +6393,9 @@ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "supports-color": { @@ -6404,7 +6404,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -6420,7 +6420,7 @@ "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.3.1.tgz", "integrity": "sha1-0aitM/qc4OcT1l/dCsi3SNR4yEg=", "requires": { - "js-tokens": "3.0.2" + "js-tokens": "^3.0.0" } }, "loud-rejection": { @@ -6429,8 +6429,8 @@ "integrity": "sha1-W0b4AUft7leIcPCG0Eghz5mOVR8=", "dev": true, "requires": { - "currently-unhandled": "0.4.1", - "signal-exit": "3.0.2" + "currently-unhandled": "^0.4.1", + "signal-exit": "^3.0.0" } }, "lru-cache": { @@ -6439,8 +6439,8 @@ "integrity": "sha512-fFEhvcgzuIoJVUF8fYr5KR0YqxD238zgObTps31YdADwPPAp82a4M8TrckkWyx7ekNlf9aBcVn81cFwwXngrJA==", "dev": true, "requires": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" } }, "map-cache": { @@ -6461,7 +6461,7 @@ "integrity": "sha1-7Nyo8TFE5mDxtb1B8S80edmN+48=", "dev": true, "requires": { - "object-visit": "1.0.1" + "object-visit": "^1.0.0" } }, "matches-selector": { @@ -6483,8 +6483,8 @@ "integrity": "sha1-6b296UogpawYsENA/Fdk1bCdkB0=", "dev": true, "requires": { - "hash-base": "3.0.4", - "inherits": "2.0.3" + "hash-base": "^3.0.0", + "inherits": "^2.0.1" } }, "mem": { @@ -6493,7 +6493,7 @@ "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", "dev": true, "requires": { - "mimic-fn": "1.2.0" + "mimic-fn": "^1.0.0" } }, "meow": { @@ -6502,16 +6502,16 @@ "integrity": "sha1-cstmi0JSKCkKu/qFaJJYcwioAfs=", "dev": true, "requires": { - "camelcase-keys": "2.1.0", - "decamelize": "1.2.0", - "loud-rejection": "1.6.0", - "map-obj": "1.0.1", - "minimist": "1.2.0", - "normalize-package-data": "2.4.0", - "object-assign": "4.1.1", - "read-pkg-up": "1.0.1", - "redent": "1.0.0", - "trim-newlines": "1.0.0" + "camelcase-keys": "^2.0.0", + "decamelize": "^1.1.2", + "loud-rejection": "^1.0.0", + "map-obj": "^1.0.1", + "minimist": "^1.1.3", + "normalize-package-data": "^2.3.4", + "object-assign": "^4.0.1", + "read-pkg-up": "^1.0.1", + "redent": "^1.0.0", + "trim-newlines": "^1.0.0" }, "dependencies": { "minimist": { @@ -6534,19 +6534,19 @@ "integrity": "sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg==", "dev": true, "requires": { - "arr-diff": "4.0.0", - "array-unique": "0.3.2", - "braces": "2.3.2", - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "extglob": "2.0.4", - "fragment-cache": "0.2.1", - "kind-of": "6.0.2", - "nanomatch": "1.2.9", - "object.pick": "1.3.0", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "braces": "^2.3.1", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "extglob": "^2.0.4", + "fragment-cache": "^0.2.1", + "kind-of": "^6.0.2", + "nanomatch": "^1.2.9", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.2" } }, "miller-rabin": { @@ -6555,8 +6555,8 @@ "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", "dev": true, "requires": { - "bn.js": "4.11.8", - "brorand": "1.1.0" + "bn.js": "^4.0.0", + "brorand": "^1.0.1" } }, "mime-db": { @@ -6571,7 +6571,7 @@ "integrity": "sha512-lc/aahn+t4/SWV/qcmumYjymLsWfN3ELhpmVuUFjgsORruuZPVSwAQryq+HHGvO/SI2KVX26bx+En+zhM8g8hQ==", "dev": true, "requires": { - "mime-db": "1.33.0" + "mime-db": "~1.33.0" } }, "mimic-fn": { @@ -6598,7 +6598,7 @@ "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "requires": { - "brace-expansion": "1.1.11" + "brace-expansion": "^1.1.7" } }, "minimist": { @@ -6613,8 +6613,8 @@ "integrity": "sha512-8ZItLHeEgaqEvd5lYBXfm4EZSFCX29Jb9K+lAHhDKzReKBQKj3R+7NOF6tjqYi9t4oI8VUfaWITJQm86wnXGNQ==", "dev": true, "requires": { - "for-in": "1.0.2", - "is-extendable": "1.0.1" + "for-in": "^1.0.2", + "is-extendable": "^1.0.1" }, "dependencies": { "is-extendable": { @@ -6623,7 +6623,7 @@ "integrity": "sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA==", "dev": true, "requires": { - "is-plain-object": "2.0.4" + "is-plain-object": "^2.0.4" } } } @@ -6677,7 +6677,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -6688,21 +6688,21 @@ "integrity": "sha1-IyFYM/HaE/1gbMuAh7RIUty4If0=", "dev": true, "requires": { - "JSONStream": "1.3.3", - "browser-resolve": "1.11.2", - "cached-path-relative": "1.0.1", - "concat-stream": "1.5.2", - "defined": "1.0.0", - "detective": "4.7.1", - "duplexer2": "0.1.4", - "inherits": "2.0.3", - "parents": "1.0.1", - "readable-stream": "2.3.6", - "resolve": "1.7.1", - "stream-combiner2": "1.1.1", - "subarg": "1.0.0", - "through2": "2.0.3", - "xtend": "4.0.1" + "JSONStream": "^1.0.3", + "browser-resolve": "^1.7.0", + "cached-path-relative": "^1.0.0", + "concat-stream": "~1.5.0", + "defined": "^1.0.0", + "detective": "^4.0.0", + "duplexer2": "^0.1.2", + "inherits": "^2.0.1", + "parents": "^1.0.0", + "readable-stream": "^2.0.2", + "resolve": "^1.1.3", + "stream-combiner2": "^1.1.1", + "subarg": "^1.0.0", + "through2": "^2.0.0", + "xtend": "^4.0.0" }, "dependencies": { "concat-stream": { @@ -6711,9 +6711,9 @@ "integrity": "sha1-cIl4Yk2FavQaWnQd790mHadSwmY=", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.0.6", - "typedarray": "0.0.6" + "inherits": "~2.0.1", + "readable-stream": "~2.0.0", + "typedarray": "~0.0.5" }, "dependencies": { "readable-stream": { @@ -6722,12 +6722,12 @@ "integrity": "sha1-j5A0HmilPMySh4jaz80Rs265t44=", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "1.0.7", - "string_decoder": "0.10.31", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.1", + "isarray": "~1.0.0", + "process-nextick-args": "~1.0.6", + "string_decoder": "~0.10.x", + "util-deprecate": "~1.0.1" } } } @@ -6775,18 +6775,18 @@ "integrity": "sha512-n8R9bS8yQ6eSXaV6jHUpKzD8gLsin02w1HSFiegwrs9E098Ylhw5jdyKPaYqvHknHaSCKTPp7C8dGCQ0q9koXA==", "dev": true, "requires": { - "arr-diff": "4.0.0", - "array-unique": "0.3.2", - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "fragment-cache": "0.2.1", - "is-odd": "2.0.0", - "is-windows": "1.0.2", - "kind-of": "6.0.2", - "object.pick": "1.3.0", - "regex-not": "1.0.2", - "snapdragon": "0.8.2", - "to-regex": "3.0.2" + "arr-diff": "^4.0.0", + "array-unique": "^0.3.2", + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "fragment-cache": "^0.2.1", + "is-odd": "^2.0.0", + "is-windows": "^1.0.2", + "kind-of": "^6.0.2", + "object.pick": "^1.3.0", + "regex-not": "^1.0.0", + "snapdragon": "^0.8.1", + "to-regex": "^3.0.1" } }, "natural-compare": { @@ -6801,10 +6801,10 @@ "integrity": "sha512-ioYYogSaZhFlCpRizQgY3UT3G1qFXmHGY/5ozoFE3dMfiCRAeJfh+IPE3/eh9gCZvqLhPCWb4bLt7Bqzo+1mLQ==", "dev": true, "requires": { - "nomnom": "1.6.2", - "railroad-diagrams": "1.0.0", + "nomnom": "~1.6.2", + "railroad-diagrams": "^1.0.0", "randexp": "0.4.6", - "semver": "5.5.0" + "semver": "^5.4.1" } }, "next-tick": { @@ -6819,11 +6819,11 @@ "integrity": "sha512-9JX3YwoIt3kS237scmSSOpEv7vCukVzLfwK0I0XhocDSHUANid8ZHnLEULbbSkfeMn98B2y5kphIWzZUylESRQ==", "dev": true, "requires": { - "@sinonjs/formatio": "2.0.0", - "just-extend": "1.1.27", - "lolex": "2.7.0", - "path-to-regexp": "1.7.0", - "text-encoding": "0.6.4" + "@sinonjs/formatio": "^2.0.0", + "just-extend": "^1.1.27", + "lolex": "^2.3.2", + "path-to-regexp": "^1.7.0", + "text-encoding": "^0.6.4" } }, "node-fetch": { @@ -6831,8 +6831,8 @@ "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-1.7.3.tgz", "integrity": "sha512-NhZ4CsKx7cYm2vSrBAr2PvFOe6sWDf0UYLRqA6svUYg7+/TSfVAu49jYC4BvQ4Sms9SZgdqGBgroqfDhJdTyKQ==", "requires": { - "encoding": "0.1.12", - "is-stream": "1.1.0" + "encoding": "^0.1.11", + "is-stream": "^1.0.1" } }, "node-gyp": { @@ -6841,19 +6841,19 @@ "integrity": "sha1-m/vlRWIoYoSDjnUOrAUpWFP6HGA=", "dev": true, "requires": { - "fstream": "1.0.11", - "glob": "7.1.2", - "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "mkdirp": "0.5.1", - "nopt": "3.0.6", - "npmlog": "4.1.2", - "osenv": "0.1.5", - "request": "2.87.0", - "rimraf": "2.6.2", - "semver": "5.3.0", - "tar": "2.2.1", - "which": "1.3.0" + "fstream": "^1.0.0", + "glob": "^7.0.3", + "graceful-fs": "^4.1.2", + "minimatch": "^3.0.2", + "mkdirp": "^0.5.0", + "nopt": "2 || 3", + "npmlog": "0 || 1 || 2 || 3 || 4", + "osenv": "0", + "request": "2", + "rimraf": "2", + "semver": "~5.3.0", + "tar": "^2.0.0", + "which": "1" }, "dependencies": { "semver": { @@ -6870,25 +6870,25 @@ "integrity": "sha512-QFHfrZl6lqRU3csypwviz2XLgGNOoWQbo2GOvtsfQqOfL4cy1BtWnhx/XUeAO9LT3ahBzSRXcEO6DdvAH9DzSg==", "dev": true, "requires": { - "async-foreach": "0.1.3", - "chalk": "1.1.3", - "cross-spawn": "3.0.1", - "gaze": "1.1.3", - "get-stdin": "4.0.1", - "glob": "7.1.2", - "in-publish": "2.0.0", - "lodash.assign": "4.2.0", - "lodash.clonedeep": "4.5.0", - "lodash.mergewith": "4.6.1", - "meow": "3.7.0", - "mkdirp": "0.5.1", - "nan": "2.10.0", - "node-gyp": "3.6.2", - "npmlog": "4.1.2", - "request": "2.79.0", - "sass-graph": "2.2.4", - "stdout-stream": "1.4.0", - "true-case-path": "1.0.2" + "async-foreach": "^0.1.3", + "chalk": "^1.1.1", + "cross-spawn": "^3.0.0", + "gaze": "^1.0.0", + "get-stdin": "^4.0.1", + "glob": "^7.0.3", + "in-publish": "^2.0.0", + "lodash.assign": "^4.2.0", + "lodash.clonedeep": "^4.3.2", + "lodash.mergewith": "^4.6.0", + "meow": "^3.7.0", + "mkdirp": "^0.5.1", + "nan": "^2.10.0", + "node-gyp": "^3.3.1", + "npmlog": "^4.0.0", + "request": "~2.79.0", + "sass-graph": "^2.2.4", + "stdout-stream": "^1.4.0", + "true-case-path": "^1.0.2" }, "dependencies": { "assert-plus": { @@ -6915,8 +6915,8 @@ "integrity": "sha1-ElYDfsufDF9549bvE14wdwGEuYI=", "dev": true, "requires": { - "lru-cache": "4.1.3", - "which": "1.3.0" + "lru-cache": "^4.0.1", + "which": "^1.2.9" } }, "form-data": { @@ -6925,9 +6925,9 @@ "integrity": "sha1-M8GDrPGTJ27KqYFDpp6Uv+4XUNE=", "dev": true, "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.6", - "mime-types": "2.1.18" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.5", + "mime-types": "^2.1.12" } }, "har-validator": { @@ -6936,10 +6936,10 @@ "integrity": "sha1-zcvAgYgmWtEZtqWnyKtw7s+10n0=", "dev": true, "requires": { - "chalk": "1.1.3", - "commander": "2.9.0", - "is-my-json-valid": "2.17.2", - "pinkie-promise": "2.0.1" + "chalk": "^1.1.1", + "commander": "^2.9.0", + "is-my-json-valid": "^2.12.4", + "pinkie-promise": "^2.0.0" } }, "http-signature": { @@ -6948,9 +6948,9 @@ "integrity": "sha1-33LiZwZs0Kxn+3at+OE0qPvPkb8=", "dev": true, "requires": { - "assert-plus": "0.2.0", - "jsprim": "1.4.1", - "sshpk": "1.14.1" + "assert-plus": "^0.2.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" } }, "qs": { @@ -6965,26 +6965,26 @@ "integrity": "sha1-Tf5b9r6LjNw3/Pk+BLZVd3InEN4=", "dev": true, "requires": { - "aws-sign2": "0.6.0", - "aws4": "1.7.0", - "caseless": "0.11.0", - "combined-stream": "1.0.6", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.1.4", - "har-validator": "2.0.6", - "hawk": "3.1.3", - "http-signature": "1.1.1", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.18", - "oauth-sign": "0.8.2", - "qs": "6.3.2", - "stringstream": "0.0.6", - "tough-cookie": "2.3.4", - "tunnel-agent": "0.4.3", - "uuid": "3.2.1" + "aws-sign2": "~0.6.0", + "aws4": "^1.2.1", + "caseless": "~0.11.0", + "combined-stream": "~1.0.5", + "extend": "~3.0.0", + "forever-agent": "~0.6.1", + "form-data": "~2.1.1", + "har-validator": "~2.0.6", + "hawk": "~3.1.3", + "http-signature": "~1.1.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.7", + "oauth-sign": "~0.8.1", + "qs": "~6.3.0", + "stringstream": "~0.0.4", + "tough-cookie": "~2.3.0", + "tunnel-agent": "~0.4.1", + "uuid": "^3.0.0" } }, "tunnel-agent": { @@ -7001,8 +7001,8 @@ "integrity": "sha1-hKZqJgF0QI/Ft3oY+IjszET7aXE=", "dev": true, "requires": { - "colors": "0.5.1", - "underscore": "1.4.4" + "colors": "0.5.x", + "underscore": "~1.4.4" } }, "nopt": { @@ -7011,7 +7011,7 @@ "integrity": "sha1-xkZdvwirzU2zWTF/eaxopkayj/k=", "dev": true, "requires": { - "abbrev": "1.1.1" + "abbrev": "1" } }, "normalize-package-data": { @@ -7020,10 +7020,10 @@ "integrity": "sha512-9jjUFbTPfEy3R/ad/2oNbKtW9Hgovl5O1FvFWKkKblNXoN/Oou6+9+KKohPK13Yc3/TyunyWhJp6gvRNR/PPAw==", "dev": true, "requires": { - "hosted-git-info": "2.6.0", - "is-builtin-module": "1.0.0", - "semver": "5.5.0", - "validate-npm-package-license": "3.0.3" + "hosted-git-info": "^2.1.4", + "is-builtin-module": "^1.0.0", + "semver": "2 || 3 || 4 || 5", + "validate-npm-package-license": "^3.0.1" } }, "normalize-path": { @@ -7032,7 +7032,7 @@ "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", "dev": true, "requires": { - "remove-trailing-separator": "1.1.0" + "remove-trailing-separator": "^1.0.1" } }, "normalize-range": { @@ -7047,7 +7047,7 @@ "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "dev": true, "requires": { - "path-key": "2.0.1" + "path-key": "^2.0.0" } }, "npmlog": { @@ -7056,10 +7056,10 @@ "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "dev": true, "requires": { - "are-we-there-yet": "1.1.5", - "console-control-strings": "1.1.0", - "gauge": "2.7.4", - "set-blocking": "2.0.0" + "are-we-there-yet": "~1.1.2", + "console-control-strings": "~1.1.0", + "gauge": "~2.7.3", + "set-blocking": "~2.0.0" } }, "nth-check": { @@ -7068,7 +7068,7 @@ "integrity": "sha1-mSms32KPwsQQmN6rgqxYDPFJquQ=", "dev": true, "requires": { - "boolbase": "1.0.0" + "boolbase": "~1.0.0" } }, "null-loader": { @@ -7112,9 +7112,9 @@ "integrity": "sha1-fn2Fi3gb18mRpBupde04EnVOmYw=", "dev": true, "requires": { - "copy-descriptor": "0.1.1", - "define-property": "0.2.5", - "kind-of": "3.2.2" + "copy-descriptor": "^0.1.0", + "define-property": "^0.2.5", + "kind-of": "^3.0.3" }, "dependencies": { "define-property": { @@ -7123,7 +7123,7 @@ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } }, "kind-of": { @@ -7132,7 +7132,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -7161,7 +7161,7 @@ "integrity": "sha1-95xEk68MU3e1n+OdOV5BBC3QRbs=", "dev": true, "requires": { - "isobject": "3.0.1" + "isobject": "^3.0.0" } }, "object.assign": { @@ -7170,10 +7170,10 @@ "integrity": "sha512-exHJeq6kBKj58mqGyTQ9DFvrZC/eR6OwxzoM9YRoGBqrXYonaFyGiFMuc9VZrXf7DarreEwMpurG3dd+CNyW5w==", "dev": true, "requires": { - "define-properties": "1.1.2", - "function-bind": "1.1.1", - "has-symbols": "1.0.0", - "object-keys": "1.0.11" + "define-properties": "^1.1.2", + "function-bind": "^1.1.1", + "has-symbols": "^1.0.0", + "object-keys": "^1.0.11" } }, "object.entries": { @@ -7182,10 +7182,10 @@ "integrity": "sha1-G/mk3SKI9bM/Opk9JXZh8F0WGl8=", "dev": true, "requires": { - "define-properties": "1.1.2", - "es-abstract": "1.11.0", - "function-bind": "1.1.1", - "has": "1.0.1" + "define-properties": "^1.1.2", + "es-abstract": "^1.6.1", + "function-bind": "^1.1.0", + "has": "^1.0.1" } }, "object.omit": { @@ -7195,8 +7195,8 @@ "dev": true, "optional": true, "requires": { - "for-own": "0.1.5", - "is-extendable": "0.1.1" + "for-own": "^0.1.4", + "is-extendable": "^0.1.1" } }, "object.pick": { @@ -7205,7 +7205,7 @@ "integrity": "sha1-h6EKxMFpS9Lhy/U1kaZhQftd10c=", "dev": true, "requires": { - "isobject": "3.0.1" + "isobject": "^3.0.1" } }, "object.values": { @@ -7214,10 +7214,10 @@ "integrity": "sha1-5STaCbT2b/Bd9FdUbscqyZ8TBpo=", "dev": true, "requires": { - "define-properties": "1.1.2", - "es-abstract": "1.11.0", - "function-bind": "1.1.1", - "has": "1.0.1" + "define-properties": "^1.1.2", + "es-abstract": "^1.6.1", + "function-bind": "^1.1.0", + "has": "^1.0.1" } }, "once": { @@ -7226,7 +7226,7 @@ "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "requires": { - "wrappy": "1.0.2" + "wrappy": "1" } }, "onetime": { @@ -7235,7 +7235,7 @@ "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", "dev": true, "requires": { - "mimic-fn": "1.2.0" + "mimic-fn": "^1.0.0" } }, "optionator": { @@ -7244,12 +7244,12 @@ "integrity": "sha1-NkxeQJ0/TWMB1sC0wFu6UBgK62Q=", "dev": true, "requires": { - "deep-is": "0.1.3", - "fast-levenshtein": "2.0.6", - "levn": "0.3.0", - "prelude-ls": "1.1.2", - "type-check": "0.3.2", - "wordwrap": "1.0.0" + "deep-is": "~0.1.3", + "fast-levenshtein": "~2.0.4", + "levn": "~0.3.0", + "prelude-ls": "~1.1.2", + "type-check": "~0.3.2", + "wordwrap": "~1.0.0" } }, "os-browserify": { @@ -7270,7 +7270,7 @@ "integrity": "sha1-IPnxeuKe00XoveWDsT0gCYA8FNk=", "dev": true, "requires": { - "lcid": "1.0.0" + "lcid": "^1.0.0" } }, "os-tmpdir": { @@ -7285,8 +7285,8 @@ "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "dev": true, "requires": { - "os-homedir": "1.0.2", - "os-tmpdir": "1.0.2" + "os-homedir": "^1.0.0", + "os-tmpdir": "^1.0.0" } }, "output-file-sync": { @@ -7295,9 +7295,9 @@ "integrity": "sha1-0KM+7+YaIF+suQCS6CZZjVJFznY=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "mkdirp": "0.5.1", - "object-assign": "4.1.1" + "graceful-fs": "^4.1.4", + "mkdirp": "^0.5.1", + "object-assign": "^4.1.0" } }, "p-finally": { @@ -7312,7 +7312,7 @@ "integrity": "sha512-Y/OtIaXtUPr4/YpMv1pCL5L5ed0rumAaAeBSj12F+bSlMdys7i8oQF/GUJmfpTS/QoaRrS/k6pma29haJpsMng==", "dev": true, "requires": { - "p-try": "1.0.0" + "p-try": "^1.0.0" } }, "p-locate": { @@ -7321,7 +7321,7 @@ "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "requires": { - "p-limit": "1.2.0" + "p-limit": "^1.1.0" } }, "p-try": { @@ -7342,7 +7342,7 @@ "integrity": "sha1-/t1NK/GTp3dF/nHjcdc8MwfZx1E=", "dev": true, "requires": { - "path-platform": "0.11.15" + "path-platform": "~0.11.15" } }, "parse-asn1": { @@ -7351,11 +7351,11 @@ "integrity": "sha512-KPx7flKXg775zZpnp9SxJlz00gTd4BmJ2yJufSc44gMCRrRQ7NSzAcSJQfifuOLgW6bEi+ftrALtsgALeB2Adw==", "dev": true, "requires": { - "asn1.js": "4.10.1", - "browserify-aes": "1.2.0", - "create-hash": "1.2.0", - "evp_bytestokey": "1.0.3", - "pbkdf2": "3.0.16" + "asn1.js": "^4.0.0", + "browserify-aes": "^1.0.0", + "create-hash": "^1.1.0", + "evp_bytestokey": "^1.0.0", + "pbkdf2": "^3.0.3" } }, "parse-glob": { @@ -7365,10 +7365,10 @@ "dev": true, "optional": true, "requires": { - "glob-base": "0.3.0", - "is-dotfile": "1.0.3", - "is-extglob": "1.0.0", - "is-glob": "2.0.1" + "glob-base": "^0.3.0", + "is-dotfile": "^1.0.0", + "is-extglob": "^1.0.0", + "is-glob": "^2.0.0" }, "dependencies": { "is-extglob": { @@ -7384,7 +7384,7 @@ "dev": true, "optional": true, "requires": { - "is-extglob": "1.0.0" + "is-extglob": "^1.0.0" } } } @@ -7395,7 +7395,7 @@ "integrity": "sha1-9ID0BDTvgHQfhGkJn43qGPVaTck=", "dev": true, "requires": { - "error-ex": "1.3.1" + "error-ex": "^1.2.0" } }, "parse5": { @@ -7404,7 +7404,7 @@ "integrity": "sha512-rgO9Zg5LLLkfJF9E6CCmXlSE4UVceloys8JrFqCcHloC3usd/kJCyPDwH2SOlzix2j3xaP9sUX3e8+kvkuleAA==", "dev": true, "requires": { - "@types/node": "10.1.2" + "@types/node": "*" } }, "pascalcase": { @@ -7484,9 +7484,9 @@ "integrity": "sha1-WcRPfuSR2nBNpBXaWkBwuk+P5EE=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "pify": "2.3.0", - "pinkie-promise": "2.0.1" + "graceful-fs": "^4.1.2", + "pify": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "pathval": { @@ -7501,11 +7501,11 @@ "integrity": "sha512-y4CXP3thSxqf7c0qmOF+9UeOTrifiVTIM+u7NWlq+PRsHbr7r7dpCmvzrZxa96JJUNi0Y5w9VqG5ZNeCVMoDcA==", "dev": true, "requires": { - "create-hash": "1.2.0", - "create-hmac": "1.1.7", - "ripemd160": "2.0.2", - "safe-buffer": "5.1.2", - "sha.js": "2.4.11" + "create-hash": "^1.1.2", + "create-hmac": "^1.1.4", + "ripemd160": "^2.0.1", + "safe-buffer": "^5.0.1", + "sha.js": "^2.4.8" } }, "performance-now": { @@ -7532,7 +7532,7 @@ "integrity": "sha1-ITXW36ejWMBprJsXh3YogihFD/o=", "dev": true, "requires": { - "pinkie": "2.0.4" + "pinkie": "^2.0.0" } }, "pkg-dir": { @@ -7541,7 +7541,7 @@ "integrity": "sha1-ektQio1bstYp1EcFb/TpyTFM89Q=", "dev": true, "requires": { - "find-up": "1.1.2" + "find-up": "^1.0.0" }, "dependencies": { "find-up": { @@ -7550,8 +7550,8 @@ "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { - "path-exists": "2.1.0", - "pinkie-promise": "2.0.1" + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "path-exists": { @@ -7560,7 +7560,7 @@ "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", "dev": true, "requires": { - "pinkie-promise": "2.0.1" + "pinkie-promise": "^2.0.0" } } } @@ -7589,9 +7589,9 @@ "integrity": "sha512-Toc9lLoUASwGqxBSJGTVcOQiDqjK+Z2XlWBg+IgYwQMY9vA2f7iMpXVc1GpPcfTSyM5lkxNo0oDwDRO+wm7XHA==", "dev": true, "requires": { - "chalk": "2.4.1", - "source-map": "0.6.1", - "supports-color": "5.4.0" + "chalk": "^2.4.1", + "source-map": "^0.6.1", + "supports-color": "^5.4.0" }, "dependencies": { "ansi-styles": { @@ -7600,7 +7600,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.1" + "color-convert": "^1.9.0" } }, "chalk": { @@ -7609,9 +7609,9 @@ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "source-map": { @@ -7626,7 +7626,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -7637,18 +7637,18 @@ "integrity": "sha512-LbSZQUu1fh7hiIU/JCitSWd+V3MO60DWi9ETUKiO7i9fDZN/9XqI3ACbAOnymd9a+8v5x5XI5SjeEv4/R+l/Ow==", "dev": true, "requires": { - "chalk": "2.4.1", - "chokidar": "2.0.3", - "dependency-graph": "0.7.1", - "fs-extra": "5.0.0", - "get-stdin": "5.0.1", - "globby": "7.1.1", - "postcss": "6.0.22", - "postcss-load-config": "1.2.0", - "postcss-reporter": "5.0.0", - "pretty-hrtime": "1.0.3", - "read-cache": "1.0.0", - "yargs": "11.0.0" + "chalk": "^2.1.0", + "chokidar": "^2.0.0", + "dependency-graph": "^0.7.0", + "fs-extra": "^5.0.0", + "get-stdin": "^5.0.1", + "globby": "^7.1.1", + "postcss": "^6.0.1", + "postcss-load-config": "^1.1.0", + "postcss-reporter": "^5.0.0", + "pretty-hrtime": "^1.0.3", + "read-cache": "^1.0.0", + "yargs": "^11.0.0" }, "dependencies": { "ansi-regex": { @@ -7663,7 +7663,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.1" + "color-convert": "^1.9.0" } }, "camelcase": { @@ -7678,9 +7678,9 @@ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "cliui": { @@ -7689,9 +7689,9 @@ "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", "dev": true, "requires": { - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "wrap-ansi": "2.1.0" + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" } }, "fs-extra": { @@ -7700,9 +7700,9 @@ "integrity": "sha512-66Pm4RYbjzdyeuqudYqhFiNBbCIuI9kgRqLPSHIlXHidW8NIQtVdkM1yeZ4lXwuhbTETv3EUGMNHAAw6hiundQ==", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "jsonfile": "4.0.0", - "universalify": "0.1.1" + "graceful-fs": "^4.1.2", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" } }, "get-stdin": { @@ -7717,12 +7717,12 @@ "integrity": "sha1-+yzP+UAfhgCUXfral0QMypcrhoA=", "dev": true, "requires": { - "array-union": "1.0.2", - "dir-glob": "2.0.0", - "glob": "7.1.2", - "ignore": "3.3.8", - "pify": "3.0.0", - "slash": "1.0.0" + "array-union": "^1.0.1", + "dir-glob": "^2.0.0", + "glob": "^7.1.2", + "ignore": "^3.3.5", + "pify": "^3.0.0", + "slash": "^1.0.0" } }, "jsonfile": { @@ -7731,7 +7731,7 @@ "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", "dev": true, "requires": { - "graceful-fs": "4.1.11" + "graceful-fs": "^4.1.6" } }, "os-locale": { @@ -7740,9 +7740,9 @@ "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", "dev": true, "requires": { - "execa": "0.7.0", - "lcid": "1.0.0", - "mem": "1.1.0" + "execa": "^0.7.0", + "lcid": "^1.0.0", + "mem": "^1.1.0" } }, "pify": { @@ -7757,7 +7757,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } }, "supports-color": { @@ -7766,7 +7766,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } }, "which-module": { @@ -7781,18 +7781,18 @@ "integrity": "sha512-Rjp+lMYQOWtgqojx1dEWorjCofi1YN7AoFvYV7b1gx/7dAAeuI4kN5SZiEvr0ZmsZTOpDRcCqrpI10L31tFkBw==", "dev": true, "requires": { - "cliui": "4.1.0", - "decamelize": "1.2.0", - "find-up": "2.1.0", - "get-caller-file": "1.0.2", - "os-locale": "2.1.0", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "2.1.1", - "which-module": "2.0.0", - "y18n": "3.2.1", - "yargs-parser": "9.0.2" + "cliui": "^4.0.0", + "decamelize": "^1.1.1", + "find-up": "^2.1.0", + "get-caller-file": "^1.0.1", + "os-locale": "^2.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^9.0.2" } }, "yargs-parser": { @@ -7801,7 +7801,7 @@ "integrity": "sha1-nM9qQ0YP5O1Aqbto9I1DuKaMwHc=", "dev": true, "requires": { - "camelcase": "4.1.0" + "camelcase": "^4.1.0" } } } @@ -7812,10 +7812,10 @@ "integrity": "sha1-U56a/J3chiASHr+djDZz4M5Q0oo=", "dev": true, "requires": { - "cosmiconfig": "2.2.2", - "object-assign": "4.1.1", - "postcss-load-options": "1.2.0", - "postcss-load-plugins": "2.3.0" + "cosmiconfig": "^2.1.0", + "object-assign": "^4.1.0", + "postcss-load-options": "^1.2.0", + "postcss-load-plugins": "^2.3.0" } }, "postcss-load-options": { @@ -7824,8 +7824,8 @@ "integrity": "sha1-sJixVZ3awt8EvAuzdfmaXP4rbYw=", "dev": true, "requires": { - "cosmiconfig": "2.2.2", - "object-assign": "4.1.1" + "cosmiconfig": "^2.1.0", + "object-assign": "^4.1.0" } }, "postcss-load-plugins": { @@ -7834,8 +7834,8 @@ "integrity": "sha1-dFdoEWWZrKLwCfrUJrABdQSdjZI=", "dev": true, "requires": { - "cosmiconfig": "2.2.2", - "object-assign": "4.1.1" + "cosmiconfig": "^2.1.1", + "object-assign": "^4.1.0" } }, "postcss-reporter": { @@ -7844,10 +7844,10 @@ "integrity": "sha512-rBkDbaHAu5uywbCR2XE8a25tats3xSOsGNx6mppK6Q9kSFGKc/FyAzfci+fWM2l+K402p1D0pNcfDGxeje5IKg==", "dev": true, "requires": { - "chalk": "2.4.1", - "lodash": "4.17.10", - "log-symbols": "2.2.0", - "postcss": "6.0.22" + "chalk": "^2.0.1", + "lodash": "^4.17.4", + "log-symbols": "^2.0.0", + "postcss": "^6.0.8" }, "dependencies": { "ansi-styles": { @@ -7856,7 +7856,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.1" + "color-convert": "^1.9.0" } }, "chalk": { @@ -7865,9 +7865,9 @@ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "supports-color": { @@ -7876,7 +7876,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -7935,7 +7935,7 @@ "resolved": "https://registry.npmjs.org/promise/-/promise-7.3.1.tgz", "integrity": "sha512-nolQXZ/4L+bP/UGlkfaIujX9BKxGwmQ9OT4mOt5yvy8iK1h3wqTEJCijzGANTCCl9nWjY41juyAn2K3Q1hLLTg==", "requires": { - "asap": "2.0.6" + "asap": "~2.0.3" } }, "prop-types": { @@ -7943,9 +7943,9 @@ "resolved": "https://registry.npmjs.org/prop-types/-/prop-types-15.6.1.tgz", "integrity": "sha512-4ec7bY1Y66LymSUOH/zARVYObB23AT2h8cf6e/O6ZALB/N0sqZFEx7rq6EYPX2MkOdKORuooI/H5k9TlR4q7kQ==", "requires": { - "fbjs": "0.8.16", - "loose-envify": "1.3.1", - "object-assign": "4.1.1" + "fbjs": "^0.8.16", + "loose-envify": "^1.3.1", + "object-assign": "^4.1.1" } }, "pseudomap": { @@ -7960,11 +7960,11 @@ "integrity": "sha512-4kJ5Esocg8X3h8YgJsKAuoesBgB7mqH3eowiDzMUPKiRDDE7E/BqqZD1hnTByIaAFiwAw246YEltSq7tdrOH0Q==", "dev": true, "requires": { - "bn.js": "4.11.8", - "browserify-rsa": "4.0.1", - "create-hash": "1.2.0", - "parse-asn1": "5.1.1", - "randombytes": "2.0.6" + "bn.js": "^4.1.0", + "browserify-rsa": "^4.0.0", + "create-hash": "^1.1.0", + "parse-asn1": "^5.0.0", + "randombytes": "^2.0.1" } }, "punycode": { @@ -7984,8 +7984,8 @@ "resolved": "https://registry.npmjs.org/query-string/-/query-string-4.3.4.tgz", "integrity": "sha1-u7aTucqRXCMlFbIosaArYJBD2+s=", "requires": { - "object-assign": "4.1.1", - "strict-uri-encode": "1.1.0" + "object-assign": "^4.1.0", + "strict-uri-encode": "^1.0.0" } }, "querystring": { @@ -8006,7 +8006,7 @@ "integrity": "sha512-pDP/NMRAXoTfrhCfyfSEwJAKLaxBU9eApMeBPB1TkDouZmvPerIClV8lTAd+uF8ZiTaVl69e1FCxQrAd/VTjGw==", "dev": true, "requires": { - "performance-now": "2.1.0" + "performance-now": "^2.1.0" } }, "railroad-diagrams": { @@ -8022,7 +8022,7 @@ "dev": true, "requires": { "discontinuous-range": "1.0.0", - "ret": "0.1.15" + "ret": "~0.1.10" } }, "randomatic": { @@ -8032,9 +8032,9 @@ "dev": true, "optional": true, "requires": { - "is-number": "4.0.0", - "kind-of": "6.0.2", - "math-random": "1.0.1" + "is-number": "^4.0.0", + "kind-of": "^6.0.0", + "math-random": "^1.0.1" }, "dependencies": { "is-number": { @@ -8052,7 +8052,7 @@ "integrity": "sha512-CIQ5OFxf4Jou6uOKe9t1AOgqpeU5fd70A8NPdHSGeYXqXsPe6peOwI0cUl88RWZ6sP1vPMV3avd/R6cZ5/sP1A==", "dev": true, "requires": { - "safe-buffer": "5.1.2" + "safe-buffer": "^5.1.0" } }, "randomfill": { @@ -8061,8 +8061,8 @@ "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", "dev": true, "requires": { - "randombytes": "2.0.6", - "safe-buffer": "5.1.2" + "randombytes": "^2.0.5", + "safe-buffer": "^5.1.0" } }, "raven-js": { @@ -8076,11 +8076,11 @@ "integrity": "sha1-26BDSrQ5z+gvEI8PURZjkIF5qnI=", "dev": true, "requires": { - "create-react-class": "15.6.3", - "fbjs": "0.8.16", - "loose-envify": "1.3.1", - "object-assign": "4.1.1", - "prop-types": "15.6.1" + "create-react-class": "^15.6.0", + "fbjs": "^0.8.9", + "loose-envify": "^1.1.0", + "object-assign": "^4.1.0", + "prop-types": "^15.5.10" } }, "react-dom": { @@ -8089,10 +8089,10 @@ "integrity": "sha1-Qc+t9pO3V/rycIRDodH9WgK+9zA=", "dev": true, "requires": { - "fbjs": "0.8.16", - "loose-envify": "1.3.1", - "object-assign": "4.1.1", - "prop-types": "15.6.1" + "fbjs": "^0.8.9", + "loose-envify": "^1.1.0", + "object-assign": "^4.1.0", + "prop-types": "^15.5.10" } }, "react-element-to-string": { @@ -8101,8 +8101,8 @@ "integrity": "sha1-AmLyzg/6i1GOo1l7w6jcJuBVGkc=", "dev": true, "requires": { - "indent-string": "2.1.0", - "json-stringify-pretty-compact": "1.2.0" + "indent-string": "^2.1.0", + "json-stringify-pretty-compact": "^1.0.1" } }, "react-redux": { @@ -8110,12 +8110,12 @@ "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-4.4.8.tgz", "integrity": "sha1-57wd0QDotk6WrIIS2xEyObni4I8=", "requires": { - "create-react-class": "15.6.3", - "hoist-non-react-statics": "1.2.0", - "invariant": "2.2.4", - "lodash": "4.17.10", - "loose-envify": "1.3.1", - "prop-types": "15.6.1" + "create-react-class": "^15.5.1", + "hoist-non-react-statics": "^1.0.3", + "invariant": "^2.0.0", + "lodash": "^4.2.0", + "loose-envify": "^1.1.0", + "prop-types": "^15.5.4" } }, "react-router": { @@ -8123,13 +8123,13 @@ "resolved": "https://registry.npmjs.org/react-router/-/react-router-3.2.1.tgz", "integrity": "sha512-SXkhC0nr3G0ltzVU07IN8jYl0bB6FsrDIqlLC9dK3SITXqyTJyM7yhXlUqs89w3Nqi5OkXsfRUeHX+P874HQrg==", "requires": { - "create-react-class": "15.6.3", - "history": "3.3.0", - "hoist-non-react-statics": "2.5.0", - "invariant": "2.2.4", - "loose-envify": "1.3.1", - "prop-types": "15.6.1", - "warning": "3.0.0" + "create-react-class": "^15.5.1", + "history": "^3.0.0", + "hoist-non-react-statics": "^2.3.1", + "invariant": "^2.2.1", + "loose-envify": "^1.2.0", + "prop-types": "^15.5.6", + "warning": "^3.0.0" }, "dependencies": { "hoist-non-react-statics": { @@ -8144,8 +8144,8 @@ "resolved": "https://registry.npmjs.org/react-scroll/-/react-scroll-1.7.9.tgz", "integrity": "sha512-baTwyz2FxaZWZ/4yEAWQEGE4CMZzGj/AjvLu/x4xmAisFgSAq3D0QED3deI6D4zeJTSEmeuy8Hm01IS+IDbKIg==", "requires": { - "lodash.throttle": "4.1.1", - "prop-types": "15.6.1" + "lodash.throttle": "^4.1.1", + "prop-types": "^15.5.8" } }, "react-test-renderer": { @@ -8154,8 +8154,8 @@ "integrity": "sha1-0DM0NPwsQ4CSaWyncNpe1IA376g=", "dev": true, "requires": { - "fbjs": "0.8.16", - "object-assign": "4.1.1" + "fbjs": "^0.8.9", + "object-assign": "^4.1.0" } }, "react-transition-group": { @@ -8163,11 +8163,11 @@ "resolved": "https://registry.npmjs.org/react-transition-group/-/react-transition-group-1.2.1.tgz", "integrity": "sha512-CWaL3laCmgAFdxdKbhhps+c0HRGF4c+hdM4H23+FI1QBNUyx/AMeIJGWorehPNSaKnQNOAxL7PQmqMu78CDj3Q==", "requires": { - "chain-function": "1.0.0", - "dom-helpers": "3.3.1", - "loose-envify": "1.3.1", - "prop-types": "15.6.1", - "warning": "3.0.0" + "chain-function": "^1.0.0", + "dom-helpers": "^3.2.0", + "loose-envify": "^1.3.1", + "prop-types": "^15.5.6", + "warning": "^3.0.0" } }, "read-cache": { @@ -8176,7 +8176,7 @@ "integrity": "sha1-5mTvMRYRZsl1HNvo28+GtftY93Q=", "dev": true, "requires": { - "pify": "2.3.0" + "pify": "^2.3.0" } }, "read-only-stream": { @@ -8185,7 +8185,7 @@ "integrity": "sha1-JyT9aoET1zdkrCiNQ4YnDB2/F/A=", "dev": true, "requires": { - "readable-stream": "2.3.6" + "readable-stream": "^2.0.2" } }, "read-pkg": { @@ -8194,9 +8194,9 @@ "integrity": "sha1-9f+qXs0pyzHAR0vKfXVra7KePyg=", "dev": true, "requires": { - "load-json-file": "1.1.0", - "normalize-package-data": "2.4.0", - "path-type": "1.1.0" + "load-json-file": "^1.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^1.0.0" } }, "read-pkg-up": { @@ -8205,8 +8205,8 @@ "integrity": "sha1-nWPBMnbAZZGNV/ACpX9AobZD+wI=", "dev": true, "requires": { - "find-up": "1.1.2", - "read-pkg": "1.1.0" + "find-up": "^1.0.0", + "read-pkg": "^1.0.0" }, "dependencies": { "find-up": { @@ -8215,8 +8215,8 @@ "integrity": "sha1-ay6YIrGizgpgq2TWEOzK1TyyTQ8=", "dev": true, "requires": { - "path-exists": "2.1.0", - "pinkie-promise": "2.0.1" + "path-exists": "^2.0.0", + "pinkie-promise": "^2.0.0" } }, "path-exists": { @@ -8225,7 +8225,7 @@ "integrity": "sha1-D+tsZPD8UY2adU3V77YscCJ2H0s=", "dev": true, "requires": { - "pinkie-promise": "2.0.1" + "pinkie-promise": "^2.0.0" } } } @@ -8236,13 +8236,13 @@ "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "requires": { - "core-util-is": "1.0.2", - "inherits": "2.0.3", - "isarray": "1.0.0", - "process-nextick-args": "2.0.0", - "safe-buffer": "5.1.2", - "string_decoder": "1.1.1", - "util-deprecate": "1.0.2" + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" } }, "readdirp": { @@ -8251,10 +8251,10 @@ "integrity": "sha1-TtCtBg3zBzMAxIRANz9y0cxkLXg=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "minimatch": "3.0.4", - "readable-stream": "2.3.6", - "set-immediate-shim": "1.0.1" + "graceful-fs": "^4.1.2", + "minimatch": "^3.0.2", + "readable-stream": "^2.0.2", + "set-immediate-shim": "^1.0.1" } }, "readline2": { @@ -8263,8 +8263,8 @@ "integrity": "sha1-QQWWCP/BVHV7cV2ZidGZ/783LjU=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", "mute-stream": "0.0.5" }, "dependencies": { @@ -8274,7 +8274,7 @@ "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "mute-stream": { @@ -8291,10 +8291,10 @@ "integrity": "sha1-v1RHfgOH5Evr84VRILvaWt6gj4s=", "dev": true, "requires": { - "element-closest": "2.0.2", - "keyboardevent-key-polyfill": "1.1.0", - "matches-selector": "1.2.0", - "object-assign": "4.1.1" + "element-closest": "^2.0.1", + "keyboardevent-key-polyfill": "^1.0.2", + "matches-selector": "^1.0.0", + "object-assign": "^4.1.0" } }, "rechoir": { @@ -8303,7 +8303,7 @@ "integrity": "sha1-hSBLVNuoLVdC4oyWdW70OvUOM4Q=", "dev": true, "requires": { - "resolve": "1.7.1" + "resolve": "^1.1.6" } }, "recompose": { @@ -8311,10 +8311,10 @@ "resolved": "https://registry.npmjs.org/recompose/-/recompose-0.21.2.tgz", "integrity": "sha1-/z+9sjl7HHfEfUUb4qY7kpXURoE=", "requires": { - "change-emitter": "0.1.6", - "fbjs": "0.8.16", - "hoist-non-react-statics": "1.2.0", - "symbol-observable": "1.2.0" + "change-emitter": "^0.1.2", + "fbjs": "^0.8.1", + "hoist-non-react-statics": "^1.0.0", + "symbol-observable": "^1.0.4" } }, "redent": { @@ -8323,8 +8323,8 @@ "integrity": "sha1-z5Fqsf1fHxbfsggi3W7H9zDCr94=", "dev": true, "requires": { - "indent-string": "2.1.0", - "strip-indent": "1.0.1" + "indent-string": "^2.1.0", + "strip-indent": "^1.0.1" } }, "redux": { @@ -8332,10 +8332,10 @@ "resolved": "https://registry.npmjs.org/redux/-/redux-3.7.2.tgz", "integrity": "sha512-pNqnf9q1hI5HHZRBkj3bAngGZW/JMCmexDlOxw4XagXY2o1327nHH54LoTjiPJ0gizoqPDRqWyX/00g0hD6w+A==", "requires": { - "lodash": "4.17.10", - "lodash-es": "4.17.10", - "loose-envify": "1.3.1", - "symbol-observable": "1.2.0" + "lodash": "^4.2.1", + "lodash-es": "^4.2.1", + "loose-envify": "^1.1.0", + "symbol-observable": "^1.0.3" } }, "redux-thunk": { @@ -8362,9 +8362,9 @@ "integrity": "sha512-PJepbvDbuK1xgIgnau7Y90cwaAmO/LCLMI2mPvaXq2heGMR3aWW5/BQvYrhJ8jgmQjXewXvBjzfqKcVOmhjZ6Q==", "dev": true, "requires": { - "babel-runtime": "6.26.0", - "babel-types": "6.26.0", - "private": "0.1.8" + "babel-runtime": "^6.18.0", + "babel-types": "^6.19.0", + "private": "^0.1.6" } }, "regex-cache": { @@ -8374,7 +8374,7 @@ "dev": true, "optional": true, "requires": { - "is-equal-shallow": "0.1.3" + "is-equal-shallow": "^0.1.3" } }, "regex-not": { @@ -8383,8 +8383,8 @@ "integrity": "sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A==", "dev": true, "requires": { - "extend-shallow": "3.0.2", - "safe-regex": "1.1.0" + "extend-shallow": "^3.0.2", + "safe-regex": "^1.1.0" } }, "regexpp": { @@ -8399,9 +8399,9 @@ "integrity": "sha1-SdA4g3uNz4v6W5pCE5k45uoq4kA=", "dev": true, "requires": { - "regenerate": "1.3.3", - "regjsgen": "0.2.0", - "regjsparser": "0.1.5" + "regenerate": "^1.2.1", + "regjsgen": "^0.2.0", + "regjsparser": "^0.1.4" } }, "regjsgen": { @@ -8416,7 +8416,7 @@ "integrity": "sha1-fuj4Tcb6eS0/0K4ijSS9lJ6tIFw=", "dev": true, "requires": { - "jsesc": "0.5.0" + "jsesc": "~0.5.0" }, "dependencies": { "jsesc": { @@ -8451,7 +8451,7 @@ "integrity": "sha1-UhTFOpJtNVJwdSf7q0FdvAjQbdo=", "dev": true, "requires": { - "is-finite": "1.0.2" + "is-finite": "^1.0.0" } }, "request": { @@ -8460,26 +8460,26 @@ "integrity": "sha512-fcogkm7Az5bsS6Sl0sibkbhcKsnyon/jV1kF3ajGmF0c8HrttdKTPRT9hieOaQHA5HEq6r8OyWOo/o781C1tNw==", "dev": true, "requires": { - "aws-sign2": "0.7.0", - "aws4": "1.7.0", - "caseless": "0.12.0", - "combined-stream": "1.0.6", - "extend": "3.0.1", - "forever-agent": "0.6.1", - "form-data": "2.3.2", - "har-validator": "5.0.3", - "http-signature": "1.2.0", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.18", - "oauth-sign": "0.8.2", - "performance-now": "2.1.0", - "qs": "6.5.2", - "safe-buffer": "5.1.2", - "tough-cookie": "2.3.4", - "tunnel-agent": "0.6.0", - "uuid": "3.2.1" + "aws-sign2": "~0.7.0", + "aws4": "^1.6.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.5", + "extend": "~3.0.1", + "forever-agent": "~0.6.1", + "form-data": "~2.3.1", + "har-validator": "~5.0.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.17", + "oauth-sign": "~0.8.2", + "performance-now": "^2.1.0", + "qs": "~6.5.1", + "safe-buffer": "^5.1.1", + "tough-cookie": "~2.3.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.1.0" } }, "request-promise-core": { @@ -8488,7 +8488,7 @@ "integrity": "sha1-Pu4AssWqgyOc+wTFcA2jb4HNCLY=", "dev": true, "requires": { - "lodash": "4.17.10" + "lodash": "^4.13.1" } }, "request-promise-native": { @@ -8498,8 +8498,8 @@ "dev": true, "requires": { "request-promise-core": "1.1.1", - "stealthy-require": "1.1.1", - "tough-cookie": "2.3.4" + "stealthy-require": "^1.1.0", + "tough-cookie": ">=2.3.3" } }, "require-directory": { @@ -8532,8 +8532,8 @@ "integrity": "sha1-Tg1W1slmL9MeQwEcS5WqSZVUIdM=", "dev": true, "requires": { - "caller-path": "0.1.0", - "resolve-from": "1.0.1" + "caller-path": "^0.1.0", + "resolve-from": "^1.0.0" } }, "reselect": { @@ -8547,7 +8547,7 @@ "integrity": "sha512-c7rwLofp8g1U+h1KNyHL/jicrKg1Ek4q+Lr33AL65uZTinUZHe30D5HlyN5V9NW0JX1D5dXQ4jqW5l7Sy/kGfw==", "dev": true, "requires": { - "path-parse": "1.0.5" + "path-parse": "^1.0.5" } }, "resolve-from": { @@ -8574,8 +8574,8 @@ "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", "dev": true, "requires": { - "onetime": "2.0.1", - "signal-exit": "3.0.2" + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" } }, "ret": { @@ -8590,7 +8590,7 @@ "integrity": "sha512-lreewLK/BlghmxtfH36YYVg1i8IAce4TI7oao75I1g245+6BctqTVQiBP3YUJ9C6DQOXJmkYR9X9fCLtCOJc5w==", "dev": true, "requires": { - "glob": "7.1.2" + "glob": "^7.0.5" } }, "ripemd160": { @@ -8599,8 +8599,8 @@ "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", "dev": true, "requires": { - "hash-base": "3.0.4", - "inherits": "2.0.3" + "hash-base": "^3.0.0", + "inherits": "^2.0.1" } }, "rst-selector-parser": { @@ -8609,8 +8609,8 @@ "integrity": "sha1-gbIw6i/MYGbInjRy3nlChdmwPZE=", "dev": true, "requires": { - "lodash.flattendeep": "4.4.0", - "nearley": "2.13.0" + "lodash.flattendeep": "^4.4.0", + "nearley": "^2.7.10" } }, "run-async": { @@ -8619,7 +8619,7 @@ "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", "dev": true, "requires": { - "is-promise": "2.1.0" + "is-promise": "^2.1.0" } }, "rx-lite": { @@ -8634,7 +8634,7 @@ "integrity": "sha1-dTuHqJoRyVRnxKwWJsTvxOBcZ74=", "dev": true, "requires": { - "rx-lite": "4.0.8" + "rx-lite": "*" } }, "safe-buffer": { @@ -8649,7 +8649,7 @@ "integrity": "sha1-QKNmnzsHfR6UPURinhV91IAjvy4=", "dev": true, "requires": { - "ret": "0.1.15" + "ret": "~0.1.10" } }, "safer-buffer": { @@ -8669,10 +8669,10 @@ "integrity": "sha1-E/vWPNHK8JCLn9k0dq1DpR0eC0k=", "dev": true, "requires": { - "glob": "7.1.2", - "lodash": "4.17.10", - "scss-tokenizer": "0.2.3", - "yargs": "7.1.0" + "glob": "^7.0.0", + "lodash": "^4.0.0", + "scss-tokenizer": "^0.2.3", + "yargs": "^7.0.0" } }, "sass-lint": { @@ -8681,20 +8681,20 @@ "integrity": "sha1-Yw9pwhaqIGuCMvsqqQe98zNrbYM=", "dev": true, "requires": { - "commander": "2.9.0", - "eslint": "2.13.1", + "commander": "^2.8.1", + "eslint": "^2.7.0", "front-matter": "2.1.2", - "fs-extra": "3.0.1", - "glob": "7.1.2", - "globule": "1.2.1", - "gonzales-pe-sl": "4.2.3", - "js-yaml": "3.11.0", - "known-css-properties": "0.3.0", - "lodash.capitalize": "4.2.1", - "lodash.kebabcase": "4.1.1", - "merge": "1.2.0", - "path-is-absolute": "1.0.1", - "util": "0.10.3" + "fs-extra": "^3.0.1", + "glob": "^7.0.0", + "globule": "^1.0.0", + "gonzales-pe-sl": "^4.2.3", + "js-yaml": "^3.5.4", + "known-css-properties": "^0.3.0", + "lodash.capitalize": "^4.1.0", + "lodash.kebabcase": "^4.0.0", + "merge": "^1.2.0", + "path-is-absolute": "^1.0.0", + "util": "^0.10.3" }, "dependencies": { "ajv": { @@ -8703,8 +8703,8 @@ "integrity": "sha1-gv+wKynmYq5TvcIK8VlHcGc5xTY=", "dev": true, "requires": { - "co": "4.6.0", - "json-stable-stringify": "1.0.1" + "co": "^4.6.0", + "json-stable-stringify": "^1.0.1" } }, "ajv-keywords": { @@ -8725,7 +8725,7 @@ "integrity": "sha1-ZNo/fValRBLll5S9Ytw1KV6PKYc=", "dev": true, "requires": { - "restore-cursor": "1.0.1" + "restore-cursor": "^1.0.1" } }, "doctrine": { @@ -8734,8 +8734,8 @@ "integrity": "sha1-N53Ocw9hZvds76TmcHoVmwLFpvo=", "dev": true, "requires": { - "esutils": "2.0.2", - "isarray": "1.0.0" + "esutils": "^2.0.2", + "isarray": "^1.0.0" } }, "eslint": { @@ -8744,39 +8744,39 @@ "integrity": "sha1-5MyPoPAJ+4KaquI4VaKTYL4fbBE=", "dev": true, "requires": { - "chalk": "1.1.3", - "concat-stream": "1.6.2", - "debug": "2.6.9", - "doctrine": "1.5.0", - "es6-map": "0.1.5", - "escope": "3.6.0", - "espree": "3.5.4", - "estraverse": "4.2.0", - "esutils": "2.0.2", - "file-entry-cache": "1.3.1", - "glob": "7.1.2", - "globals": "9.18.0", - "ignore": "3.3.8", - "imurmurhash": "0.1.4", - "inquirer": "0.12.0", - "is-my-json-valid": "2.17.2", - "is-resolvable": "1.1.0", - "js-yaml": "3.11.0", - "json-stable-stringify": "1.0.1", - "levn": "0.3.0", - "lodash": "4.17.10", - "mkdirp": "0.5.1", - "optionator": "0.8.2", - "path-is-absolute": "1.0.1", - "path-is-inside": "1.0.2", - "pluralize": "1.2.1", - "progress": "1.1.8", - "require-uncached": "1.0.3", - "shelljs": "0.6.1", - "strip-json-comments": "1.0.4", - "table": "3.8.3", - "text-table": "0.2.0", - "user-home": "2.0.0" + "chalk": "^1.1.3", + "concat-stream": "^1.4.6", + "debug": "^2.1.1", + "doctrine": "^1.2.2", + "es6-map": "^0.1.3", + "escope": "^3.6.0", + "espree": "^3.1.6", + "estraverse": "^4.2.0", + "esutils": "^2.0.2", + "file-entry-cache": "^1.1.1", + "glob": "^7.0.3", + "globals": "^9.2.0", + "ignore": "^3.1.2", + "imurmurhash": "^0.1.4", + "inquirer": "^0.12.0", + "is-my-json-valid": "^2.10.0", + "is-resolvable": "^1.0.0", + "js-yaml": "^3.5.1", + "json-stable-stringify": "^1.0.0", + "levn": "^0.3.0", + "lodash": "^4.0.0", + "mkdirp": "^0.5.0", + "optionator": "^0.8.1", + "path-is-absolute": "^1.0.0", + "path-is-inside": "^1.0.1", + "pluralize": "^1.2.1", + "progress": "^1.1.8", + "require-uncached": "^1.0.2", + "shelljs": "^0.6.0", + "strip-json-comments": "~1.0.1", + "table": "^3.7.8", + "text-table": "~0.2.0", + "user-home": "^2.0.0" } }, "esprima": { @@ -8791,8 +8791,8 @@ "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", "dev": true, "requires": { - "escape-string-regexp": "1.0.5", - "object-assign": "4.1.1" + "escape-string-regexp": "^1.0.5", + "object-assign": "^4.1.0" } }, "file-entry-cache": { @@ -8801,8 +8801,8 @@ "integrity": "sha1-RMYepgeuS+nBQC9B9EJwy/4zT/g=", "dev": true, "requires": { - "flat-cache": "1.3.0", - "object-assign": "4.1.1" + "flat-cache": "^1.2.1", + "object-assign": "^4.0.1" } }, "inquirer": { @@ -8811,19 +8811,19 @@ "integrity": "sha1-HvK/1jUE3wvHV4X/+MLEHfEvB34=", "dev": true, "requires": { - "ansi-escapes": "1.4.0", - "ansi-regex": "2.1.1", - "chalk": "1.1.3", - "cli-cursor": "1.0.2", - "cli-width": "2.2.0", - "figures": "1.7.0", - "lodash": "4.17.10", - "readline2": "1.0.1", - "run-async": "0.1.0", - "rx-lite": "3.1.2", - "string-width": "1.0.2", - "strip-ansi": "3.0.1", - "through": "2.3.8" + "ansi-escapes": "^1.1.0", + "ansi-regex": "^2.0.0", + "chalk": "^1.0.0", + "cli-cursor": "^1.0.1", + "cli-width": "^2.0.0", + "figures": "^1.3.5", + "lodash": "^4.3.0", + "readline2": "^1.0.1", + "run-async": "^0.1.0", + "rx-lite": "^3.1.2", + "string-width": "^1.0.1", + "strip-ansi": "^3.0.0", + "through": "^2.3.6" } }, "is-fullwidth-code-point": { @@ -8832,7 +8832,7 @@ "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "js-yaml": { @@ -8841,8 +8841,8 @@ "integrity": "sha512-saJstZWv7oNeOyBh3+Dx1qWzhW0+e6/8eDzo7p5rDFqxntSztloLtuKu+Ejhtq82jsilwOIZYsCz+lIjthg1Hw==", "dev": true, "requires": { - "argparse": "1.0.10", - "esprima": "4.0.0" + "argparse": "^1.0.7", + "esprima": "^4.0.0" } }, "onetime": { @@ -8869,8 +8869,8 @@ "integrity": "sha1-NGYfRohjJ/7SmRR5FSJS35LapUE=", "dev": true, "requires": { - "exit-hook": "1.1.1", - "onetime": "1.1.0" + "exit-hook": "^1.0.0", + "onetime": "^1.0.0" } }, "run-async": { @@ -8879,7 +8879,7 @@ "integrity": "sha1-yK1KXhEGYeQCp9IbUw4AnyX444k=", "dev": true, "requires": { - "once": "1.4.0" + "once": "^1.3.0" } }, "rx-lite": { @@ -8906,9 +8906,9 @@ "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } }, "strip-json-comments": { @@ -8923,12 +8923,12 @@ "integrity": "sha1-K7xULw/amGGnVdOUf+/Ys/UThV8=", "dev": true, "requires": { - "ajv": "4.11.8", - "ajv-keywords": "1.5.1", - "chalk": "1.1.3", - "lodash": "4.17.10", + "ajv": "^4.7.0", + "ajv-keywords": "^1.0.0", + "chalk": "^1.1.1", + "lodash": "^4.0.0", "slice-ansi": "0.0.4", - "string-width": "2.1.1" + "string-width": "^2.0.0" }, "dependencies": { "ansi-regex": { @@ -8949,8 +8949,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -8959,7 +8959,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -8978,8 +8978,8 @@ "integrity": "sha1-jrBtualyMzOCTT9VMGQRSYR85dE=", "dev": true, "requires": { - "js-base64": "2.4.5", - "source-map": "0.4.4" + "js-base64": "^2.1.8", + "source-map": "^0.4.2" }, "dependencies": { "source-map": { @@ -8988,7 +8988,7 @@ "integrity": "sha1-66T12pwNyZneaAMti092FzZSA2s=", "dev": true, "requires": { - "amdefine": "1.0.1" + "amdefine": ">=0.0.4" } } } @@ -9023,10 +9023,10 @@ "integrity": "sha512-hw0yxk9GT/Hr5yJEYnHNKYXkIA8mVJgd9ditYZCe16ZczcaELYYcfvaXesNACk2O8O0nTiPQcQhGUQj8JLzeeg==", "dev": true, "requires": { - "extend-shallow": "2.0.1", - "is-extendable": "0.1.1", - "is-plain-object": "2.0.4", - "split-string": "3.1.0" + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.3", + "split-string": "^3.0.1" }, "dependencies": { "extend-shallow": { @@ -9035,7 +9035,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -9051,8 +9051,8 @@ "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", "dev": true, "requires": { - "inherits": "2.0.3", - "safe-buffer": "5.1.2" + "inherits": "^2.0.1", + "safe-buffer": "^5.0.1" } }, "shasum": { @@ -9061,8 +9061,8 @@ "integrity": "sha1-5wEjENj0F/TetXEhUOVni4euVl8=", "dev": true, "requires": { - "json-stable-stringify": "0.0.1", - "sha.js": "2.4.11" + "json-stable-stringify": "~0.0.0", + "sha.js": "~2.4.4" }, "dependencies": { "json-stable-stringify": { @@ -9071,7 +9071,7 @@ "integrity": "sha1-YRwj6BTbN1Un34URk9tZ3Sryf0U=", "dev": true, "requires": { - "jsonify": "0.0.0" + "jsonify": "~0.0.0" } } } @@ -9082,7 +9082,7 @@ "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dev": true, "requires": { - "shebang-regex": "1.0.0" + "shebang-regex": "^1.0.0" } }, "shebang-regex": { @@ -9097,10 +9097,10 @@ "integrity": "sha1-9HgZSczkAmlxJ0MOo7PFR29IF2c=", "dev": true, "requires": { - "array-filter": "0.0.1", - "array-map": "0.0.0", - "array-reduce": "0.0.0", - "jsonify": "0.0.0" + "array-filter": "~0.0.0", + "array-map": "~0.0.0", + "array-reduce": "~0.0.0", + "jsonify": "~0.0.0" }, "dependencies": { "array-filter": { @@ -9117,9 +9117,9 @@ "integrity": "sha1-3svPh0sNHl+3LhSxZKloMEjprLM=", "dev": true, "requires": { - "glob": "7.1.2", - "interpret": "1.1.0", - "rechoir": "0.6.2" + "glob": "^7.0.0", + "interpret": "^1.0.0", + "rechoir": "^0.6.2" } }, "signal-exit": { @@ -9134,13 +9134,13 @@ "integrity": "sha512-MatciKXyM5pXMSoqd593MqTsItJNCkSSl53HJYeKR5wfsDdp2yljjUQJLfVwAWLoBNfx1HThteqygGQ0ZEpXpQ==", "dev": true, "requires": { - "@sinonjs/formatio": "2.0.0", - "diff": "3.5.0", - "lodash.get": "4.4.2", - "lolex": "2.7.0", - "nise": "1.4.1", - "supports-color": "5.4.0", - "type-detect": "4.0.8" + "@sinonjs/formatio": "^2.0.0", + "diff": "^3.5.0", + "lodash.get": "^4.4.2", + "lolex": "^2.4.2", + "nise": "^1.3.3", + "supports-color": "^5.4.0", + "type-detect": "^4.0.8" }, "dependencies": { "supports-color": { @@ -9149,7 +9149,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -9160,10 +9160,10 @@ "integrity": "sha512-2TFImKMDE4bS4hm8hdpjTf4+0RXAUxK0jjQRKPrf4qypAk9zDcEldIcxdQNMUdhsJhWwFrENz7jGu5Gu/IWbbQ==", "dev": true, "requires": { - "escape-string-regexp": "1.0.5", - "is-subset": "0.1.1", - "react-element-to-string": "1.0.2", - "semver": "5.5.0" + "escape-string-regexp": "^1.0.5", + "is-subset": "^0.1.1", + "react-element-to-string": "^1.0.2", + "semver": "^5.3.0" } }, "slash": { @@ -9178,7 +9178,7 @@ "integrity": "sha512-POqxBK6Lb3q6s047D/XsDVNPnF9Dl8JSaqe9h9lURl0OdNqy/ujDrOiIHtsqXMGbWWTIomRzAMaTyawAU//Reg==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0" + "is-fullwidth-code-point": "^2.0.0" } }, "snapdragon": { @@ -9187,14 +9187,14 @@ "integrity": "sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg==", "dev": true, "requires": { - "base": "0.11.2", - "debug": "2.6.9", - "define-property": "0.2.5", - "extend-shallow": "2.0.1", - "map-cache": "0.2.2", - "source-map": "0.5.7", - "source-map-resolve": "0.5.1", - "use": "3.1.0" + "base": "^0.11.1", + "debug": "^2.2.0", + "define-property": "^0.2.5", + "extend-shallow": "^2.0.1", + "map-cache": "^0.2.2", + "source-map": "^0.5.6", + "source-map-resolve": "^0.5.0", + "use": "^3.1.0" }, "dependencies": { "define-property": { @@ -9203,7 +9203,7 @@ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } }, "extend-shallow": { @@ -9212,7 +9212,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } } } @@ -9223,9 +9223,9 @@ "integrity": "sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw==", "dev": true, "requires": { - "define-property": "1.0.0", - "isobject": "3.0.1", - "snapdragon-util": "3.0.1" + "define-property": "^1.0.0", + "isobject": "^3.0.0", + "snapdragon-util": "^3.0.1" }, "dependencies": { "define-property": { @@ -9234,7 +9234,7 @@ "integrity": "sha1-dp66rz9KY6rTr56NMEybvnm/sOY=", "dev": true, "requires": { - "is-descriptor": "1.0.2" + "is-descriptor": "^1.0.0" } }, "is-accessor-descriptor": { @@ -9243,7 +9243,7 @@ "integrity": "sha512-m5hnHTkcVsPfqx3AKlyttIPb7J+XykHvJP2B9bZDjlhLIoEq4XoK64Vg7boZlVWYK6LUY94dYPEE7Lh0ZkZKcQ==", "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-data-descriptor": { @@ -9252,7 +9252,7 @@ "integrity": "sha512-jbRXy1FmtAoCjQkVmIVYwuuqDFUbaOeDjmed1tOGPrsMhtJA4rD9tkgA0F1qJ3gRFRXcHYVkdeaP50Q5rE/jLQ==", "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.0" } }, "is-descriptor": { @@ -9261,9 +9261,9 @@ "integrity": "sha512-2eis5WqQGV7peooDyLmNEPUrps9+SXX5c9pL3xEB+4e9HnGuDa7mB7kHxHw4CbqS9k1T2hOH3miL8n8WtiYVtg==", "dev": true, "requires": { - "is-accessor-descriptor": "1.0.0", - "is-data-descriptor": "1.0.0", - "kind-of": "6.0.2" + "is-accessor-descriptor": "^1.0.0", + "is-data-descriptor": "^1.0.0", + "kind-of": "^6.0.2" } } } @@ -9274,7 +9274,7 @@ "integrity": "sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ==", "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.2.0" }, "dependencies": { "kind-of": { @@ -9283,7 +9283,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -9294,7 +9294,7 @@ "integrity": "sha1-ZUEYTMkK7qbG57NeJlkIJEPGYZg=", "dev": true, "requires": { - "hoek": "2.16.3" + "hoek": "2.x.x" } }, "source-map": { @@ -9309,11 +9309,11 @@ "integrity": "sha512-0KW2wvzfxm8NCTb30z0LMNyPqWCdDGE2viwzUaucqJdkTRXtZiSY3I+2A6nVAjmdOy0I4gU8DwnVVGsk9jvP2A==", "dev": true, "requires": { - "atob": "2.1.1", - "decode-uri-component": "0.2.0", - "resolve-url": "0.2.1", - "source-map-url": "0.4.0", - "urix": "0.1.0" + "atob": "^2.0.0", + "decode-uri-component": "^0.2.0", + "resolve-url": "^0.2.1", + "source-map-url": "^0.4.0", + "urix": "^0.1.0" } }, "source-map-support": { @@ -9322,7 +9322,7 @@ "integrity": "sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA==", "dev": true, "requires": { - "source-map": "0.5.7" + "source-map": "^0.5.6" } }, "source-map-url": { @@ -9337,8 +9337,8 @@ "integrity": "sha512-N19o9z5cEyc8yQQPukRCZ9EUmb4HUpnrmaL/fxS2pBo2jbfcFRVuFZ/oFC+vZz0MNNk0h80iMn5/S6qGZOL5+g==", "dev": true, "requires": { - "spdx-expression-parse": "3.0.0", - "spdx-license-ids": "3.0.0" + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" } }, "spdx-exceptions": { @@ -9353,8 +9353,8 @@ "integrity": "sha512-Yg6D3XpRD4kkOmTpdgbUiEJFKghJH03fiC1OPll5h/0sO6neh2jqRDVHOQ4o/LMea0tgCkbMgea5ip/e+MkWyg==", "dev": true, "requires": { - "spdx-exceptions": "2.1.0", - "spdx-license-ids": "3.0.0" + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" } }, "spdx-license-ids": { @@ -9369,7 +9369,7 @@ "integrity": "sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw==", "dev": true, "requires": { - "extend-shallow": "3.0.2" + "extend-shallow": "^3.0.0" } }, "sprintf-js": { @@ -9384,14 +9384,14 @@ "integrity": "sha1-Ew9Zde3a2WPx1W+SuaxsUfqfg+s=", "dev": true, "requires": { - "asn1": "0.2.3", - "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.1", - "dashdash": "1.14.1", - "ecc-jsbn": "0.1.1", - "getpass": "0.1.7", - "jsbn": "0.1.1", - "tweetnacl": "0.14.5" + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "tweetnacl": "~0.14.0" } }, "static-extend": { @@ -9400,8 +9400,8 @@ "integrity": "sha1-YICcOcv/VTNyJv1eC1IPNB8ftcY=", "dev": true, "requires": { - "define-property": "0.2.5", - "object-copy": "0.1.0" + "define-property": "^0.2.5", + "object-copy": "^0.1.0" }, "dependencies": { "define-property": { @@ -9410,7 +9410,7 @@ "integrity": "sha1-w1se+RjsPJkPmlvFe+BKrOxcgRY=", "dev": true, "requires": { - "is-descriptor": "0.1.6" + "is-descriptor": "^0.1.0" } } } @@ -9421,7 +9421,7 @@ "integrity": "sha1-osfIWH5U2UJ+qe2zrD8s1SLfN4s=", "dev": true, "requires": { - "readable-stream": "2.3.6" + "readable-stream": "^2.0.1" } }, "stealthy-require": { @@ -9436,8 +9436,8 @@ "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.6" + "inherits": "~2.0.1", + "readable-stream": "^2.0.2" } }, "stream-combiner2": { @@ -9446,8 +9446,8 @@ "integrity": "sha1-+02KFCDqNidk4hrUeAOXvry0HL4=", "dev": true, "requires": { - "duplexer2": "0.1.4", - "readable-stream": "2.3.6" + "duplexer2": "~0.1.0", + "readable-stream": "^2.0.2" } }, "stream-http": { @@ -9456,11 +9456,11 @@ "integrity": "sha512-+TSkfINHDo4J+ZobQLWiMouQYB+UVYFttRA94FpEzzJ7ZdqcL4uUUQ7WkdkI4DSozGmgBUE/a47L+38PenXhUw==", "dev": true, "requires": { - "builtin-status-codes": "3.0.0", - "inherits": "2.0.3", - "readable-stream": "2.3.6", - "to-arraybuffer": "1.0.1", - "xtend": "4.0.1" + "builtin-status-codes": "^3.0.0", + "inherits": "^2.0.1", + "readable-stream": "^2.3.6", + "to-arraybuffer": "^1.0.0", + "xtend": "^4.0.0" } }, "stream-splicer": { @@ -9469,8 +9469,8 @@ "integrity": "sha1-G2O+Q4oTPktnHMGTUZdgAXWRDYM=", "dev": true, "requires": { - "inherits": "2.0.3", - "readable-stream": "2.3.6" + "inherits": "^2.0.1", + "readable-stream": "^2.0.2" } }, "strict-uri-encode": { @@ -9484,8 +9484,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" }, "dependencies": { "ansi-regex": { @@ -9500,7 +9500,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } } } @@ -9511,7 +9511,7 @@ "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "requires": { - "safe-buffer": "5.1.2" + "safe-buffer": "~5.1.0" } }, "stringstream": { @@ -9526,7 +9526,7 @@ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } }, "strip-bom": { @@ -9535,7 +9535,7 @@ "integrity": "sha1-YhmoVhZSBJHzV4i9vxRHqZx+aw4=", "dev": true, "requires": { - "is-utf8": "0.2.1" + "is-utf8": "^0.2.0" } }, "strip-eof": { @@ -9550,7 +9550,7 @@ "integrity": "sha1-DHlipq3vp7vUrDZkYKY4VSrhoKI=", "dev": true, "requires": { - "get-stdin": "4.0.1" + "get-stdin": "^4.0.1" } }, "strip-json-comments": { @@ -9565,7 +9565,7 @@ "integrity": "sha1-9izxdYHplrSPyWVpn1TAauJouNI=", "dev": true, "requires": { - "minimist": "1.2.0" + "minimist": "^1.1.0" }, "dependencies": { "minimist": { @@ -9599,7 +9599,7 @@ "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", "dev": true, "requires": { - "acorn-node": "1.3.0" + "acorn-node": "^1.2.0" } }, "table": { @@ -9608,12 +9608,12 @@ "integrity": "sha512-UUkEAPdSGxtRpiV9ozJ5cMTtYiqz7Ni1OGqLXRCynrvzdtR1p+cfOWe2RJLwvUG8hNanaSRjecIqwOjqeatDsA==", "dev": true, "requires": { - "ajv": "5.5.2", - "ajv-keywords": "2.1.1", - "chalk": "2.4.1", - "lodash": "4.17.10", + "ajv": "^5.2.3", + "ajv-keywords": "^2.1.0", + "chalk": "^2.1.0", + "lodash": "^4.17.4", "slice-ansi": "1.0.0", - "string-width": "2.1.1" + "string-width": "^2.1.1" }, "dependencies": { "ansi-styles": { @@ -9622,7 +9622,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.1" + "color-convert": "^1.9.0" } }, "chalk": { @@ -9631,9 +9631,9 @@ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.4.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "supports-color": { @@ -9642,7 +9642,7 @@ "integrity": "sha512-zjaXglF5nnWpsq470jSv6P9DwPvgLkuapYmfDm3JWOm0vkNTVF2tI4UrN2r6jH1qM/uc/WtxYY1hYoA2dOKj5w==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } } } @@ -9653,9 +9653,9 @@ "integrity": "sha1-jk0qJWwOIYXGsYrWlK7JaLg8sdE=", "dev": true, "requires": { - "block-stream": "0.0.9", - "fstream": "1.0.11", - "inherits": "2.0.3" + "block-stream": "*", + "fstream": "^1.0.2", + "inherits": "2" } }, "test-exclude": { @@ -9664,11 +9664,11 @@ "integrity": "sha512-qpqlP/8Zl+sosLxBcVKl9vYy26T9NPalxSzzCP/OY6K7j938ui2oKgo+kRZYfxAeIpLqpbVnsHq1tyV70E4lWQ==", "dev": true, "requires": { - "arrify": "1.0.1", - "micromatch": "3.1.10", - "object-assign": "4.1.1", - "read-pkg-up": "1.0.1", - "require-main-filename": "1.0.1" + "arrify": "^1.0.1", + "micromatch": "^3.1.8", + "object-assign": "^4.1.0", + "read-pkg-up": "^1.0.1", + "require-main-filename": "^1.0.1" } }, "text-encoding": { @@ -9695,8 +9695,8 @@ "integrity": "sha1-AARWmzfHx0ujnEPzzteNGtlBQL4=", "dev": true, "requires": { - "readable-stream": "2.3.6", - "xtend": "4.0.1" + "readable-stream": "^2.1.5", + "xtend": "~4.0.1" } }, "timers-browserify": { @@ -9705,7 +9705,7 @@ "integrity": "sha1-ycWLV1voQHN1y14kYtrO50NZ9B0=", "dev": true, "requires": { - "process": "0.11.10" + "process": "~0.11.0" } }, "tmp": { @@ -9714,7 +9714,7 @@ "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, "requires": { - "os-tmpdir": "1.0.2" + "os-tmpdir": "~1.0.2" } }, "to-arraybuffer": { @@ -9735,7 +9735,7 @@ "integrity": "sha1-KXWIt7Dn4KwI4E5nL4XB9JmeF68=", "dev": true, "requires": { - "kind-of": "3.2.2" + "kind-of": "^3.0.2" }, "dependencies": { "kind-of": { @@ -9744,7 +9744,7 @@ "integrity": "sha1-MeohpzS6ubuw8yRm2JOupR5KPGQ=", "dev": true, "requires": { - "is-buffer": "1.1.6" + "is-buffer": "^1.1.5" } } } @@ -9755,10 +9755,10 @@ "integrity": "sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw==", "dev": true, "requires": { - "define-property": "2.0.2", - "extend-shallow": "3.0.2", - "regex-not": "1.0.2", - "safe-regex": "1.1.0" + "define-property": "^2.0.2", + "extend-shallow": "^3.0.2", + "regex-not": "^1.0.2", + "safe-regex": "^1.1.0" } }, "to-regex-range": { @@ -9767,8 +9767,8 @@ "integrity": "sha1-fIDBe53+vlmeJzZ+DU3VWQFB2zg=", "dev": true, "requires": { - "is-number": "3.0.0", - "repeat-string": "1.6.1" + "is-number": "^3.0.0", + "repeat-string": "^1.6.1" } }, "tough-cookie": { @@ -9777,7 +9777,7 @@ "integrity": "sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA==", "dev": true, "requires": { - "punycode": "1.4.1" + "punycode": "^1.4.1" }, "dependencies": { "punycode": { @@ -9794,7 +9794,7 @@ "integrity": "sha1-qLE/1r/SSJUZZ0zN5VujaTtwbQk=", "dev": true, "requires": { - "punycode": "2.1.1" + "punycode": "^2.1.0" } }, "trim-newlines": { @@ -9815,7 +9815,7 @@ "integrity": "sha1-fskRMJJHZsf1c74wIMNPj9/QDWI=", "dev": true, "requires": { - "glob": "6.0.4" + "glob": "^6.0.4" }, "dependencies": { "glob": { @@ -9824,11 +9824,11 @@ "integrity": "sha1-DwiGD2oVUSey+t1PnOJLGqtuTSI=", "dev": true, "requires": { - "inflight": "1.0.6", - "inherits": "2.0.3", - "minimatch": "3.0.4", - "once": "1.4.0", - "path-is-absolute": "1.0.1" + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "2 || 3", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" } } } @@ -9845,7 +9845,7 @@ "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "dev": true, "requires": { - "safe-buffer": "5.1.2" + "safe-buffer": "^5.0.1" } }, "tweetnacl": { @@ -9861,7 +9861,7 @@ "integrity": "sha1-WITKtRLPHTVeP7eE8wgEsrUg23I=", "dev": true, "requires": { - "prelude-ls": "1.1.2" + "prelude-ls": "~1.1.2" } }, "type-detect": { @@ -9905,10 +9905,10 @@ "integrity": "sha1-XHHDTLW61dzr4+oM0IIHulqhrqQ=", "dev": true, "requires": { - "arr-union": "3.1.0", - "get-value": "2.0.6", - "is-extendable": "0.1.1", - "set-value": "0.4.3" + "arr-union": "^3.1.0", + "get-value": "^2.0.6", + "is-extendable": "^0.1.1", + "set-value": "^0.4.3" }, "dependencies": { "extend-shallow": { @@ -9917,7 +9917,7 @@ "integrity": "sha1-Ua99YUrZqfYQ6huvu5idaxxWiQ8=", "dev": true, "requires": { - "is-extendable": "0.1.1" + "is-extendable": "^0.1.0" } }, "set-value": { @@ -9926,10 +9926,10 @@ "integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=", "dev": true, "requires": { - "extend-shallow": "2.0.1", - "is-extendable": "0.1.1", - "is-plain-object": "2.0.4", - "to-object-path": "0.3.0" + "extend-shallow": "^2.0.1", + "is-extendable": "^0.1.1", + "is-plain-object": "^2.0.1", + "to-object-path": "^0.3.0" } } } @@ -9946,8 +9946,8 @@ "integrity": "sha1-g3aHP30jNRef+x5vw6jtDfyKtVk=", "dev": true, "requires": { - "has-value": "0.3.1", - "isobject": "3.0.1" + "has-value": "^0.3.1", + "isobject": "^3.0.0" }, "dependencies": { "has-value": { @@ -9956,9 +9956,9 @@ "integrity": "sha1-ex9YutpiyoJ+wKIHgCVlSEWZXh8=", "dev": true, "requires": { - "get-value": "2.0.6", - "has-values": "0.1.4", - "isobject": "2.1.0" + "get-value": "^2.0.3", + "has-values": "^0.1.4", + "isobject": "^2.0.0" }, "dependencies": { "isobject": { @@ -10016,7 +10016,7 @@ "integrity": "sha512-6UJEQM/L+mzC3ZJNM56Q4DFGLX/evKGRg15UJHGB9X5j5Z3AFbgZvjUh2yq/UJUY4U5dh7Fal++XbNg1uzpRAw==", "dev": true, "requires": { - "kind-of": "6.0.2" + "kind-of": "^6.0.2" } }, "user-home": { @@ -10025,7 +10025,7 @@ "integrity": "sha1-nHC/2Babwdy/SGBODwS4tJzenp8=", "dev": true, "requires": { - "os-homedir": "1.0.2" + "os-homedir": "^1.0.0" } }, "uswds": { @@ -10034,19 +10034,19 @@ "integrity": "sha512-ivtLeJfd61OwqfrV8FMEJ8THP63fGTGYc2JSHVLBBuekbGHMv5KcpZhiY95P0fvQXbdbFQCqO5gT7n1vVsOyyQ==", "dev": true, "requires": { - "@types/node": "8.10.19", - "array-filter": "1.0.0", - "array-foreach": "1.0.2", - "browserify": "13.3.0", - "classlist-polyfill": "1.2.0", - "domready": "1.0.8", - "elem-dataset": "1.1.1", - "lodash.debounce": "4.0.8", - "object-assign": "4.1.1", - "receptor": "1.0.0", - "resolve-id-refs": "0.1.0", - "typescript": "2.9.1", - "yargs": "8.0.2" + "@types/node": "^8.5.5", + "array-filter": "^1.0.0", + "array-foreach": "^1.0.2", + "browserify": "^13.0.0", + "classlist-polyfill": "^1.0.3", + "domready": "^1.0.8", + "elem-dataset": "^1.1.1", + "lodash.debounce": "^4.0.7", + "object-assign": "^4.1.1", + "receptor": "^1.0.0", + "resolve-id-refs": "^0.1.0", + "typescript": "^2.4.1", + "yargs": "^8.0.2" }, "dependencies": { "@types/node": { @@ -10067,10 +10067,10 @@ "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", "dev": true, "requires": { - "graceful-fs": "4.1.11", - "parse-json": "2.2.0", - "pify": "2.3.0", - "strip-bom": "3.0.0" + "graceful-fs": "^4.1.2", + "parse-json": "^2.2.0", + "pify": "^2.0.0", + "strip-bom": "^3.0.0" } }, "os-locale": { @@ -10079,9 +10079,9 @@ "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", "dev": true, "requires": { - "execa": "0.7.0", - "lcid": "1.0.0", - "mem": "1.1.0" + "execa": "^0.7.0", + "lcid": "^1.0.0", + "mem": "^1.1.0" } }, "path-type": { @@ -10090,7 +10090,7 @@ "integrity": "sha1-8BLMuEFbcJb8LaoQVMPXI4lZTHM=", "dev": true, "requires": { - "pify": "2.3.0" + "pify": "^2.0.0" } }, "read-pkg": { @@ -10099,9 +10099,9 @@ "integrity": "sha1-jvHAYjxqbbDcZxPEv6xGMysjaPg=", "dev": true, "requires": { - "load-json-file": "2.0.0", - "normalize-package-data": "2.4.0", - "path-type": "2.0.0" + "load-json-file": "^2.0.0", + "normalize-package-data": "^2.3.2", + "path-type": "^2.0.0" } }, "read-pkg-up": { @@ -10110,8 +10110,8 @@ "integrity": "sha1-a3KoBImE4MQeeVEP1en6mbO1Sb4=", "dev": true, "requires": { - "find-up": "2.1.0", - "read-pkg": "2.0.0" + "find-up": "^2.0.0", + "read-pkg": "^2.0.0" } }, "strip-bom": { @@ -10132,19 +10132,19 @@ "integrity": "sha1-YpmpBVsc78lp/355wdkY3Osiw2A=", "dev": true, "requires": { - "camelcase": "4.1.0", - "cliui": "3.2.0", - "decamelize": "1.2.0", - "get-caller-file": "1.0.2", - "os-locale": "2.1.0", - "read-pkg-up": "2.0.0", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "2.1.1", - "which-module": "2.0.0", - "y18n": "3.2.1", - "yargs-parser": "7.0.0" + "camelcase": "^4.1.0", + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "get-caller-file": "^1.0.1", + "os-locale": "^2.0.0", + "read-pkg-up": "^2.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^7.0.0" } }, "yargs-parser": { @@ -10153,7 +10153,7 @@ "integrity": "sha1-jQrELxbqVd69MyyvTEA4s+P139k=", "dev": true, "requires": { - "camelcase": "4.1.0" + "camelcase": "^4.1.0" } } } @@ -10193,7 +10193,7 @@ "integrity": "sha1-qrGh+jDUX4jdMhFIh1rALAtV5bQ=", "dev": true, "requires": { - "user-home": "1.1.1" + "user-home": "^1.1.1" }, "dependencies": { "user-home": { @@ -10210,8 +10210,8 @@ "integrity": "sha512-63ZOUnL4SIXj4L0NixR3L1lcjO38crAbgrTpl28t8jjrfuiOBL5Iygm+60qPs/KsZGzPNg6Smnc/oY16QTjF0g==", "dev": true, "requires": { - "spdx-correct": "3.0.0", - "spdx-expression-parse": "3.0.0" + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" } }, "verror": { @@ -10220,13 +10220,14 @@ "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "dev": true, "requires": { - "assert-plus": "1.0.0", + "assert-plus": "^1.0.0", "core-util-is": "1.0.2", - "extsprintf": "1.3.0" + "extsprintf": "^1.2.0" } }, "vets-json-schema": { "version": "git+https://github.com/department-of-veterans-affairs/vets-json-schema.git#ae6a9b1c403a3c55a3c455424eacfa6d5b4669ef", + "from": "git+https://github.com/department-of-veterans-affairs/vets-json-schema.git", "dev": true }, "vm-browserify": { @@ -10244,7 +10245,7 @@ "integrity": "sha1-gqwr/2PZUOqeMYmlimViX+3xkEU=", "dev": true, "requires": { - "browser-process-hrtime": "0.1.2" + "browser-process-hrtime": "^0.1.2" } }, "warning": { @@ -10252,7 +10253,7 @@ "resolved": "https://registry.npmjs.org/warning/-/warning-3.0.0.tgz", "integrity": "sha1-MuU3fLVy3kqwR1O9+IIcAe1gW3w=", "requires": { - "loose-envify": "1.3.1" + "loose-envify": "^1.0.0" } }, "webidl-conversions": { @@ -10295,9 +10296,9 @@ "integrity": "sha512-FwygsxsXx27x6XXuExA/ox3Ktwcbf+OAvrKmLulotDAiO1Q6ixchPFaHYsis2zZBZSJTR0+dR+JVtf7MlbqZjw==", "dev": true, "requires": { - "lodash.sortby": "4.7.0", - "tr46": "1.0.1", - "webidl-conversions": "4.0.2" + "lodash.sortby": "^4.7.0", + "tr46": "^1.0.1", + "webidl-conversions": "^4.0.2" } }, "which": { @@ -10306,7 +10307,7 @@ "integrity": "sha512-xcJpopdamTuY5duC/KnTTNBraPK54YwpenP4lzxU8H91GudWpFv38u0CKjclE1Wi2EH2EDz5LRcHcKbCIzqGyg==", "dev": true, "requires": { - "isexe": "2.0.0" + "isexe": "^2.0.0" } }, "which-module": { @@ -10321,7 +10322,7 @@ "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "dev": true, "requires": { - "string-width": "2.1.1" + "string-width": "^1.0.2 || 2" } }, "wordwrap": { @@ -10336,8 +10337,8 @@ "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "dev": true, "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" }, "dependencies": { "is-fullwidth-code-point": { @@ -10346,7 +10347,7 @@ "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "string-width": { @@ -10355,9 +10356,9 @@ "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } } } @@ -10374,7 +10375,7 @@ "integrity": "sha1-X8A4KOJkzqP+kUVUdvejxWbLB1c=", "dev": true, "requires": { - "mkdirp": "0.5.1" + "mkdirp": "^0.5.1" } }, "ws": { @@ -10383,8 +10384,8 @@ "integrity": "sha512-ZGh/8kF9rrRNffkLFV4AzhvooEclrOH0xaugmqGsIfFgOE/pIz4fMc4Ef+5HSQqTEug2S9JZIWDR47duDSLfaA==", "dev": true, "requires": { - "async-limiter": "1.0.0", - "safe-buffer": "5.1.2" + "async-limiter": "~1.0.0", + "safe-buffer": "~5.1.0" } }, "xml-name-validator": { @@ -10417,19 +10418,19 @@ "integrity": "sha1-a6MY6xaWFyf10oT46gA+jWFU0Mg=", "dev": true, "requires": { - "camelcase": "3.0.0", - "cliui": "3.2.0", - "decamelize": "1.2.0", - "get-caller-file": "1.0.2", - "os-locale": "1.4.0", - "read-pkg-up": "1.0.1", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "1.0.2", - "which-module": "1.0.0", - "y18n": "3.2.1", - "yargs-parser": "5.0.0" + "camelcase": "^3.0.0", + "cliui": "^3.2.0", + "decamelize": "^1.1.1", + "get-caller-file": "^1.0.1", + "os-locale": "^1.4.0", + "read-pkg-up": "^1.0.1", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^1.0.2", + "which-module": "^1.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^5.0.0" }, "dependencies": { "camelcase": { @@ -10444,7 +10445,7 @@ "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "string-width": { @@ -10453,9 +10454,9 @@ "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } } } @@ -10466,7 +10467,7 @@ "integrity": "sha1-J17PDX/+Bcd+ZOfIbkzZS/DhIoo=", "dev": true, "requires": { - "camelcase": "3.0.0" + "camelcase": "^3.0.0" }, "dependencies": { "camelcase": { diff --git a/package.json b/package.json index a6eff44..ab97c24 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "test": "test" }, "scripts": { - "build": "rm -rf lib/{js,css} && npx babel src/js --out-dir lib/js && npm run compile-sass && npm run autoprefix", + "build": "rm -rf lib/{js,css} && npx babel src/js --source-maps --out-dir lib/js && npm run compile-sass && npm run autoprefix", "compile-sass": "node-sass --source-map lib/css/ --source-map-embed false --include-path src/scss/styles.scss src/scss/styles.scss -o lib/css/", "autoprefix": "npx postcss lib/css/styles.css --use autoprefixer -map -d lib/css/", "lint": "npm run lint:js && npm run lint:sass",