@rh-support/manage 0.2.65 → 0.2.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.d.ts.map +1 -1
- package/lib/esm/components/TopContentManagement/TopContentEditor/TopContentEditor.js +1 -1
- package/lib/esm/components/TopContentManagement/TopContentProductVersionSelector.js +1 -1
- package/lib/esm/hooks/useVersionsDiffer.d.ts.map +1 -1
- package/lib/esm/hooks/useVersionsDiffer.js +4 -0
- package/lib/esm/scss/_pf4-overrides.scss +1 -1
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopContentEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/TopContentEditor/TopContentEditor.tsx"],"names":[],"mappings":"AA2CA,wBAAgB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"TopContentEditor.d.ts","sourceRoot":"","sources":["../../../../../src/components/TopContentManagement/TopContentEditor/TopContentEditor.tsx"],"names":[],"mappings":"AA2CA,wBAAgB,gBAAgB,gBAsT/B"}
|
|
@@ -149,5 +149,5 @@ export function TopContentEditor() {
|
|
|
149
149
|
' ',
|
|
150
150
|
React.createElement(Button, { variant: "link", onClick: onCancelArrangement },
|
|
151
151
|
React.createElement(Trans, null, "Cancel")))))))))),
|
|
152
|
-
React.createElement(MajorVersionPerformanceMetrics, { isModalOpen: isModalOpen, onHideModal: onHideModal, filteredTC: filteredTC, selectedMajorVersion: selectedVersion, selectedProduct: selectedProduct.name }))));
|
|
152
|
+
isMajorVersion(selectedVersion) && (React.createElement(MajorVersionPerformanceMetrics, { isModalOpen: isModalOpen, onHideModal: onHideModal, filteredTC: filteredTC, selectedMajorVersion: selectedVersion, selectedProduct: selectedProduct.name })))));
|
|
153
153
|
}
|
|
@@ -23,7 +23,7 @@ function getProcessedVersions(arr) {
|
|
|
23
23
|
let i = 0;
|
|
24
24
|
while (i < arr.length) {
|
|
25
25
|
const major = getVersion(arr[i]).major;
|
|
26
|
-
if (Number(major) && !majorsArray.includes(major)) {
|
|
26
|
+
if (Number(major) && !majorsArray.includes(major) && !arr.includes(major + '.x')) {
|
|
27
27
|
majorsArray.push(major);
|
|
28
28
|
arr.splice(i, 0, major + '.x');
|
|
29
29
|
i = i + 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useVersionsDiffer.d.ts","sourceRoot":"","sources":["../../../src/hooks/useVersionsDiffer.tsx"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,wBAAyB,MAAM,wBAAwB,MAAM,KAAG,CAAC,OAAO,EAAE,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"useVersionsDiffer.d.ts","sourceRoot":"","sources":["../../../src/hooks/useVersionsDiffer.tsx"],"names":[],"mappings":"AAOA;;;;;GAKG;AACH,eAAO,MAAM,iBAAiB,wBAAyB,MAAM,wBAAwB,MAAM,KAAG,CAAC,OAAO,EAAE,MAAM,EAAE,CAgD/G,CAAC"}
|
|
@@ -33,10 +33,14 @@ export const useVersionsDiffer = (selectedProductName, selectedMajorVersion) =>
|
|
|
33
33
|
// In this effect we are calculating and finding difference between original version list and version with top content
|
|
34
34
|
useEffect(() => {
|
|
35
35
|
var _a, _b;
|
|
36
|
+
// If versions list is empty, then set `majorVersion.x`
|
|
36
37
|
if (((_a = versions === null || versions === void 0 ? void 0 : versions.items) === null || _a === void 0 ? void 0 : _a.length) && (topContentVersion === null || topContentVersion === void 0 ? void 0 : topContentVersion.length)) {
|
|
37
38
|
const subVersions = (_b = versions === null || versions === void 0 ? void 0 : versions.items) === null || _b === void 0 ? void 0 : _b.filter((item) => item.startsWith(selectedMajorVersion)).map((item) => { var _a; return (_a = item.split('.')) === null || _a === void 0 ? void 0 : _a.splice(1).join('.'); }).sort();
|
|
38
39
|
setMajorVersion(difference(subVersions, topContentVersion));
|
|
39
40
|
}
|
|
41
|
+
else {
|
|
42
|
+
setMajorVersion(['x']);
|
|
43
|
+
}
|
|
40
44
|
}, [versions, topContentVersion, selectedMajorVersion]);
|
|
41
45
|
return [isLoadingVersions || isTopContentVersion, majorVersion.map((item) => `${selectedMajorVersion}.${item}`)];
|
|
42
46
|
};
|
|
@@ -53,7 +53,7 @@ div#top-content-major-version-performance-metric.pf-c-modal-box {
|
|
|
53
53
|
position: sticky;
|
|
54
54
|
top: 0;
|
|
55
55
|
background: var(--pf-c-modal-box--BackgroundColor);
|
|
56
|
-
z-index:
|
|
56
|
+
z-index: 101; // As .pf-c-toggle-group__button is having z-index: var(--pf-c-toggle-group__button--ZIndex) (100) need to set z-index 101;
|
|
57
57
|
padding-bottom: var(--pf-global--spacer--sm);
|
|
58
58
|
}
|
|
59
59
|
.content {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.66",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"react-i18next": ">=10.11.0",
|
|
114
114
|
"react-router-dom": ">=5.1.2"
|
|
115
115
|
},
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "3e5e6c715aa2ef2fd0e53ea1d521c610f7ad9781"
|
|
117
117
|
}
|