{"_id":"@ausuliv/frontend-components-utilities","_rev":"4-6423f5040537b2721234a744feffd954","name":"@ausuliv/frontend-components-utilities","dist-tags":{"latest":"4.0.14"},"versions":{"4.0.10":{"name":"@ausuliv/frontend-components-utilities","version":"4.0.10","author":"","license":"Apache-2.0","_id":"@ausuliv/frontend-components-utilities@4.0.10","maintainers":[{"name":"ausuliv","email":"ausulliv@redhat.com"}],"homepage":"https://github.com/RedHatInsights/frontend-components/tree/master/packages/utils#readme","bugs":{"url":"https://github.com/RedHatInsights/frontend-components/issues"},"dist":{"shasum":"fce0f64ff20fb4d9c596f76e841e9b71e4ca7cf2","tarball":"https://registry.npmjs.org/@ausuliv/frontend-components-utilities/-/frontend-components-utilities-4.0.10.tgz","fileCount":250,"integrity":"sha512-NulyQL904/Kr4GmGDK+yf3vm/ELPcOSlAEicSHhAVHho0nbvIM0hxsBoI1kFyUDPTmtHl9ExIlenIi/DUUMEhA==","signatures":[{"sig":"MEQCICZjdae6Sptv2JRZwNLHQNysG1eXkbQiGwckECnPfEfMAiAhqtmRbouqA4uVncUXfGtjD8yAy5IvKrMRLH3pDCst+w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":292777},"main":"index.js","types":"./index.d.ts","module":"esm/index.js","gitHead":"eb0fd267e93ac241f9c77f84ad84b23726196fbe","scripts":{"build":"npm run build:js && npm run build:esm && npm run build:css && npm run build:packages && npm run transform:css","start":"concurrently \"npm run build:esm -- --watch\" \"npm run build:js -- --watch\" \"npm run build:css -- --watch\" \"npm run build:packages\"","build:js":"tsc -p tsconfig.cjs.json","build:css":"node ../../scripts/build-styles.js","build:esm":"MODULES_ROOT=../../ tsc --module es2015 --target es5 -p tsconfig.esm.json","transform:css":"node ../../scripts/transform-scss.js","build:packages":"node ../../scripts/build-packages.js --forceTypes"},"_npmUser":{"name":"ausuliv","email":"ausulliv@redhat.com"},"repository":{"url":"git+https://github.com/RedHatInsights/frontend-components.git","type":"git"},"_npmVersion":"10.2.4","description":"Util functions for RedHat Cloud Services project.","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"axios":"^0.28.1","p-all":"^5.0.0","mkdirp":"^1.0.4","commander":"^2.20.3","@sentry/browser":"^5.30.0","react-content-loader":"^6.2.0","awesome-debounce-promise":"^2.1.0","@redhat-cloud-services/types":"^0.0.24","@redhat-cloud-services/rbac-client":"^1.0.100"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"glob":"10.3.3","@types/react":"^18.0.0"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","react-redux":">=7.0.0","react-router-dom":"^5.0.0 || ^6.0.0","@patternfly/react-core":"6.0.0-alpha.61","@patternfly/react-table":"6.0.0-alpha.61"},"_npmOperationalInternal":{"tmp":"tmp/frontend-components-utilities_4.0.10_1718285997378_0.20928006413888522","host":"s3://npm-registry-packages"}},"4.0.11":{"name":"@ausuliv/frontend-components-utilities","version":"4.0.11","author":"","license":"Apache-2.0","_id":"@ausuliv/frontend-components-utilities@4.0.11","homepage":"https://github.com/RedHatInsights/frontend-components/tree/master/packages/utils#readme","bugs":{"url":"https://github.com/RedHatInsights/frontend-components/issues"},"dist":{"shasum":"6908e0874088a917252ba503a7def171905b2bce","tarball":"https://registry.npmjs.org/@ausuliv/frontend-components-utilities/-/frontend-components-utilities-4.0.11.tgz","fileCount":250,"integrity":"sha512-p292S1pFES8NO6D943YWvpyAHRxCJsyCf0CcLjtifNsczmHUufyvK5pN4YxZ0+ROW76cw4Hmq9OZuLFcMZOnBQ==","signatures":[{"sig":"MEUCIQCN/xl/ps3OgarvdGRfRESucBqvYaa93rEPCHN+qxLpMAIgV/2UDjMO5HJQFJ6mQdn6weIWRh/eHShu738nJ4twGSQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":292637},"main":"index.js","types":"./index.d.ts","module":"esm/index.js","gitHead":"aafe63f5615d6af2f54b40b4035f093ff53d7264","scripts":{"build":"npm run build:js && npm run build:esm && npm run build:css && npm run build:packages && npm run transform:css","start":"concurrently \"npm run build:esm -- --watch\" \"npm run build:js -- --watch\" \"npm run build:css -- --watch\" \"npm run build:packages\"","build:js":"tsc -p tsconfig.cjs.json","build:css":"node ../../scripts/build-styles.js","build:esm":"MODULES_ROOT=../../ tsc --module es2015 --target es5 -p tsconfig.esm.json","transform:css":"node ../../scripts/transform-scss.js","build:packages":"node ../../scripts/build-packages.js --forceTypes"},"_npmUser":{"name":"ausuliv","email":"ausulliv@redhat.com"},"repository":{"url":"git+https://github.com/RedHatInsights/frontend-components.git","type":"git"},"_npmVersion":"10.2.4","description":"Util functions for RedHat Cloud Services project.","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"axios":"^0.28.1","p-all":"^5.0.0","mkdirp":"^1.0.4","commander":"^2.20.3","@sentry/browser":"^5.30.0","react-content-loader":"^6.2.0","awesome-debounce-promise":"^2.1.0","@redhat-cloud-services/types":"^0.0.24","@redhat-cloud-services/rbac-client":"^1.0.100"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"glob":"10.3.3","@types/react":"^18.0.0"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","react-redux":">=7.0.0","react-router-dom":"^5.0.0 || ^6.0.0","@patternfly/react-core":"6.0.0-alpha.61","@patternfly/react-table":"6.0.0-alpha.70"},"_npmOperationalInternal":{"tmp":"tmp/frontend-components-utilities_4.0.11_1718990854847_0.6051628913227454","host":"s3://npm-registry-packages"}},"4.0.12":{"name":"@ausuliv/frontend-components-utilities","version":"4.0.12","author":"","license":"Apache-2.0","_id":"@ausuliv/frontend-components-utilities@4.0.12","homepage":"https://github.com/RedHatInsights/frontend-components/tree/master/packages/utils#readme","bugs":{"url":"https://github.com/RedHatInsights/frontend-components/issues"},"dist":{"shasum":"957603fecce60c73cdabb53e80bfe82b5323ebce","tarball":"https://registry.npmjs.org/@ausuliv/frontend-components-utilities/-/frontend-components-utilities-4.0.12.tgz","fileCount":250,"integrity":"sha512-Du+TOl7KaU1jSGXqeiKBpf8TZTze9uE+k8/TPm/VRwvnX/qj6NhyUgFZp8gxDJYRupzcHYIDnA9PchJg9sZLlg==","signatures":[{"sig":"MEQCIFTRT6tzQfJo55q/Od6FRdh0vtzGrSn0cJGiAQh2gfOjAiA+80eTBZJwKieENWXLKi0IGMCXr2BwWVrLdOIV4YsC3w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":292581},"main":"index.js","types":"./index.d.ts","module":"esm/index.js","gitHead":"aafe63f5615d6af2f54b40b4035f093ff53d7264","scripts":{"build":"npm run build:js && npm run build:esm && npm run build:css && npm run build:packages && npm run transform:css","start":"concurrently \"npm run build:esm -- --watch\" \"npm run build:js -- --watch\" \"npm run build:css -- --watch\" \"npm run build:packages\"","build:js":"tsc -p tsconfig.cjs.json","build:css":"node ../../scripts/build-styles.js","build:esm":"MODULES_ROOT=../../ tsc --module es2015 --target es5 -p tsconfig.esm.json","transform:css":"node ../../scripts/transform-scss.js","build:packages":"node ../../scripts/build-packages.js --forceTypes"},"_npmUser":{"name":"ausuliv","email":"ausulliv@redhat.com"},"repository":{"url":"git+https://github.com/RedHatInsights/frontend-components.git","type":"git"},"_npmVersion":"10.2.4","description":"Util functions for RedHat Cloud Services project.","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"axios":"^0.28.1","p-all":"^5.0.0","mkdirp":"^1.0.4","commander":"^2.20.3","@sentry/browser":"^5.30.0","react-content-loader":"^6.2.0","awesome-debounce-promise":"^2.1.0","@redhat-cloud-services/types":"^0.0.24","@redhat-cloud-services/rbac-client":"^1.0.100"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"glob":"10.3.3","@types/react":"^18.0.0"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","react-redux":">=7.0.0","react-router-dom":"^5.0.0 || ^6.0.0","@patternfly/react-core":"6.0.0-alpha.61","@patternfly/react-table":"6.0.0-alpha.70"},"_npmOperationalInternal":{"tmp":"tmp/frontend-components-utilities_4.0.12_1718992941276_0.6441315694760166","host":"s3://npm-registry-packages"}},"4.0.13":{"name":"@ausuliv/frontend-components-utilities","version":"4.0.13","author":"","license":"Apache-2.0","_id":"@ausuliv/frontend-components-utilities@4.0.13","maintainers":[{"name":"ausuliv","email":"ausulliv@redhat.com"}],"homepage":"https://github.com/RedHatInsights/frontend-components/tree/master/packages/utils#readme","bugs":{"url":"https://github.com/RedHatInsights/frontend-components/issues"},"dist":{"shasum":"56a7f8c6eff549011d103a765e7470dab9450dbe","tarball":"https://registry.npmjs.org/@ausuliv/frontend-components-utilities/-/frontend-components-utilities-4.0.13.tgz","fileCount":250,"integrity":"sha512-eQWk0ATeaFunJaqWZKwldEE77+k5z+8MzBDiLI6az0IWp8mykZcZnkV72517r6YI/UPU4Nm50UtMd1Gw8q7yIA==","signatures":[{"sig":"MEUCIQC+8zMDuYrTr+cPZaWrUldpH8fNYnZhOY7tlNLgn9MiDwIgKZ871uh/Jh7k4YIz2OsQvAoBZEYH9i+ij8Xp1PblD1k=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":292583},"main":"index.js","types":"./index.d.ts","module":"esm/index.js","gitHead":"c67e9a6a9ad28978a1f4bd150587981a848e161e","scripts":{"build":"npm run build:js && npm run build:esm && npm run build:css && npm run build:packages && npm run transform:css","start":"concurrently \"npm run build:esm -- --watch\" \"npm run build:js -- --watch\" \"npm run build:css -- --watch\" \"npm run build:packages\"","build:js":"tsc -p tsconfig.cjs.json","build:css":"node ../../scripts/build-styles.js","build:esm":"MODULES_ROOT=../../ tsc --module es2015 --target es5 -p tsconfig.esm.json","transform:css":"node ../../scripts/transform-scss.js","build:packages":"node ../../scripts/build-packages.js --forceTypes"},"_npmUser":{"name":"ausuliv","email":"ausulliv@redhat.com"},"repository":{"url":"git+https://github.com/RedHatInsights/frontend-components.git","type":"git"},"_npmVersion":"10.2.4","description":"Util functions for RedHat Cloud Services project.","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"axios":"^0.28.1","p-all":"^5.0.0","mkdirp":"^1.0.4","commander":"^2.20.3","@sentry/browser":"^5.30.0","react-content-loader":"^6.2.0","awesome-debounce-promise":"^2.1.0","@redhat-cloud-services/types":"^0.0.24","@redhat-cloud-services/rbac-client":"^1.0.100"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"glob":"10.3.3","@types/react":"^18.0.0"},"peerDependencies":{"react":"^18.2.0","react-dom":"^18.2.0","react-redux":">=7.0.0","react-router-dom":"^5.0.0 || ^6.0.0","@patternfly/react-core":"6.0.0-alpha.100","@patternfly/react-table":"6.0.0-alpha.101"},"_npmOperationalInternal":{"tmp":"tmp/frontend-components-utilities_4.0.13_1724251354425_0.6763099951685803","host":"s3://npm-registry-packages"}},"4.0.14":{"name":"@ausuliv/frontend-components-utilities","version":"4.0.14","description":"Util functions for RedHat Cloud Services project.","main":"index.js","module":"esm/index.js","publishConfig":{"access":"public"},"scripts":{"build":"npm run build:js && npm run build:esm && npm run build:css && npm run build:packages && npm run transform:css","build:css":"node ../../scripts/build-styles.js","build:packages":"node ../../scripts/build-packages.js --forceTypes","start":"concurrently \"npm run build:esm -- --watch\" \"npm run build:js -- --watch\" \"npm run build:css -- --watch\" \"npm run build:packages\"","build:esm":"MODULES_ROOT=../../ tsc --module es2015 --target es5 -p tsconfig.esm.json","build:js":"tsc -p tsconfig.cjs.json","transform:css":"node ../../scripts/transform-scss.js"},"repository":{"type":"git","url":"git+https://github.com/RedHatInsights/frontend-components.git"},"author":"","license":"Apache-2.0","bugs":{"url":"https://github.com/RedHatInsights/frontend-components/issues"},"homepage":"https://github.com/RedHatInsights/frontend-components/tree/master/packages/utils#readme","peerDependencies":{"@patternfly/react-core":"6.0.0-prerelease.21","@patternfly/react-table":"6.0.0-prerelease.22","react":"^18.2.0","react-dom":"^18.2.0","react-redux":">=7.0.0","react-router-dom":"^5.0.0 || ^6.0.0"},"dependencies":{"@redhat-cloud-services/rbac-client":"^1.0.100","@redhat-cloud-services/types":"^0.0.24","@sentry/browser":"^5.30.0","awesome-debounce-promise":"^2.1.0","axios":"^0.28.1","commander":"^2.20.3","mkdirp":"^1.0.4","p-all":"^5.0.0","react-content-loader":"^6.2.0"},"devDependencies":{"@types/react":"^18.0.0","glob":"10.3.3"},"sideEffects":false,"_id":"@ausuliv/frontend-components-utilities@4.0.14","gitHead":"02f62422fa5dd04c598458354806e7cc9d6bcebd","types":"./index.d.ts","_nodeVersion":"20.17.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-VTv1tnnY1DcxZZR9XsVgXzM6OEqubsxb5GBV6JpH6UJPZ97cRrijLvNm49FyinUP3ZdUEJkiEC7RZSeDqWHktQ==","shasum":"390612349b4701be4a67561df683f2b7f980d8aa","tarball":"https://registry.npmjs.org/@ausuliv/frontend-components-utilities/-/frontend-components-utilities-4.0.14.tgz","fileCount":250,"unpackedSize":292590,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDDEKgNWiPxjbFFyt2FpV6pGiZRGwW/DdjNhRz06Ur8ygIgJn/3Vb8nGGLSP0bke1OeXhy5wZ0Cm6d8bDAz9zlBswE="}]},"_npmUser":{"name":"ausuliv","email":"ausulliv@redhat.com"},"directories":{},"maintainers":[{"name":"ausuliv","email":"ausulliv@redhat.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/frontend-components-utilities_4.0.14_1728584462920_0.5152661568586538"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-13T13:39:57.279Z","modified":"2024-10-10T18:21:03.347Z","4.0.10":"2024-06-13T13:39:57.555Z","4.0.11":"2024-06-21T17:27:35.079Z","4.0.12":"2024-06-21T18:02:21.457Z","4.0.13":"2024-08-21T14:42:34.676Z","4.0.14":"2024-10-10T18:21:03.170Z"},"bugs":{"url":"https://github.com/RedHatInsights/frontend-components/issues"},"license":"Apache-2.0","homepage":"https://github.com/RedHatInsights/frontend-components/tree/master/packages/utils#readme","repository":{"type":"git","url":"git+https://github.com/RedHatInsights/frontend-components.git"},"description":"Util functions for RedHat Cloud Services project.","maintainers":[{"name":"ausuliv","email":"ausulliv@redhat.com"}],"readme":"# RedHat Cloud Services frontend components - utils\n\n[![npm version](https://badge.fury.io/js/%40redhat-cloud-services%2Ffrontend-components-utilities.svg)](https://badge.fury.io/js/%40redhat-cloud-services%2Ffrontend-components-utilities)\n\nThis package exports common functions to be used in other packages.\n\n## Installation\nWith NPM\n```bash\nnpm i -S @ausuliv/frontend-components-utilities\n```\n\nWith yarn\n```bash\nyarn add @ausuliv/frontend-components-utilities\n```\n\nThis package is dependent on [@redhat-cloud-services/frontend-components](https://www.npmjs.com/package/@redhat-cloud-services/frontend-components) it will automatically installed trough direct dependencies.\n\n## Migration guide\n### v2 -> v3\n\n### Import path change\n\nAssets are no longer under `/files` directory but directly at the root of the build directory.\n\n```jsx\n// v2\nimport { getRegistry } from '@ausuliv/frontend-components-utilities/Registry';\n\n// v3\nimport { getRegistry } from '@ausuliv/frontend-components-utilities/Registry';\n```\n\n#### No UMD build\n\nUtils package no longer provides UMD version of the build.\n\n#### RowLoader\n\nRowLoader component is no longer a part of `helpers` file but is now a stand-alone component. Import path has changed.\n\n```jsx\n// v2\nimport { RowLoader } from '@ausuliv/frontend-components-utilities/helpers'\n// v3\nimport RowLoader from '@ausuliv/frontend-components-utilities/RowLoader'\n```\n\n#### SCSS files\n\nSCSS files are now under `styles` directory.\n\n```scss\n/** v2 */\n@import '~@ausuliv/frontend-components-utilities/styles/all';\n/** v3 */\n@import '~@ausuliv/frontend-components-utilities/styles/all''\n\n```\n\n#### inventoryDependencies\n\nThis module is now deprecated. Use a new Inventory component compatible with chrome 2.0.\n\n#### parseCvssScore\n\nFunction `parseCvssScore` has been moved to a stand-alone file. Import path has changed.\n```jsx\n// v2\nimport { parseCvssScore } from '@ausuliv/frontend-components-utilities/helpers'\n// v3\nimport parseCvssScore from '@ausuliv/frontend-components-utilities/parseCvssScore'\n```\n\n## Documentation Links\n\n* Utils\n  * [redux](doc/redux.md)\n  * [routerParams](doc/routerParams.md)\n  * [debounce](doc/debounce.md)\n  * [cypress](doc/Cypress.md)\n  * [RBAC](doc/RBAC.md)\n\nAdditionaly it exports these utilities\n* AsyncComponent - class to load component via async calls\n* helpers - custom helper functions\n* MiddlewareListener - redux listener on actions, they can fire additional action or be cancelled\n* Registry - reducer registry\n* RouterParams - maps route to props\n* interceptors - to be used with axios clients\n* Styles - custom style functions in sass\n","readmeFilename":"README.md"}