@rh-support/manage 0.2.67 → 0.2.68
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.
|
@@ -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,CAsD/G,CAAC"}
|
|
@@ -32,12 +32,16 @@ export const useVersionsDiffer = (selectedProductName, selectedMajorVersion) =>
|
|
|
32
32
|
}, [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
|
-
var _a, _b;
|
|
35
|
+
var _a, _b, _c;
|
|
36
36
|
// If versions list is empty, then set `majorVersion.x`
|
|
37
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)) {
|
|
38
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();
|
|
39
39
|
setMajorVersion(difference(subVersions, topContentVersion));
|
|
40
40
|
}
|
|
41
|
+
else if ((_c = versions === null || versions === void 0 ? void 0 : versions.items) === null || _c === void 0 ? void 0 : _c.length) {
|
|
42
|
+
const subVersions = versions === null || versions === void 0 ? void 0 : versions.items.filter((item) => item.startsWith(selectedMajorVersion)).map((item) => { var _a; return (_a = item.split('.')) === null || _a === void 0 ? void 0 : _a.splice(1).join('.'); }).sort();
|
|
43
|
+
setMajorVersion(subVersions);
|
|
44
|
+
}
|
|
41
45
|
else {
|
|
42
46
|
setMajorVersion(['x']);
|
|
43
47
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/manage",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.68",
|
|
4
4
|
"description": "Customer Support Manage App",
|
|
5
5
|
"author": "Jordan Eudy <jeudy100@gmail.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -52,12 +52,12 @@
|
|
|
52
52
|
],
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"@cee-eng/hydrajs": "4.7.22",
|
|
55
|
-
"@patternfly/patternfly": "4.
|
|
55
|
+
"@patternfly/patternfly": "4.185.1",
|
|
56
56
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
57
57
|
"@patternfly/pfe-collapse": "1.12.3",
|
|
58
58
|
"@patternfly/pfe-tabs": "1.12.3",
|
|
59
|
-
"@patternfly/react-core": "4.
|
|
60
|
-
"@patternfly/react-table": "4.
|
|
59
|
+
"@patternfly/react-core": "4.202.16",
|
|
60
|
+
"@patternfly/react-table": "4.71.16",
|
|
61
61
|
"@rh-support/api": "0.3.9",
|
|
62
62
|
"@rh-support/components": "^0.1.3",
|
|
63
63
|
"@rh-support/react-context": "^0.1.3",
|
|
@@ -90,16 +90,16 @@
|
|
|
90
90
|
},
|
|
91
91
|
"dependencies": {
|
|
92
92
|
"@cee-eng/hydrajs": "4.7.22",
|
|
93
|
-
"@patternfly/patternfly": "4.
|
|
93
|
+
"@patternfly/patternfly": "4.185.1",
|
|
94
94
|
"@patternfly/pfe-accordion": "1.12.3",
|
|
95
95
|
"@patternfly/pfe-collapse": "1.12.3",
|
|
96
96
|
"@patternfly/pfe-tabs": "1.12.3",
|
|
97
|
-
"@patternfly/react-core": "4.
|
|
98
|
-
"@patternfly/react-table": "4.
|
|
97
|
+
"@patternfly/react-core": "4.202.16",
|
|
98
|
+
"@patternfly/react-table": "4.71.16",
|
|
99
99
|
"@rh-support/api": "0.3.13",
|
|
100
|
-
"@rh-support/components": "1.1.
|
|
100
|
+
"@rh-support/components": "1.1.56",
|
|
101
101
|
"@rh-support/configs": "0.2.5",
|
|
102
|
-
"@rh-support/react-context": "0.2.
|
|
102
|
+
"@rh-support/react-context": "0.2.56",
|
|
103
103
|
"@rh-support/types": "0.2.0",
|
|
104
104
|
"@rh-support/user-permissions": "0.2.44",
|
|
105
105
|
"@rh-support/utils": "0.2.33",
|
|
@@ -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": "981468e419f36c15d6039eaa49b52e6a180752a3"
|
|
117
117
|
}
|