@rh-support/react-context 2.1.31 → 2.4.10-beta.6
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 +2 -0
- package/lib/esm/components/AccountSelector/AccountSelectorInternal.d.ts.map +1 -1
- package/lib/esm/components/AccountSelector/AccountSelectorInternal.js +94 -174
- package/lib/esm/components/EmbeddedServiceChat/EmbeddedServiceChat.js +4 -4
- package/lib/esm/components/HostnameAwarenessModal/HostnameAwarenessModal.js +2 -2
- package/lib/esm/components/HostnameAwarenessModal/hostnameAwarenessModal.css +1 -1
- package/lib/esm/components/NewFeatureAnnouncement/NewFeatureLabel.js +1 -1
- package/lib/esm/components/SharedModals/CloseCaseModal.d.ts.map +1 -1
- package/lib/esm/components/SharedModals/CloseCaseModal.js +6 -12
- package/lib/esm/components/SharedModals/CloseCaseModal.scss +6 -6
- package/lib/esm/reducers/GlobalMetadataReducer.d.ts +1 -2
- package/lib/esm/reducers/GlobalMetadataReducer.d.ts.map +1 -1
- package/lib/esm/reducers/GlobalMetadataReducer.js +0 -1
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSelectorInternal.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountSelector/AccountSelectorInternal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;
|
|
1
|
+
{"version":3,"file":"AccountSelectorInternal.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountSelector/AccountSelectorInternal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAEhF,OAAO,EAAqB,kBAAkB,EAAoC,MAAM,wBAAwB,CAAC;AASjH,UAAU,MAAO,SAAQ,kBAAkB,CAAC,QAAQ,CAAC;IACjD,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC9B,eAAe,CAAC,EAAE,QAAQ,EAAE,CAAC;IAC7B,kBAAkB,CAAC,EAAE,QAAQ,EAAE,CAAC;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC,QAAQ,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,GAAG,CAAC;IACzC,iBAAiB,CAAC,EAAE,kBAAkB,CAAC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6BAA6B,CAAC,EAAE,OAAO,CAAC;CAC3C;AAuBD,iBAAS,uBAAuB,CAAC,KAAK,EAAE,MAAM,eAuL7C;kBAvLQ,uBAAuB;;;AA0LhC,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -8,15 +8,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { accounts } from '@cee-eng/hydrajs';
|
|
11
|
-
import { Button, Flex, FlexItem, MenuToggle, Select, SelectList, SelectOption, TextInputGroup, TextInputGroupMain, TextInputGroupUtilities, } from '@patternfly/react-core';
|
|
12
11
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
12
|
+
import { AsyncDropDownList, AsyncMultiDropDownList, useFetch } from '@rh-support/components';
|
|
13
|
+
import { toOption, toOptions } from '@rh-support/utils';
|
|
14
|
+
import assign from 'lodash/assign';
|
|
16
15
|
import isEmpty from 'lodash/isEmpty';
|
|
17
|
-
import isNull from 'lodash/isNull';
|
|
18
16
|
import uniqBy from 'lodash/uniqBy';
|
|
19
|
-
import React, { useEffect, useMemo,
|
|
17
|
+
import React, { useEffect, useMemo, useState } from 'react';
|
|
20
18
|
import { Trans, useTranslation } from 'react-i18next';
|
|
21
19
|
const defaultProps = {
|
|
22
20
|
id: '',
|
|
@@ -38,84 +36,48 @@ const defaultProps = {
|
|
|
38
36
|
isInValid: false,
|
|
39
37
|
restrictedOnSubscriptionAbuse: false,
|
|
40
38
|
};
|
|
41
|
-
const getDisplayName = (account) => {
|
|
42
|
-
if (!account) {
|
|
43
|
-
return '';
|
|
44
|
-
}
|
|
45
|
-
return account.accountNumber
|
|
46
|
-
? account.name
|
|
47
|
-
? `${account.name} (${account.accountNumber})`
|
|
48
|
-
: account.accountNumber
|
|
49
|
-
: '';
|
|
50
|
-
};
|
|
51
39
|
function AccountSelectorInternal(props) {
|
|
52
40
|
const { request, isFetching } = useFetch(accounts.getAccounts, { isAbortable: true });
|
|
53
41
|
const [items, setItems] = useState([]);
|
|
54
42
|
const [selectedItems, setSelectedItems] = useState([]);
|
|
55
|
-
const [isOpen, setIsOpen] = useState(false);
|
|
56
|
-
const [isQueryChanged, setIsQueryChanged] = useState(false);
|
|
57
|
-
const [query, setQuery] = useState('');
|
|
58
|
-
const [focusedItemIndex, setFocusedItemIndex] = useState(null);
|
|
59
|
-
const textInputRef = useRef();
|
|
60
|
-
const inputGroupRef = useRef();
|
|
61
43
|
const { t } = useTranslation();
|
|
62
44
|
const bookmarkedAccountsDeduped = uniqBy(props.bookmarkedAccounts, (b) => b.accountNumber);
|
|
63
|
-
const pageSize = 20;
|
|
64
|
-
const [resultSize, setResultSize] = useState(pageSize);
|
|
65
|
-
const setQueryLabel = (selectedItems) => {
|
|
66
|
-
const item = !isEmpty(selectedItems) && !props.multiple ? selectedItems[0] : {};
|
|
67
|
-
setQuery(getDisplayName(item));
|
|
68
|
-
};
|
|
69
|
-
const itemsToRender = useMemo(() => (isEmpty(items) ? bookmarkedAccountsDeduped : items.slice(0, props.paginate ? resultSize : items.length)), [items, bookmarkedAccountsDeduped, props.paginate, resultSize]);
|
|
70
45
|
useEffect(() => {
|
|
71
46
|
if (!props.multiple) {
|
|
72
47
|
const selectedItem = (props.selectedAccounts || [])[0];
|
|
73
|
-
selectedItem && selectedItem.accountNumber && setSelectedItems(props.selectedAccounts
|
|
48
|
+
selectedItem && selectedItem.accountNumber && setSelectedItems(props.selectedAccounts);
|
|
74
49
|
}
|
|
75
50
|
else {
|
|
76
|
-
setSelectedItems(props.selectedAccounts
|
|
51
|
+
setSelectedItems(props.selectedAccounts);
|
|
77
52
|
}
|
|
78
53
|
}, [props.selectedAccounts, props.multiple]);
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}, [selectedItems, props.multiple]);
|
|
83
|
-
const onDisplayMoreClick = (e) => {
|
|
84
|
-
e.stopPropagation();
|
|
85
|
-
setResultSize((pre) => Math.min(pre + pageSize, items.length));
|
|
86
|
-
setIsOpen(true);
|
|
87
|
-
};
|
|
88
|
-
const dropdownOptions = useMemo(() => {
|
|
89
|
-
if (isFetching) {
|
|
90
|
-
return (React.createElement("div", { key: "searching", className: "pf-v5-u-px-md pf-v5-u-py-sm" },
|
|
91
|
-
React.createElement(Trans, null, "Searching...")));
|
|
54
|
+
const getDisplayName = (account) => {
|
|
55
|
+
if (!account) {
|
|
56
|
+
return undefined;
|
|
92
57
|
}
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
58
|
+
return account.accountNumber
|
|
59
|
+
? account.name
|
|
60
|
+
? `${account.name} (${account.accountNumber})`
|
|
61
|
+
: account.accountNumber
|
|
62
|
+
: '';
|
|
63
|
+
};
|
|
64
|
+
const getDropdownOptions = (accounts) => {
|
|
65
|
+
if (!accounts) {
|
|
66
|
+
return [];
|
|
96
67
|
}
|
|
97
|
-
return
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
React.createElement(Flex, { justifyContent: { default: 'justifyContentCenter' } },
|
|
109
|
-
React.createElement(FlexItem, { className: '"pf-v5-c-button pf-m-link pf-m-inline' },
|
|
110
|
-
React.createElement(Trans, null, "Display additional results")))),
|
|
111
|
-
]
|
|
112
|
-
: []),
|
|
113
|
-
];
|
|
114
|
-
},
|
|
115
|
-
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
116
|
-
[items, bookmarkedAccountsDeduped, isFetching, itemsToRender, isQueryChanged]);
|
|
68
|
+
return accounts
|
|
69
|
+
.filter((account) => !!account && !props.excludeAccounts.find(({ accountId }) => accountId === account.accountId))
|
|
70
|
+
.map((account) => assign({
|
|
71
|
+
children: (React.createElement(React.Fragment, null, props.restrictedOnSubscriptionAbuse && account.subscriptionAbuse ? (React.createElement("span", { className: "form-instructions form-invalid" }, getDisplayName(account))) : (getDisplayName(account)))),
|
|
72
|
+
actionItem: (React.createElement(React.Fragment, null, props.restrictedOnSubscriptionAbuse && account.subscriptionAbuse && (React.createElement("span", { className: "form-instructions form-invalid pf-u-text-nowrap pf-u-pr-sm" },
|
|
73
|
+
' ',
|
|
74
|
+
React.createElement(InfoCircleIcon, null),
|
|
75
|
+
" ",
|
|
76
|
+
React.createElement(Trans, null, "Subscription abuse"))))),
|
|
77
|
+
}, account));
|
|
78
|
+
};
|
|
117
79
|
const fetchAccounts = (query) => __awaiter(this, void 0, void 0, function* () {
|
|
118
|
-
if (
|
|
80
|
+
if (query == null) {
|
|
119
81
|
return;
|
|
120
82
|
}
|
|
121
83
|
const fields = ['accountNumber', 'accountId', 'name', 'subscriptionAbuse'].join(',');
|
|
@@ -132,121 +94,79 @@ function AccountSelectorInternal(props) {
|
|
|
132
94
|
else {
|
|
133
95
|
params.accountNumberLike = query;
|
|
134
96
|
}
|
|
135
|
-
const queryParams =
|
|
136
|
-
|
|
137
|
-
|
|
97
|
+
const queryParams = !isEmpty(props.accountListParams)
|
|
98
|
+
? assign({}, props.accountListParams, params)
|
|
99
|
+
: params;
|
|
100
|
+
const response = yield request(queryParams);
|
|
101
|
+
const options = response && response.items && response.items.length ? getDropdownOptions(response.items) : [];
|
|
138
102
|
setItems(options);
|
|
103
|
+
// setIsLoading(false);
|
|
139
104
|
});
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
if (inputGroupRef.current && !inputGroupRef.current.contains(event.target)) {
|
|
147
|
-
onOuterClick();
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
document.addEventListener('mousedown', handleClickOutside);
|
|
151
|
-
return () => {
|
|
152
|
-
document.removeEventListener('mousedown', handleClickOutside);
|
|
105
|
+
// To handle dropdown change
|
|
106
|
+
const onDropdownChange = (item) => {
|
|
107
|
+
const account = {
|
|
108
|
+
accountNumber: item.value.accountNumber,
|
|
109
|
+
name: item.value.name,
|
|
110
|
+
subscriptionAbuse: item.value.subscriptionAbuse,
|
|
153
111
|
};
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
const onMultiAccountSelection = (selection) => {
|
|
157
|
-
let list = [];
|
|
158
|
-
if (selectedItems.some((item) => item.accountNumber === selection.accountNumber)) {
|
|
159
|
-
list = selectedItems.filter((item) => item.accountNumber !== selection.accountNumber);
|
|
160
|
-
}
|
|
161
|
-
else {
|
|
162
|
-
list = [...props.selectedAccounts, selection];
|
|
163
|
-
}
|
|
164
|
-
setSelectedItems(list);
|
|
165
|
-
props.onSelect && props.onSelect(list);
|
|
112
|
+
setSelectedItems([account]);
|
|
113
|
+
props.onSelect && props.onSelect([account]);
|
|
166
114
|
};
|
|
167
|
-
const
|
|
168
|
-
|
|
169
|
-
setSelectedItems([selection]);
|
|
170
|
-
props.onSelect && props.onSelect([selection]);
|
|
171
|
-
setIsOpen(false);
|
|
172
|
-
(_a = textInputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
|
|
173
|
-
};
|
|
174
|
-
const onFilter = (_event, value) => {
|
|
175
|
-
setQuery(value);
|
|
176
|
-
setIsQueryChanged(!isEmpty(value));
|
|
177
|
-
fetchAccounts(value);
|
|
178
|
-
setResultSize(pageSize);
|
|
179
|
-
setFocusedItemIndex(null);
|
|
180
|
-
};
|
|
181
|
-
const onToggleClick = () => {
|
|
182
|
-
setIsOpen((pre) => !pre);
|
|
115
|
+
const onOuterClick = () => {
|
|
116
|
+
setSelectedItems(props.selectedAccounts);
|
|
183
117
|
};
|
|
184
|
-
const
|
|
185
|
-
var _a;
|
|
186
|
-
e.stopPropagation();
|
|
187
|
-
setIsOpen(true);
|
|
118
|
+
const onDropdownClear = () => {
|
|
188
119
|
setSelectedItems([]);
|
|
189
|
-
setItems([]);
|
|
190
|
-
setIsQueryChanged(false);
|
|
191
|
-
(_a = textInputRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
192
120
|
};
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
if (focusedItemIndex === null || focusedItemIndex === itemsToRender.length - 1) {
|
|
213
|
-
indexToFocus = 0;
|
|
214
|
-
}
|
|
215
|
-
else {
|
|
216
|
-
indexToFocus = focusedItemIndex + 1;
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
setFocusedItemIndex(indexToFocus);
|
|
220
|
-
}
|
|
121
|
+
// this is the most important part to memoize the selected item. If you don't then every time
|
|
122
|
+
// new results are fetched the dropdown will render and toOption always create a new object
|
|
123
|
+
// forcing dropdown to render and overriding the input value
|
|
124
|
+
const memoizedSelectedItems = useMemo(() => toOption(selectedItems[0], { labelKey: getDisplayName }), [selectedItems]);
|
|
125
|
+
const memoizedBookmarkAccounts = useMemo(() => toOptions(getDropdownOptions(bookmarkedAccountsDeduped || []), {
|
|
126
|
+
labelKey: getDisplayName,
|
|
127
|
+
childrenKey: 'children',
|
|
128
|
+
actionItemKey: 'actionItem',
|
|
129
|
+
}),
|
|
130
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
131
|
+
[bookmarkedAccountsDeduped]);
|
|
132
|
+
const onMultiChange = (items) => {
|
|
133
|
+
const accounts = items.map((item) => ({
|
|
134
|
+
accountNumber: item.value.accountNumber,
|
|
135
|
+
name: item.value.name,
|
|
136
|
+
subscriptionAbuse: item.value.subscriptionAbuse,
|
|
137
|
+
}));
|
|
138
|
+
setSelectedItems(accounts);
|
|
139
|
+
props.onSelect && props.onSelect(accounts);
|
|
221
140
|
};
|
|
222
|
-
const
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
141
|
+
const commonProps = {
|
|
142
|
+
disabled: props.disabled,
|
|
143
|
+
placeholder: t(props.placeholder),
|
|
144
|
+
id: props.id,
|
|
145
|
+
className: props.className,
|
|
146
|
+
title: props.title,
|
|
147
|
+
delay: props.delay,
|
|
148
|
+
useCache: props.useCache,
|
|
149
|
+
isLoadingList: isFetching,
|
|
150
|
+
paginate: props.paginate,
|
|
151
|
+
maxResults: props.maxResults,
|
|
152
|
+
emptyListLabel: props.emptyListLabel,
|
|
153
|
+
onClearSelection: onDropdownClear,
|
|
154
|
+
'data-tracking-id': 'account-selector-dropdown',
|
|
155
|
+
onSearch: fetchAccounts,
|
|
156
|
+
list: items
|
|
157
|
+
? toOptions(items, {
|
|
158
|
+
labelKey: getDisplayName,
|
|
159
|
+
childrenKey: 'children',
|
|
160
|
+
actionItemKey: 'actionItem',
|
|
161
|
+
})
|
|
162
|
+
: [],
|
|
163
|
+
suggestedItems: props.suggestBookmarkAccounts && props.canBookmarkAccount && bookmarkedAccountsDeduped
|
|
164
|
+
? memoizedBookmarkAccounts
|
|
165
|
+
: [],
|
|
166
|
+
onOuterClick: onOuterClick,
|
|
167
|
+
label: props.label,
|
|
243
168
|
};
|
|
244
|
-
|
|
245
|
-
React.createElement(TextInputGroup, { isPlain: true, innerRef: inputGroupRef },
|
|
246
|
-
React.createElement(TextInputGroupMain, { value: query, onClick: onToggleClick, onKeyDown: onInputKeyDown, onChange: onFilter, placeholder: t(props.placeholder || ''), isExpanded: isOpen, innerRef: textInputRef, "aria-controls": `select${props.multiple ? '-multi' : ''}-typeahead-listbox` }),
|
|
247
|
-
React.createElement(TextInputGroupUtilities, null, !isEmpty(query) && (React.createElement(Button, { variant: "plain", onClick: onClearSelection, isDisabled: isFetching, "aria-label": t('Clear') }, isFetching ? React.createElement(LoadingIndicator, { show: true, size: "sm" }) : React.createElement(TimesCircleIcon, { "aria-hidden": true })))))));
|
|
248
|
-
return (React.createElement(Select, { "data-tracking-id": "account-selector-dropdown", isOpen: isOpen, onOpenChange: () => setIsOpen(false), id: props.id, toggle: toggle, popperProps: { direction: 'down', enableFlip: false }, onSelect: (_e, v) => onSelect(v), selected: selectedItems, isScrollable: true },
|
|
249
|
-
React.createElement(SelectList, null, dropdownOptions)));
|
|
169
|
+
return props.multiple ? (React.createElement(AsyncMultiDropDownList, Object.assign({}, commonProps, { isInValid: props.isInValid, onChange: onMultiChange, selectedItems: toOptions(selectedItems, { labelKey: getDisplayName }) }))) : (React.createElement(AsyncDropDownList, Object.assign({}, commonProps, { isInValid: props.isInValid, selectedItem: memoizedSelectedItems, onChange: onDropdownChange })));
|
|
250
170
|
}
|
|
251
171
|
AccountSelectorInternal.defaultProps = defaultProps;
|
|
252
172
|
export { AccountSelectorInternal };
|
|
@@ -17,7 +17,7 @@ export const EmbeddedServiceChat = () => {
|
|
|
17
17
|
setIsBlockedErrorBoxVisible(true);
|
|
18
18
|
};
|
|
19
19
|
const chatErrorMessagePopover = () => (React.createElement("div", { className: "chatButton chatError", id: "chat-blocked-popover-selector" },
|
|
20
|
-
React.createElement(Popover, { "aria-label": t('Cannot connect to chat support'), alertSeverityVariant: 'danger', position: PopoverPosition.top, hasAutoWidth: true, headerIcon: React.createElement(ExclamationCircleIcon, { className: "pf-
|
|
20
|
+
React.createElement(Popover, { "aria-label": t('Cannot connect to chat support'), alertSeverityVariant: 'danger', position: PopoverPosition.top, hasAutoWidth: true, headerIcon: React.createElement(ExclamationCircleIcon, { className: "pf-u-danger-color-100" }), headerComponent: "h1", headerContent: React.createElement(Trans, null, "Cannot connect to chat support"), bodyContent: React.createElement("p", { className: "pf-u-px-md" },
|
|
21
21
|
React.createElement(Trans, null, "There are multiple problems that can cause this error."),
|
|
22
22
|
React.createElement("br", null),
|
|
23
23
|
React.createElement("a", { href: `https://access.redhat.com/articles/313583#${hasBlockedByBrowser
|
|
@@ -26,7 +26,7 @@ export const EmbeddedServiceChat = () => {
|
|
|
26
26
|
? 'troubleshoot_network'
|
|
27
27
|
: ''}`, target: "_blank", rel: "noreferrer noopener" },
|
|
28
28
|
React.createElement(Trans, null, "See a list of possible causes."))), isVisible: isBlockedErrorBoxVisible, shouldClose: shouldClose, shouldOpen: shouldOpen },
|
|
29
|
-
React.createElement(Button, { variant: ButtonVariant.link, className: "pf-
|
|
29
|
+
React.createElement(Button, { variant: ButtonVariant.link, className: "pf-u-m-0 pf-u-p-0" },
|
|
30
30
|
React.createElement(ChatSVGIcon, null)))));
|
|
31
31
|
useEffect(() => {
|
|
32
32
|
initEmbedChat();
|
|
@@ -35,8 +35,8 @@ export const EmbeddedServiceChat = () => {
|
|
|
35
35
|
if (chatNotLoaded)
|
|
36
36
|
return React.createElement(React.Fragment, null);
|
|
37
37
|
return loadingChat ? (React.createElement("div", { className: "chatButton" },
|
|
38
|
-
React.createElement(Spinner, { diameter: "28px", className: "pf-
|
|
38
|
+
React.createElement(Spinner, { isSVG: true, diameter: "28px", className: "pf-u-m-xs" }))) : hasBlockedByBrowser || hasChatDomainsBlocked ? (chatErrorMessagePopover()) : !isChatStarted ? (React.createElement("div", { className: "chatButton", onClick: onStartChat, "data-tracking-id": "embedded-service-chat", ref: componentRef, id: "chat-bot-wrapper" },
|
|
39
39
|
React.createElement(ChatSVGIcon, null),
|
|
40
40
|
React.createElement(NewFeaturePopoverAnnouncement, { "aria-label": t('Support now has a chatbot (beta). Try it if you need help with a case.'), featureName: FeatureAnnouncementKeys.CHAT_BOT, sectionRef: componentRef, bodyContent: React.createElement("div", null,
|
|
41
|
-
React.createElement(Trans, null, "Support now has a chatbot (beta). Try it if you need help with a case.")),
|
|
41
|
+
React.createElement(Trans, null, "Support now has a chatbot (beta). Try it if you need help with a case.")), reference: () => document.getElementById('chat-bot-wrapper') }))) : (React.createElement(React.Fragment, null));
|
|
42
42
|
};
|
|
@@ -105,8 +105,8 @@ export const HostnameAwarenessModal = () => {
|
|
|
105
105
|
return (React.createElement(React.Fragment, null,
|
|
106
106
|
React.createElement(Switch, { label: "Share hostnames", isChecked: isHostnamesChecked, onChange: onHostnameSwitchChange, className: "push-top-narrow" }),
|
|
107
107
|
React.createElement(Tooltip, { content: shareHostnamesClarificationCopy, position: "right" },
|
|
108
|
-
React.createElement(InfoIcon, { className: "pf-
|
|
109
|
-
isHostnamesLoading && (React.createElement(Spinner, { size: "lg", className: "pf-
|
|
108
|
+
React.createElement(InfoIcon, { className: "pf-u-ml-sm hostnameInfoIcon" })),
|
|
109
|
+
isHostnamesLoading && (React.createElement(Spinner, { isSVG: true, size: "lg", className: "pf-u-ml-sm hostnameSpinner", "aria-label": "Hostname loading" }))));
|
|
110
110
|
};
|
|
111
111
|
//Do not show modal if user cannot share hostnames.
|
|
112
112
|
const canUseHostName = ability.can(resourceActions.PATCH, resources.CASE_CREATE, CaseListFields.HOSTNAME);
|
|
@@ -28,6 +28,6 @@ export function NewFeatureLabel(props) {
|
|
|
28
28
|
onFeatureDismiss();
|
|
29
29
|
};
|
|
30
30
|
return (React.createElement(Popover, Object.assign({}, popoverProps, conditionalProps, { hasAutoWidth: true, onHidden: onHidden }),
|
|
31
|
-
React.createElement(Label, { color: "green", className: "pf-
|
|
31
|
+
React.createElement(Label, { color: "green", className: "pf-u-ml-sm", icon: React.createElement(InfoCircleIcon, null) },
|
|
32
32
|
React.createElement(Trans, null, "New"))));
|
|
33
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CloseCaseModal.d.ts","sourceRoot":"","sources":["../../../../src/components/SharedModals/CloseCaseModal.tsx"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"CloseCaseModal.d.ts","sourceRoot":"","sources":["../../../../src/components/SharedModals/CloseCaseModal.tsx"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAkB/B,UAAU,MAAM;IACZ,SAAS,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,CAAC;CACvB;AAUD,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,eA6J3C"}
|
|
@@ -8,8 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import './CloseCaseModal.scss';
|
|
11
|
-
import { Button, ButtonVariant, Form, FormGroup,
|
|
12
|
-
import
|
|
11
|
+
import { Button, ButtonVariant, Form, FormGroup, Modal, ModalVariant, Select, SelectOption, TextArea, } from '@patternfly/react-core';
|
|
12
|
+
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
13
13
|
import isEmpty from 'lodash/isEmpty';
|
|
14
14
|
import React, { useState } from 'react';
|
|
15
15
|
import { Trans, useTranslation } from 'react-i18next';
|
|
@@ -67,7 +67,7 @@ export function CloseCaseModal(props) {
|
|
|
67
67
|
React.createElement(Button, { key: "close-modal", variant: ButtonVariant.secondary, onClick: props.onClose, isDisabled: props.isUpdating, "data-tracking-id": "close-case-description-modal-cancel" },
|
|
68
68
|
React.createElement(Trans, null, "Cancel")),
|
|
69
69
|
], variant: ModalVariant.medium },
|
|
70
|
-
React.createElement("div", { className: "pf-
|
|
70
|
+
React.createElement("div", { className: "pf-u-mb-md" }, !isCaseListPage ? (React.createElement("p", null,
|
|
71
71
|
React.createElement(Trans, null,
|
|
72
72
|
"Confirming will set the status of this case ",
|
|
73
73
|
React.createElement("strong", null, "closed"),
|
|
@@ -80,15 +80,9 @@ export function CloseCaseModal(props) {
|
|
|
80
80
|
React.createElement("p", null,
|
|
81
81
|
React.createElement(Trans, null, "This action will also reset the currently selected filters to default state."))))),
|
|
82
82
|
React.createElement(Form, { className: "close-case-modal-form" },
|
|
83
|
-
React.createElement(FormGroup, { label: t('Resolution'), isRequired: true, fieldId: "case-resolution" },
|
|
84
|
-
React.createElement(
|
|
85
|
-
React.createElement(HelperText, null,
|
|
86
|
-
isCaseListPage && !(showValidationError && !selectedResolution) && (React.createElement(HelperTextItem, null,
|
|
87
|
-
React.createElement(Trans, null, "All of the selected cases will have the same resolution in bulk edit."))),
|
|
88
|
-
showValidationError && !selectedResolution && (React.createElement(HelperTextItem, { variant: "error", hasIcon: true },
|
|
89
|
-
React.createElement(Trans, null, "Required field"))))),
|
|
90
|
-
React.createElement(Select, { "aria-label": t('Select an option that best fits'), id: "case-resolution", selections: selectedResolution, onSelect: onResolutionChange, isOpen: showDropdown, isDisabled: props.isUpdating, menuAppendTo: document.body, validated: showValidationError && !selectedResolution ? 'error' : 'default', placeholderText: t('Select an option that best fits'), onToggle: (_event, toggle) => onDropdownToggle(toggle) }, resolutionOptions.map((option, index) => (React.createElement(SelectOption, { key: index, value: option },
|
|
83
|
+
React.createElement(FormGroup, { label: t('Resolution'), isRequired: true, fieldId: "case-resolution", helperText: isCaseListPage ? t('All of the selected cases will have the same resolution in bulk edit.') : '', helperTextInvalid: "Required field", validated: showValidationError && !selectedResolution ? 'error' : 'default', helperTextInvalidIcon: React.createElement(ExclamationCircleIcon, null) },
|
|
84
|
+
React.createElement(Select, { "aria-label": t('Select an option that best fits'), id: "case-resolution", selections: selectedResolution, onSelect: onResolutionChange, isOpen: showDropdown, isDisabled: props.isUpdating, menuAppendTo: document.body, validated: showValidationError && !selectedResolution ? 'error' : 'default', placeholderText: t('Select an option that best fits'), onToggle: onDropdownToggle }, resolutionOptions.map((option, index) => (React.createElement(SelectOption, { key: index, value: option },
|
|
91
85
|
React.createElement(Trans, null, option)))))),
|
|
92
86
|
showTextArea && (React.createElement(FormGroup, { label: t('Please describe your resolution'), type: "text", isRequired: true, fieldId: "close-case-description" },
|
|
93
|
-
React.createElement(TextArea, { validated: showValidationError && !resolutionDescription ? 'error' : 'default', isRequired: true, id: "close-case-description", name: "close-case-description", "aria-describedby": "close-case-description", value: resolutionDescription, placeholder: t('Please describe your resolution to help us better understand.'), onChange:
|
|
87
|
+
React.createElement(TextArea, { validated: showValidationError && !resolutionDescription ? 'error' : 'default', isRequired: true, id: "close-case-description", name: "close-case-description", "aria-describedby": "close-case-description", value: resolutionDescription, placeholder: t('Please describe your resolution to help us better understand.'), onChange: onDescriptionChange, isDisabled: props.isUpdating }))))));
|
|
94
88
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// To override close case modal font weight - PCM-11644
|
|
2
|
-
div#case-close-modal.pf-
|
|
3
|
-
form.pf-
|
|
4
|
-
div.pf-
|
|
5
|
-
div.pf-
|
|
6
|
-
label.pf-
|
|
7
|
-
span.pf-
|
|
2
|
+
div#case-close-modal.pf-c-modal-box__body {
|
|
3
|
+
form.pf-c-form.close-case-modal-form {
|
|
4
|
+
div.pf-c-form__group {
|
|
5
|
+
div.pf-c-form__group-label {
|
|
6
|
+
label.pf-c-form__label {
|
|
7
|
+
span.pf-c-form__label-text {
|
|
8
8
|
font-weight: 600 !important;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
@@ -26,8 +26,7 @@ export declare enum UserPreferencesKeys {
|
|
|
26
26
|
showHostnames = "PCM-showHostName",
|
|
27
27
|
showNewPreferenceTooltip = "PCM-prefToolTipVisibility",
|
|
28
28
|
caseViewInternal = "PCM-caseViewInternal",
|
|
29
|
-
partnershipLastestAcceptedLink = "PCM-PartnershipLastestAcceptedLink"
|
|
30
|
-
partnershipLastestRejectedLink = "PCM-PartnershipLastestRejectedLink"
|
|
29
|
+
partnershipLastestAcceptedLink = "PCM-PartnershipLastestAcceptedLink"
|
|
31
30
|
}
|
|
32
31
|
export declare const BOOKMARK_APPLICATION_NAME = "pcm";
|
|
33
32
|
export declare const BOOKMARK_NAME_SPACE = "customer-portal";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalMetadataReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/GlobalMetadataReducer.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,6BAA6B,EAAE,MAAM,yCAAyC,CAAC;AACxF,OAAO,EAAE,mBAAmB,EAAE,MAAM,8CAA8C,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,+CAA+C,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAC1F,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AAErE,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,4CAA4C,CAAC;AACpF,OAAO,EAA0B,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AACtG,OAAO,EAAE,OAAO,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACzF,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAIH,4BAA4B,EAE/B,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAGzC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J,OAAO,kBAiCjC,CAAC;AAEF,eAAO,MAAM,iBAAiB,aAChB,iCAAiC,gBAC7B,QAAQ,aAAa,CAAC,SAMvC,CAAC;AAEF,eAAO,MAAM,wBAAwB,aAAoB,iCAAiC,iBAAiB,MAAM,kBAiBhH,CAAC;AAEF,eAAO,MAAM,sBAAsB,aACrB,iCAAiC,uBACtB,6BAA6B,EAAE,SAMvD,CAAC;AAEF,eAAO,MAAM,+BAA+B,aAAoB,iCAAiC,kBAkBhG,CAAC"}
|
|
@@ -35,7 +35,6 @@ export var UserPreferencesKeys;
|
|
|
35
35
|
UserPreferencesKeys["showNewPreferenceTooltip"] = "PCM-prefToolTipVisibility";
|
|
36
36
|
UserPreferencesKeys["caseViewInternal"] = "PCM-caseViewInternal";
|
|
37
37
|
UserPreferencesKeys["partnershipLastestAcceptedLink"] = "PCM-PartnershipLastestAcceptedLink";
|
|
38
|
-
UserPreferencesKeys["partnershipLastestRejectedLink"] = "PCM-PartnershipLastestRejectedLink";
|
|
39
38
|
})(UserPreferencesKeys || (UserPreferencesKeys = {}));
|
|
40
39
|
export const BOOKMARK_APPLICATION_NAME = 'pcm';
|
|
41
40
|
export const BOOKMARK_NAME_SPACE = 'customer-portal';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/react-context",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.10-beta.6",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
"lib/**/*"
|
|
27
27
|
],
|
|
28
28
|
"peerDependencies": {
|
|
29
|
-
"@cee-eng/hydrajs": "4.16.
|
|
30
|
-
"@patternfly/react-core": "
|
|
31
|
-
"@patternfly/react-icons": "
|
|
29
|
+
"@cee-eng/hydrajs": "4.16.43",
|
|
30
|
+
"@patternfly/react-core": "4.264.0",
|
|
31
|
+
"@patternfly/react-icons": "4.92.10",
|
|
32
32
|
"i18next": "^19.0.1",
|
|
33
33
|
"lodash": "^4.17.21",
|
|
34
34
|
"react": "17.0.2",
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"react-test-renderer": "17.0.1"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@cee-eng/hydrajs": "4.16.
|
|
41
|
-
"@patternfly/react-core": "
|
|
42
|
-
"@patternfly/react-icons": "
|
|
43
|
-
"@rh-support/components": "2.
|
|
40
|
+
"@cee-eng/hydrajs": "4.16.43",
|
|
41
|
+
"@patternfly/react-core": "4.264.0",
|
|
42
|
+
"@patternfly/react-icons": "4.92.10",
|
|
43
|
+
"@rh-support/components": "2.4.10-beta.6",
|
|
44
44
|
"@rh-support/types": "2.0.2",
|
|
45
|
-
"@rh-support/user-permissions": "2.
|
|
46
|
-
"@rh-support/utils": "2.
|
|
45
|
+
"@rh-support/user-permissions": "2.4.10-beta.6",
|
|
46
|
+
"@rh-support/utils": "2.4.10-beta.6",
|
|
47
47
|
"i18next": "^19.0.1",
|
|
48
48
|
"localforage": "^1.10.0",
|
|
49
49
|
"lodash": "^4.17.21",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"defaults and supports es6-module",
|
|
86
86
|
"maintained node versions"
|
|
87
87
|
],
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "f4caba45a2ffbc0cb441fdd30630769b447931d1"
|
|
89
89
|
}
|