diff --git a/package-lock.json b/package-lock.json
index be9b4cf2e..3126002b1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -7,6 +7,7 @@
"": {
"name": "@redhat-cloud-services/frontend-components-root",
"version": "0.0.1",
+ "hasInstallScript": true,
"license": "Apache-2.0",
"workspaces": [
"packages/charts",
@@ -7024,6 +7025,8 @@
"version": "8.11.0",
"resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz",
"integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==",
+ "optional": true,
+ "peer": true,
"dependencies": {
"fast-deep-equal": "^3.1.1",
"json-schema-traverse": "^1.0.0",
@@ -7038,7 +7041,9 @@
"node_modules/ajv-formats/node_modules/json-schema-traverse": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "optional": true,
+ "peer": true
},
"node_modules/ajv-keywords": {
"version": "3.5.2",
@@ -17353,6 +17358,7 @@
"resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz",
"integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=0.10.0"
}
@@ -19726,6 +19732,7 @@
"resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz",
"integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=",
"dev": true,
+ "peer": true,
"dependencies": {
"invert-kv": "^1.0.0"
},
@@ -20761,6 +20768,7 @@
"resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz",
"integrity": "sha512-nOBDrc/wgpkd3X/JOhMqYR+/eLqlfLP4oQfoBA6QExIxEl+GU01oyEkwWyueyO8110pUKijtiHGhEmYoOn88oQ==",
"dev": true,
+ "peer": true,
"dependencies": {
"mimic-fn": "^1.0.0"
},
@@ -20773,6 +20781,7 @@
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz",
"integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=4"
}
@@ -23161,6 +23170,7 @@
"resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz",
"integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==",
"dev": true,
+ "peer": true,
"dependencies": {
"execa": "^0.7.0",
"lcid": "^1.0.0",
@@ -23175,6 +23185,7 @@
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
"integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=",
"dev": true,
+ "peer": true,
"dependencies": {
"lru-cache": "^4.0.1",
"shebang-command": "^1.2.0",
@@ -23186,6 +23197,7 @@
"resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz",
"integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=",
"dev": true,
+ "peer": true,
"dependencies": {
"cross-spawn": "^5.0.1",
"get-stream": "^3.0.0",
@@ -23204,6 +23216,7 @@
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
"integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=4"
}
@@ -23213,6 +23226,7 @@
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
"integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=0.10.0"
}
@@ -23222,6 +23236,7 @@
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
"integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
"dev": true,
+ "peer": true,
"dependencies": {
"pseudomap": "^1.0.2",
"yallist": "^2.1.2"
@@ -23232,6 +23247,7 @@
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
"integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=",
"dev": true,
+ "peer": true,
"dependencies": {
"path-key": "^2.0.0"
},
@@ -23244,6 +23260,7 @@
"resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
"integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=4"
}
@@ -23253,6 +23270,7 @@
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
"integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
"dev": true,
+ "peer": true,
"dependencies": {
"shebang-regex": "^1.0.0"
},
@@ -23265,6 +23283,7 @@
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
"integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=0.10.0"
}
@@ -23274,6 +23293,7 @@
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
"integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
"dev": true,
+ "peer": true,
"dependencies": {
"isexe": "^2.0.0"
},
@@ -23285,7 +23305,8 @@
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
"integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"node_modules/os-name": {
"version": "3.1.0",
@@ -29333,6 +29354,7 @@
"resolved": "https://registry.npmjs.org/showdown/-/showdown-1.8.6.tgz",
"integrity": "sha512-cOmS+LUIiyMxFo7OU3cgV+zTv43GItwlTwUPrpUd5dqdlZh8CJMVb8KxAMhr42J6exQwKTCHMxUiG74vamV1kA==",
"dev": true,
+ "peer": true,
"dependencies": {
"yargs": "^10.0.3"
},
@@ -29345,6 +29367,7 @@
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz",
"integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=4"
}
@@ -29354,6 +29377,7 @@
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz",
"integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=4"
}
@@ -29363,6 +29387,7 @@
"resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz",
"integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==",
"dev": true,
+ "peer": true,
"dependencies": {
"string-width": "^2.1.1",
"strip-ansi": "^4.0.0",
@@ -29374,6 +29399,7 @@
"resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
"integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
"dev": true,
+ "peer": true,
"dependencies": {
"locate-path": "^2.0.0"
},
@@ -29385,13 +29411,15 @@
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz",
"integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==",
- "dev": true
+ "dev": true,
+ "peer": true
},
"node_modules/showdown/node_modules/is-fullwidth-code-point": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
"integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=4"
}
@@ -29401,6 +29429,7 @@
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
"integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
"dev": true,
+ "peer": true,
"dependencies": {
"p-locate": "^2.0.0",
"path-exists": "^3.0.0"
@@ -29414,6 +29443,7 @@
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
"integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
"dev": true,
+ "peer": true,
"dependencies": {
"p-try": "^1.0.0"
},
@@ -29426,6 +29456,7 @@
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz",
"integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
"dev": true,
+ "peer": true,
"dependencies": {
"p-limit": "^1.1.0"
},
@@ -29438,6 +29469,7 @@
"resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
"integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=4"
}
@@ -29447,6 +29479,7 @@
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
"integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=4"
}
@@ -29455,13 +29488,15 @@
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz",
"integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"node_modules/showdown/node_modules/string-width": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
"integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
"dev": true,
+ "peer": true,
"dependencies": {
"is-fullwidth-code-point": "^2.0.0",
"strip-ansi": "^4.0.0"
@@ -29475,6 +29510,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
"integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
"dev": true,
+ "peer": true,
"dependencies": {
"ansi-regex": "^3.0.0"
},
@@ -29487,6 +29523,7 @@
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
"integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
"dev": true,
+ "peer": true,
"dependencies": {
"string-width": "^1.0.1",
"strip-ansi": "^3.0.1"
@@ -29500,6 +29537,7 @@
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
"integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
"dev": true,
+ "peer": true,
"engines": {
"node": ">=0.10.0"
}
@@ -29509,6 +29547,7 @@
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
"integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
"dev": true,
+ "peer": true,
"dependencies": {
"number-is-nan": "^1.0.0"
},
@@ -29521,6 +29560,7 @@
"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
"integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
"dev": true,
+ "peer": true,
"dependencies": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -29535,6 +29575,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
"integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
"dev": true,
+ "peer": true,
"dependencies": {
"ansi-regex": "^2.0.0"
},
@@ -29546,13 +29587,15 @@
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.2.tgz",
"integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==",
- "dev": true
+ "dev": true,
+ "peer": true
},
"node_modules/showdown/node_modules/yargs": {
"version": "10.1.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-10.1.2.tgz",
"integrity": "sha512-ivSoxqBGYOqQVruxD35+EyCFDYNEFL/Uo6FcOnz+9xZdZzK0Zzw4r4KhbrME1Oo2gOggwJod2MnsdamSG7H9ig==",
"dev": true,
+ "peer": true,
"dependencies": {
"cliui": "^4.0.0",
"decamelize": "^1.1.1",
@@ -29573,6 +29616,7 @@
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-8.1.0.tgz",
"integrity": "sha512-yP+6QqN8BmrgW2ggLtTbdrOyBNSI7zBa4IykmiV5R1wl1JWNxQvWhMfMdmzIYtKU7oP3OOInY/tl2ov3BDjnJQ==",
"dev": true,
+ "peer": true,
"dependencies": {
"camelcase": "^4.1.0"
}
@@ -34454,7 +34498,7 @@
},
"packages/components": {
"name": "@redhat-cloud-services/frontend-components",
- "version": "3.9.8",
+ "version": "3.9.9",
"license": "Apache-2.0",
"dependencies": {
"@redhat-cloud-services/frontend-components-utilities": ">=3.0.0",
@@ -34715,7 +34759,7 @@
},
"packages/config": {
"name": "@redhat-cloud-services/frontend-components-config",
- "version": "4.6.17",
+ "version": "4.6.18",
"license": "Apache-2.0",
"dependencies": {
"@redhat-cloud-services/frontend-components-config-utilities": "^1.5.23",
@@ -36688,7 +36732,7 @@
},
"packages/utils": {
"name": "@redhat-cloud-services/frontend-components-utilities",
- "version": "3.2.23",
+ "version": "3.2.24",
"license": "Apache-2.0",
"dependencies": {
"@redhat-cloud-services/types": "^0.0.5",
@@ -40150,8 +40194,7 @@
"requires": {
"@patternfly/react-catalog-view-extension": "4.12.15",
"dompurify": "^2.2.6",
- "history": "^5.0.0",
- "showdown": "1.8.6"
+ "history": "^5.0.0"
},
"dependencies": {
"@patternfly/react-catalog-view-extension": {
@@ -43152,14 +43195,13 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ajv-formats/-/ajv-formats-2.1.1.tgz",
"integrity": "sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA==",
- "requires": {
- "ajv": "^8.0.0"
- },
+ "requires": {},
"dependencies": {
"ajv": {
- "version": "8.11.0",
- "resolved": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz",
+ "version": "https://registry.npmjs.org/ajv/-/ajv-8.11.0.tgz",
"integrity": "sha512-wGgprdCvMalC0BztXvitD2hC04YffAvtsUn93JbGXYLAtCUO4xd17mCCZQxUOItiBwZvJScWo8NIvQMQ71rdpg==",
+ "optional": true,
+ "peer": true,
"requires": {
"fast-deep-equal": "^3.1.1",
"json-schema-traverse": "^1.0.0",
@@ -43170,7 +43212,9 @@
"json-schema-traverse": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz",
- "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug=="
+ "integrity": "sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==",
+ "optional": true,
+ "peer": true
}
}
},
@@ -50758,7 +50802,8 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/invert-kv/-/invert-kv-1.0.0.tgz",
"integrity": "sha1-EEqOSqym09jNFXqO+L+rLXo//bY=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"ip": {
"version": "1.1.5",
@@ -52382,6 +52427,7 @@
"resolved": "https://registry.npmjs.org/lcid/-/lcid-1.0.0.tgz",
"integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=",
"dev": true,
+ "peer": true,
"requires": {
"invert-kv": "^1.0.0"
}
@@ -53138,6 +53184,7 @@
"resolved": "https://registry.npmjs.org/mem/-/mem-1.1.0.tgz",
"integrity": "sha512-nOBDrc/wgpkd3X/JOhMqYR+/eLqlfLP4oQfoBA6QExIxEl+GU01oyEkwWyueyO8110pUKijtiHGhEmYoOn88oQ==",
"dev": true,
+ "peer": true,
"requires": {
"mimic-fn": "^1.0.0"
},
@@ -53146,7 +53193,8 @@
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-1.2.0.tgz",
"integrity": "sha512-jf84uxzwiuiIVKiOLpfYk7N46TSy8ubTonmneY9vrpHNAnp0QBt2BxWV9dO3/j+BoVAb+a5G6YDPW3M5HOdMWQ==",
- "dev": true
+ "dev": true,
+ "peer": true
}
}
},
@@ -54708,6 +54756,7 @@
"resolved": "https://registry.npmjs.org/os-locale/-/os-locale-2.1.0.tgz",
"integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==",
"dev": true,
+ "peer": true,
"requires": {
"execa": "^0.7.0",
"lcid": "^1.0.0",
@@ -54719,6 +54768,7 @@
"resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-5.1.0.tgz",
"integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=",
"dev": true,
+ "peer": true,
"requires": {
"lru-cache": "^4.0.1",
"shebang-command": "^1.2.0",
@@ -54730,6 +54780,7 @@
"resolved": "https://registry.npmjs.org/execa/-/execa-0.7.0.tgz",
"integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=",
"dev": true,
+ "peer": true,
"requires": {
"cross-spawn": "^5.0.1",
"get-stream": "^3.0.0",
@@ -54744,19 +54795,22 @@
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/get-stream/-/get-stream-3.0.0.tgz",
"integrity": "sha1-jpQ9E1jcN1VQVOy+LtsFqhdO3hQ=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"is-stream": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-1.1.0.tgz",
"integrity": "sha1-EtSj3U5o4Lec6428hBc66A2RykQ=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"lru-cache": {
"version": "4.1.5",
"resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz",
"integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==",
"dev": true,
+ "peer": true,
"requires": {
"pseudomap": "^1.0.2",
"yallist": "^2.1.2"
@@ -54767,6 +54821,7 @@
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-2.0.2.tgz",
"integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=",
"dev": true,
+ "peer": true,
"requires": {
"path-key": "^2.0.0"
}
@@ -54775,13 +54830,15 @@
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/path-key/-/path-key-2.0.1.tgz",
"integrity": "sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"shebang-command": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-1.2.0.tgz",
"integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=",
"dev": true,
+ "peer": true,
"requires": {
"shebang-regex": "^1.0.0"
}
@@ -54790,13 +54847,15 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-1.0.0.tgz",
"integrity": "sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"which": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/which/-/which-1.3.1.tgz",
"integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==",
"dev": true,
+ "peer": true,
"requires": {
"isexe": "^2.0.0"
}
@@ -54805,7 +54864,8 @@
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz",
"integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=",
- "dev": true
+ "dev": true,
+ "peer": true
}
}
},
@@ -59123,6 +59183,7 @@
"resolved": "https://registry.npmjs.org/showdown/-/showdown-1.8.6.tgz",
"integrity": "sha512-cOmS+LUIiyMxFo7OU3cgV+zTv43GItwlTwUPrpUd5dqdlZh8CJMVb8KxAMhr42J6exQwKTCHMxUiG74vamV1kA==",
"dev": true,
+ "peer": true,
"requires": {
"yargs": "^10.0.3"
},
@@ -59131,19 +59192,22 @@
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-3.0.1.tgz",
"integrity": "sha512-+O9Jct8wf++lXxxFc4hc8LsjaSq0HFzzL7cVsw8pRDIPdjKD2mT4ytDZlLuSBZ4cLKZFXIrMGO7DbQCtMJJMKw==",
- "dev": true
+ "dev": true,
+ "peer": true
},
"camelcase": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/camelcase/-/camelcase-4.1.0.tgz",
"integrity": "sha1-1UVjW+HjPFQmScaRc+Xeas+uNN0=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"cliui": {
"version": "4.1.0",
"resolved": "https://registry.npmjs.org/cliui/-/cliui-4.1.0.tgz",
"integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==",
"dev": true,
+ "peer": true,
"requires": {
"string-width": "^2.1.1",
"strip-ansi": "^4.0.0",
@@ -59155,6 +59219,7 @@
"resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
"integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
"dev": true,
+ "peer": true,
"requires": {
"locate-path": "^2.0.0"
}
@@ -59163,19 +59228,22 @@
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-1.0.3.tgz",
"integrity": "sha512-3t6rVToeoZfYSGd8YoLFR2DJkiQrIiUrGcjvFX2mDw3bn6k2OtwHN0TNCLbBO+w8qTvimhDkv+LSscbJY1vE6w==",
- "dev": true
+ "dev": true,
+ "peer": true
},
"is-fullwidth-code-point": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz",
"integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"locate-path": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
"integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
"dev": true,
+ "peer": true,
"requires": {
"p-locate": "^2.0.0",
"path-exists": "^3.0.0"
@@ -59186,6 +59254,7 @@
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
"integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
"dev": true,
+ "peer": true,
"requires": {
"p-try": "^1.0.0"
}
@@ -59195,6 +59264,7 @@
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz",
"integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
"dev": true,
+ "peer": true,
"requires": {
"p-limit": "^1.1.0"
}
@@ -59203,25 +59273,29 @@
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
"integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"path-exists": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
"integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"require-main-filename": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/require-main-filename/-/require-main-filename-1.0.1.tgz",
"integrity": "sha1-l/cXtp1IeE9fUmpsWqj/3aBVpNE=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"string-width": {
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
"integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==",
"dev": true,
+ "peer": true,
"requires": {
"is-fullwidth-code-point": "^2.0.0",
"strip-ansi": "^4.0.0"
@@ -59232,6 +59306,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-4.0.0.tgz",
"integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=",
"dev": true,
+ "peer": true,
"requires": {
"ansi-regex": "^3.0.0"
}
@@ -59241,6 +59316,7 @@
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-2.1.0.tgz",
"integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=",
"dev": true,
+ "peer": true,
"requires": {
"string-width": "^1.0.1",
"strip-ansi": "^3.0.1"
@@ -59250,13 +59326,15 @@
"version": "2.1.1",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz",
"integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=",
- "dev": true
+ "dev": true,
+ "peer": true
},
"is-fullwidth-code-point": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz",
"integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=",
"dev": true,
+ "peer": true,
"requires": {
"number-is-nan": "^1.0.0"
}
@@ -59266,6 +59344,7 @@
"resolved": "https://registry.npmjs.org/string-width/-/string-width-1.0.2.tgz",
"integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=",
"dev": true,
+ "peer": true,
"requires": {
"code-point-at": "^1.0.0",
"is-fullwidth-code-point": "^1.0.0",
@@ -59277,6 +59356,7 @@
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz",
"integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=",
"dev": true,
+ "peer": true,
"requires": {
"ansi-regex": "^2.0.0"
}
@@ -59287,13 +59367,15 @@
"version": "3.2.2",
"resolved": "https://registry.npmjs.org/y18n/-/y18n-3.2.2.tgz",
"integrity": "sha512-uGZHXkHnhF0XeeAPgnKfPv1bgKAYyVvmNL1xlKsPYZPaIHxGti2hHqvOCQv71XMsLxu1QjergkqogUnms5D3YQ==",
- "dev": true
+ "dev": true,
+ "peer": true
},
"yargs": {
"version": "10.1.2",
"resolved": "https://registry.npmjs.org/yargs/-/yargs-10.1.2.tgz",
"integrity": "sha512-ivSoxqBGYOqQVruxD35+EyCFDYNEFL/Uo6FcOnz+9xZdZzK0Zzw4r4KhbrME1Oo2gOggwJod2MnsdamSG7H9ig==",
"dev": true,
+ "peer": true,
"requires": {
"cliui": "^4.0.0",
"decamelize": "^1.1.1",
@@ -59314,6 +59396,7 @@
"resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-8.1.0.tgz",
"integrity": "sha512-yP+6QqN8BmrgW2ggLtTbdrOyBNSI7zBa4IykmiV5R1wl1JWNxQvWhMfMdmzIYtKU7oP3OOInY/tl2ov3BDjnJQ==",
"dev": true,
+ "peer": true,
"requires": {
"camelcase": "^4.1.0"
}
diff --git a/packages/translations/src/Provider/Provider.js b/packages/translations/src/Provider/Provider.tsx
similarity index 100%
rename from packages/translations/src/Provider/Provider.js
rename to packages/translations/src/Provider/Provider.tsx
diff --git a/packages/translations/src/Provider/index.js b/packages/translations/src/Provider/index.ts
similarity index 100%
rename from packages/translations/src/Provider/index.js
rename to packages/translations/src/Provider/index.ts
diff --git a/packages/translations/src/index.js b/packages/translations/src/index.ts
similarity index 100%
rename from packages/translations/src/index.js
rename to packages/translations/src/index.ts
diff --git a/packages/translations/src/intlHelper/index.js b/packages/translations/src/intlHelper/index.ts
similarity index 100%
rename from packages/translations/src/intlHelper/index.js
rename to packages/translations/src/intlHelper/index.ts
diff --git a/packages/translations/src/intlHelper/intlHelper.js b/packages/translations/src/intlHelper/intlHelper.js
deleted file mode 100644
index acf18c9ec..000000000
--- a/packages/translations/src/intlHelper/intlHelper.js
+++ /dev/null
@@ -1,6 +0,0 @@
-import React from 'react';
-import IntlProvider from '../Provider';
-
-const intlHelper = (message, settings) => {message};
-
-export default intlHelper;
diff --git a/packages/translations/src/intlHelper/intlHelper.tsx b/packages/translations/src/intlHelper/intlHelper.tsx
new file mode 100644
index 000000000..0b01359b5
--- /dev/null
+++ b/packages/translations/src/intlHelper/intlHelper.tsx
@@ -0,0 +1,7 @@
+import React from 'react';
+import IntlProvider from '../Provider';
+
+// eslint-disable-next-line @typescript-eslint/no-explicit-any
+const intlHelper = (message: any, settings: any) => {message};
+
+export default intlHelper;
diff --git a/packages/translations/src/messages.js b/packages/translations/src/messages.ts
similarity index 100%
rename from packages/translations/src/messages.js
rename to packages/translations/src/messages.ts
diff --git a/packages/translations/src/translatedMessages/translatedMessages.js b/packages/translations/src/translatedMessages/translatedMessages.ts
similarity index 100%
rename from packages/translations/src/translatedMessages/translatedMessages.js
rename to packages/translations/src/translatedMessages/translatedMessages.ts
diff --git a/packages/utils/package.json b/packages/utils/package.json
index 5ae77f998..678c90deb 100644
--- a/packages/utils/package.json
+++ b/packages/utils/package.json
@@ -36,8 +36,8 @@
"react-router-dom": ">=4.2.2"
},
"dependencies": {
- "@sentry/browser": "^5.4.0",
"@redhat-cloud-services/types": "^0.0.5",
+ "@sentry/browser": "^5.4.0",
"awesome-debounce-promise": "^2.1.0",
"axios": "^0.25.0",
"commander": ">=2.20.0",
@@ -45,6 +45,7 @@
"react-content-loader": ">=3.4.1"
},
"devDependencies": {
+ "@types/mkdirp": "^1.0.2",
"@types/react": "^16.9.34"
},
"sideEffects": false
diff --git a/packages/utils/src/inventoryDependencies/index.js b/packages/utils/src/inventoryDependencies/index.ts
similarity index 100%
rename from packages/utils/src/inventoryDependencies/index.js
rename to packages/utils/src/inventoryDependencies/index.ts
diff --git a/packages/utils/src/inventoryDependencies/inventoryDependencies.js b/packages/utils/src/inventoryDependencies/inventoryDependencies.ts
similarity index 100%
rename from packages/utils/src/inventoryDependencies/inventoryDependencies.js
rename to packages/utils/src/inventoryDependencies/inventoryDependencies.ts
diff --git a/packages/utils/src/mergeMessages/index.js b/packages/utils/src/mergeMessages/index.js
deleted file mode 100644
index 29fff4831..000000000
--- a/packages/utils/src/mergeMessages/index.js
+++ /dev/null
@@ -1 +0,0 @@
-require('./mergeMessages');
diff --git a/packages/utils/src/mergeMessages/index.ts b/packages/utils/src/mergeMessages/index.ts
new file mode 100644
index 000000000..e2de5aca9
--- /dev/null
+++ b/packages/utils/src/mergeMessages/index.ts
@@ -0,0 +1 @@
+export * from './mergeMessages';
diff --git a/packages/utils/src/mergeMessages/mergeMessages.js b/packages/utils/src/mergeMessages/mergeMessages.tsx
similarity index 85%
rename from packages/utils/src/mergeMessages/mergeMessages.js
rename to packages/utils/src/mergeMessages/mergeMessages.tsx
index 98e30fe0a..9cd91dbb4 100644
--- a/packages/utils/src/mergeMessages/mergeMessages.js
+++ b/packages/utils/src/mergeMessages/mergeMessages.tsx
@@ -1,8 +1,8 @@
-const program = require('commander');
-const fs = require('fs');
-const { sync: globSync } = require('glob');
-const { sync: mkdirpSync } = require('mkdirp');
-const last = require('lodash/last');
+import program from 'commander';
+import fs from 'fs';
+import { sync as globSync } from 'glob';
+import { sync as mkdirpSync } from 'mkdirp';
+import last from 'lodash/last';
let MESSAGES_PATTERN = 'build/messages/**/*.json';
let LANG_DIR = 'locales/';
@@ -41,7 +41,8 @@ if (program.langPattern) {
const mergedTranslations = globSync(`${rootFolder}${LANG_PATTERN}`)
.map((filename) => {
- const locale = last(filename.split('/')).split('.json')[0];
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ const locale = last(filename.split('/'))!.split('.json')[0];
if (!IGNORED.includes(locale)) {
return { [locale]: JSON.parse(fs.readFileSync(filename, 'utf8')) };
}
@@ -59,7 +60,7 @@ const defaultMessages = globSync(`${rootFolder}${MESSAGES_PATTERN}`)
.map((filename) => fs.readFileSync(filename, 'utf8'))
.map((file) => JSON.parse(file))
.reduce((collection, descriptors) => {
- descriptors.forEach(({ id, defaultMessage }) => {
+ descriptors.forEach(({ id, defaultMessage }: { id: never; defaultMessage: never }) => {
if (collection.hasOwnProperty(id)) {
throw new Error(`Duplicate message id: ${id}`);
}
diff --git a/packages/utils/src/useInventory/index.js b/packages/utils/src/useInventory/index.ts
similarity index 100%
rename from packages/utils/src/useInventory/index.js
rename to packages/utils/src/useInventory/index.ts
diff --git a/packages/utils/src/useInventory/useInventory.js b/packages/utils/src/useInventory/useInventory.tsx
similarity index 79%
rename from packages/utils/src/useInventory/useInventory.js
rename to packages/utils/src/useInventory/useInventory.tsx
index 0567dbf4d..ecb8642a3 100644
--- a/packages/utils/src/useInventory/useInventory.js
+++ b/packages/utils/src/useInventory/useInventory.tsx
@@ -1,3 +1,4 @@
+/* eslint-disable @typescript-eslint/no-explicit-any */
import { useEffect, useState } from 'react';
import * as reactRouterDom from 'react-router-dom';
import {
@@ -13,17 +14,27 @@ import {
} from '@patternfly/react-table';
console.error('"useInventory" hook is deprecated and will be removed in v4. Please use Chrome 2.0 compatible Inventory version.');
-export const useInventory = ({ store, tableReducer, detailReducer, getRegistry }) => {
- let cleenupCallback;
+export const useInventory = ({
+ store,
+ tableReducer,
+ detailReducer,
+ getRegistry,
+}: {
+ store: any;
+ tableReducer: any;
+ detailReducer: any;
+ getRegistry: any;
+}) => {
+ let cleanupCallback: () => void;
const [inventory, setInventory] = useState({
- newReducers: null,
- rawReducers: null,
+ newReducers: null as any,
+ rawReducers: null as any,
});
const [inventoryComponents, setInventoryComponents] = useState({
- InventoryTable: null,
- InventoryDetail: null,
- TagWithDialog: null,
+ InventoryTable: null as any,
+ InventoryDetail: null as any,
+ TagWithDialog: null as any,
});
useEffect(() => {
@@ -78,7 +89,7 @@ export const useInventory = ({ store, tableReducer, detailReducer, getRegistry }
}));
if (registry) {
- cleenupCallback = registry?.register?.(newReducers);
+ cleanupCallback = registry?.register?.(newReducers);
}
setInventoryComponents(() => ({
@@ -93,8 +104,8 @@ export const useInventory = ({ store, tableReducer, detailReducer, getRegistry }
})();
return () => {
- if (cleenupCallback && typeof cleenupCallback === 'function') {
- cleenupCallback();
+ if (cleanupCallback && typeof cleanupCallback === 'function') {
+ cleanupCallback();
}
};
}, []);
diff --git a/tsconfig.json b/tsconfig.json
index b7fa56ec3..fbdc97119 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -67,6 +67,7 @@
/* Advanced Options */
"skipLibCheck": true, /* Skip type checking of declaration files. */
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
+ "resolveJsonModule": true, /* Allows to import json files in ts files. */
},
"exclude": [
"packages/**/*.test.ts",