@rh-support/manage 0.2.98 → 0.3.0

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,7 +1,7 @@
1
1
  interface IProps {
2
2
  className: string;
3
3
  id: string;
4
- label: string;
4
+ label: any;
5
5
  onSwitchChange: (checked: boolean) => Promise<any>;
6
6
  isChecked: boolean;
7
7
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PreferenceSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSwitch.tsx"],"names":[],"mappings":"AAKA,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,MAAM,eA+B3F"}
1
+ {"version":3,"file":"PreferenceSwitch.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/components/PreferenceSwitch.tsx"],"names":[],"mappings":"AAKA,UAAU,MAAM;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,GAAG,CAAC;IACX,cAAc,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnD,SAAS,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAAE,cAAc,EAAE,SAAS,EAAE,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,MAAM,eA+B3F"}
@@ -30,5 +30,5 @@ export function PreferenceSwitch({ onSwitchChange, className, id, label, isCheck
30
30
  }
31
31
  });
32
32
  return (React.createElement("div", null,
33
- React.createElement(Switch, { className: className, id: id, label: t(label), isChecked: isCheckedLocal, onChange: onChangeLocal, isDisabled: isSwitchLoading })));
33
+ React.createElement(Switch, { className: className, id: id, label: label, isChecked: isCheckedLocal, onChange: onChangeLocal, isDisabled: isSwitchLoading })));
34
34
  }
@@ -1 +1 @@
1
- {"version":3,"file":"PreferencesCaseView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseView.tsx"],"names":[],"mappings":"AAcA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,eAiKhD"}
1
+ {"version":3,"file":"PreferencesCaseView.d.ts","sourceRoot":"","sources":["../../../../../src/components/ManagePreferences/sections/PreferencesCaseView.tsx"],"names":[],"mappings":"AAeA,UAAU,MAAM;CAAG;AAEnB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,eA4KhD"}
@@ -8,7 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
8
8
  });
9
9
  };
10
10
  import { accounts } from '@cee-eng/hydrajs';
11
- import { Card, CardBody, CardHeader, SelectOption, Spinner, TextArea } from '@patternfly/react-core';
11
+ import { Card, CardBody, CardHeader, SelectOption, Spinner, TextArea, Tooltip } from '@patternfly/react-core';
12
+ import InfoIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
12
13
  import { EditorMode, ToastNotification, useFetch } from '@rh-support/components';
13
14
  import { GlobalMetadataStateContext } from '@rh-support/react-context';
14
15
  import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
@@ -112,6 +113,11 @@ export function PreferencesCaseView(props) {
112
113
  console.log(error);
113
114
  }
114
115
  });
116
+ const prefHostnameCopy = 'Red Hat Support cannot currently access hostnames that have been entered on a case. You can share this information at any time to improve your support experience.';
117
+ const hostnameLabelTooltip = (React.createElement(React.Fragment, null,
118
+ React.createElement("label", null, "Share hostnames"),
119
+ React.createElement(Tooltip, { content: prefHostnameCopy, position: "right" },
120
+ React.createElement(InfoIcon, { className: "pf-u-ml-sm" }))));
115
121
  return (React.createElement(Card, { className: "preference-card" },
116
122
  React.createElement(CardHeader, null,
117
123
  React.createElement("h3", null,
@@ -130,5 +136,5 @@ export function PreferencesCaseView(props) {
130
136
  canUseHostName && (React.createElement("div", { className: "form-group" },
131
137
  React.createElement("label", { htmlFor: "share-hostnames-switch" },
132
138
  React.createElement(Trans, null, "Case information")),
133
- React.createElement(PreferenceSwitch, { className: "switches", id: "share-hostnames-switch", label: "Share hostnames with Red Hat", isChecked: isSharingHostNames, onSwitchChange: onShareHostNamesSwitch })))))));
139
+ React.createElement(PreferenceSwitch, { className: "switches", id: "share-hostnames-switch", label: hostnameLabelTooltip, isChecked: isSharingHostNames, onSwitchChange: onShareHostNamesSwitch })))))));
134
140
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/manage",
3
- "version": "0.2.98",
3
+ "version": "0.3.0",
4
4
  "description": "Customer Support Manage App",
5
5
  "author": "Jordan Eudy <jeudy100@gmail.com>",
6
6
  "homepage": "",
@@ -51,7 +51,7 @@
51
51
  "not op_mini all"
52
52
  ],
53
53
  "peerDependencies": {
54
- "@cee-eng/hydrajs": "4.12.6",
54
+ "@cee-eng/hydrajs": "4.12.7",
55
55
  "@patternfly/patternfly": "4.185.1",
56
56
  "@patternfly/pfe-accordion": "1.12.3",
57
57
  "@patternfly/pfe-collapse": "1.12.3",
@@ -88,20 +88,20 @@
88
88
  "typescript": "4.3.5"
89
89
  },
90
90
  "dependencies": {
91
- "@cee-eng/hydrajs": "4.12.6",
91
+ "@cee-eng/hydrajs": "4.12.7",
92
92
  "@patternfly/patternfly": "4.185.1",
93
93
  "@patternfly/pfe-accordion": "1.12.3",
94
94
  "@patternfly/pfe-collapse": "1.12.3",
95
95
  "@patternfly/pfe-tabs": "1.12.3",
96
96
  "@patternfly/react-core": "4.202.16",
97
97
  "@patternfly/react-table": "4.71.16",
98
- "@rh-support/api": "0.3.24",
99
- "@rh-support/components": "1.1.79",
98
+ "@rh-support/api": "0.3.25",
99
+ "@rh-support/components": "1.1.80",
100
100
  "@rh-support/configs": "0.2.5",
101
- "@rh-support/react-context": "0.2.85",
101
+ "@rh-support/react-context": "0.3.0",
102
102
  "@rh-support/types": "0.2.0",
103
- "@rh-support/user-permissions": "0.2.63",
104
- "@rh-support/utils": "0.2.46",
103
+ "@rh-support/user-permissions": "0.2.64",
104
+ "@rh-support/utils": "0.2.47",
105
105
  "@types/react-beautiful-dnd": "^13.0.0",
106
106
  "i18next": ">=17.0.1",
107
107
  "lodash": ">=4.17.15",
@@ -111,5 +111,5 @@
111
111
  "react-i18next": ">=10.11.0",
112
112
  "react-router-dom": ">=5.1.2"
113
113
  },
114
- "gitHead": "acb137236b62e31aba70cda91755b3b94f0cb7da"
114
+ "gitHead": "df9aba7f875d84c08c533f9ae63c4c7b325fe646"
115
115
  }