From 370fd48a2c26748ec507052ac89a11a3d3849323 Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Mon, 5 Dec 2022 11:50:51 -0500 Subject: [PATCH 1/5] fix(util): fix config causing lint error --- .eslintrc.json | 3 +- package.json | 10 +- packages/module/package.json | 2 - yarn.lock | 408 +++++++++++++++++++++++++++-------- 4 files changed, 323 insertions(+), 100 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 571e04e..5a6b330 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,7 +2,8 @@ "env": { "browser": true, "node": true, - "es6": true + "es6": true, + "jest/globals": true }, "extends": [ "eslint:recommended", diff --git a/package.json b/package.json index 9b46006..88fb949 100644 --- a/package.json +++ b/package.json @@ -22,18 +22,14 @@ "generate": "yarn workspace @patternfly/react-catalog-view-extension generate" }, "devDependencies": { - "react": "^17", - "react-dom": "^17", + "react": "^18", + "react-dom": "^18", "concurrently": "^5.3.0", "eslint": "^8.0.1", - "eslint-plugin-import": "^2.25.2", "eslint-plugin-markdown": "^1.0.2", - "eslint-plugin-prettier": "^3.1.4", - "eslint-plugin-react": "^7.21.4", "eslint-config-standard-with-typescript": "^23.0.0", "eslint-plugin-n": "^15.0.0", - "eslint-plugin-promise": "^6.0.0", - "eslint-plugin-react-hooks": "^4.6.0", + "eslint-plugin-patternfly-react":"^4.80.4", "eslint-config-prettier": "8.5.0", "@typescript-eslint/eslint-plugin": "^5.42.0", "@typescript-eslint/parser": "^5.42.0", diff --git a/packages/module/package.json b/packages/module/package.json index 04fbbdd..605d2ba 100644 --- a/packages/module/package.json +++ b/packages/module/package.json @@ -61,8 +61,6 @@ "shx": "^0.3.2", "tslib": "^2.0.0", "typescript": "^4.7.4", - "react": "^17.0.0", - "react-dom": "^17.0.0", "@types/react": "^17.0.0", "@types/react-dom": "^17.0.0", "@patternfly/patternfly-a11y": "4.3.1" diff --git a/yarn.lock b/yarn.lock index f4342e3..fe43d51 100644 --- a/yarn.lock +++ b/yarn.lock @@ -91,6 +91,15 @@ json5 "^2.2.1" semver "^6.3.0" +"@babel/eslint-parser@^7.19.1": + version "7.19.1" + resolved "https://registry.yarnpkg.com/@babel/eslint-parser/-/eslint-parser-7.19.1.tgz#4f68f6b0825489e00a24b41b6a1ae35414ecd2f4" + integrity sha512-AqNf2QWt1rtu2/1rLswy6CDP7H9Oh3mMhk177Y67Rg8d7RD9WfOLLv8CGn6tisFvS2htm86yIe1yLF6I1UDaGQ== + dependencies: + "@nicolo-ribaudo/eslint-scope-5-internals" "5.1.1-v1" + eslint-visitor-keys "^2.1.0" + semver "^6.3.0" + "@babel/generator@^7.10.5", "@babel/generator@^7.18.2", "@babel/generator@^7.19.6", "@babel/generator@^7.20.0": version "7.20.0" resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.20.0.tgz#0bfc5379e0efb05ca6092091261fcdf7ec36249d" @@ -1185,6 +1194,21 @@ "@babel/helper-validator-option" "^7.18.6" "@babel/plugin-transform-typescript" "^7.18.6" +"@babel/runtime-corejs3@^7.10.2": + version "7.20.6" + resolved "https://registry.yarnpkg.com/@babel/runtime-corejs3/-/runtime-corejs3-7.20.6.tgz#63dae945963539ab0ad578efbf3eff271e7067ae" + integrity sha512-tqeujPiuEfcH067mx+7otTQWROVMKHXEaOQcAeNV5dDdbPWvPcFA8/W9LXw2NfjNmOetqLl03dfnG2WALPlsRQ== + dependencies: + core-js-pure "^3.25.1" + regenerator-runtime "^0.13.11" + +"@babel/runtime@^7.10.2", "@babel/runtime@^7.18.9": + version "7.20.6" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.6.tgz#facf4879bfed9b5326326273a64220f099b0fce3" + integrity sha512-Q+8MqP7TiHMWzSfwiJwXCjyf4GYA4Dgw3emg/7xmwsdLJOZUp+nMqcOwOzzYheuM1rhDu8FSj2l0aoMygEuXuA== + dependencies: + regenerator-runtime "^0.13.11" + "@babel/runtime@^7.12.5", "@babel/runtime@^7.9.2": version "7.20.1" resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.20.1.tgz#1148bb33ab252b165a06698fde7576092a78b4a9" @@ -1551,6 +1575,13 @@ resolved "https://registry.yarnpkg.com/@mdx-js/util/-/util-2.0.0-next.8.tgz#66ecc27b78e07a3ea2eb1a8fc5a99dfa0ba96690" integrity sha512-T0BcXmNzEunFkuxrO8BFw44htvTPuAoKbLvTG41otyZBDV1Rs+JMddcUuaP5vXpTWtgD3grhcrPEwyx88RUumQ== +"@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1": + version "5.1.1-v1" + resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129" + integrity sha512-54/JRvkLIzzDWshCWfuhadfrfZVPiElY8Fcgmg1HroEly/EDSszzhBAsarCux+D/kOslTRquNzuyGSmUSTTHGg== + dependencies: + eslint-scope "5.1.1" + "@nodelib/fs.scandir@2.1.5": version "2.1.5" resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" @@ -2609,6 +2640,14 @@ argparse@^2.0.1: resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== +aria-query@^4.2.2: + version "4.2.2" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b" + integrity sha512-o/HelwhuKpTj/frsOsbNLNgnNGVIFsVP/SW2BSF14gVl7kAfMOJ6/8wUAUvG1R1NHKrfG+2sHZTu0yauT1qBrA== + dependencies: + "@babel/runtime" "^7.10.2" + "@babel/runtime-corejs3" "^7.10.2" + aria-query@^5.0.0: version "5.1.3" resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.1.3.tgz#19db27cd101152773631396f7a95a3b58c22c35e" @@ -2652,6 +2691,17 @@ array-includes@^3.1.4, array-includes@^3.1.5: get-intrinsic "^1.1.1" is-string "^1.0.7" +array-includes@^3.1.6: + version "3.1.6" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.6.tgz#9e9e720e194f198266ba9e18c29e6a9b0e4b225f" + integrity sha512-sgTbLvL6cNnw24FnbaDyjmvddQ2ML8arZsgaJhoABMoplz/4QRhtrYS+alr1BUM1Bwp6dhx8vVCBSLG+StwOFw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + get-intrinsic "^1.1.3" + is-string "^1.0.7" + array-union@^1.0.1: version "1.0.2" resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" @@ -2684,14 +2734,14 @@ array.prototype.flat@^1.2.5: es-abstract "^1.19.2" es-shim-unscopables "^1.0.0" -array.prototype.flatmap@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.0.tgz#a7e8ed4225f4788a70cd910abcf0791e76a5534f" - integrity sha512-PZC9/8TKAIxcWKdyeb77EzULHPrIX/tIZebLJUQOMR1OwYosT8yggdfWScfTBCDj5utONvOuPQQumYsU2ULbkg== +array.prototype.flatmap@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/array.prototype.flatmap/-/array.prototype.flatmap-1.3.1.tgz#1aae7903c2100433cb8261cd4ed310aab5c4a183" + integrity sha512-8UGn9O1FDVvMNB0UlLv4voxRMze7+FpHyF5mSMRjWHUMlpoDViniy05870VlxhfgTnLbpuwTzvD76MTtWxB/mQ== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" es-shim-unscopables "^1.0.0" array.prototype.reduce@^1.0.4: @@ -2705,6 +2755,17 @@ array.prototype.reduce@^1.0.4: es-array-method-boxes-properly "^1.0.0" is-string "^1.0.7" +array.prototype.tosorted@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/array.prototype.tosorted/-/array.prototype.tosorted-1.1.1.tgz#ccf44738aa2b5ac56578ffda97c03fd3e23dd532" + integrity sha512-pZYPXPRl2PqWcsUs6LOMn+1f1532nEoPTYowBtqLwAW+W8vSVhkIGnmOX1t/UQjD6YGI0vcD2B1U7ZFGQH9jnQ== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + es-shim-unscopables "^1.0.0" + get-intrinsic "^1.1.3" + asn1.js@^5.2.0: version "5.4.1" resolved "https://registry.yarnpkg.com/asn1.js/-/asn1.js-5.4.1.tgz#11a980b84ebb91781ce35b0fdc2ee294e3783f07" @@ -2728,6 +2789,11 @@ assign-symbols@^1.0.0: resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" integrity sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw== +ast-types-flow@^0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/ast-types-flow/-/ast-types-flow-0.0.7.tgz#f70b735c6bca1a5c9c22d982c3e39e7feba3bdad" + integrity sha512-eBvWn1lvIApYMhzQMsu9ciLfkBY499mFZlNqG+/9WR7PVlroQw0vG30cOQQbaKz3sCEc44TAOu2ykzqXSNnwag== + ast-types@^0.14.2: version "0.14.2" resolved "https://registry.yarnpkg.com/ast-types/-/ast-types-0.14.2.tgz#600b882df8583e3cd4f2df5fa20fa83759d4bdfd" @@ -2802,6 +2868,11 @@ axe-core@^4.4.1: resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.5.1.tgz#04d561c11b6d76d096d34e9d14ba2c294fb20cdc" integrity sha512-1exVbW0X1O/HSr/WMwnaweyqcWOgZgLiVxdLG34pvSQk4NlYQr9OUy0JLwuhFfuVNQzzqgH57eYzkFBCb3bIsQ== +axe-core@^4.4.3: + version "4.5.2" + resolved "https://registry.yarnpkg.com/axe-core/-/axe-core-4.5.2.tgz#823fdf491ff717ac3c58a52631d4206930c1d9f7" + integrity sha512-u2MVsXfew5HBvjsczCv+xlwdNnB1oQR9HlAcsejZttNjKKSkeDNVwB1vMThIUIFI9GoT57Vtk8iQLwqOfAkboA== + axios@^0.18.1: version "0.18.1" resolved "https://registry.yarnpkg.com/axios/-/axios-0.18.1.tgz#ff3f0de2e7b5d180e757ad98000f1081b87bcea3" @@ -2817,6 +2888,11 @@ axios@^0.24.0: dependencies: follow-redirects "^1.14.4" +axobject-query@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-2.2.0.tgz#943d47e10c0b704aa42275e20edf3722648989be" + integrity sha512-Td525n+iPOOyUQIeBfcASuG6uJsDOITl7Mds5gFyerkWiX7qhUTdYUBlSgNMyVqtSJqwpt1kXGLdUt6SykLMRA== + babel-jest@^29.2.2: version "29.2.2" resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-29.2.2.tgz#2c15abd8c2081293c9c3f4f80a4ed1d51542fee5" @@ -4021,6 +4097,11 @@ core-js-compat@^3.21.0, core-js-compat@^3.22.1, core-js-compat@^3.25.1: dependencies: browserslist "^4.21.4" +core-js-pure@^3.25.1: + version "3.26.1" + resolved "https://registry.yarnpkg.com/core-js-pure/-/core-js-pure-3.26.1.tgz#653f4d7130c427820dcecd3168b594e8bb095a33" + integrity sha512-VVXcDpp/xJ21KdULRq/lXdLzQAtX7+37LzpyfFM973il0tWSsDEoyzG38G14AjTpK9VTfiNM9jnFauq/CpaWGQ== + core-js@^2.5.0: version "2.6.12" resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.6.12.tgz#d9333dfa7b065e347cc5682219d6f690859cc2ec" @@ -4224,6 +4305,11 @@ cyclist@^1.0.1: resolved "https://registry.yarnpkg.com/cyclist/-/cyclist-1.0.1.tgz#596e9698fd0c80e12038c2b82d6eb1b35b6224d9" integrity sha512-NJGVKPS81XejHcLhaLJS7plab0fK3slPh11mESeeDq2W4ZI5kUKK/LRRdVDvjJseojbPB7ZwjnyOybg3Igea/A== +damerau-levenshtein@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/damerau-levenshtein/-/damerau-levenshtein-1.0.8.tgz#b43d286ccbd36bc5b2f7ed41caf2d0aba1f8a6e7" + integrity sha512-sdQSFB7+llfUcQHUQO3+B8ERRj0Oa4w9POWMI/puGtuf7gFywGmkaLCElnudfTiKZV+NvHqL0ifzdrI8Ro7ESA== + data-urls@^3.0.2: version "3.0.2" resolved "https://registry.yarnpkg.com/data-urls/-/data-urls-3.0.2.tgz#9cf24a477ae22bcef5cd5f6f0bfbc1d2d3be9143" @@ -4754,7 +4840,7 @@ error-ex@^1.3.1: dependencies: is-arrayish "^0.2.1" -es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.19.2, es-abstract@^1.19.5, es-abstract@^1.20.0, es-abstract@^1.20.1: +es-abstract@^1.19.0, es-abstract@^1.19.1, es-abstract@^1.19.2, es-abstract@^1.19.5, es-abstract@^1.20.0, es-abstract@^1.20.1, es-abstract@^1.20.4: version "1.20.4" resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.20.4.tgz#1d103f9f8d78d4cf0713edcd6d0ed1a46eed5861" integrity sha512-0UtvRN79eMe2L+UNEF1BwRe364sj/DXhQ/k5FmivgoSdpM90b8Jc0mDzKMGo7QS0BVbOP/bTwBKNnDc9rNzaPA== @@ -4868,11 +4954,44 @@ escodegen@^2.0.0: optionalDependencies: source-map "~0.6.1" +eslint-config-airbnb-base@^12.1.0: + version "12.1.0" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-12.1.0.tgz#386441e54a12ccd957b0a92564a4bafebd747944" + integrity sha512-/vjm0Px5ZCpmJqnjIzcFb9TKZrKWz0gnuG/7Gfkt0Db1ELJR51xkZth+t14rYdqWgX836XbuxtArbIHlVhbLBA== + dependencies: + eslint-restricted-globals "^0.1.1" + +eslint-config-airbnb@^16.1.0: + version "16.1.0" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb/-/eslint-config-airbnb-16.1.0.tgz#2546bfb02cc9fe92284bf1723ccf2e87bc45ca46" + integrity sha512-zLyOhVWhzB/jwbz7IPSbkUuj7X2ox4PHXTcZkEmDqTvd0baJmJyuxlFPDlZOE/Y5bC+HQRaEkT3FoHo9wIdRiw== + dependencies: + eslint-config-airbnb-base "^12.1.0" + eslint-config-prettier@8.5.0: version "8.5.0" resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.5.0.tgz#5a81680ec934beca02c7b1a61cf8ca34b66feab1" integrity sha512-obmWKLUNCnhtQRKc+tmnYuQl0pFU1ibYJQ5BGhTVB08bHe9wC8qUeG7c08dj9XX+AuPj1YSGSQIHl1pnDHZR0Q== +eslint-config-prettier@^2.9.0: + version "2.10.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-2.10.0.tgz#ec07bc1d01f87d09f61d3840d112dc8a9791e30b" + integrity sha512-Mhl90VLucfBuhmcWBgbUNtgBiK955iCDK1+aHAz7QfDQF6wuzWZ6JjihZ3ejJoGlJWIuko7xLqNm8BA5uenKhA== + dependencies: + get-stdin "^5.0.1" + +eslint-config-standard-jsx@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/eslint-config-standard-jsx/-/eslint-config-standard-jsx-5.0.0.tgz#4abfac554f38668e0078c664569e7b2384e5d2aa" + integrity sha512-rLToPAEqLMPBfWnYTu6xRhm2OWziS2n40QFqJ8jAM8NSVzeVKTa3nclhsU4DpPJQRY60F34Oo1wi/71PN/eITg== + +eslint-config-standard-react@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/eslint-config-standard-react/-/eslint-config-standard-react-6.0.0.tgz#d366d6c3c092426fd3ae794a4ca0b3cb131f2964" + integrity sha512-YWlqfvREbH1r6SaRTgFOq+VE3f8/ZQypkfnpDpSmZjztEjxnzznm4xeE2/mDQRx77Okhd/pKHXNZLMsSneJH8A== + dependencies: + eslint-config-standard-jsx "^5.0.0" + eslint-config-standard-with-typescript@^23.0.0: version "23.0.0" resolved "https://registry.yarnpkg.com/eslint-config-standard-with-typescript/-/eslint-config-standard-with-typescript-23.0.0.tgz#aa4b656740bbb2592d4cadec735d41e36245a44b" @@ -4886,6 +5005,11 @@ eslint-config-standard@17.0.0: resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-17.0.0.tgz#fd5b6cf1dcf6ba8d29f200c461de2e19069888cf" integrity sha512-/2ks1GKyqSOkH7JFvXJicu0iMpoojkwB+f5Du/1SC0PtBL+s8v30k9njRZ21pm2drKYm2342jFnGWzttxPmZVg== +eslint-config-standard@^11.0.0: + version "11.0.0" + resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-11.0.0.tgz#87ee0d3c9d95382dc761958cbb23da9eea31e0ba" + integrity sha512-oDdENzpViEe5fwuRCWla7AXQd++/oyIp8zP+iP9jiUPG6NBj3SHgdgtl/kTn00AjeN+1HNvavTKmYbMo+xMOlw== + eslint-import-resolver-node@^0.3.6: version "0.3.6" resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.6.tgz#4048b958395da89668252001dbd9eca6b83bacbd" @@ -4909,7 +5033,7 @@ eslint-plugin-es@^4.1.0: eslint-utils "^2.0.0" regexpp "^3.0.0" -eslint-plugin-import@^2.25.2: +eslint-plugin-import@^2.13.0: version "2.26.0" resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz#f812dc47be4f2b72b478a021605a59fc6fe8b88b" integrity sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA== @@ -4928,6 +5052,30 @@ eslint-plugin-import@^2.25.2: resolve "^1.22.0" tsconfig-paths "^3.14.1" +eslint-plugin-jest@^21.15.0: + version "21.27.2" + resolved "https://registry.yarnpkg.com/eslint-plugin-jest/-/eslint-plugin-jest-21.27.2.tgz#2a795b7c3b5e707df48a953d651042bd01d7b0a8" + integrity sha512-0E4OIgBJVlAmf1KfYFtZ3gYxgUzC5Eb3Jzmrc9ikI1OY+/cM8Kh72Ti7KfpeHNeD3HJNf9SmEfmvQLIz44Hrhw== + +eslint-plugin-jsx-a11y@^6.0.3: + version "6.6.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsx-a11y/-/eslint-plugin-jsx-a11y-6.6.1.tgz#93736fc91b83fdc38cc8d115deedfc3091aef1ff" + integrity sha512-sXgFVNHiWffBq23uiS/JaP6eVR622DqwB4yTzKvGZGcPq6/yZ3WmOZfuBks/vHWo9GaFOqC2ZK4i6+C35knx7Q== + dependencies: + "@babel/runtime" "^7.18.9" + aria-query "^4.2.2" + array-includes "^3.1.5" + ast-types-flow "^0.0.7" + axe-core "^4.4.3" + axobject-query "^2.2.0" + damerau-levenshtein "^1.0.8" + emoji-regex "^9.2.2" + has "^1.0.3" + jsx-ast-utils "^3.3.2" + language-tags "^1.0.5" + minimatch "^3.1.2" + semver "^6.3.0" + eslint-plugin-markdown@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/eslint-plugin-markdown/-/eslint-plugin-markdown-1.0.2.tgz#79274bf17ce3ead48e4a55cbcb6d7ce735754280" @@ -4951,52 +5099,93 @@ eslint-plugin-n@^15.0.0: resolve "^1.22.1" semver "^7.3.7" -eslint-plugin-prettier@^3.1.4: - version "3.4.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-3.4.1.tgz#e9ddb200efb6f3d05ffe83b1665a716af4a387e5" - integrity sha512-htg25EUYUeIhKHXjOinK4BgCcDwtLHjqaxCDsMy5nbnUMkKFvIhMVCp+5GFUXQ4Nr8lBsPqtGAqBenbpFqAA2g== +eslint-plugin-node@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-6.0.1.tgz#bf19642298064379315d7a4b2a75937376fa05e4" + integrity sha512-Q/Cc2sW1OAISDS+Ji6lZS2KV4b7ueA/WydVWd1BECTQwVvfQy5JAi3glhINoKzoMnfnuRgNP+ZWKrGAbp3QDxw== dependencies: - prettier-linter-helpers "^1.0.0" + ignore "^3.3.6" + minimatch "^3.0.4" + resolve "^1.3.3" + semver "^5.4.1" -eslint-plugin-promise@^6.0.0: - version "6.1.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-6.1.1.tgz#269a3e2772f62875661220631bd4dafcb4083816" - integrity sha512-tjqWDwVZQo7UIPMeDReOpUgHCmCiH+ePnVT+5zVapL0uuHnegBUs2smM13CzOs2Xb5+MHMRFTs9v24yjba4Oig== +eslint-plugin-patternfly-react@^4.80.4: + version "4.80.4" + resolved "https://registry.yarnpkg.com/eslint-plugin-patternfly-react/-/eslint-plugin-patternfly-react-4.80.4.tgz#940baf2d21123831c0e672024ec841957dd6cfe4" + integrity sha512-suwtLEdg7HuU8Tm7MT36acpXtbx8njGrO9B+5DjUxyo+NaI9MLLlBK47KLGwlcBYS32qZvYrkXKMcIAyeXxFcA== + dependencies: + "@babel/eslint-parser" "^7.19.1" + eslint-config-airbnb "^16.1.0" + eslint-config-prettier "^2.9.0" + eslint-config-standard "^11.0.0" + eslint-config-standard-jsx "^5.0.0" + eslint-config-standard-react "^6.0.0" + eslint-plugin-import "^2.13.0" + eslint-plugin-jest "^21.15.0" + eslint-plugin-jsx-a11y "^6.0.3" + eslint-plugin-node "^6.0.1" + eslint-plugin-prettier "^2.6.0" + eslint-plugin-promise "^3.7.0" + eslint-plugin-react "^7.7.0" + eslint-plugin-react-hooks "^4.1.2" + eslint-plugin-rulesdir "^0.1.0" + eslint-plugin-standard "^3.0.1" + +eslint-plugin-prettier@^2.6.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.7.0.tgz#b4312dcf2c1d965379d7f9d5b5f8aaadc6a45904" + integrity sha512-CStQYJgALoQBw3FsBzH0VOVDRnJ/ZimUlpLm226U8qgqYJfPOY/CPK6wyRInMxh73HSKg5wyRwdS4BVYYHwokA== + dependencies: + fast-diff "^1.1.1" + jest-docblock "^21.0.0" + +eslint-plugin-promise@^3.7.0: + version "3.8.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-promise/-/eslint-plugin-promise-3.8.0.tgz#65ebf27a845e3c1e9d6f6a5622ddd3801694b621" + integrity sha512-JiFL9UFR15NKpHyGii1ZcvmtIqa3UTwiDAGb8atSffe43qJ3+1czVGN6UtkklpcJ2DVnqvTMzEKRaJdBkAL2aQ== -eslint-plugin-react-hooks@^4.6.0: +eslint-plugin-react-hooks@^4.1.2: version "4.6.0" resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.0.tgz#4c3e697ad95b77e93f8646aaa1630c1ba607edd3" integrity sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g== -eslint-plugin-react@^7.21.4: - version "7.31.10" - resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.31.10.tgz#6782c2c7fe91c09e715d536067644bbb9491419a" - integrity sha512-e4N/nc6AAlg4UKW/mXeYWd3R++qUano5/o+t+wnWxIf+bLsOaH3a4q74kX3nDjYym3VBN4HyO9nEn1GcAqgQOA== +eslint-plugin-react@^7.7.0: + version "7.31.11" + resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.31.11.tgz#011521d2b16dcf95795df688a4770b4eaab364c8" + integrity sha512-TTvq5JsT5v56wPa9OYHzsrOlHzKZKjV+aLgS+55NJP/cuzdiQPC7PfYoUjMoxlffKtvijpk7vA/jmuqRb9nohw== dependencies: - array-includes "^3.1.5" - array.prototype.flatmap "^1.3.0" + array-includes "^3.1.6" + array.prototype.flatmap "^1.3.1" + array.prototype.tosorted "^1.1.1" doctrine "^2.1.0" estraverse "^5.3.0" jsx-ast-utils "^2.4.1 || ^3.0.0" minimatch "^3.1.2" - object.entries "^1.1.5" - object.fromentries "^2.0.5" - object.hasown "^1.1.1" - object.values "^1.1.5" + object.entries "^1.1.6" + object.fromentries "^2.0.6" + object.hasown "^1.1.2" + object.values "^1.1.6" prop-types "^15.8.1" resolve "^2.0.0-next.3" semver "^6.3.0" - string.prototype.matchall "^4.0.7" + string.prototype.matchall "^4.0.8" -eslint-scope@^4.0.3: - version "4.0.3" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848" - integrity sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg== - dependencies: - esrecurse "^4.1.0" - estraverse "^4.1.1" +eslint-plugin-rulesdir@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-rulesdir/-/eslint-plugin-rulesdir-0.1.0.tgz#ad144d7e98464fda82963eff3fab331aecb2bf08" + integrity sha512-HdZ8XhTY8QkOxXX4X++lyWJdOeJ9ATkWQ6Rp+PVq9jk8Km2LTTOgbFXqIIqACl3TPVXBhxP5hU51ddT93wKvdA== -eslint-scope@^5.1.1: +eslint-plugin-standard@^3.0.1: + version "3.1.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-standard/-/eslint-plugin-standard-3.1.0.tgz#2a9e21259ba4c47c02d53b2d0c9135d4b1022d47" + integrity sha512-fVcdyuKRr0EZ4fjWl3c+gp1BANFJD1+RaWa2UPYfMZ6jCtp5RG00kSaXnK/dE5sYzt4kaWJ9qdxqUfc0d9kX0w== + +eslint-restricted-globals@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/eslint-restricted-globals/-/eslint-restricted-globals-0.1.1.tgz#35f0d5cbc64c2e3ed62e93b4b1a7af05ba7ed4d7" + integrity sha512-d1cerYC0nOJbObxUe1kR8MZ25RLt7IHzR9d+IOupoMqFU03tYjo7Stjqj04uHx1xx7HKSE9/NjdeBiP4/jUP8Q== + +eslint-scope@5.1.1, eslint-scope@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== @@ -5004,6 +5193,14 @@ eslint-scope@^5.1.1: esrecurse "^4.3.0" estraverse "^4.1.1" +eslint-scope@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-4.0.3.tgz#ca03833310f6889a3264781aa82e63eb9cfe7848" + integrity sha512-p7VutNr1O/QrxysMo3E45FjYDTeXBy0iTltPFNSqKAIfjDSXC+4dj+qfyuD8bfAXrW/y6lW3O76VaYNPKfpKrg== + dependencies: + esrecurse "^4.1.0" + estraverse "^4.1.1" + eslint-scope@^7.1.1: version "7.1.1" resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.1.1.tgz#fff34894c2f65e5226d3041ac480b4513a163642" @@ -5031,7 +5228,7 @@ eslint-visitor-keys@^1.1.0: resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-1.3.0.tgz#30ebd1ef7c2fdff01c3a4f151044af25fab0523e" integrity sha512-6J72N8UNa462wa/KFODt/PJ3IU60SDpC3QXC1Hjc1BXXpfL2C9R5+AU7jhe0F6GREqVMh4Juu+NY7xn+6dipUQ== -eslint-visitor-keys@^2.0.0: +eslint-visitor-keys@^2.0.0, eslint-visitor-keys@^2.1.0: version "2.1.0" resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-2.1.0.tgz#f65328259305927392c938ed44eb0a5c9b2bd303" integrity sha512-0rSmRBzXgDzIsD6mGdJgevzgezI534Cer5L/vyMX0kHzT/jiB43jRhd9YUlMGYLQy2zprNmoT8qasCGtY+QaKw== @@ -5379,7 +5576,7 @@ fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== -fast-diff@^1.1.2: +fast-diff@^1.1.1: version "1.2.0" resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.2.0.tgz#73ee11982d86caaf7959828d519cfe927fac5f03" integrity sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w== @@ -5817,6 +6014,11 @@ get-package-type@^0.1.0: resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== +get-stdin@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-5.0.1.tgz#122e161591e21ff4c52530305693f20e6393a398" + integrity sha512-jZV7n6jGE3Gt7fgSTJoz91Ak5MuTLwMwkoYdjxuJ/AmjIsE1UC03y/IWkZCQGEvVNS9qoRNwy5BCqxImv0FVeA== + get-stream@^3.0.0: version "3.0.0" resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-3.0.0.tgz#8e943d1358dc37555054ecbe2edb05aa174ede14" @@ -6446,6 +6648,11 @@ iferr@^0.1.5: resolved "https://registry.yarnpkg.com/iferr/-/iferr-0.1.5.tgz#c60eed69e6d8fdb6b3104a1fcbca1c192dc5b501" integrity sha512-DUNFN5j7Tln0D+TxzloUjKB+CtVu6myn0JEFak6dG18mNt9YkQ6lzGCdafwofISZ1lLF3xRHJ98VKy9ynkcFaA== +ignore@^3.3.6: + version "3.3.10" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.10.tgz#0a97fb876986e8081c631160f8f9f389157f0043" + integrity sha512-Pgs951kaMm5GXP7MOvxERINe3gsaVjUWFm+UZPSq9xYriQAksyhg0csnS0KXSNRD5NmNdapXEpjxG49+AKh/ug== + ignore@^5.1.1, ignore@^5.2.0: version "5.2.0" resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.2.0.tgz#6d3bac8fa7fe0d45d9f9be7bac2fc279577e345a" @@ -7222,6 +7429,11 @@ jest-diff@^29.2.1: jest-get-type "^29.2.0" pretty-format "^29.2.1" +jest-docblock@^21.0.0: + version "21.2.0" + resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-21.2.0.tgz#51529c3b30d5fd159da60c27ceedc195faf8d414" + integrity sha512-5IZ7sY9dBAYSV+YjQ0Ovb540Ku7AO9Z5o2Cg789xj167iQuZ2cG+z0f3Uct6WeYLbU6aQiM2pCs7sZ+4dotydw== + jest-docblock@^29.2.0: version "29.2.0" resolved "https://registry.yarnpkg.com/jest-docblock/-/jest-docblock-29.2.0.tgz#307203e20b637d97cee04809efc1d43afc641e82" @@ -7641,7 +7853,7 @@ jsonfile@^6.0.1: optionalDependencies: graceful-fs "^4.1.6" -"jsx-ast-utils@^2.4.1 || ^3.0.0": +"jsx-ast-utils@^2.4.1 || ^3.0.0", jsx-ast-utils@^3.3.2: version "3.3.3" resolved "https://registry.yarnpkg.com/jsx-ast-utils/-/jsx-ast-utils-3.3.3.tgz#76b3e6e6cece5c69d49a5792c3d01bd1a0cdc7ea" integrity sha512-fYQHZTZ8jSfmWZ0iyzfwiU4WDX4HpHbMCZ3gPlWYiCl3BoeOTsqKBqnTVfH2rYT7eP5c3sVbeSPHnnJOaTrWiw== @@ -7695,6 +7907,18 @@ klona@^2.0.4: resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.5.tgz#d166574d90076395d9963aa7a928fabb8d76afbc" integrity sha512-pJiBpiXMbt7dkzXe8Ghj/u4FfXOOa98fPW+bihOJ4SjnoijweJrNThJfd3ifXpXhREjpoF2mZVH1GfS9LV3kHQ== +language-subtag-registry@^0.3.20: + version "0.3.22" + resolved "https://registry.yarnpkg.com/language-subtag-registry/-/language-subtag-registry-0.3.22.tgz#2e1500861b2e457eba7e7ae86877cbd08fa1fd1d" + integrity sha512-tN0MCzyWnoz/4nHS6uxdlFWoUZT7ABptwKPQ52Ea7URk6vll88bWBVhodtnlfEuCcKWNGoc+uGbw1cwa9IKh/w== + +language-tags@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/language-tags/-/language-tags-1.0.6.tgz#c087cc42cd92eb71f0925e9e271d4f8be5a93430" + integrity sha512-HNkaCgM8wZgE/BZACeotAAgpL9FUjEnhgF0FVQMIgH//zqTPreLYMb3rWYkYAqPoF75Jwuycp1da7uz66cfFQg== + dependencies: + language-subtag-registry "^0.3.20" + latest-version@^3.0.0: version "3.1.0" resolved "https://registry.yarnpkg.com/latest-version/-/latest-version-3.1.0.tgz#a205383fea322b33b5ae3b18abee0dc2f356ee15" @@ -8596,23 +8820,23 @@ object.assign@^4.1.2, object.assign@^4.1.3, object.assign@^4.1.4: has-symbols "^1.0.3" object-keys "^1.1.1" -object.entries@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.5.tgz#e1acdd17c4de2cd96d5a08487cfb9db84d881861" - integrity sha512-TyxmjUoZggd4OrrU1W66FMDG6CuqJxsFvymeyXI51+vQLN67zYfZseptRge703kKQdo4uccgAKebXFcRCzk4+g== +object.entries@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/object.entries/-/object.entries-1.1.6.tgz#9737d0e5b8291edd340a3e3264bb8a3b00d5fa23" + integrity sha512-leTPzo4Zvg3pmbQ3rDK69Rl8GQvIqMWubrkxONG9/ojtFE2rD9fjMKfSI5BxW3osRH1m6VdzmqK8oAY9aT4x5w== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" + define-properties "^1.1.4" + es-abstract "^1.20.4" -object.fromentries@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.5.tgz#7b37b205109c21e741e605727fe8b0ad5fa08251" - integrity sha512-CAyG5mWQRRiBU57Re4FKoTBjXfDoNwdFVH2Y1tS9PqCsfUTymAohOkEMSG3aRNKmv4lV3O7p1et7c187q6bynw== +object.fromentries@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.6.tgz#cdb04da08c539cffa912dcd368b886e0904bfa73" + integrity sha512-VciD13dswC4j1Xt5394WR4MzmAQmlgN72phd/riNp9vtD7tp4QQWJ0R4wvclXcafgcYK8veHRed2W6XeGBvcfg== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" + define-properties "^1.1.4" + es-abstract "^1.20.4" object.getownpropertydescriptors@^2.0.3: version "2.1.4" @@ -8624,13 +8848,13 @@ object.getownpropertydescriptors@^2.0.3: define-properties "^1.1.4" es-abstract "^1.20.1" -object.hasown@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.1.tgz#ad1eecc60d03f49460600430d97f23882cf592a3" - integrity sha512-LYLe4tivNQzq4JdaWW6WO3HMZZJWzkkH8fnI6EebWl0VZth2wL2Lovm74ep2/gZzlaTdV62JZHEqHQ2yVn8Q/A== +object.hasown@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/object.hasown/-/object.hasown-1.1.2.tgz#f919e21fad4eb38a57bc6345b3afd496515c3f92" + integrity sha512-B5UIT3J1W+WuWIU55h0mjlwaqxiE5vYENJXIXZ4VFe05pNYrkKuK0U/6aFcb0pKywYJh7IhfoqUfKVmrJJHZHw== dependencies: define-properties "^1.1.4" - es-abstract "^1.19.5" + es-abstract "^1.20.4" object.pick@^1.3.0: version "1.3.0" @@ -8648,6 +8872,15 @@ object.values@^1.1.5: define-properties "^1.1.3" es-abstract "^1.19.1" +object.values@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.1.6.tgz#4abbaa71eba47d63589d402856f908243eea9b1d" + integrity sha512-FVVTkD1vENCsAcwNs9k6jea2uHC/X0+JcjG8YA60FN5CMaJmG95wT9jek/xX9nornqGRrBkKtzuAu2wuHpKqvw== + dependencies: + call-bind "^1.0.2" + define-properties "^1.1.4" + es-abstract "^1.20.4" + obuf@^1.0.0, obuf@^1.1.2: version "1.1.2" resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" @@ -9255,13 +9488,6 @@ prepend-http@^1.0.1: resolved "https://registry.yarnpkg.com/prepend-http/-/prepend-http-1.0.4.tgz#d4f4562b0ce3696e41ac52d0e002e57a635dc6dc" integrity sha512-PhmXi5XmoyKw1Un4E+opM2KcsJInDvKyuOumcjjw3waw86ZNjHwVUOOWLc4bCzLdcKNaWBH9e99sbWzDQsVaYg== -prettier-linter-helpers@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" - integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== - dependencies: - fast-diff "^1.1.2" - prettier@2.7.1: version "2.7.1" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" @@ -9584,14 +9810,13 @@ react-docgen@5.3.1: node-dir "^0.1.10" strip-indent "^3.0.0" -react-dom@^17, react-dom@^17.0.0: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-17.0.2.tgz#ecffb6845e3ad8dbfcdc498f0d0a939736502c23" - integrity sha512-s4h96KtLDUQlsENhMn1ar8t2bEa+q/YAtj8pPPdIjPDGBDIVNsrD9aXNWqspUe6AzKCIG0C1HZZLqLV7qpOBGA== +react-dom@^18: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-18.2.0.tgz#22aaf38708db2674ed9ada224ca4aa708d821e3d" + integrity sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" - scheduler "^0.20.2" + scheduler "^0.23.0" react-dropzone@9.0.0: version "9.0.0" @@ -9637,13 +9862,12 @@ react-ssr-prepass@1.2.1: dependencies: object-is "^1.1.2" -react@^17, react@^17.0.0: - version "17.0.2" - resolved "https://registry.yarnpkg.com/react/-/react-17.0.2.tgz#d0b5cc516d29eb3eee383f75b62864cfb6800037" - integrity sha512-gnhPt75i/dq/z3/6q/0asP78D0u592D5L1pd7M8P+dck6Fu/jJeL6iVVK23fptSUZj8Vjf++7wXA8UNclGQcbA== +react@^18: + version "18.2.0" + resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5" + integrity sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" read-pkg@^4.0.1: version "4.0.1" @@ -9724,6 +9948,11 @@ regenerator-runtime@^0.13.10: resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.10.tgz#ed07b19616bcbec5da6274ebc75ae95634bfc2ee" integrity sha512-KepLsg4dU12hryUO7bp/axHAKvwGOCV0sGloQtpagJ12ai+ojVDqkeGSiRX1zlq+kjIMZ1t7gpze+26QqtdGqw== +regenerator-runtime@^0.13.11: + version "0.13.11" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.11.tgz#f6dca3e7ceec20590d07ada785636a90cdca17f9" + integrity sha512-kY1AZVr2Ra+t+piVaJ4gxaFaReZVH40AKNo7UCX6W+dEwBo/2oZJzqfuN1qLq1oL45o56cPaTXELwrTh8Fpggg== + regenerator-transform@^0.15.0: version "0.15.0" resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.0.tgz#cbd9ead5d77fae1a48d957cf889ad0586adb6537" @@ -9739,7 +9968,7 @@ regex-not@^1.0.0, regex-not@^1.0.2: extend-shallow "^3.0.2" safe-regex "^1.1.0" -regexp.prototype.flags@^1.2.0, regexp.prototype.flags@^1.3.0, regexp.prototype.flags@^1.4.1, regexp.prototype.flags@^1.4.3: +regexp.prototype.flags@^1.2.0, regexp.prototype.flags@^1.3.0, regexp.prototype.flags@^1.4.3: version "1.4.3" resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz#87cab30f80f66660181a3bb7bf5981a872b367ac" integrity sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA== @@ -10029,7 +10258,7 @@ resolve.exports@^1.1.0: resolved "https://registry.yarnpkg.com/resolve.exports/-/resolve.exports-1.1.0.tgz#5ce842b94b05146c0e03076985d1d0e7e48c90c9" integrity sha512-J1l+Zxxp4XK3LUDZ9m60LRJF/mAe4z6a4xyabPHk7pvK5t35dACV32iIjJDFeWZFfZlO29w6SZ67knR0tHzJtQ== -resolve@^1.1.6, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22.1, resolve@^1.3.2: +resolve@^1.1.6, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.20.0, resolve@^1.22.0, resolve@^1.22.1, resolve@^1.3.2, resolve@^1.3.3: version "1.22.1" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.1.tgz#27cb2ebb53f91abb49470a928bba7558066ac177" integrity sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw== @@ -10183,13 +10412,12 @@ saxes@^6.0.0: dependencies: xmlchars "^2.2.0" -scheduler@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.20.2.tgz#4baee39436e34aa93b4874bddcbf0fe8b8b50e91" - integrity sha512-2eWfGgAqqWFGqtdMmcL5zCMK1U8KlXv8SQFGglL3CEtd0aDVDWgeF/YoCmvln55m5zSk3J/20hTaSBeSObsQDQ== +scheduler@^0.23.0: + version "0.23.0" + resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.23.0.tgz#ba8041afc3d30eb206a487b6b384002e4e61fdfe" + integrity sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw== dependencies: loose-envify "^1.1.0" - object-assign "^4.1.1" schema-utils@^1.0.0: version "1.0.0" @@ -10819,18 +11047,18 @@ string-width@^5.0.1, string-width@^5.1.2: emoji-regex "^9.2.2" strip-ansi "^7.0.1" -string.prototype.matchall@^4.0.7: - version "4.0.7" - resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.7.tgz#8e6ecb0d8a1fb1fda470d81acecb2dba057a481d" - integrity sha512-f48okCX7JiwVi1NXCVWcFnZgADDC/n2vePlQ/KUCNqCikLLilQvwjMO8+BHVKvgzH0JB0J9LEPgxOGT02RoETg== +string.prototype.matchall@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/string.prototype.matchall/-/string.prototype.matchall-4.0.8.tgz#3bf85722021816dcd1bf38bb714915887ca79fd3" + integrity sha512-6zOCOcJ+RJAQshcTvXPHoxoQGONa3e/Lqx90wUA+wEzX78sg5Bo+1tQo4N0pohS0erG9qtCqJDjNCQBjeWVxyg== dependencies: call-bind "^1.0.2" - define-properties "^1.1.3" - es-abstract "^1.19.1" - get-intrinsic "^1.1.1" + define-properties "^1.1.4" + es-abstract "^1.20.4" + get-intrinsic "^1.1.3" has-symbols "^1.0.3" internal-slot "^1.0.3" - regexp.prototype.flags "^1.4.1" + regexp.prototype.flags "^1.4.3" side-channel "^1.0.4" string.prototype.trimend@^1.0.5: From 90dbee5c949866f79128bf99c5614788333e1c4b Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Mon, 5 Dec 2022 13:23:31 -0500 Subject: [PATCH 2/5] fix(tests): update configs to fix testing errors --- babel.config.js | 2 +- jest.config.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/babel.config.js b/babel.config.js index 0fdfb56..ae38e1a 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,6 +1,6 @@ module.exports = { presets: [ - ['@babel/preset-env', { targets: { node: 'current' } }], + ['@babel/preset-env', { targets: { node: 'current', esmodules: true } }], ['@babel/preset-react', { runtime: 'automatic' }], '@babel/preset-flow', '@babel/preset-typescript' diff --git a/jest.config.js b/jest.config.js index 1a9d559..c1f6428 100644 --- a/jest.config.js +++ b/jest.config.js @@ -13,5 +13,6 @@ module.exports = { moduleNameMapper: { '\\.(css|less)$': '/styleMock.js' }, - testEnvironment: 'jsdom' + testEnvironment: 'jsdom', + transformIgnorePatterns: ['node_modules/(?!@patternfly)'] }; From d383e61aa96d807b1bb121fc8baf26ce35acb274 Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Mon, 5 Dec 2022 16:02:21 -0500 Subject: [PATCH 3/5] fix(a11y): address a11y testing errors/failures --- .../examples/CatalogItemHeader.md | 1 + .../examples/CatalogTile.md | 11 +- .../examples/FilterSidePanel.md | 1 + .../examples/PropertiesSidePanel.md | 1 + .../examples/VerticalTabs.md | 1 + .../{extensions.js => react.js} | 8 +- .../{extensions.js => react.js} | 8 +- .../{extensions.js => react.js} | 8 +- .../{extensions.js => react.js} | 18 +- .../{extensions.js => react.js} | 8 +- .../Catalog view filter side panel.js | 201 ------------------ .../catalog-view/Catalog view item header.js | 100 --------- .../Catalog view properties side panel.js | 105 --------- .../catalog-view/Catalog view tile.js | 189 ---------------- .../Catalog view vertical tabs.js | 151 ------------- .../design-guidelines.js | 51 ----- .../react-catalog-view-extension/react.js | 46 ---- .../module/patternfly-docs/generated/index.js | 30 +-- 18 files changed, 50 insertions(+), 888 deletions(-) rename packages/module/patternfly-docs/generated/extensions/catalog-view-filter-side-panel/{extensions.js => react.js} (98%) rename packages/module/patternfly-docs/generated/extensions/catalog-view-item-header/{extensions.js => react.js} (91%) rename packages/module/patternfly-docs/generated/extensions/catalog-view-properties-side-panel/{extensions.js => react.js} (94%) rename packages/module/patternfly-docs/generated/extensions/catalog-view-tile/{extensions.js => react.js} (71%) rename packages/module/patternfly-docs/generated/extensions/catalog-view-vertical-tabs/{extensions.js => react.js} (95%) delete mode 100644 packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view filter side panel.js delete mode 100644 packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view item header.js delete mode 100644 packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view properties side panel.js delete mode 100644 packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view tile.js delete mode 100644 packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view vertical tabs.js delete mode 100644 packages/module/patternfly-docs/generated/extensions/react-catalog-view-extension/design-guidelines.js delete mode 100644 packages/module/patternfly-docs/generated/extensions/react-catalog-view-extension/react.js diff --git a/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogItemHeader.md b/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogItemHeader.md index 798438c..b218798 100644 --- a/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogItemHeader.md +++ b/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogItemHeader.md @@ -1,6 +1,7 @@ --- id: Catalog view item header section: extensions +source: react propComponents: ['CatalogItemHeader'] --- diff --git a/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogTile.md b/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogTile.md index 7e0f01e..95063aa 100644 --- a/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogTile.md +++ b/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogTile.md @@ -1,6 +1,7 @@ --- id: Catalog view tile section: extensions +source: react propComponents: ['CatalogTile'] --- @@ -26,7 +27,7 @@ import pfLogo2 from './pfLogo2.svg'; import '../../../../dist/css/react-catalog-view-extension.css'; ]} title="Patternfly-React" - vendor={provided by Red Hat} + vendor="provided by Red Hat" description={ 'This is a very, very long description that should be truncated after three lines. ' + 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' + @@ -148,7 +149,7 @@ import pfLogo2 from './pfLogo2.svg'; 'Community' ]} title="Patternfly-React" - vendor={provided by Red Hat} + vendor="provided by Red Hat" description={ 'This is a very, very long description that should be truncated after three lines. ' + 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' + @@ -165,7 +166,7 @@ import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon'; import pfLogo2 from './pfLogo2.svg'; ( {React.createElement(pageData.examples["Basic"])} ); -Component.displayName = 'ExtensionsCatalogViewFilterSidePanelExtensionsDocs'; +Component.displayName = 'ExtensionsCatalogViewFilterSidePanelReactDocs'; Component.pageData = pageData; export default Component; diff --git a/packages/module/patternfly-docs/generated/extensions/catalog-view-item-header/extensions.js b/packages/module/patternfly-docs/generated/extensions/catalog-view-item-header/react.js similarity index 91% rename from packages/module/patternfly-docs/generated/extensions/catalog-view-item-header/extensions.js rename to packages/module/patternfly-docs/generated/extensions/catalog-view-item-header/react.js index b1ef336..9c4dd69 100644 --- a/packages/module/patternfly-docs/generated/extensions/catalog-view-item-header/extensions.js +++ b/packages/module/patternfly-docs/generated/extensions/catalog-view-item-header/react.js @@ -6,9 +6,9 @@ import '../../../content/extensions/react-catalog-view-extension/examples/./cata const pageData = { "id": "Catalog view item header", "section": "extensions", - "source": "extensions", - "slug": "/extensions/catalog-view-item-header/extensions", - "sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogItemHeader.md", + "source": "react", + "slug": "/extensions/catalog-view-item-header/react", + "sourceLink": "https://github.com/patternfly/patternfly-react/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogItemHeader.md", "propComponents": [ { "name": "CatalogItemHeader", @@ -94,7 +94,7 @@ const Component = () => ( {React.createElement(pageData.examples["With vendor description"])} ); -Component.displayName = 'ExtensionsCatalogViewItemHeaderExtensionsDocs'; +Component.displayName = 'ExtensionsCatalogViewItemHeaderReactDocs'; Component.pageData = pageData; export default Component; diff --git a/packages/module/patternfly-docs/generated/extensions/catalog-view-properties-side-panel/extensions.js b/packages/module/patternfly-docs/generated/extensions/catalog-view-properties-side-panel/react.js similarity index 94% rename from packages/module/patternfly-docs/generated/extensions/catalog-view-properties-side-panel/extensions.js rename to packages/module/patternfly-docs/generated/extensions/catalog-view-properties-side-panel/react.js index 095df5e..2f4e5a8 100644 --- a/packages/module/patternfly-docs/generated/extensions/catalog-view-properties-side-panel/extensions.js +++ b/packages/module/patternfly-docs/generated/extensions/catalog-view-properties-side-panel/react.js @@ -8,9 +8,9 @@ import '../../../content/extensions/react-catalog-view-extension/examples/./prop const pageData = { "id": "Catalog view properties side panel", "section": "extensions", - "source": "extensions", - "slug": "/extensions/catalog-view-properties-side-panel/extensions", - "sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/PropertiesSidePanel.md", + "source": "react", + "slug": "/extensions/catalog-view-properties-side-panel/react", + "sourceLink": "https://github.com/patternfly/patternfly-react/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/PropertiesSidePanel.md", "propComponents": [ { "name": "PropertiesSidePanel", @@ -99,7 +99,7 @@ const Component = () => ( {React.createElement(pageData.examples["Properties side panel with property items"])} ); -Component.displayName = 'ExtensionsCatalogViewPropertiesSidePanelExtensionsDocs'; +Component.displayName = 'ExtensionsCatalogViewPropertiesSidePanelReactDocs'; Component.pageData = pageData; export default Component; diff --git a/packages/module/patternfly-docs/generated/extensions/catalog-view-tile/extensions.js b/packages/module/patternfly-docs/generated/extensions/catalog-view-tile/react.js similarity index 71% rename from packages/module/patternfly-docs/generated/extensions/catalog-view-tile/extensions.js rename to packages/module/patternfly-docs/generated/extensions/catalog-view-tile/react.js index 66e5d9a..836c933 100644 --- a/packages/module/patternfly-docs/generated/extensions/catalog-view-tile/extensions.js +++ b/packages/module/patternfly-docs/generated/extensions/catalog-view-tile/react.js @@ -8,9 +8,9 @@ import '../../../content/extensions/react-catalog-view-extension/examples/./cata const pageData = { "id": "Catalog view tile", "section": "extensions", - "source": "extensions", - "slug": "/extensions/catalog-view-tile/extensions", - "sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogTile.md", + "source": "react", + "slug": "/extensions/catalog-view-tile/react", + "sourceLink": "https://github.com/patternfly/patternfly-react/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogTile.md", "propComponents": [ { "name": "CatalogTile", @@ -130,7 +130,7 @@ pageData.relativeImports = { }; pageData.examples = { 'Basic featured tile': props => - (\n \n \n \n ]}\n title=\"Patternfly-React\"\n vendor=\"provided by Red Hat\"\n description={\n 'This is a very, very long description that should be truncated after three lines. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n />\n)","title":"Basic featured tile","lang":"js"}}> + (\n \n \n \n ]}\n title=\"Patternfly-React\"\n vendor=\"provided by Red Hat\"\n description={\n 'This is a very, very long description that should be truncated after three lines. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n />\n)","title":"Basic featured tile","lang":"js"}}> , 'Basic with footer': props => @@ -138,19 +138,19 @@ pageData.examples = { , 'Link variant': props => - (\n \n \n \n ]}\n href=\"http://patternfly.org/v4\"\n title=\"Patternfly-React\"\n vendor=\"provided by Red Hat\"\n description={\n 'This is a very, very long description that should be truncated after three lines. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n />\n)","title":"Link variant","lang":"js"}}> + (\n \n \n \n ]}\n href=\"http://patternfly.org/v4\"\n title=\"Patternfly-React\"\n vendor=\"provided by Red Hat\"\n description={\n 'This is a very, very long description that should be truncated after three lines. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n />\n)","title":"Link variant","lang":"js"}}> , 'With multiple icon badges': props => - (\n \n \n ,\n \n \n \n ]}\n title=\"Patternfly-React\"\n vendor={provided by Red Hat}\n description={\n 'This is a very, very long description that should be truncated after three lines. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n />\n)","title":"With multiple icon badges","lang":"js"}}> + (\n \n \n ,\n \n \n \n ]}\n title=\"Patternfly-React\"\n vendor=\"provided by Red Hat\"\n description={\n 'This is a very, very long description that should be truncated after three lines. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n />\n)","title":"With multiple icon badges","lang":"js"}}> , 'With text badge': props => - (\n provided by Red Hat}\n description={\n 'This is a very, very long description that should be truncated after three lines. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n />\n)","title":"With text badge","lang":"js"}}> + (\n \n)","title":"With text badge","lang":"js"}}> , 'With children instead of description': props => - (\n \n \n \n ]}\n title=\"Patternfly-React\"\n vendor=\"provided by Red Hat\"\n >\n This is a very, very long stetch of child text that should be not be truncated\n and illustrates how Flyers can add longer content to PatternFly 4 catalog tiles\n using the children prop. Cards usually truncate descriptions at three lines.\n Cards with a footer are truncated after one line. This has changed from PatternFly 3.\n Children can be of any length.\n \n)","title":"With children instead of description","lang":"js"}}> + (\n \n \n \n ]}\n title=\"Patternfly-React\"\n vendor=\"provided by Red Hat\"\n >\n This is a very, very long stetch of child text that should be not be truncated\n and illustrates how Flyers can add longer content to PatternFly 4 catalog tiles\n using the children prop. Cards usually truncate descriptions at three lines.\n Cards with a footer are truncated after one line. This has changed from PatternFly 3.\n Children can be of any length.\n \n)","title":"With children instead of description","lang":"js"}}> }; @@ -183,7 +183,7 @@ const Component = () => ( {React.createElement(pageData.examples["With children instead of description"])} ); -Component.displayName = 'ExtensionsCatalogViewTileExtensionsDocs'; +Component.displayName = 'ExtensionsCatalogViewTileReactDocs'; Component.pageData = pageData; export default Component; diff --git a/packages/module/patternfly-docs/generated/extensions/catalog-view-vertical-tabs/extensions.js b/packages/module/patternfly-docs/generated/extensions/catalog-view-vertical-tabs/react.js similarity index 95% rename from packages/module/patternfly-docs/generated/extensions/catalog-view-vertical-tabs/extensions.js rename to packages/module/patternfly-docs/generated/extensions/catalog-view-vertical-tabs/react.js index 5ba08c3..13761a5 100644 --- a/packages/module/patternfly-docs/generated/extensions/catalog-view-vertical-tabs/extensions.js +++ b/packages/module/patternfly-docs/generated/extensions/catalog-view-vertical-tabs/react.js @@ -5,9 +5,9 @@ import '../../../content/extensions/react-catalog-view-extension/examples/./vert const pageData = { "id": "Catalog view vertical tabs", "section": "extensions", - "source": "extensions", - "slug": "/extensions/catalog-view-vertical-tabs/extensions", - "sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/VerticalTabs.md", + "source": "react", + "slug": "/extensions/catalog-view-vertical-tabs/react", + "sourceLink": "https://github.com/patternfly/patternfly-react/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/VerticalTabs.md", "propComponents": [ { "name": "VerticalTabs", @@ -145,7 +145,7 @@ const Component = () => ( {React.createElement(pageData.examples["Basic"])} ); -Component.displayName = 'ExtensionsCatalogViewVerticalTabsExtensionsDocs'; +Component.displayName = 'ExtensionsCatalogViewVerticalTabsReactDocs'; Component.pageData = pageData; export default Component; diff --git a/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view filter side panel.js b/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view filter side panel.js deleted file mode 100644 index 7e8929b..0000000 --- a/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view filter side panel.js +++ /dev/null @@ -1,201 +0,0 @@ -import React from 'react'; -import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components'; -import { FilterSidePanel, FilterSidePanelCategory, FilterSidePanelCategoryItem } from '@patternfly/react-catalog-view-extension'; -import StarIcon from '@patternfly/react-icons/dist/esm/icons/star-icon'; -import CcPaypalIcon from '@patternfly/react-icons/dist/esm/icons/cc-paypal-icon'; -import CcAmexIcon from '@patternfly/react-icons/dist/esm/icons/cc-amex-icon'; -import CcDiscoverIcon from '@patternfly/react-icons/dist/esm/icons/cc-discover-icon'; -import CcVisaIcon from '@patternfly/react-icons/dist/esm/icons/cc-visa-icon'; -import CcMastercardIcon from '@patternfly/react-icons/dist/esm/icons/cc-mastercard-icon'; -import CcDinersClubIcon from '@patternfly/react-icons/dist/esm/icons/cc-diners-club-icon'; -import '../../../content/extensions/react-catalog-view-extension/examples/./filterSidePanel.css'; -const pageData = { - "id": "Catalog view", - "section": "extensions", - "source": "Catalog view filter side panel", - "slug": "/extensions/catalog-view/Catalog view filter side panel", - "sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/FilterSidePanel.md", - "propComponents": [ - { - "name": "FilterSidePanel", - "description": "", - "props": [ - { - "name": "children", - "type": "React.ReactNode", - "description": "Children nodes", - "defaultValue": "null" - }, - { - "name": "className", - "type": "string", - "description": "Additional css classes for the Filter Side Panel", - "defaultValue": "''" - } - ] - }, - { - "name": "FilterSidePanelCategory", - "description": "", - "props": [ - { - "name": "children", - "type": "React.ReactNode", - "description": "Children nodes", - "defaultValue": "null" - }, - { - "name": "className", - "type": "string", - "description": "Additional css classes for the Filter Side Panel Category", - "defaultValue": "''" - }, - { - "name": "hideText", - "type": "string", - "description": "Text for the link to hide overflow items, default 'Show less'", - "defaultValue": "null" - }, - { - "name": "leeway", - "type": "number", - "description": "Leeway to add to maxShowCount, minimum X for the 'Show X more'", - "defaultValue": "2" - }, - { - "name": "maxShowCount", - "type": "number", - "description": "Number of items (max) to show before adding Show More link button", - "defaultValue": "5" - }, - { - "name": "onShowAllToggle", - "type": "(event: React.SyntheticEvent) => void", - "description": "Callback function when the Show/Hide link button is clicked", - "defaultValue": "() => null" - }, - { - "name": "showAll", - "type": "boolean", - "description": "Flag to show all items (ie. set to true after Show X more link is clicked)", - "defaultValue": "false" - }, - { - "name": "showText", - "type": "string", - "description": "Text for the link to show all items, default 'Show more'", - "defaultValue": "null" - }, - { - "name": "title", - "type": "string | React.ReactNode", - "description": "Title for the category", - "defaultValue": "null" - } - ] - }, - { - "name": "FilterSidePanelCategoryItem", - "description": "", - "props": [ - { - "name": "checked", - "type": "boolean", - "description": "Flag to show if the Filter Item Checkbox is checked.", - "defaultValue": "false" - }, - { - "name": "children", - "type": "React.ReactNode", - "description": "Children nodes", - "defaultValue": "null" - }, - { - "name": "className", - "type": "string", - "description": "Additional css classes for the Filter Panel Property Item", - "defaultValue": "''" - }, - { - "name": "count", - "type": "number", - "description": "Optional count of the items matching the filter", - "defaultValue": "null" - }, - { - "name": "icon", - "type": "React.ReactNode", - "description": "Optional icon (or other) to show before the children", - "defaultValue": "null" - }, - { - "name": "onClick", - "type": "(event: React.SyntheticEvent) => void", - "description": "Callback for a click on the Filter Item Checkbox", - "defaultValue": "null" - }, - { - "name": "title", - "type": "string", - "description": "Title of the checkbox", - "defaultValue": "''" - } - ] - } - ], - "examples": [ - "Basic" - ] -}; -pageData.liveContext = { - FilterSidePanel, - FilterSidePanelCategory, - FilterSidePanelCategoryItem, - StarIcon, - CcPaypalIcon, - CcAmexIcon, - CcDiscoverIcon, - CcVisaIcon, - CcMastercardIcon, - CcDinersClubIcon -}; -pageData.relativeImports = { - -}; -pageData.examples = { - 'Basic': props => - {\n const showAllCategories = { ...this.state.showAllCategories };\n showAllCategories[id] = !showAllCategories[id];\n this.setState({ showAllCategories });\n };\n \n this.onFilterChange = (id, value) => {\n const activeFilters = { ...this.state.activeFilters };\n activeFilters[id] = value;\n this.setState({ activeFilters });\n };\n \n this.getStars = count => {\n const stars = [];\n \n for (let i = 0; i < count; i++) {\n stars.push();\n }\n \n return (\n \n {`${count} stars`}\n {stars}\n \n );\n };\n }\n \n render() {\n const { activeFilters, showAllCategories } = this.state;\n const maxShowCount = 5;\n const leeway = 2;\n return (\n
\n \n \n \n \n this.onShowAllToggle('type')}\n >\n this.onFilterChange('typeSUV', e.target.checked)}\n >\n SUV\n \n this.onFilterChange('typeSedan', e.target.checked)}\n >\n Sedan\n \n this.onFilterChange('typePickup', e.target.checked)}\n >\n Pickup Truck\n \n this.onFilterChange('typeSports', e.target.checked)}\n >\n Sports Car\n \n \n this.onShowAllToggle('manufacturer')}\n >\n this.onFilterChange('makeChevy', e.target.checked)}\n >\n Chevrolet\n \n this.onFilterChange('makeFord', e.target.checked)}\n >\n Ford\n \n this.onFilterChange('makeDodge', e.target.checked)}\n >\n Dodge\n \n this.onFilterChange('makeVolkswagen', e.target.checked)}\n >\n Volkswagen\n \n this.onFilterChange('makeHyundai', e.target.checked)}\n >\n Hyundai\n \n this.onFilterChange('makeHonda', e.target.checked)}\n >\n Honda\n \n this.onFilterChange('makeToyota', e.target.checked)}\n >\n Toyota\n \n this.onFilterChange('makeMercedes', e.target.checked)}\n >\n Mercedes\n \n this.onFilterChange('makeBMW', e.target.checked)}\n >\n BMW\n \n this.onFilterChange('makeInfiniti', e.target.checked)}\n >\n Infiniti\n \n this.onFilterChange('makeLexus', e.target.checked)}\n >\n Lexus\n \n this.onFilterChange('makeAcura', e.target.checked)}\n >\n Acura\n \n \n this.onShowAllToggle('payment')}\n >\n }\n checked={activeFilters.paymentPaypal}\n onClick={e => this.onFilterChange('paymentPaypal', e.target.checked)}\n >\n PayPal\n \n }\n checked={activeFilters.paymentDiscover}\n onClick={e => this.onFilterChange('paymentDiscover', e.target.checked)}\n >\n Discover\n \n }\n checked={activeFilters.paymentVisa}\n onClick={e => this.onFilterChange('paymentVisa', e.target.checked)}\n >\n Visa\n \n }\n checked={activeFilters.paymentMastercard}\n onClick={e => this.onFilterChange('paymentMastercard', e.target.checked)}\n >\n Mastercard\n \n }\n checked={activeFilters.paymentAmex}\n onClick={e => this.onFilterChange('paymentAmex', e.target.checked)}\n >\n American Express\n \n }\n checked={activeFilters.paymentDinersClub}\n onClick={e => this.onFilterChange('paymentDinersClub', e.target.checked)}\n >\n {\"Diner's Club\"}\n \n \n this.onShowAllToggle('mileage')}\n >\n this.onFilterChange('mileage50', e.target.checked)}\n >\n 50+\n \n this.onFilterChange('mileage40', e.target.checked)}\n >\n 40-50\n \n this.onFilterChange('mileage30', e.target.checked)}\n >\n 30-40\n \n this.onFilterChange('mileage20', e.target.checked)}\n >\n 20-30\n \n this.onFilterChange('mileage10', e.target.checked)}\n >\n {'< 20'}\n \n \n this.onShowAllToggle('rating')}\n >\n this.onFilterChange('rating5', e.target.checked)}\n />\n this.onFilterChange('rating4', e.target.checked)}\n />\n this.onFilterChange('rating3', e.target.checked)}\n />\n this.onFilterChange('rating2', e.target.checked)}\n />\n this.onFilterChange('rating1', e.target.checked)}\n />\n \n \n
\n );\n }\n}","title":"Basic","lang":"js"}}> - -
-}; - -const Component = () => ( - - - {`Introduction`} - -

- {`Note: FilterSidePanel lives in its own package at `} - - - {`@patternfly/react-catalog-view-extension`} - - - {`!`} -

-

- {`Note: the width, border, and top padding styling are not part of the FilterSidePanel.`} -

-

- {`This package is currently an extension. Extension components do not undergo the same rigorous design or coding review process as core PatternFly components. If enough members of the community find them useful, we will work to move them into our core PatternFly system by starting the design process for the idea.`} -

- - {`Examples`} - - {React.createElement(pageData.examples["Basic"])} -
-); -Component.displayName = 'ExtensionsCatalogViewCatalog view filter side panelDocs'; -Component.pageData = pageData; - -export default Component; diff --git a/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view item header.js b/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view item header.js deleted file mode 100644 index 2ba581e..0000000 --- a/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view item header.js +++ /dev/null @@ -1,100 +0,0 @@ -import React from 'react'; -import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components'; -import { CatalogItemHeader } from '@patternfly/react-catalog-view-extension'; -import pfLogo2 from '../../../content/extensions/react-catalog-view-extension/examples/./pfLogo2.svg'; -import '../../../content/extensions/react-catalog-view-extension/examples/./catalogItemHeader.css'; -const pageData = { - "id": "Catalog view", - "section": "extensions", - "source": "Catalog view item header", - "slug": "/extensions/catalog-view/Catalog view item header", - "sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogItemHeader.md", - "propComponents": [ - { - "name": "CatalogItemHeader", - "description": "", - "props": [ - { - "name": "className", - "type": "string", - "description": "Additional css classes", - "defaultValue": "''" - }, - { - "name": "iconClass", - "type": "string", - "description": "Class for the image when an icon is to be used (exclusive from iconImg)", - "defaultValue": "null" - }, - { - "name": "iconImg", - "type": "string", - "description": "URL of an image for the item's icon", - "defaultValue": "null" - }, - { - "name": "title", - "type": "string | React.ReactNode", - "description": "Tile for the catalog item", - "required": true - }, - { - "name": "vendor", - "type": "string | React.ReactNode", - "description": "Vendor for the catalog item", - "defaultValue": "null" - } - ] - } - ], - "examples": [ - "Basic", - "With vendor description" - ] -}; -pageData.liveContext = { - CatalogItemHeader, - pfLogo2 -}; -pageData.relativeImports = { - -}; -pageData.examples = { - 'Basic': props => - (\n \n)","title":"Basic","lang":"js"}}> - - , - 'With vendor description': props => - (\n \n provided by Red Hat\n \n }\n />\n)","title":"With vendor description","lang":"js"}}> - - -}; - -const Component = () => ( - - - {`Introduction`} - -

- {`Note: Catalog item header lives in its own package at `} - - - {`@patternfly/react-catalog-view-extension`} - - - {`!`} -

-

- {`This package is currently an extension. Extension components do not undergo the same rigorous design or coding review process as core PatternFly components. If enough members of the community find them useful, we will work to move them into our core PatternFly system by starting the design process for the idea.`} -

- - {`Examples`} - - {React.createElement(pageData.examples["Basic"])} - {React.createElement(pageData.examples["With vendor description"])} -
-); -Component.displayName = 'ExtensionsCatalogViewCatalog view item headerDocs'; -Component.pageData = pageData; - -export default Component; diff --git a/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view properties side panel.js b/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view properties side panel.js deleted file mode 100644 index 2580621..0000000 --- a/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view properties side panel.js +++ /dev/null @@ -1,105 +0,0 @@ -import React from 'react'; -import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components'; -import { PropertiesSidePanel, PropertyItem } from '@patternfly/react-catalog-view-extension'; -import OkIcon from '@patternfly/react-icons/dist/esm/icons/ok-icon'; -import ExternalLinkAltIcon from '@patternfly/react-icons/dist/esm/icons/external-link-alt-icon'; -import GlobeIcon from '@patternfly/react-icons/dist/esm/icons/globe-icon'; -import '../../../content/extensions/react-catalog-view-extension/examples/./propertiesSidePanel.css'; -const pageData = { - "id": "Catalog view", - "section": "extensions", - "source": "Catalog view properties side panel", - "slug": "/extensions/catalog-view/Catalog view properties side panel", - "sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/PropertiesSidePanel.md", - "propComponents": [ - { - "name": "PropertiesSidePanel", - "description": "", - "props": [ - { - "name": "children", - "type": "React.ReactNode", - "description": "Children, should be PropertyItem items plus any action buttons, etc.", - "defaultValue": "null" - }, - { - "name": "className", - "type": "string", - "description": "Additional css classes for the Property Item", - "defaultValue": "''" - } - ] - }, - { - "name": "PropertyItem", - "description": "", - "props": [ - { - "name": "className", - "type": "string", - "description": "Additional css classes for the Property Item", - "defaultValue": "''" - }, - { - "name": "label", - "type": "string | React.ReactNode", - "description": "Label for the property", - "required": true - }, - { - "name": "value", - "type": "string | React.ReactNode", - "description": "Value of the property", - "defaultValue": "null" - } - ] - } - ], - "examples": [ - "Properties side panel with property items" - ] -}; -pageData.liveContext = { - PropertiesSidePanel, - PropertyItem, - OkIcon, - ExternalLinkAltIcon, - GlobeIcon -}; -pageData.relativeImports = { - -}; -pageData.examples = { - 'Properties side panel with property items': props => - (\n
\n \n \n \n Certified\n \n }\n />\n \n \n \n https://quay.io/repository/redhat/prometheus-operator\n \n }\n />\n \n 0.22.2 \n \n }\n />\n \n Aug 23, 1:58pm\n \n }\n />\n Red Hat} />\n \n
\n)","title":"Properties side panel with property items","lang":"js"}}> - -
-}; - -const Component = () => ( - - - {`Introduction`} - -

- {`Note: PropertiesSidePanel lives in its own package at `} - - - {`@patternfly/react-catalog-view-extension`} - - - {`!`} -

-

- {`This package is currently an extension. Extension components do not undergo the same rigorous design or coding review process as core PatternFly components. If enough members of the community find them useful, we will work to move them into our core PatternFly system by starting the design process for the idea.`} -

- - {`Examples`} - - {React.createElement(pageData.examples["Properties side panel with property items"])} -
-); -Component.displayName = 'ExtensionsCatalogViewCatalog view properties side panelDocs'; -Component.pageData = pageData; - -export default Component; diff --git a/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view tile.js b/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view tile.js deleted file mode 100644 index 887cb9f..0000000 --- a/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view tile.js +++ /dev/null @@ -1,189 +0,0 @@ -import React from 'react'; -import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components'; -import { CatalogTile, CatalogTileBadge } from '@patternfly/react-catalog-view-extension'; -import CogIcon from '@patternfly/react-icons/dist/esm/icons/cog-icon'; -import OutlinedCheckCircleIcon from '@patternfly/react-icons/dist/esm/icons/outlined-check-circle-icon'; -import pfLogo2 from '../../../content/extensions/react-catalog-view-extension/examples/./pfLogo2.svg'; -import '../../../content/extensions/react-catalog-view-extension/examples/./catalogTile.css'; -const pageData = { - "id": "Catalog view", - "section": "extensions", - "source": "Catalog view tile", - "slug": "/extensions/catalog-view/Catalog view tile", - "sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogTile.md", - "propComponents": [ - { - "name": "CatalogTile", - "description": "", - "props": [ - { - "name": "badges", - "type": "React.ReactNode[]", - "description": "Array of badges", - "defaultValue": "[]" - }, - { - "name": "children", - "type": "React.ReactNode", - "description": "Body content that isn't truncated", - "defaultValue": "null" - }, - { - "name": "className", - "type": "string", - "description": "Additional css classes", - "defaultValue": "''" - }, - { - "name": "description", - "type": "string | React.ReactNode", - "description": "Description of the catalog item", - "defaultValue": "null" - }, - { - "name": "featured", - "type": "boolean", - "description": "Flag if the tile is 'featured'", - "defaultValue": "false" - }, - { - "name": "footer", - "type": "string | React.ReactNode", - "description": "Footer for the tile", - "defaultValue": "null" - }, - { - "name": "href", - "type": "string", - "description": "href for the tile if used as a link", - "defaultValue": "null" - }, - { - "name": "icon", - "type": "React.ReactNode", - "description": "Alternatively provided JSX for the icon", - "defaultValue": "null" - }, - { - "name": "iconAlt", - "type": "string", - "description": "Alternate text for the item's icon", - "defaultValue": "''" - }, - { - "name": "iconClass", - "type": "string", - "description": "Class for the image when an icon is to be used (exclusive from iconImg)", - "defaultValue": "''" - }, - { - "name": "iconImg", - "type": "string", - "description": "URL of an image for the item's icon", - "defaultValue": "null" - }, - { - "name": "id", - "type": "any", - "description": "Id", - "defaultValue": "null" - }, - { - "name": "onClick", - "type": "(event: React.SyntheticEvent) => void", - "description": "Callback for a click on the tile", - "defaultValue": "null" - }, - { - "name": "title", - "type": "string | React.ReactNode", - "description": "Tile for the catalog item", - "required": true - }, - { - "name": "vendor", - "type": "string | React.ReactNode", - "description": "Vendor for the catalog item", - "defaultValue": "null" - } - ] - } - ], - "examples": [ - "Basic featured tile", - "Basic with footer", - "Link variant", - "With multiple icon badges", - "With text badge", - "With children instead of description" - ] -}; -pageData.liveContext = { - CatalogTile, - CatalogTileBadge, - CogIcon, - OutlinedCheckCircleIcon, - pfLogo2 -}; -pageData.relativeImports = { - -}; -pageData.examples = { - 'Basic featured tile': props => - (\n \n \n \n ]}\n title=\"Patternfly-React\"\n vendor=\"provided by Red Hat\"\n description={\n 'This is a very, very long description that should be truncated after three lines. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n />\n)","title":"Basic featured tile","lang":"js"}}> - - , - 'Basic with footer': props => - (\n \n \n \n ]}\n title=\"Patternfly-React\"\n vendor=\"provided by Red Hat\"\n description={\n 'This is a very, very long description that should be truncated after one line. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n footer={\n \n Enabled\n \n }\n />\n)","title":"Basic with footer","lang":"js"}}> - - , - 'Link variant': props => - (\n \n \n \n ]}\n href=\"http://patternfly.org/v4\"\n title=\"Patternfly-React\"\n vendor=\"provided by Red Hat\"\n description={\n 'This is a very, very long description that should be truncated after three lines. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n />\n)","title":"Link variant","lang":"js"}}> - - , - 'With multiple icon badges': props => - (\n \n \n ,\n \n \n \n ]}\n title=\"Patternfly-React\"\n vendor={provided by Red Hat}\n description={\n 'This is a very, very long description that should be truncated after three lines. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n />\n)","title":"With multiple icon badges","lang":"js"}}> - - , - 'With text badge': props => - (\n provided by Red Hat}\n description={\n 'This is a very, very long description that should be truncated after three lines. ' +\n 'Three lines is the default for cards without a footer. Cards with a footer are truncated after one line. Truncation function use is deprecated; please pass in a maxDescriptionLength of -1 to override it. ' +\n 'This has changed from PatternFly 3.'\n }\n />\n)","title":"With text badge","lang":"js"}}> - - , - 'With children instead of description': props => - (\n \n \n \n ]}\n title=\"Patternfly-React\"\n vendor=\"provided by Red Hat\"\n >\n This is a very, very long stetch of child text that should be not be truncated\n and illustrates how Flyers can add longer content to PatternFly 4 catalog tiles\n using the children prop. Cards usually truncate descriptions at three lines.\n Cards with a footer are truncated after one line. This has changed from PatternFly 3.\n Children can be of any length.\n \n)","title":"With children instead of description","lang":"js"}}> - - -}; - -const Component = () => ( - - - {`Introduction`} - -

- {`Note: Catalog tile lives in its own package at `} - - - {`@patternfly/react-catalog-view-extension`} - - - {`!`} -

-

- {`This package is currently an extension. Extension components do not undergo the same rigorous design or coding review process as core PatternFly components. If enough members of the community find them useful, we will work to move them into our core PatternFly system by starting the design process for the idea.`} -

- - {`Examples`} - - {React.createElement(pageData.examples["Basic featured tile"])} - {React.createElement(pageData.examples["Basic with footer"])} - {React.createElement(pageData.examples["Link variant"])} - {React.createElement(pageData.examples["With multiple icon badges"])} - {React.createElement(pageData.examples["With text badge"])} - {React.createElement(pageData.examples["With children instead of description"])} -
-); -Component.displayName = 'ExtensionsCatalogViewCatalog view tileDocs'; -Component.pageData = pageData; - -export default Component; diff --git a/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view vertical tabs.js b/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view vertical tabs.js deleted file mode 100644 index a600b60..0000000 --- a/packages/module/patternfly-docs/generated/extensions/catalog-view/Catalog view vertical tabs.js +++ /dev/null @@ -1,151 +0,0 @@ -import React from 'react'; -import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components'; -import { VerticalTabs, VerticalTabsTab } from '@patternfly/react-catalog-view-extension'; -import '../../../content/extensions/react-catalog-view-extension/examples/./verticalTab.css'; -const pageData = { - "id": "Catalog view", - "section": "extensions", - "source": "Catalog view vertical tabs", - "slug": "/extensions/catalog-view/Catalog view vertical tabs", - "sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/VerticalTabs.md", - "propComponents": [ - { - "name": "VerticalTabs", - "description": "", - "props": [ - { - "name": "activeTab", - "type": "boolean", - "description": "Flag if a direct child is active (only used in restrictTabs mode)", - "defaultValue": "false" - }, - { - "name": "children", - "type": "React.ReactNode", - "description": "Children nodes", - "defaultValue": "null" - }, - { - "name": "className", - "type": "string", - "description": "Additional css classes", - "defaultValue": "''" - }, - { - "name": "restrictTabs", - "type": "boolean", - "description": "Flag to restrict shown tabs to active tabs, their parents, their siblings, and direct children", - "defaultValue": "false" - } - ] - }, - { - "name": "VerticalTabsTab", - "description": "", - "props": [ - { - "name": "active", - "type": "boolean", - "description": "Flag if this is the active tab", - "defaultValue": "false" - }, - { - "name": "children", - "type": "React.ReactNode", - "description": "Child tab nodes (VerticalTabsTab's)", - "defaultValue": "null" - }, - { - "name": "className", - "type": "string", - "description": "Additional css classes", - "defaultValue": "''" - }, - { - "name": "component", - "type": "React.ElementType | React.ComponentType", - "description": "Sets the base component to render. defaults to a" - }, - { - "name": "hasActiveDescendant", - "type": "boolean", - "description": "Flag if a descendant tab is active (used only in restrictTabs mode)", - "defaultValue": "false" - }, - { - "name": "href", - "type": "string", - "description": "HREF location" - }, - { - "name": "onActivate", - "type": "() => void", - "description": "Callback function when the tab is activated", - "defaultValue": "null" - }, - { - "name": "shown", - "type": "boolean", - "description": "Flag to force show the tab (if parent tab is shown, used only in restrictTabs mode)", - "defaultValue": "false" - }, - { - "name": "title", - "type": "string | React.ReactNode", - "description": "Title for the tab", - "defaultValue": "null" - }, - { - "name": "wrapStyle", - "type": "'wrap' | 'truncate' | 'nowrap'", - "description": "Title wrap style", - "defaultValue": "'wrap'" - } - ] - } - ], - "examples": [ - "Basic" - ] -}; -pageData.liveContext = { - VerticalTabs, - VerticalTabsTab -}; -pageData.relativeImports = { - -}; -pageData.examples = { - 'Basic': props => - {\n this.setState({ activeTabId: id });\n };\n }\n\n render() {\n const { restrictTabs, wrapStyle } = this.props;\n const { activeTabId } = this.state;\n\n const topLevelIds = ['all', 'one', 'two', 'three', 'four', 'five', 'six', 'seven'];\n\n const renderTab = (id, title, children, props) => {\n const childIds = React.Children.map(children, child => child.props.id);\n\n return (\n this.onActivateTab(id)}\n active={activeTabId === id}\n hasActiveDescendant={activeTabId.startsWith(id)}\n {...props}\n >\n {children && (\n \n {children}\n \n )}\n \n );\n };\n\n return (\n \n {renderTab('all', 'All', null, { shown: true })}\n {renderTab('one', 'Tab One', [\n renderTab('one-one', 'Tab One-One', [\n renderTab('one-one-one', 'About Modal', null, {href: \"../components/about-modal\"}),\n renderTab('one-one-two', 'Accordion', null, {href: \"../components/accordion\"}),\n renderTab('one-one-three', 'Redhat', null, {href: \"http://www.redhat.com\"})\n ]),\n renderTab('one-two', 'Tab One-Two', [\n renderTab('one-two-one', 'Tab One-Two-One'),\n renderTab('one-two-two', 'Tab One-Two-Two'),\n renderTab('one-two-three', 'Tab One-Two-Three')\n ]),\n renderTab('one-three', 'Tab One-Thee')\n ])}\n {renderTab('two', 'Tab Two', [\n renderTab('two-one', 'Tab Two-One'),\n renderTab('two-two', 'Tab Two-Two'),\n renderTab('two-three', 'Tab Two-Three')\n ])}\n {renderTab('three', 'Tab Three - Donec id elit non mi porta gravida at eget metus')}\n {renderTab('four', 'Tab Four')}\n {renderTab('five', 'Tab Five')}\n {renderTab('six', 'Tab Six')}\n {renderTab('seven', 'Tab Seven')}\n \n );\n }\n}","title":"Basic","lang":"js"}}> - - -}; - -const Component = () => ( - - - {`Introduction`} - -

- {`Note: Vertical tabs lives in its own package at `} - - - {`@patternfly/react-catalog-view-extension`} - - - {`!`} -

-

- {`This package is currently an extension. Extension components do not undergo the same rigorous design or coding review process as core PatternFly components. If enough members of the community find them useful, we will work to move them into our core PatternFly system by starting the design process for the idea.`} -

- - {`Examples`} - - {React.createElement(pageData.examples["Basic"])} -
-); -Component.displayName = 'ExtensionsCatalogViewCatalog view vertical tabsDocs'; -Component.pageData = pageData; - -export default Component; diff --git a/packages/module/patternfly-docs/generated/extensions/react-catalog-view-extension/design-guidelines.js b/packages/module/patternfly-docs/generated/extensions/react-catalog-view-extension/design-guidelines.js deleted file mode 100644 index 4876265..0000000 --- a/packages/module/patternfly-docs/generated/extensions/react-catalog-view-extension/design-guidelines.js +++ /dev/null @@ -1,51 +0,0 @@ -import React from 'react'; -import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components'; - -const pageData = { - "id": "react-catalog-view-extension", - "section": "extensions", - "source": "design-guidelines", - "slug": "/extensions/react-catalog-view-extension/design-guidelines", - "sourceLink": "https://github.com/patternfly/patternfly-org/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/design-guidelines/design-guidelines.md" -}; -pageData.relativeImports = { - -}; -pageData.examples = { - -}; - -const Component = () => ( - -

- {`Design guidelines intro`} -

- - {`Header`} - - - {`Sub-header`} - -

- {`Guidelines:`} -

-
    -
  1. - {`A`} -
  2. -
  3. - {`list`} -
  4. -
  5. - {`using`} -
  6. -
  7. - {`markdown`} -
  8. -
-
-); -Component.displayName = 'ExtensionsReactCatalogViewExtensionDesignGuidelinesDocs'; -Component.pageData = pageData; - -export default Component; diff --git a/packages/module/patternfly-docs/generated/extensions/react-catalog-view-extension/react.js b/packages/module/patternfly-docs/generated/extensions/react-catalog-view-extension/react.js deleted file mode 100644 index 65cf2e7..0000000 --- a/packages/module/patternfly-docs/generated/extensions/react-catalog-view-extension/react.js +++ /dev/null @@ -1,46 +0,0 @@ -import React from 'react'; -import { AutoLinkHeader, Example, Link as PatternflyThemeLink } from '@patternfly/documentation-framework/components'; -import { ExtendedButton } from "@patternfly/react-catalog-view-extension"; -const pageData = { - "id": "react-catalog-view-extension", - "section": "extensions", - "source": "react", - "slug": "/extensions/react-catalog-view-extension/react", - "sourceLink": "https://github.com/patternfly/patternfly-react/blob/main/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/basic.md", - "examples": [ - "Example" - ], - "fullscreenExamples": [ - "Fullscreen example" - ] -}; -pageData.liveContext = { - ExtendedButton -}; -pageData.relativeImports = { - -}; -pageData.examples = { - 'Example': props => - My custom extension button;\n","title":"Example","lang":"js"}}> - - , - 'Fullscreen example': props => - My custom extension button;\n","title":"Fullscreen example","lang":"js","isFullscreen":true}}> - - -}; - -const Component = () => ( - - - {`Basic usage`} - - {React.createElement(pageData.examples["Example"])} - {React.createElement(pageData.examples["Fullscreen example"])} - -); -Component.displayName = 'ExtensionsReactCatalogViewExtensionReactDocs'; -Component.pageData = pageData; - -export default Component; diff --git a/packages/module/patternfly-docs/generated/index.js b/packages/module/patternfly-docs/generated/index.js index ec4d799..9f11f6d 100644 --- a/packages/module/patternfly-docs/generated/index.js +++ b/packages/module/patternfly-docs/generated/index.js @@ -1,47 +1,47 @@ module.exports = { - '/extensions/catalog-view-item-header/extensions': { + '/extensions/catalog-view-item-header/react': { id: "Catalog view item header", title: "Catalog view item header", toc: [{"text":"Introduction"},{"text":"Examples"},[{"text":"Basic"},{"text":"With vendor description"}]], examples: ["Basic","With vendor description"], section: "extensions", - source: "extensions", - Component: () => import(/* webpackChunkName: "extensions/catalog-view-item-header/extensions/index" */ './extensions/catalog-view-item-header/extensions') + source: "react", + Component: () => import(/* webpackChunkName: "extensions/catalog-view-item-header/react/index" */ './extensions/catalog-view-item-header/react') }, - '/extensions/catalog-view-tile/extensions': { + '/extensions/catalog-view-tile/react': { id: "Catalog view tile", title: "Catalog view tile", toc: [{"text":"Introduction"},{"text":"Examples"},[{"text":"Basic featured tile"},{"text":"Basic with footer"},{"text":"Link variant"},{"text":"With multiple icon badges"},{"text":"With text badge"},{"text":"With children instead of description"}]], examples: ["Basic featured tile","Basic with footer","Link variant","With multiple icon badges","With text badge","With children instead of description"], section: "extensions", - source: "extensions", - Component: () => import(/* webpackChunkName: "extensions/catalog-view-tile/extensions/index" */ './extensions/catalog-view-tile/extensions') + source: "react", + Component: () => import(/* webpackChunkName: "extensions/catalog-view-tile/react/index" */ './extensions/catalog-view-tile/react') }, - '/extensions/catalog-view-filter-side-panel/extensions': { + '/extensions/catalog-view-filter-side-panel/react': { id: "Catalog view filter side panel", title: "Catalog view filter side panel", toc: [{"text":"Introduction"},{"text":"Examples"},[{"text":"Basic"}]], examples: ["Basic"], section: "extensions", - source: "extensions", - Component: () => import(/* webpackChunkName: "extensions/catalog-view-filter-side-panel/extensions/index" */ './extensions/catalog-view-filter-side-panel/extensions') + source: "react", + Component: () => import(/* webpackChunkName: "extensions/catalog-view-filter-side-panel/react/index" */ './extensions/catalog-view-filter-side-panel/react') }, - '/extensions/catalog-view-properties-side-panel/extensions': { + '/extensions/catalog-view-properties-side-panel/react': { id: "Catalog view properties side panel", title: "Catalog view properties side panel", toc: [{"text":"Introduction"},{"text":"Examples"},[{"text":"Properties side panel with property items"}]], examples: ["Properties side panel with property items"], section: "extensions", - source: "extensions", - Component: () => import(/* webpackChunkName: "extensions/catalog-view-properties-side-panel/extensions/index" */ './extensions/catalog-view-properties-side-panel/extensions') + source: "react", + Component: () => import(/* webpackChunkName: "extensions/catalog-view-properties-side-panel/react/index" */ './extensions/catalog-view-properties-side-panel/react') }, - '/extensions/catalog-view-vertical-tabs/extensions': { + '/extensions/catalog-view-vertical-tabs/react': { id: "Catalog view vertical tabs", title: "Catalog view vertical tabs", toc: [{"text":"Introduction"},{"text":"Examples"},[{"text":"Basic"}]], examples: ["Basic"], section: "extensions", - source: "extensions", - Component: () => import(/* webpackChunkName: "extensions/catalog-view-vertical-tabs/extensions/index" */ './extensions/catalog-view-vertical-tabs/extensions') + source: "react", + Component: () => import(/* webpackChunkName: "extensions/catalog-view-vertical-tabs/react/index" */ './extensions/catalog-view-vertical-tabs/react') } }; \ No newline at end of file From 7395ee9f9bcf7709164bd8bdf3a8b90030fe2cb1 Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Mon, 5 Dec 2022 16:04:08 -0500 Subject: [PATCH 4/5] ci(): temporarily change package scope for ci release testing purposes --- package.json | 18 +++++++++--------- packages/module/package.json | 2 +- .../examples/CatalogItemHeader.md | 8 ++++---- .../examples/CatalogTile.md | 16 ++++++++-------- .../examples/FilterSidePanel.md | 6 +++--- .../examples/PropertiesSidePanel.md | 6 +++--- .../examples/VerticalTabs.md | 6 +++--- 7 files changed, 31 insertions(+), 31 deletions(-) diff --git a/package.json b/package.json index 88fb949..11f4323 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@patternfly/react-catalog-view-extension-root", + "name": "@ausuliv/react-catalog-view-extension-root", "private": true, "version": "0.0.0", "description": "This library provides patternfly extensions", @@ -8,18 +8,18 @@ "packages/*" ], "scripts": { - "build": "yarn workspace @patternfly/react-catalog-view-extension build", - "build:docs": "yarn workspace @patternfly/react-catalog-view-extension docs:build", - "start": "yarn build && concurrently --kill-others \"yarn workspace @patternfly/react-catalog-view-extension docs:develop\"", - "serve:docs": "yarn workspace @patternfly/react-catalog-view-extension docs:serve", - "clean": "yarn workspace @patternfly/react-catalog-view-extension clean", + "build": "yarn workspace @ausuliv/react-catalog-view-extension build", + "build:docs": "yarn workspace @ausuliv/react-catalog-view-extension docs:build", + "start": "yarn build && concurrently --kill-others \"yarn workspace @ausuliv/react-catalog-view-extension docs:develop\"", + "serve:docs": "yarn workspace @ausuliv/react-catalog-view-extension docs:serve", + "clean": "yarn workspace @ausuliv/react-catalog-view-extension clean", "lint:js": "node --max-old-space-size=4096 node_modules/.bin/eslint packages --ext js,jsx,ts,tsx --cache", "lint:md": "yarn eslint packages --ext md --no-eslintrc --config .eslintrc-md.json --cache", "lint": "yarn lint:js && yarn lint:md", "test": "TZ=EST jest packages", - "test:a11y": "yarn workspace @patternfly/react-catalog-view-extension test:a11y", - "serve:a11y": "yarn workspace @patternfly/react-catalog-view-extension serve:a11y", - "generate": "yarn workspace @patternfly/react-catalog-view-extension generate" + "test:a11y": "yarn workspace @ausuliv/react-catalog-view-extension test:a11y", + "serve:a11y": "yarn workspace @ausuliv/react-catalog-view-extension serve:a11y", + "generate": "yarn workspace @ausuliv/react-catalog-view-extension generate" }, "devDependencies": { "react": "^18", diff --git a/packages/module/package.json b/packages/module/package.json index 605d2ba..03c2ba0 100644 --- a/packages/module/package.json +++ b/packages/module/package.json @@ -1,5 +1,5 @@ { - "name": "@patternfly/react-catalog-view-extension", + "name": "@ausuliv/react-catalog-view-extension", "version": "4.93.3", "description": "This library provides catalog view extensions for PatternFly 4 React.", "main": "dist/js/index.js", diff --git a/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogItemHeader.md b/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogItemHeader.md index b218798..9d0256f 100644 --- a/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogItemHeader.md +++ b/packages/module/patternfly-docs/content/extensions/react-catalog-view-extension/examples/CatalogItemHeader.md @@ -5,12 +5,12 @@ source: react propComponents: ['CatalogItemHeader'] --- -import { CatalogItemHeader } from '@patternfly/react-catalog-view-extension'; +import { CatalogItemHeader } from '@ausuliv/react-catalog-view-extension'; import pfLogo2 from './pfLogo2.svg'; import './catalogItemHeader.css'; ## Introduction -Note: Catalog item header lives in its own package at [`@patternfly/react-catalog-view-extension`](https://www.npmjs.com/package/@patternfly/react-catalog-view-extension)! +Note: Catalog item header lives in its own package at [`@ausuliv/react-catalog-view-extension`](https://www.npmjs.com/package/@ausuliv/react-catalog-view-extension)! This package is currently an extension. Extension components do not undergo the same rigorous design or coding review process as core PatternFly components. If enough members of the community find them useful, we will work to move them into our core PatternFly system by starting the design process for the idea. @@ -18,7 +18,7 @@ This package is currently an extension. Extension components do not undergo the ### Basic ```js import React from 'react'; -import { CatalogItemHeader } from '@patternfly/react-catalog-view-extension'; +import { CatalogItemHeader } from '@ausuliv/react-catalog-view-extension'; import pfLogo2 from './examples/pfLogo2.svg'; Date: Mon, 5 Dec 2022 16:25:28 -0500 Subject: [PATCH 5/5] fix(config): add missing plugin --- .eslintrc.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 5a6b330..7f2b460 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -32,7 +32,7 @@ "version": "detect" } }, - "plugins": ["react", "react-hooks", "@typescript-eslint"], + "plugins": ["react", "react-hooks", "@typescript-eslint", "jest"], "rules": { "@typescript-eslint/adjacent-overload-signatures": "error", "@typescript-eslint/array-type": "error",