@rh-support/troubleshoot 0.2.138 → 0.3.1

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.
@@ -90,9 +90,9 @@ function CaseHostname(props) {
90
90
  console.log(error);
91
91
  }
92
92
  });
93
- const shareHostnameLabel = 'Share hostnames with Red Hat';
93
+ const shareHostnameLabel = 'Share hostnames';
94
94
  const hostNameVisibilityContent = (React.createElement("div", null,
95
- React.createElement("p", null, "Share hostnames with our support professionals for a smoother and faster experience."),
95
+ React.createElement("p", null, "You can share this information at any time to improve your support experience."),
96
96
  React.createElement(Switch, { label: shareHostnameLabel, isChecked: isShareHostNamesChecked, onChange: onShareHostnameCheck })));
97
97
  if (!canUseHostName) {
98
98
  return React.createElement(React.Fragment, null);
@@ -103,7 +103,7 @@ function CaseHostname(props) {
103
103
  return (React.createElement(React.Fragment, null,
104
104
  React.createElement(InlineEdit, { labelProps: { htmlFor: 'case-details-hostname' }, formClassName: props.className || '', labelContent: React.createElement(React.Fragment, null,
105
105
  React.createElement(Trans, null, "Hostname"),
106
- React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localHostnameChange, value: hostname, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.hostname) })), helperContent: React.createElement(Popover, { "aria-label": "Hostname Info", position: PopoverPosition.auto, bodyContent: hostNameVisibilityContent, closeBtnAriaLabel: "Close", headerContent: 'Hostname Visibility', onShow: () => userOriginalHostnameValue() },
106
+ React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, isLocalChange: localHostnameChange, value: hostname, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.hostname) })), helperContent: React.createElement(Popover, { "aria-label": "Hostname Info", position: PopoverPosition.auto, bodyContent: hostNameVisibilityContent, closeBtnAriaLabel: "Close", headerContent: 'Share hostname?', onShow: () => userOriginalHostnameValue() },
107
107
  React.createElement("i", { "aria-label": "Hostname Info", className: "m-l-1 fa fa-question-circle" })), allowInlineEdit: props.inlineEditable, content: hostname, saveDisabled: isHostNameEmpty || hostnameState === hostname || isHostnameUpdating || lengthError, onSave: onSave, onCancel: onCancel, initialIsEditing: false, loadingIndicator: isHostnameUpdating ? React.createElement(LoadingIndicator, { show: isHostnameUpdating, isInline: true }) : null },
108
108
  React.createElement("input", { type: "text", id: "case-details-hostname", className: `form-control${lengthError ? ' form-invalid' : ''}`, name: "case-details-hostname", value: hostnameState, onChange: onHostnameChange, disabled: isHostnameUpdating, "data-tracking-id": "case-details-hostname", "aria-invalid": lengthError })),
109
109
  lengthError && (React.createElement("div", { className: "pull-top" },
@@ -33,7 +33,7 @@ export function ClusterRecommendationItems(props) {
33
33
  React.createElement("h3", null, rule.description)),
34
34
  React.createElement("pfe-accordion-panel", null,
35
35
  React.createElement("p", null,
36
- React.createElement(Label, { color: riskLabels[rule.total_risk].color },
36
+ React.createElement(Label, { icon: riskLabels[rule.total_risk].icon, color: riskLabels[rule.total_risk].color },
37
37
  React.createElement(Trans, null, riskLabels[rule.total_risk].label))),
38
38
  React.createElement("p", null, rule.details || ''),
39
39
  rule.reason && (React.createElement(React.Fragment, null,
@@ -52,18 +52,22 @@ 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: JSX.Element;
55
56
  label: string;
56
57
  color: string;
57
58
  };
58
59
  2: {
60
+ icon: JSX.Element;
59
61
  label: string;
60
62
  color: string;
61
63
  };
62
64
  3: {
65
+ icon: JSX.Element;
63
66
  label: string;
64
67
  color: string;
65
68
  };
66
69
  4: {
70
+ icon: JSX.Element;
67
71
  label: string;
68
72
  color: string;
69
73
  };
@@ -1 +1 @@
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
+ {"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Constants.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,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,3 +1,8 @@
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 CriticalRiskIcon from '@patternfly/react-icons/dist/js/icons/critical-risk-icon';
4
+ import EqualsIcon from '@patternfly/react-icons/dist/js/icons/equals-icon';
5
+ import React from 'react';
1
6
  export default {
2
7
  languagesMap: {
3
8
  en: 'English',
@@ -51,8 +56,8 @@ export const recsViewedFromNoAttachmentModalEvent = 'PCM-Next > No-Attachment-mo
51
56
  export const markdownInlineFileSelectEvent = 'PCM-Next > Markdown-toolbar-file-select';
52
57
  export const markdownFilePasteEvent = 'PCM-Next > Markdown-toolbar-file-paste';
53
58
  export const riskLabels = {
54
- 1: { label: 'Low', color: 'blue' },
55
- 2: { label: 'Moderate', color: 'orange' },
56
- 3: { label: 'Important', color: 'red' },
57
- 4: { label: 'Critical', color: 'red' },
59
+ 1: { icon: React.createElement(AngleDoubleDownIcon, null), label: 'Low', color: 'blue' },
60
+ 2: { icon: React.createElement(EqualsIcon, null), label: 'Moderate', color: 'gold' },
61
+ 3: { icon: React.createElement(AngleDoubleUpIcon, null), label: 'Important', color: 'orange' },
62
+ 4: { icon: React.createElement(CriticalRiskIcon, null), label: 'Critical', color: 'red' },
58
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "0.2.138",
3
+ "version": "0.3.1",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -28,7 +28,7 @@
28
28
  "peerDependencies": {
29
29
  "@cee-eng/hydrajs": "4.12.7",
30
30
  "@cee-eng/ui-toolkit": "1.1.6",
31
- "@patternfly/patternfly": "4.185.1",
31
+ "@patternfly/patternfly": "4.196.7",
32
32
  "@patternfly/pfe-accordion": "1.12.3",
33
33
  "@patternfly/pfe-collapse": "1.12.3",
34
34
  "@patternfly/pfe-tabs": "1.12.3",
@@ -47,7 +47,7 @@
47
47
  "js-worker-search": "^1.4.1",
48
48
  "lazysizes": "^5.3.2",
49
49
  "localforage": "^1.7.3",
50
- "lodash": "^4.17.15",
50
+ "lodash": "^4.17.21",
51
51
  "mark.js": "^8.11.1",
52
52
  "marked": "^1.2.4",
53
53
  "qs": "^6.7.0",
@@ -65,7 +65,7 @@
65
65
  "dependencies": {
66
66
  "@cee-eng/hydrajs": "4.12.7",
67
67
  "@cee-eng/ui-toolkit": "1.1.6",
68
- "@patternfly/patternfly": "4.185.1",
68
+ "@patternfly/patternfly": "4.196.7",
69
69
  "@patternfly/pfe-accordion": "1.12.3",
70
70
  "@patternfly/pfe-collapse": "1.12.3",
71
71
  "@patternfly/pfe-icon": "^1.12.3",
@@ -74,11 +74,11 @@
74
74
  "@progress/kendo-drawing": "^1.6.0",
75
75
  "@progress/kendo-react-pdf": "^3.12.0",
76
76
  "@rh-support/api": "0.3.25",
77
- "@rh-support/components": "1.1.80",
78
- "@rh-support/react-context": "0.2.86",
77
+ "@rh-support/components": "1.1.81",
78
+ "@rh-support/react-context": "0.3.1",
79
79
  "@rh-support/types": "0.2.0",
80
- "@rh-support/user-permissions": "0.2.64",
81
- "@rh-support/utils": "0.2.47",
80
+ "@rh-support/user-permissions": "0.2.65",
81
+ "@rh-support/utils": "0.2.48",
82
82
  "@types/react-redux": "^7.1.12",
83
83
  "@types/redux": "^3.6.0",
84
84
  "@webcomponents/webcomponentsjs": "^2.2.10",
@@ -89,7 +89,7 @@
89
89
  "js-worker-search": "^1.4.1",
90
90
  "lazysizes": "^5.3.2",
91
91
  "localforage": "^1.7.3",
92
- "lodash": "^4.17.15",
92
+ "lodash": "^4.17.21",
93
93
  "mark.js": "^8.11.1",
94
94
  "marked": "^1.2.4",
95
95
  "qs": "^6.7.0",
@@ -119,7 +119,7 @@
119
119
  "@types/react-dom": "^17.0.9",
120
120
  "@types/react-i18next": "^8.1.0",
121
121
  "@types/react-router-dom": "^5.1.2",
122
- "faker": "^4.1.0",
122
+ "faker": "^5.5.3",
123
123
  "node-sass": "^4.14.1"
124
124
  },
125
125
  "scripts": {
@@ -143,5 +143,5 @@
143
143
  "not ie <= 11",
144
144
  "not op_mini all"
145
145
  ],
146
- "gitHead": "d0acd5aa52cbe047dd35da3e11118827ae427f26"
146
+ "gitHead": "e4bbdcf60f5ca9c6427a3655a7d264680c692b37"
147
147
  }