@rh-support/troubleshoot 0.2.63 → 0.2.71

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/README.md CHANGED
@@ -19,3 +19,5 @@ export function TroubleshootApp(routeProps: RouteComponentProps<{}>) {
19
19
  </RootTroubleshootProvider>);
20
20
  }
21
21
  ```
22
+
23
+ .
@@ -1 +1 @@
1
- {"version":3,"file":"ClusterRecommendationItems.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendationItems.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAW5F,UAAU,MAAM;IACZ,sBAAsB,EAAE,sBAAsB,EAAE,CAAC;CACpD;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,eAoFvD"}
1
+ {"version":3,"file":"ClusterRecommendationItems.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendationItems.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAW5F,UAAU,MAAM;IACZ,sBAAsB,EAAE,sBAAsB,EAAE,CAAC;CACpD;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,eAiFvD"}
@@ -28,7 +28,7 @@ export function ClusterRecommendationItems(props) {
28
28
  React.createElement("h3", null, rule.description)),
29
29
  React.createElement("pfe-accordion-panel", null,
30
30
  React.createElement("p", null,
31
- React.createElement(Label, { icon: riskLabels[rule.total_risk].icon, className: riskLabels[rule.total_risk].className },
31
+ React.createElement(Label, { color: riskLabels[rule.total_risk].color },
32
32
  React.createElement(Trans, null, riskLabels[rule.total_risk].label))),
33
33
  React.createElement("p", null, rule.details || ''),
34
34
  rule.reason && (React.createElement(React.Fragment, null,
@@ -52,24 +52,20 @@ export declare const markdownInlineFileSelectEvent = "PCM-Next > Markdown-toolba
52
52
  export declare const markdownFilePasteEvent = "PCM-Next > Markdown-toolbar-file-paste";
53
53
  export declare const riskLabels: {
54
54
  1: {
55
- icon: import("react").ComponentClass<import("@patternfly/react-icons/dist/js/createIcon").SVGIconProps, any>;
56
55
  label: string;
57
- className: string;
56
+ color: string;
58
57
  };
59
58
  2: {
60
- icon: import("react").ComponentClass<import("@patternfly/react-icons/dist/js/createIcon").SVGIconProps, any>;
61
59
  label: string;
62
- className: string;
60
+ color: string;
63
61
  };
64
62
  3: {
65
- icon: import("react").ComponentClass<import("@patternfly/react-icons/dist/js/createIcon").SVGIconProps, any>;
66
63
  label: string;
67
- className: string;
64
+ color: string;
68
65
  };
69
66
  4: {
70
- icon: () => JSX.Element;
71
67
  label: string;
72
- className: string;
68
+ color: string;
73
69
  };
74
70
  };
75
71
  //# sourceMappingURL=Constants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Constants.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,wBA+BE;AAEF;;GAEG;AACH,oBAAY,iBAAiB;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,IAAI,cAAc;IAClB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,sBAAsB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,kBAAkB,yBAAyB;CAC9C;AAED,eAAO,MAAM,8BAA8B,oDAAoD,CAAC;AAEhG,eAAO,MAAM,oCAAoC,wDAAwD,CAAC;AAC1G,eAAO,MAAM,6BAA6B,4CAA4C,CAAC;AACvF,eAAO,MAAM,sBAAsB,2CAA2C,CAAC;AAE/E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAKtB,CAAC"}
1
+ {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Constants.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA+BE;AAEF;;GAEG;AACH,oBAAY,iBAAiB;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,IAAI,cAAc;IAClB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,sBAAsB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,kBAAkB,yBAAyB;CAC9C;AAED,eAAO,MAAM,8BAA8B,oDAAoD,CAAC;AAEhG,eAAO,MAAM,oCAAoC,wDAAwD,CAAC;AAC1G,eAAO,MAAM,6BAA6B,4CAA4C,CAAC;AACvF,eAAO,MAAM,sBAAsB,2CAA2C,CAAC;AAE/E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;CAKtB,CAAC"}
@@ -1,7 +1,3 @@
1
- import AngleDoubleDownIcon from '@patternfly/react-icons/dist/js/icons/angle-double-down-icon';
2
- import AngleDoubleUpIcon from '@patternfly/react-icons/dist/js/icons/angle-double-up-icon';
3
- import EqualsIcon from '@patternfly/react-icons/dist/js/icons/equals-icon';
4
- import CriticalIcon from './CustomIcons/CriticalIcon';
5
1
  export default {
6
2
  languagesMap: {
7
3
  en: 'English',
@@ -55,8 +51,8 @@ export const recsViewedFromNoAttachmentModalEvent = 'PCM-Next > No-Attachment-mo
55
51
  export const markdownInlineFileSelectEvent = 'PCM-Next > Markdown-toolbar-file-select';
56
52
  export const markdownFilePasteEvent = 'PCM-Next > Markdown-toolbar-file-paste';
57
53
  export const riskLabels = {
58
- 1: { icon: AngleDoubleDownIcon, label: 'Low', className: 'risk-label-low' },
59
- 2: { icon: EqualsIcon, label: 'Moderate', className: 'risk-label-moderate' },
60
- 3: { icon: AngleDoubleUpIcon, label: 'Important', className: 'risk-label-important' },
61
- 4: { icon: CriticalIcon, label: 'Critical', className: 'risk-label-critical' },
54
+ 1: { label: 'Low', color: 'blue' },
55
+ 2: { label: 'Moderate', color: 'orange' },
56
+ 3: { label: 'Important', color: 'red' },
57
+ 4: { label: 'Critical', color: 'red' },
62
58
  };
@@ -921,18 +921,6 @@ div.pf-c-alert.ea-rule-alert > div.pf-c-alert__description > p {
921
921
  #case-details-aside-content[pfe-expanded] {
922
922
  overflow: visible;
923
923
  }
924
- .risk-label-low {
925
- background-color: var(--pf-global--palette--blue-300);
926
- }
927
- .risk-label-moderate {
928
- background-color: var(--pf-global--palette--gold-400);
929
- }
930
- .risk-label-important {
931
- background-color: var(--pf-global--palette--orange-300);
932
- }
933
- .risk-label-critical {
934
- background-color: var(--pf-global--palette--red-200);
935
- }
936
924
 
937
925
  .anchor-tag-button {
938
926
  padding: 0;
@@ -295,3 +295,9 @@ div.common-suggestions pfe-accordion {
295
295
  --pfe-accordion--FontSize--header: 16px;
296
296
  --pfe-accordion--FontWeight--header: 600;
297
297
  }
298
+
299
+ // Override PFE Collapse discloser = false
300
+ section.grid-aside-content pfe-accordion {
301
+ --pfe-accordion--FontSize--header: 16px;
302
+ --pfe-accordion--FontWeight--header: 600;
303
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "0.2.63",
3
+ "version": "0.2.71",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -73,12 +73,12 @@
73
73
  "@patternfly/react-core": "4.194.0",
74
74
  "@progress/kendo-drawing": "^1.6.0",
75
75
  "@progress/kendo-react-pdf": "^3.12.0",
76
- "@rh-support/api": "^0.3.12",
77
- "@rh-support/components": "^1.1.31",
78
- "@rh-support/react-context": "^0.2.34",
79
- "@rh-support/types": "^0.2.2",
80
- "@rh-support/user-permissions": "^0.2.25",
81
- "@rh-support/utils": "^0.2.23",
76
+ "@rh-support/api": "0.3.10",
77
+ "@rh-support/components": "1.1.39",
78
+ "@rh-support/react-context": "0.2.40",
79
+ "@rh-support/types": "0.2.0",
80
+ "@rh-support/user-permissions": "0.2.30",
81
+ "@rh-support/utils": "0.2.21",
82
82
  "@types/react-redux": "^7.1.12",
83
83
  "@types/redux": "^3.6.0",
84
84
  "@webcomponents/webcomponentsjs": "^2.2.10",
@@ -143,5 +143,5 @@
143
143
  "not ie <= 11",
144
144
  "not op_mini all"
145
145
  ],
146
- "gitHead": "70f8095b855f531eb814e85cb5a77908405fff5f"
146
+ "gitHead": "1cdbdc6728ef3ea47afa61a60407e82cd81da6af"
147
147
  }
@@ -1,3 +0,0 @@
1
- declare const CriticalIcon: () => JSX.Element;
2
- export default CriticalIcon;
3
- //# sourceMappingURL=CriticalIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CriticalIcon.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/CustomIcons/CriticalIcon.tsx"],"names":[],"mappings":"AAEA,QAAA,MAAM,YAAY,mBAcjB,CAAC;AACF,eAAe,YAAY,CAAC"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- const CriticalIcon = () => (React.createElement("svg", { fill: "currentColor", height: "1em", width: "1em", viewBox: "0 0 320 512", "aria-hidden": "true", role: "img", style: { verticalAlign: '-0.125em' } },
3
- React.createElement("svg", { viewBox: "0 0 10 10" },
4
- React.createElement("polygon", { points: "10 10, 10 3, 5 0, 0 3, 0 10, 5 8" }))));
5
- export default CriticalIcon;