@rh-support/troubleshoot 2.4.10-beta.7 → 2.5.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.
- package/README.md +1 -4
- package/lib/esm/components/AccountInfo/AccountSelector.d.ts +2 -1
- package/lib/esm/components/AccountInfo/AccountSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/AccountSelector.js +7 -7
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.d.ts +2 -1
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/ManagedAccountsDropdown.js +36 -11
- package/lib/esm/components/AccountInfo/OwnerSelector.d.ts +2 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.d.ts.map +1 -1
- package/lib/esm/components/AccountInfo/OwnerSelector.js +10 -124
- package/lib/esm/components/AccountInfo/css/accountSelector.css +6 -0
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +5 -5
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +23 -20
- package/lib/esm/components/CaseEditView/Case.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Case.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Case.js +8 -8
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +22 -16
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsErrorMessage.js +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsModals.js +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +45 -25
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseOwnerInfo.js +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseType.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseType.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/CaseType.js +18 -4
- package/lib/esm/components/CaseEditView/CaseOverview/DateTime.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseOverview/DateTime.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/DateTime.js +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseOverview/index.js +44 -35
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +115 -47
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts +7 -2
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +8 -6
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.d.ts +15 -0
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/CaseSolutions/HandpicketItem.js +76 -0
- package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.d.ts +2 -1
- package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSubscriptionAbuseAlert.js +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +17 -11
- package/lib/esm/components/CaseEditView/PDFContainer.d.ts +1 -1
- package/lib/esm/components/CaseEditView/PDFContainer.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +2 -2
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSessionModal.js +8 -7
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +13 -12
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +2 -2
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +13 -12
- package/lib/esm/components/CaseEditView/ShareCase/PartnerCaseHelper.d.ts +2 -2
- package/lib/esm/components/CaseEditView/ShareCase/PartnerCaseHelper.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ShareCase/PartnerCaseHelper.js +1 -1
- package/lib/esm/components/CaseEditView/ShareCase/PartnerShare.d.ts +2 -1
- package/lib/esm/components/CaseEditView/ShareCase/PartnerShare.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ShareCase/PartnerShare.js +59 -35
- package/lib/esm/components/CaseEditView/ShareCase/TnC.d.ts +1 -1
- package/lib/esm/components/CaseEditView/ShareCase/TnC.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseActionPlan/CaseActionPlan.js +8 -20
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseContactPhoneNumber.js +187 -66
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseDetailsManagement.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +2 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInformation.js +10 -13
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseInternalStatus.js +31 -12
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftPopover.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenShiftV3Popover.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseOpenshiftClusterId/CaseOpenshiftClusterId.js +15 -14
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.d.ts +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +21 -11
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseReferenceNumber.js +7 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseSbrGroups.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseSbrGroups.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseSbrGroups.js +3 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/ProductVersion.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts +3 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/SFDCUrl.js +37 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/Summary.js +9 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/useCustomEmails.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.js +10 -8
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseChat.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +29 -11
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +89 -31
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseExternalTrackerUpdate.js +6 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CommentSearch.js +4 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.d.ts +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/DiscussionItemLink.js +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/JumpAndCopyLink.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +29 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/VerifyCaseStatusModal/VerifyCaseStatusModal.js +4 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.css +0 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts +5 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/CaseHistory.js +7 -3
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +331 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts +7 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.js +442 -0
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts +3 -2
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CasePrivateNotes/CasePrivateNotes.js +5 -5
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts +2 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/RMEEscalations/RMEEscalationList.js +4 -4
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.d.ts +4 -0
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.d.ts.map +1 -0
- package/lib/esm/components/CaseEditView/Tabs/RelatedTasks/RelatedTasks.js +118 -0
- package/lib/esm/components/CaseEditView/index.d.ts +2 -8
- package/lib/esm/components/CaseEditView/index.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/index.js +8 -13
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts +2 -1
- package/lib/esm/components/CaseInformation/CaseGroup.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseGroup.js +72 -26
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts +2 -1
- package/lib/esm/components/CaseInformation/CaseInformation.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/CaseInformation.js +3 -5
- package/lib/esm/components/CaseInformation/CaseType.d.ts +2 -1
- package/lib/esm/components/CaseInformation/CaseType.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts +2 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumber.js +230 -55
- package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.d.ts +2 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberAlert.js +33 -14
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts +2 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/ContactPhoneNumberPopOver.js +1 -1
- package/lib/esm/components/CaseInformation/Description.d.ts +3 -1
- package/lib/esm/components/CaseInformation/Description.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Description.js +58 -28
- package/lib/esm/components/CaseInformation/FileDiag.d.ts +2 -1
- package/lib/esm/components/CaseInformation/FileDiag.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.d.ts +2 -1
- package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.js +38 -8
- package/lib/esm/components/CaseInformation/MandatoryPhonePopOver.d.ts +4 -0
- package/lib/esm/components/CaseInformation/MandatoryPhonePopOver.d.ts.map +1 -0
- package/lib/esm/components/CaseInformation/MandatoryPhonePopOver.js +26 -0
- package/lib/esm/components/CaseInformation/OpenCaseIssue.d.ts +3 -1
- package/lib/esm/components/CaseInformation/OpenCaseIssue.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/OpenCaseIssue.js +54 -29
- package/lib/esm/components/CaseInformation/Severity.d.ts +2 -1
- package/lib/esm/components/CaseInformation/Severity.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Severity.js +18 -32
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts +2 -1
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +9 -5
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts +2 -1
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseLanguageSelector.js +3 -2
- package/lib/esm/components/CaseManagement/CaseManagement.d.ts +2 -1
- package/lib/esm/components/CaseManagement/CaseManagement.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/CaseManagement.js +10 -7
- package/lib/esm/components/CaseManagement/Cep.d.ts +2 -1
- package/lib/esm/components/CaseManagement/Cep.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/Cep.js +37 -21
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts +2 -1
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/ESSRemoteSessionCheckBox.js +14 -13
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts +2 -1
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/NoClusterIDReasonSelector.js +3 -3
- package/lib/esm/components/CaseManagement/OpenReferenceNumber.d.ts +2 -1
- package/lib/esm/components/CaseManagement/OpenReferenceNumber.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts +6 -5
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftClusterId.js +46 -28
- package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.d.ts +2 -1
- package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenShiftV3Inputbox.js +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts +2 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +7 -6
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts +2 -1
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +19 -13
- package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.d.ts +2 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddContactToGroupModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts +2 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +16 -15
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts +2 -1
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +43 -37
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +3 -5
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts +2 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +3 -3
- package/lib/esm/components/ConfirmationModals/PreCaseConfirmationModals.d.ts +2 -1
- package/lib/esm/components/ConfirmationModals/PreCaseConfirmationModals.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/PreCaseConfirmationModals.js +0 -2
- package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.d.ts +2 -1
- package/lib/esm/components/ConfirmationModals/PreferredSecureSupportModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/ROCMModal.d.ts +2 -1
- package/lib/esm/components/ConfirmationModals/ROCMModal.d.ts.map +1 -1
- package/lib/esm/components/Cve/CveItem.d.ts +10 -0
- package/lib/esm/components/Cve/CveItem.d.ts.map +1 -0
- package/lib/esm/components/Cve/CveItem.js +139 -0
- package/lib/esm/components/Cve/CveModal.d.ts +3 -0
- package/lib/esm/components/Cve/CveModal.d.ts.map +1 -0
- package/lib/esm/components/Cve/CveModal.js +44 -0
- package/lib/esm/components/Cve/CvePanel.d.ts +7 -0
- package/lib/esm/components/Cve/CvePanel.d.ts.map +1 -0
- package/lib/esm/components/Cve/CvePanel.js +23 -0
- package/lib/esm/components/Cve/CveSidebar.d.ts +3 -0
- package/lib/esm/components/Cve/CveSidebar.d.ts.map +1 -0
- package/lib/esm/components/Cve/CveSidebar.js +23 -0
- package/lib/esm/components/EditDescription/EditDescription.d.ts +2 -1
- package/lib/esm/components/EditDescription/EditDescription.d.ts.map +1 -1
- package/lib/esm/components/EditDescription/EditDescription.js +1 -6
- package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts +2 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.d.ts.map +1 -1
- package/lib/esm/components/IdeaInformation/IdeaInformation.js +12 -11
- package/lib/esm/components/ImproveCase/FileEARule.d.ts +2 -1
- package/lib/esm/components/ImproveCase/FileEARule.d.ts.map +1 -1
- package/lib/esm/components/ImproveCase/Hostname.d.ts +2 -1
- package/lib/esm/components/ImproveCase/Hostname.d.ts.map +1 -1
- package/lib/esm/components/ImproveCase/Hostname.js +3 -3
- package/lib/esm/components/ImproveCase/KtQuestions.d.ts +2 -1
- package/lib/esm/components/ImproveCase/KtQuestions.d.ts.map +1 -1
- package/lib/esm/components/ImproveCase/KtQuestions.js +62 -58
- package/lib/esm/components/OpenCase/CaseTypeIcons/BugIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/BugIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/CertificationIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/CertificationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/CustomerServiceIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/CustomerServiceIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/DocumentationIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/DocumentationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/GearIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/GearIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/IdeaIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/IdeaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/RcaIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/CaseTypeIcons/RcaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/OpenCase.d.ts +5 -1
- package/lib/esm/components/OpenCase/OpenCase.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/OpenCase.js +9 -0
- package/lib/esm/components/OpenCase/SupportTypeIcons/BugIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/BugIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/CertificationIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/CertificationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/CustomerServiceIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/CustomerServiceIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/DocumentationIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/DocumentationIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/GearIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/GearIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/IdeaIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/IdeaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/RcaIcon.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeIcons/RcaIcon.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts +2 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.d.ts.map +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +12 -15
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts +5 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +29 -9
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts +4 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +21 -6
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts +2 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductVersionSelector.js +2 -2
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts +8 -2
- package/lib/esm/components/ProductSelector/ProductSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductSelector.js +45 -23
- package/lib/esm/components/ProductSelector/ProductSelectorLoader.d.ts +2 -1
- package/lib/esm/components/ProductSelector/ProductSelectorLoader.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts +3 -0
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/ProductVersionDropdownSelector.js +10 -2
- package/lib/esm/components/Recommendations/AlertToastWrapper.d.ts +3 -0
- package/lib/esm/components/Recommendations/AlertToastWrapper.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AlertToastWrapper.js +2 -2
- package/lib/esm/components/Recommendations/AsideResults.d.ts +3 -1
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +17 -28
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.d.ts +2 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationItems.js +8 -5
- package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts +2 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendations.js +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts +2 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/CriticalSolutionsToast.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/CriticalSolutionsToast.js +1 -1
- package/lib/esm/components/Recommendations/EARules/EARule.d.ts +7 -6
- package/lib/esm/components/Recommendations/EARules/EARule.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARule.js +7 -6
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts +3 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +14 -4
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.d.ts +2 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoInline.js +13 -12
- package/lib/esm/components/Recommendations/EARules/EARuleWidget.d.ts +2 -1
- package/lib/esm/components/Recommendations/EARules/EARuleWidget.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleWidget.js +6 -2
- package/lib/esm/components/Recommendations/InsightsResults.d.ts +2 -1
- package/lib/esm/components/Recommendations/InsightsResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsResults.js +20 -7
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts +3 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +17 -14
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.d.ts +2 -1
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +1 -1
- package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts +3 -0
- package/lib/esm/components/Recommendations/RecommendationInfoBox.d.ts.map +1 -0
- package/lib/esm/components/Recommendations/RecommendationInfoBox.js +28 -0
- package/lib/esm/components/Recommendations/Recommendations.d.ts +5 -1
- package/lib/esm/components/Recommendations/Recommendations.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/Recommendations.js +107 -41
- package/lib/esm/components/Recommendations/RecommendationsLoader.d.ts +3 -0
- package/lib/esm/components/Recommendations/RecommendationsLoader.d.ts.map +1 -0
- package/lib/esm/components/Recommendations/RecommendationsLoader.js +11 -0
- package/lib/esm/components/Recommendations/RulesModal.d.ts +2 -1
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +8 -14
- package/lib/esm/components/Recommendations/WatsonxAiIcon.d.ts +10 -0
- package/lib/esm/components/Recommendations/WatsonxAiIcon.d.ts.map +1 -0
- package/lib/esm/components/Recommendations/WatsonxAiIcon.js +13 -0
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts +2 -1
- package/lib/esm/components/RemoteRider/RemoteRiderAcceptanceModal.d.ts.map +1 -1
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.d.ts +2 -1
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.d.ts.map +1 -1
- package/lib/esm/components/RemoteRider/RemoteRiderBanner.js +1 -1
- package/lib/esm/components/Review/Review.d.ts +3 -2
- package/lib/esm/components/Review/Review.d.ts.map +1 -1
- package/lib/esm/components/Review/Review.js +14 -11
- package/lib/esm/components/SessionRestore/SessionItem.d.ts +2 -1
- package/lib/esm/components/SessionRestore/SessionItem.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionItem.js +4 -4
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts +2 -1
- package/lib/esm/components/SessionRestore/SessionRestore.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestore.js +51 -35
- package/lib/esm/components/SessionRestore/SessionRestoreCard.d.ts +2 -1
- package/lib/esm/components/SessionRestore/SessionRestoreCard.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/SessionRestoreCard.js +9 -16
- package/lib/esm/components/SubmitCase/ResubmitToast.d.ts +3 -0
- package/lib/esm/components/SubmitCase/ResubmitToast.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/ResubmitToast.js +3 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts +2 -1
- package/lib/esm/components/SubmitCase/SubmitCase.d.ts.map +1 -1
- package/lib/esm/components/SubmitCase/SubmitCase.js +122 -33
- package/lib/esm/components/Suggestions/Suggestions.d.ts +2 -1
- package/lib/esm/components/Suggestions/Suggestions.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/Suggestions.js +10 -3
- package/lib/esm/components/Suggestions/TopContent.d.ts +2 -2
- package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/TopContent.js +58 -13
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts +2 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +25 -34
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts +2 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.d.ts.map +1 -1
- package/lib/esm/components/UpdateSeverityModal/UpdateSeverityModal.js +176 -75
- package/lib/esm/components/shared/Constants.d.ts +5 -4
- package/lib/esm/components/shared/Constants.d.ts.map +1 -1
- package/lib/esm/components/shared/Rule.d.ts +2 -1
- package/lib/esm/components/shared/Rule.d.ts.map +1 -1
- package/lib/esm/components/shared/Rule.js +6 -6
- package/lib/esm/components/shared/fileUpload/FileLister.d.ts +3 -1
- package/lib/esm/components/shared/fileUpload/FileLister.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileLister.js +8 -7
- package/lib/esm/components/shared/fileUpload/FileUpload.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/FileUpload.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/FileUploader.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/FileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/SectionFileUploader.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/SectionFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/UploadButton.d.ts +2 -2
- package/lib/esm/components/shared/fileUpload/UploadButton.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +9 -9
- package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/common/FileUploaderInfoIcon.js +1 -1
- package/lib/esm/components/shared/fileUpload/css/fileSelector.css +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/FileSelectorButton.js +4 -3
- package/lib/esm/components/shared/fileUpload/fileSelectors/InputFileSelector.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/InputFileSelector.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts +3 -2
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelector.js +15 -6
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.d.ts +2 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/fileSelectors/WidgetFileSelectorImage.js +3 -3
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts +23 -23
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +14 -8
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts +2 -2
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducer.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducerContext.d.ts +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentReducerContext.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/useFileUploader.js +2 -1
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts +2 -2
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.d.ts +2 -1
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +82 -23
- package/lib/esm/components/shared/usePostComment.d.ts.map +1 -1
- package/lib/esm/components/shared/usePostComment.js +4 -2
- package/lib/esm/components/shared/utils.d.ts +4 -1
- package/lib/esm/components/shared/utils.d.ts.map +1 -1
- package/lib/esm/components/shared/utils.js +17 -5
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts +2 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +9 -49
- package/lib/esm/components/wizardLayout/MainSection.d.ts +4 -1
- package/lib/esm/components/wizardLayout/MainSection.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/MainSection.js +28 -4
- package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts +4 -0
- package/lib/esm/components/wizardLayout/NewFeatureModal.d.ts.map +1 -0
- package/lib/esm/components/wizardLayout/NewFeatureModal.js +38 -0
- package/lib/esm/components/wizardLayout/RedHatCustomerPortalIcon.d.ts +3 -0
- package/lib/esm/components/wizardLayout/RedHatCustomerPortalIcon.d.ts.map +1 -0
- package/lib/esm/components/wizardLayout/RedHatCustomerPortalIcon.js +31 -0
- package/lib/esm/components/wizardLayout/WizardAside.d.ts +3 -2
- package/lib/esm/components/wizardLayout/WizardAside.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardAside.js +19 -10
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts +2 -1
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +50 -47
- package/lib/esm/components/wizardLayout/WizardMain.d.ts +3 -2
- package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardMain.js +31 -4
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts +11 -3
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +137 -20
- package/lib/esm/components/wizardLayout/index.d.ts +2 -3
- package/lib/esm/components/wizardLayout/index.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/index.js +4 -11
- package/lib/esm/constants/caseDetailsConstants.d.ts +9 -3
- package/lib/esm/constants/caseDetailsConstants.d.ts.map +1 -1
- package/lib/esm/constants/caseDetailsConstants.js +9 -2
- package/lib/esm/context/CaseContext.d.ts +1 -1
- package/lib/esm/context/CaseContext.d.ts.map +1 -1
- package/lib/esm/context/CaseContext.js +1 -1
- package/lib/esm/context/CaseDetailsPageContext.d.ts +1 -1
- package/lib/esm/context/CaseDetailsPageContext.d.ts.map +1 -1
- package/lib/esm/context/CaseDiscussionTabContext.d.ts +1 -1
- package/lib/esm/context/CaseDiscussionTabContext.d.ts.map +1 -1
- package/lib/esm/context/CaseOverviewContext.d.ts +8 -0
- package/lib/esm/context/CaseOverviewContext.d.ts.map +1 -0
- package/lib/esm/context/CaseOverviewContext.js +10 -0
- package/lib/esm/context/ClusterRecommendationsContext.d.ts +1 -1
- package/lib/esm/context/ClusterRecommendationsContext.d.ts.map +1 -1
- package/lib/esm/context/RecommendationContext.d.ts +1 -1
- package/lib/esm/context/RecommendationContext.d.ts.map +1 -1
- package/lib/esm/context/RootTroubleshootProvider.d.ts +2 -1
- package/lib/esm/context/RootTroubleshootProvider.d.ts.map +1 -1
- package/lib/esm/context/RouteContext.d.ts +1 -1
- package/lib/esm/context/RouteContext.d.ts.map +1 -1
- package/lib/esm/context/RulesContext.d.ts +1 -1
- package/lib/esm/context/RulesContext.d.ts.map +1 -1
- package/lib/esm/context/SessionRestoreContext.d.ts +1 -1
- package/lib/esm/context/SessionRestoreContext.d.ts.map +1 -1
- package/lib/esm/context/TopContentContext.d.ts +1 -1
- package/lib/esm/context/TopContentContext.d.ts.map +1 -1
- package/lib/esm/css/app.css +43 -14
- package/lib/esm/css/case.css +4 -4
- package/lib/esm/css/productSelector.css +7 -3
- package/lib/esm/css/results.css +6 -0
- package/lib/esm/enums/cache.d.ts +2 -2
- package/lib/esm/enums/cache.d.ts.map +1 -1
- package/lib/esm/hooks/useFetchCVEData.d.ts +5 -0
- package/lib/esm/hooks/useFetchCVEData.d.ts.map +1 -0
- package/lib/esm/hooks/useFetchCVEData.js +138 -0
- package/lib/esm/hooks/useParseRuleMarkdown.d.ts.map +1 -1
- package/lib/esm/hooks/useParseRuleMarkdown.js +1 -1
- package/lib/esm/hooks/useS3Upload.js +2 -2
- package/lib/esm/hooks/useWizard.d.ts +10 -1
- package/lib/esm/hooks/useWizard.d.ts.map +1 -1
- package/lib/esm/hooks/useWizard.js +27 -15
- package/lib/esm/i18n/template-de.d.ts +52 -0
- package/lib/esm/i18n/template-de.d.ts.map +1 -1
- package/lib/esm/i18n/template-de.js +55 -0
- package/lib/esm/i18n/template-es.d.ts +51 -0
- package/lib/esm/i18n/template-es.d.ts.map +1 -1
- package/lib/esm/i18n/template-es.js +53 -0
- package/lib/esm/i18n/template-fr.d.ts +6 -0
- package/lib/esm/i18n/template-fr.d.ts.map +1 -1
- package/lib/esm/i18n/template-fr.js +6 -0
- package/lib/esm/i18n/template-it.d.ts +52 -0
- package/lib/esm/i18n/template-it.d.ts.map +1 -1
- package/lib/esm/i18n/template-it.js +54 -0
- package/lib/esm/i18n/template-jp.d.ts +9 -0
- package/lib/esm/i18n/template-jp.d.ts.map +1 -1
- package/lib/esm/i18n/template-jp.js +11 -2
- package/lib/esm/i18n/template-ko.d.ts +9 -0
- package/lib/esm/i18n/template-ko.d.ts.map +1 -1
- package/lib/esm/i18n/template-ko.js +10 -1
- package/lib/esm/i18n/template-pt.d.ts +50 -0
- package/lib/esm/i18n/template-pt.d.ts.map +1 -1
- package/lib/esm/i18n/template-pt.js +53 -0
- package/lib/esm/i18n/template-zh.d.ts +9 -0
- package/lib/esm/i18n/template-zh.d.ts.map +1 -1
- package/lib/esm/i18n/template-zh.js +9 -0
- package/lib/esm/index.d.ts +0 -1
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +0 -1
- package/lib/esm/models/caseCreationWorkflows.d.ts +27 -0
- package/lib/esm/models/caseCreationWorkflows.d.ts.map +1 -0
- package/lib/esm/models/caseCreationWorkflows.js +1 -0
- package/lib/esm/reducers/CaseConstNTypes.d.ts +42 -13
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +62 -31
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts +2 -2
- package/lib/esm/reducers/CaseDetailsPageReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDetailsPageReducer.js +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts +5 -4
- package/lib/esm/reducers/CaseDiscussionTabReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseDiscussionTabReducer.js +7 -3
- package/lib/esm/reducers/CaseHelpers.d.ts +1 -0
- package/lib/esm/reducers/CaseHelpers.d.ts.map +1 -1
- package/lib/esm/reducers/CaseHelpers.js +21 -25
- package/lib/esm/reducers/CaseOverviewReducer.d.ts +3 -3
- package/lib/esm/reducers/CaseOverviewReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.d.ts +5 -5
- package/lib/esm/reducers/CaseReducer.d.ts.map +1 -1
- package/lib/esm/reducers/CaseReducer.js +137 -70
- package/lib/esm/reducers/ClusterRecommendationsReducer.d.ts +2 -2
- package/lib/esm/reducers/ClusterRecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.d.ts +6 -4
- package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.js +12 -9
- package/lib/esm/reducers/RouteConstNTypes.d.ts +6 -2
- package/lib/esm/reducers/RouteConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/RouteConstNTypes.js +10 -5
- package/lib/esm/reducers/RouteReducer.d.ts +2 -2
- package/lib/esm/reducers/RouteReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RulesReducer.d.ts +2 -2
- package/lib/esm/reducers/RulesReducer.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.d.ts +20 -16
- package/lib/esm/reducers/SessionRestoreReducer.d.ts.map +1 -1
- package/lib/esm/reducers/SessionRestoreReducer.js +80 -44
- package/lib/esm/reducers/TopContentReducer.d.ts +2 -2
- package/lib/esm/reducers/TopContentReducer.d.ts.map +1 -1
- package/lib/esm/scss/_main.scss +319 -51
- package/lib/esm/scss/_pf-overrides.scss +792 -0
- package/lib/esm/scss/index.scss +1 -7
- package/lib/esm/utils/caseOpenshiftClusterIdUtils.d.ts.map +1 -1
- package/lib/esm/utils/caseUtils.d.ts +20 -0
- package/lib/esm/utils/caseUtils.d.ts.map +1 -0
- package/lib/esm/utils/caseUtils.js +58 -0
- package/lib/esm/utils/insightRuleInfoUtils.d.ts +4 -0
- package/lib/esm/utils/insightRuleInfoUtils.d.ts.map +1 -0
- package/lib/esm/utils/insightRuleInfoUtils.js +23 -0
- package/lib/esm/utils/routeUtils.d.ts +1 -1
- package/lib/esm/utils/routeUtils.d.ts.map +1 -1
- package/lib/esm/utils/routeUtils.js +2 -1
- package/package.json +54 -50
- package/lib/esm/components/CaseEditView/CaseDetailsWarningMessage.d.ts +0 -8
- package/lib/esm/components/CaseEditView/CaseDetailsWarningMessage.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/CaseDetailsWarningMessage.js +0 -10
- package/lib/esm/components/CaseEditView/CaseSecureSupportAlert.d.ts +0 -8
- package/lib/esm/components/CaseEditView/CaseSecureSupportAlert.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/CaseSecureSupportAlert.js +0 -22
- package/lib/esm/components/CaseEditView/Tabs/CaseBugzilla/CaseBugzilla.d.ts +0 -5
- package/lib/esm/components/CaseEditView/Tabs/CaseBugzilla/CaseBugzilla.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseBugzilla/CaseBugzilla.js +0 -29
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.d.ts +0 -9
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.d.ts.map +0 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberSev1ConfirmAlert.js +0 -71
- package/lib/esm/components/CaseInformation/ProductNVersion.d.ts +0 -5
- package/lib/esm/components/CaseInformation/ProductNVersion.d.ts.map +0 -1
- package/lib/esm/components/CaseInformation/ProductNVersion.js +0 -20
- package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.d.ts +0 -7
- package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.d.ts.map +0 -1
- package/lib/esm/components/ConfirmationModals/ConfirmedStateSideSupportModal.js +0 -21
- package/lib/esm/components/Recommendations/ShowRank.d.ts +0 -12
- package/lib/esm/components/Recommendations/ShowRank.d.ts.map +0 -1
- package/lib/esm/components/Recommendations/ShowRank.js +0 -27
- package/lib/esm/hooks/useUserPreference.d.ts +0 -7
- package/lib/esm/hooks/useUserPreference.d.ts.map +0 -1
- package/lib/esm/hooks/useUserPreference.js +0 -36
- package/lib/esm/scss/_pf4-imports.scss +0 -30
- package/lib/esm/scss/_pf4-overrides.scss +0 -488
package/README.md
CHANGED
|
@@ -6,7 +6,6 @@ Pluggable troubleshoot module
|
|
|
6
6
|
|
|
7
7
|
```
|
|
8
8
|
import {
|
|
9
|
-
RootTroubleshootProvider,
|
|
10
9
|
Troubleshoot
|
|
11
10
|
} from '@rh-support/troubleshoot';
|
|
12
11
|
<!-- import '@rh-support/troubleshoot/lib/troubleshoot.css'; -->
|
|
@@ -14,9 +13,7 @@ import React from 'react';
|
|
|
14
13
|
import { RouteComponentProps } from 'react-router-dom';
|
|
15
14
|
|
|
16
15
|
export function TroubleshootApp(routeProps: RouteComponentProps<{}>) {
|
|
17
|
-
return (<
|
|
18
|
-
<Troubleshoot routeProps={routeProps} basePath="/troubleshoot"/>
|
|
19
|
-
</RootTroubleshootProvider>);
|
|
16
|
+
return (<Troubleshoot routeProps={routeProps} basePath="/troubleshoot"/>);
|
|
20
17
|
}
|
|
21
18
|
|
|
22
19
|
```
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import './css/accountSelector.css';
|
|
2
2
|
import { IDClassNameProps } from '@rh-support/types/shared';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
interface IProps extends IDClassNameProps {
|
|
4
5
|
}
|
|
5
6
|
export declare const defaultProps: IProps;
|
|
6
|
-
declare function AccountSelector(props: IProps): JSX.Element;
|
|
7
|
+
declare function AccountSelector(props: IProps): React.JSX.Element;
|
|
7
8
|
declare namespace AccountSelector {
|
|
8
9
|
var defaultProps: IProps;
|
|
9
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AccountSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/AccountSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAOnC,OAAO,EAAE,gBAAgB,
|
|
1
|
+
{"version":3,"file":"AccountSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/AccountSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,2BAA2B,CAAC;AAOnC,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAK5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AAS/D,UAAU,MAAO,SAAQ,gBAAgB;CAAG;AAE5C,eAAO,MAAM,YAAY,EAAE,MAG1B,CAAC;AAEF,iBAAS,eAAe,CAAC,KAAK,EAAE,MAAM,qBA6KrC;kBA7KQ,eAAe;;;AAiLxB,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -60,9 +60,9 @@ function AccountSelector(props) {
|
|
|
60
60
|
onAccountChange(accounts[0] || {});
|
|
61
61
|
};
|
|
62
62
|
const onManagedAccountChange = (selection) => {
|
|
63
|
-
!isEmpty(selection
|
|
64
|
-
selection.
|
|
65
|
-
onAccountChange({ accountNumber: selection.
|
|
63
|
+
!isEmpty(selection) &&
|
|
64
|
+
selection.accountNum &&
|
|
65
|
+
onAccountChange({ accountNumber: selection.accountNum, name: selection.name });
|
|
66
66
|
};
|
|
67
67
|
const onFindMyAccountClick = (event) => {
|
|
68
68
|
!isEmpty(loggedInUserRights.data) &&
|
|
@@ -109,17 +109,17 @@ function AccountSelector(props) {
|
|
|
109
109
|
if (isEmpty(loggedInUserRights.data))
|
|
110
110
|
return React.createElement(React.Fragment, null);
|
|
111
111
|
return (React.createElement("div", { id: props.id, className: `form-group ${props.className}` },
|
|
112
|
-
React.createElement(AlertMessage, { show: showNotEntitledMessage, variant: AlertType.DANGER, isInline: true, title: t("The selected account doesn't have entitlement"), className: "pf-u-mb-lg" }),
|
|
113
|
-
React.createElement("div", { className: "account-selector-label-wrapper pf-u-display-flex" },
|
|
112
|
+
React.createElement(AlertMessage, { show: showNotEntitledMessage, variant: AlertType.DANGER, isInline: true, title: t("The selected account doesn't have entitlement"), className: "pf-v5-u-mb-lg" }),
|
|
113
|
+
React.createElement("div", { className: "account-selector-label-wrapper pf-v5-u-display-flex" },
|
|
114
114
|
React.createElement("label", { htmlFor: "account-selector" },
|
|
115
115
|
React.createElement(Trans, null, "Account"),
|
|
116
116
|
' ',
|
|
117
117
|
React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
|
|
118
|
-
canUseFindMyAccount && (React.createElement("button", { role: "link", className: "btn btn-link btn-app find-my-account pf-u-ml-auto", onClick: onFindMyAccountClick, disabled: selectedAccountDetails.isFetching, "data-tracking-id": "get-support-find-my-account" },
|
|
118
|
+
canUseFindMyAccount && (React.createElement("button", { role: "link", className: "btn btn-link btn-app find-my-account pf-v5-u-ml-auto", onClick: onFindMyAccountClick, disabled: selectedAccountDetails.isFetching, "data-tracking-id": "get-support-find-my-account", type: "button" },
|
|
119
119
|
React.createElement(Trans, null, "Find my account")))),
|
|
120
120
|
React.createElement("div", { className: "account-selector-wrapper" },
|
|
121
121
|
React.createElement(AccountSelectorInternal, { selectedAccounts: [selectedAccount], canBookmarkAccount: canBookmarkAccounts, bookmarkedAccounts: bookmarkedGroupAccounts.data, id: "account-or-bookmark-selector", className: "account-selector", name: "account-or-bookmark-selector", placeholder: t(`Search for an account ${loggedInUserRights.data.isExternal() ? 'or select a bookmark' : ''} `), onSelect: onInternalAccountSelect, disabled: loggedInUserRights.data.isExternal() || selectedAccountDetails.isFetching, isInValid: isSelectedAccountSubscriptionAbused, restrictedOnSubscriptionAbuse: true })),
|
|
122
|
-
canAccessManagedAccounts && (React.createElement(ManagedAccountsDropdown, { className: "managed-account-selector pf-u-mt-xl", onManagedAccountChange: onManagedAccountChange, managedAccounts: managedAccounts, selectedAccountNumber: accountNumber, disabled: selectedAccountDetails.isFetching })),
|
|
122
|
+
canAccessManagedAccounts && !isEmpty(managedAccounts.data) && (React.createElement(ManagedAccountsDropdown, { className: "managed-account-selector pf-v5-u-mt-xl", onManagedAccountChange: onManagedAccountChange, managedAccounts: managedAccounts, selectedAccountNumber: accountNumber, disabled: selectedAccountDetails.isFetching })),
|
|
123
123
|
isSelectedAccountSubscriptionAbused && (React.createElement("p", { className: "form-instructions form-invalid" },
|
|
124
124
|
React.createElement(InfoCircleIcon, null),
|
|
125
125
|
' ',
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { IPartnerManagedAccount } from '@cee-eng/hydrajs/@types/models/account';
|
|
2
2
|
import { IApiResponseDetails, IDClassNameProps, IOption, WithCustomOptions } from '@rh-support/types/shared';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
interface IProps extends IDClassNameProps {
|
|
4
5
|
selectedAccountNumber: string;
|
|
5
6
|
managedAccounts: IApiResponseDetails<Partial<IPartnerManagedAccount>[]>;
|
|
6
7
|
onManagedAccountChange: (selection: IOption<WithCustomOptions<IPartnerManagedAccount>>) => void;
|
|
7
8
|
disabled?: boolean;
|
|
8
9
|
}
|
|
9
|
-
declare function ManagedAccountsDropdown(props: IProps): JSX.Element;
|
|
10
|
+
declare function ManagedAccountsDropdown(props: IProps): React.JSX.Element;
|
|
10
11
|
declare namespace ManagedAccountsDropdown {
|
|
11
12
|
var defaultProps: Partial<IProps>;
|
|
12
13
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagedAccountsDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/ManagedAccountsDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"ManagedAccountsDropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/ManagedAccountsDropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,wCAAwC,CAAC;AAWhF,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAG7G,OAAO,KAAmC,MAAM,OAAO,CAAC;AAGxD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,qBAAqB,EAAE,MAAM,CAAC;IAC9B,eAAe,EAAE,mBAAmB,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE,CAAC,CAAC;IACxE,sBAAsB,EAAE,CAAC,SAAS,EAAE,OAAO,CAAC,iBAAiB,CAAC,sBAAsB,CAAC,CAAC,KAAK,IAAI,CAAC;IAChG,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAOD,iBAAS,uBAAuB,CAAC,KAAK,EAAE,MAAM,qBAoH7C;kBApHQ,uBAAuB;;;AAsHhC,OAAO,EAAE,uBAAuB,EAAE,CAAC"}
|
|
@@ -1,15 +1,21 @@
|
|
|
1
|
+
import { Flex, FlexItem, MenuToggle, Select, SelectList, SelectOption, } from '@patternfly/react-core';
|
|
1
2
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
2
|
-
import { Dropdown } from '@rh-support/components';
|
|
3
|
-
import { toOption, toOptions } from '@rh-support/utils';
|
|
4
3
|
import find from 'lodash/find';
|
|
4
|
+
import isEmpty from 'lodash/isEmpty';
|
|
5
5
|
import React, { useEffect, useState } from 'react';
|
|
6
|
-
import { Trans } from 'react-i18next';
|
|
6
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
7
7
|
const defaultProps = {
|
|
8
8
|
className: '',
|
|
9
9
|
id: '',
|
|
10
10
|
disabled: false,
|
|
11
11
|
};
|
|
12
12
|
function ManagedAccountsDropdown(props) {
|
|
13
|
+
const { t } = useTranslation();
|
|
14
|
+
const [isOpen, setIsOpen] = useState(false);
|
|
15
|
+
const [selectedItem, setSelectedItem] = useState('');
|
|
16
|
+
const onToggleClick = () => {
|
|
17
|
+
setIsOpen(!isOpen);
|
|
18
|
+
};
|
|
13
19
|
const getLabelForAccountOption = (account) => {
|
|
14
20
|
return account.accountNum
|
|
15
21
|
? account.name
|
|
@@ -17,24 +23,43 @@ function ManagedAccountsDropdown(props) {
|
|
|
17
23
|
: account.accountNum
|
|
18
24
|
: '';
|
|
19
25
|
};
|
|
20
|
-
const [selectedItem, setSelectedItem] = useState(toOption({ accountNum: '' }, { labelKey: getLabelForAccountOption }));
|
|
21
26
|
useEffect(() => {
|
|
22
27
|
const item = find(props.managedAccounts.data, (acc) => acc.accountNum === props.selectedAccountNumber) || {
|
|
23
28
|
accountNum: '',
|
|
24
29
|
};
|
|
25
|
-
|
|
30
|
+
const selected = !isEmpty(item.accountNum)
|
|
31
|
+
? `${item.name} (${item.accountNum})`
|
|
32
|
+
: t('Select a managed account');
|
|
33
|
+
setSelectedItem(selected);
|
|
34
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
26
35
|
}, [props.managedAccounts.data, props.selectedAccountNumber]);
|
|
27
36
|
// Only accounts that have granted access permission to partner should be listed
|
|
28
37
|
const managedAccountsWithPermission = () => props.managedAccounts.data.filter((account) => account.partnerCaseAccess === 'All') || [];
|
|
29
|
-
const managedAccountsOptions = managedAccountsWithPermission().map((account) => (Object.assign({ actionItem: (React.createElement(React.Fragment, null, account.subscriptionAbuse && (React.createElement("span", { className: "form-instructions form-invalid pf-u-text-nowrap pf-u-pr-sm" },
|
|
30
|
-
' ',
|
|
38
|
+
const managedAccountsOptions = managedAccountsWithPermission().map((account) => (Object.assign({ actionItem: (React.createElement(React.Fragment, null, account.subscriptionAbuse && (React.createElement("span", { className: "form-instructions form-invalid pf-v5-u-text-nowrap pf-v5-u-pr-sm" },
|
|
31
39
|
React.createElement(InfoCircleIcon, null),
|
|
32
40
|
" ",
|
|
33
41
|
React.createElement(Trans, null, "Subscription abuse"))))), children: (React.createElement(React.Fragment, null, account.subscriptionAbuse ? (React.createElement("span", { className: "form-instructions form-invalid" }, getLabelForAccountOption(account))) : (getLabelForAccountOption(account)))) }, account))) || [];
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
42
|
+
const onSelect = (event, selection) => {
|
|
43
|
+
setSelectedItem(`${selection.name} (${selection.accountNum})`);
|
|
44
|
+
props.onManagedAccountChange(selection);
|
|
45
|
+
setIsOpen(false);
|
|
46
|
+
};
|
|
47
|
+
const toggle = (toggleRef) => (React.createElement(MenuToggle, { ref: toggleRef, onClick: onToggleClick, isExpanded: isOpen, isDisabled: props.disabled || managedAccountsOptions.length === 0, isFullWidth: true }, selectedItem || t('Select a managed account')));
|
|
48
|
+
return (React.createElement(React.Fragment, null,
|
|
49
|
+
React.createElement("div", { className: `margin-top ${props.className}` },
|
|
50
|
+
React.createElement(Select, { id: props.id, isOpen: isOpen, selected: selectedItem, onSelect: onSelect, onOpenChange: (isOpen) => setIsOpen(isOpen), toggle: toggle, popperProps: { direction: 'down', enableFlip: false }, isScrollable: true, shouldFocusToggleOnSelect: true },
|
|
51
|
+
React.createElement(SelectList, null, managedAccountsOptions.map((account) => (React.createElement(SelectOption, { value: account },
|
|
52
|
+
React.createElement(Flex, { className: account.subscriptionAbuse ? 'form-instructions form-invalid' : '', justifyContent: { default: 'justifyContentSpaceBetween' } },
|
|
53
|
+
React.createElement(FlexItem, null,
|
|
54
|
+
account.name,
|
|
55
|
+
" (",
|
|
56
|
+
account.accountNum,
|
|
57
|
+
")"),
|
|
58
|
+
account.subscriptionAbuse ? (React.createElement(FlexItem, null,
|
|
59
|
+
React.createElement("span", null,
|
|
60
|
+
React.createElement(InfoCircleIcon, null),
|
|
61
|
+
" ",
|
|
62
|
+
React.createElement(Trans, null, "Subscription abuse")))) : (''))))))))));
|
|
38
63
|
}
|
|
39
64
|
ManagedAccountsDropdown.defaultProps = defaultProps;
|
|
40
65
|
export { ManagedAccountsDropdown };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OwnerSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/AccountInfo/OwnerSelector.tsx"],"names":[],"mappings":"AAiBA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAkB/D,UAAU,MAAM;CAAG;AAEnB,iBAAS,aAAa,CAAC,KAAK,EAAE,MAAM,qBAgPnC;AAED,OAAO,EAAE,aAAa,EAAE,CAAC"}
|
|
@@ -7,8 +7,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
11
|
-
import { CaseContactsSelectorExternal, getHydraContactLabel, getPhoneObj, renderMenuItemChildren, ToastNotification, usePrevious, ValueChangedIcon, } from '@rh-support/components';
|
|
10
|
+
import { CaseContactsSelectorExternal, getHydraContactLabel, renderMenuItemChildren, ToastNotification, usePrevious, ValueChangedIcon, } from '@rh-support/components';
|
|
12
11
|
import { GlobalMetadataStateContext, useCanEditCase } from '@rh-support/react-context';
|
|
13
12
|
import { sortHydraContacts } from '@rh-support/utils';
|
|
14
13
|
import filter from 'lodash/filter';
|
|
@@ -28,18 +27,18 @@ import { getChangedValueTooltip } from '../shared/utils';
|
|
|
28
27
|
function OwnerSelector(props) {
|
|
29
28
|
const { t } = useTranslation();
|
|
30
29
|
const caseUpdateError = useCaseUpdateErrorMessage();
|
|
31
|
-
const { accountNumber, caseNumber, selectedNotificationContacts, selectedOwner, selectedCaseGroupUsers, isCaseOwnerUpdating,
|
|
30
|
+
const { accountNumber, caseNumber, selectedNotificationContacts, selectedOwner, selectedCaseGroupUsers, isCaseOwnerUpdating, isCasePhoneUpdating, } = useCaseSelector((state) => ({
|
|
32
31
|
accountNumber: state.caseDetails.accountNumberRef,
|
|
33
32
|
caseNumber: state.caseDetails.caseNumber,
|
|
34
33
|
selectedNotificationContacts: state.selectedNotificationContacts,
|
|
35
34
|
selectedOwner: state.selectedOwner,
|
|
36
35
|
selectedCaseGroupUsers: state.selectedCaseGroupUsers,
|
|
37
36
|
isCaseOwnerUpdating: state.isCaseOwnerUpdating,
|
|
38
|
-
|
|
37
|
+
isCasePhoneUpdating: state.isCasePhoneUpdating,
|
|
39
38
|
}), isEqual);
|
|
40
39
|
const { routeState: { isNextBtnClickedToShowValidationError }, } = useContext(RouteContext);
|
|
41
40
|
const caseDispatch = useCaseDispatch();
|
|
42
|
-
const { globalMetadataState: { loggedInUserRights
|
|
41
|
+
const { globalMetadataState: { loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
43
42
|
const previousAccountNumber = usePrevious(accountNumber);
|
|
44
43
|
const { isExportingPDF } = useContext(PDFContext);
|
|
45
44
|
const [usersWithGroupAccess, setUsersWithGroupAccess] = useState([]);
|
|
@@ -51,120 +50,6 @@ function OwnerSelector(props) {
|
|
|
51
50
|
!isEmpty(pvalue.ssoUsername) &&
|
|
52
51
|
value.ssoUsername !== pvalue.ssoUsername;
|
|
53
52
|
const canEditCase = useCanEditCase();
|
|
54
|
-
// set owner on creating a case
|
|
55
|
-
const setContactPhoneNumber = (sso) => __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
// logged in user and case owner are the same
|
|
57
|
-
if (sso === loggedInUser.data.ssoUsername) {
|
|
58
|
-
if (loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) {
|
|
59
|
-
setCaseDetails(caseDispatch, {
|
|
60
|
-
phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
|
|
61
|
-
phoneCountryCode: loggedInUser.data.supportPhoneCountryCode,
|
|
62
|
-
suppliedPhoneNumberVerified: 'True',
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
const phoneLine = getPhoneObj(loggedInUser.data.phone).phoneLine || '';
|
|
67
|
-
const countryCode = getPhoneObj(loggedInUser.data.phone).countryCode;
|
|
68
|
-
setCaseDetails(caseDispatch, {
|
|
69
|
-
phoneAreaCodePrefixLineNumber: phoneLine,
|
|
70
|
-
phoneCountryCode: countryCode,
|
|
71
|
-
suppliedPhoneNumberVerified: phoneLine && countryCode ? 'True' : 'False',
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
try {
|
|
77
|
-
const selectedContact = yield contacts.getSFDCContactBySso(sso);
|
|
78
|
-
if (selectedContact.supportPhoneAreaCodePrefixLineNumber) {
|
|
79
|
-
setCaseDetails(caseDispatch, {
|
|
80
|
-
phoneAreaCodePrefixLineNumber: selectedContact.supportPhoneAreaCodePrefixLineNumber,
|
|
81
|
-
phoneCountryCode: selectedContact.supportPhoneCountryCode,
|
|
82
|
-
suppliedPhoneNumberVerified: 'Deferred',
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
else {
|
|
86
|
-
setCaseDetails(caseDispatch, {
|
|
87
|
-
phoneAreaCodePrefixLineNumber: getPhoneObj(selectedContact.phone).phoneLine || '',
|
|
88
|
-
phoneCountryCode: getPhoneObj(selectedContact.phone).countryCode || '',
|
|
89
|
-
suppliedPhoneNumberVerified: 'Deferred',
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
catch (e) {
|
|
94
|
-
setCaseDetails(caseDispatch, {
|
|
95
|
-
phoneAreaCodePrefixLineNumber: '',
|
|
96
|
-
phoneCountryCode: '',
|
|
97
|
-
suppliedPhoneNumberVerified: 'False',
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
const updatePhone = (phoneSetting) => __awaiter(this, void 0, void 0, function* () {
|
|
103
|
-
yield updateCaseDetails(caseDispatch, caseNumber, phoneSetting);
|
|
104
|
-
setCaseDetails(caseDispatch, Object.assign(Object.assign({}, caseDetailes), phoneSetting));
|
|
105
|
-
});
|
|
106
|
-
// set owner on updating a case
|
|
107
|
-
const updateContactPhoneNumber = (sso) => __awaiter(this, void 0, void 0, function* () {
|
|
108
|
-
try {
|
|
109
|
-
// logged in user and case owner are the same
|
|
110
|
-
if (sso === loggedInUser.data.ssoUsername) {
|
|
111
|
-
try {
|
|
112
|
-
if (loggedInUser.data.supportPhoneAreaCodePrefixLineNumber) {
|
|
113
|
-
yield updatePhone({
|
|
114
|
-
phoneAreaCodePrefixLineNumber: loggedInUser.data.supportPhoneAreaCodePrefixLineNumber,
|
|
115
|
-
phoneCountryCode: loggedInUser.data.supportPhoneCountryCode,
|
|
116
|
-
suppliedPhoneNumberVerified: 'True',
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
yield updatePhone({
|
|
121
|
-
phoneAreaCodePrefixLineNumber: getPhoneObj(loggedInUser.data.phone).phoneLine || '',
|
|
122
|
-
phoneCountryCode: getPhoneObj(loggedInUser.data.phone).countryCode || '',
|
|
123
|
-
suppliedPhoneNumberVerified: 'False',
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
catch (e) {
|
|
128
|
-
yield updatePhone({
|
|
129
|
-
phoneAreaCodePrefixLineNumber: '',
|
|
130
|
-
phoneCountryCode: '',
|
|
131
|
-
suppliedPhoneNumberVerified: 'False',
|
|
132
|
-
});
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
else {
|
|
136
|
-
// logged in user and case owner are different
|
|
137
|
-
try {
|
|
138
|
-
const selectedContact = yield contacts.getSFDCContactBySso(sso);
|
|
139
|
-
if (selectedContact.supportPhoneAreaCodePrefixLineNumber) {
|
|
140
|
-
yield updatePhone({
|
|
141
|
-
phoneAreaCodePrefixLineNumber: selectedContact.supportPhoneAreaCodePrefixLineNumber,
|
|
142
|
-
phoneCountryCode: selectedContact.supportPhoneCountryCode,
|
|
143
|
-
suppliedPhoneNumberVerified: 'Deferred',
|
|
144
|
-
});
|
|
145
|
-
}
|
|
146
|
-
else {
|
|
147
|
-
yield updatePhone({
|
|
148
|
-
phoneAreaCodePrefixLineNumber: getPhoneObj(selectedContact.phone).phoneLine || '',
|
|
149
|
-
phoneCountryCode: getPhoneObj(selectedContact.phone).countryCode || '',
|
|
150
|
-
suppliedPhoneNumberVerified: 'Deferred',
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
catch (e) {
|
|
155
|
-
yield updatePhone({
|
|
156
|
-
phoneAreaCodePrefixLineNumber: '',
|
|
157
|
-
phoneCountryCode: '',
|
|
158
|
-
suppliedPhoneNumberVerified: 'False',
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
ToastNotification.addSuccessMessage(t(`Phone number has been successfully updated`));
|
|
163
|
-
}
|
|
164
|
-
catch (e) {
|
|
165
|
-
caseUpdateError.showError(e, t(`Phone number failed to update`));
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
53
|
/**
|
|
169
54
|
* Changing selected owner related
|
|
170
55
|
*/
|
|
@@ -176,7 +61,6 @@ function OwnerSelector(props) {
|
|
|
176
61
|
setLocalOwnerChange(true);
|
|
177
62
|
!isEmpty(selectedContact) &&
|
|
178
63
|
setNotifiedUser(dispatch, filter(notificationContacts, (c) => c.ssoUsername !== selectedContact.ssoUsername));
|
|
179
|
-
setContactPhoneNumber(selectedContact.ssoUsername);
|
|
180
64
|
});
|
|
181
65
|
/** Reset owner when selected account number changes */
|
|
182
66
|
useEffect(() => {
|
|
@@ -212,18 +96,20 @@ function OwnerSelector(props) {
|
|
|
212
96
|
setCaseState(caseDispatch, { isCaseOwnerUpdating: true });
|
|
213
97
|
try {
|
|
214
98
|
yield updateCaseDetails(caseDispatch, caseNumber, caseDetails);
|
|
99
|
+
setCaseDetails(caseDispatch, {
|
|
100
|
+
contactSSOName: newOwner.ssoUsername,
|
|
101
|
+
});
|
|
215
102
|
const abortSignal = new AbortController().signal;
|
|
216
103
|
yield setCaseOwner(caseDispatch, {
|
|
217
104
|
ssoUsername: newOwner.ssoUsername,
|
|
218
105
|
firstName: newOwner.firstName,
|
|
219
106
|
lastName: newOwner.lastName,
|
|
220
107
|
fullNameCustom: newOwner.fullNameCustom,
|
|
221
|
-
}, '', abortSignal);
|
|
108
|
+
}, '', abortSignal, abortSignal, false, '', true, true, caseNumber);
|
|
222
109
|
setLocalOwnerChange(true);
|
|
223
110
|
updateNotifyUsersList(newOwner);
|
|
224
|
-
yield updateContactPhoneNumber(newOwner.ssoUsername);
|
|
225
|
-
setCaseState(caseDispatch, { isCaseOwnerUpdating: false });
|
|
226
111
|
ToastNotification.addSuccessMessage(t(`Owner has been successfully updated`));
|
|
112
|
+
setCaseState(caseDispatch, { isCaseOwnerUpdating: false });
|
|
227
113
|
}
|
|
228
114
|
catch (e) {
|
|
229
115
|
setCaseState(caseDispatch, { isCaseOwnerUpdating: false });
|
|
@@ -277,6 +163,6 @@ function OwnerSelector(props) {
|
|
|
277
163
|
React.createElement(Trans, null, "Owner"),
|
|
278
164
|
React.createElement(ValueChangedIcon, { afterLocalChange: afterLocalChange, comparator: ownerComparator, isLocalChange: localOwnerChange, value: selectedOwner.data, getTooltipContent: getChangedValueTooltip(() => CaseValuesToWatch.owner, (v) => v.fullNameCustom) }),
|
|
279
165
|
React.createElement("span", { className: `form-required ${isExportingPDF ? 'hide-in-pdf' : ''}`, "aria-hidden": true }, "*")),
|
|
280
|
-
showUsersWithSelectedGroupAccess ? (React.createElement(Typeahead, { id: "get-support-owner", className: "react-select-custom", clearButton: true, isLoading: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating, options: usersWithGroupAccess, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, labelKey: getHydraContactLabel, placeholder: t(`Search by name or username`), disabled: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating, renderMenuItemChildren: renderMenuItemChildren })) : (React.createElement(CaseContactsSelectorExternal, { loggedInUserRights: loggedInUserRights.data, selectedAccountNumber: accountNumber, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, placeholder: t(`Search by name or username`), clearButton: true, id: "get-support-owner", name: "get-support-owner", className: "react-select-custom", isUpdating: isCaseOwnerUpdating, isInvalid: isNextBtnClickedToShowValidationError && isEmpty(selectedOwner.data) }))));
|
|
166
|
+
showUsersWithSelectedGroupAccess ? (React.createElement(Typeahead, { id: "get-support-owner", className: "react-select-custom", clearButton: true, isLoading: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating, options: usersWithGroupAccess, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, labelKey: getHydraContactLabel, placeholder: t(`Search by name or username`), disabled: selectedCaseGroupUsers.isFetching || isCaseOwnerUpdating || isCasePhoneUpdating, renderMenuItemChildren: renderMenuItemChildren })) : (React.createElement(CaseContactsSelectorExternal, { loggedInUserRights: loggedInUserRights.data, selectedAccountNumber: accountNumber, selected: !isEmpty(selectedOwner.data) ? [selectedOwner.data] : [], onChange: onCustomerContactSelect, placeholder: t(`Search by name or username`), clearButton: true, id: "get-support-owner", name: "get-support-owner", className: "react-select-custom", isUpdating: isCaseOwnerUpdating, isInvalid: isNextBtnClickedToShowValidationError && isEmpty(selectedOwner.data), isDisabled: isCasePhoneUpdating || isCaseOwnerUpdating }))));
|
|
281
167
|
}
|
|
282
168
|
export { OwnerSelector };
|
package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button, Popover } from '@patternfly/react-core';
|
|
1
|
+
import { Button, ButtonVariant, Popover } from '@patternfly/react-core';
|
|
2
2
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
3
3
|
import { useCanEditCase } from '@rh-support/react-context';
|
|
4
4
|
import { Can, resourceActions, resources } from '@rh-support/user-permissions';
|
|
@@ -15,7 +15,7 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
|
|
|
15
15
|
React.createElement("p", null,
|
|
16
16
|
React.createElement(Trans, null, "After submitting, your case will be reviewed by a support manager."))));
|
|
17
17
|
const isInternalElements = (React.createElement("div", { className: "card card-white card-support escalations", ref: ref },
|
|
18
|
-
React.createElement("h3", { className: "card-heading" },
|
|
18
|
+
React.createElement("h3", { className: "card-heading case-detail-panel-card-heading" },
|
|
19
19
|
React.createElement(Trans, null, "Active Customer Escalation (ACE)"),
|
|
20
20
|
React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about Red Hat support case escalation') },
|
|
21
21
|
React.createElement(InfoCircleIcon, null))),
|
|
@@ -28,7 +28,7 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
|
|
|
28
28
|
React.createElement("li", null, t('The customer thinks the case is not moving appropriately')),
|
|
29
29
|
React.createElement("li", null, t('The customer wants a new resource')),
|
|
30
30
|
React.createElement("li", null, t('The issue is more severe than originally thought'))),
|
|
31
|
-
React.createElement("a", { href: `/watchlist/internal/aces/new?caseNumber=${props.caseNumber}`, className: "pf-c-button pf-m-tertiary", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "request-ace-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))));
|
|
31
|
+
React.createElement("a", { href: `/watchlist/internal/aces/new?caseNumber=${props.caseNumber}`, className: "pf-v5-c-button pf-m-tertiary", target: "_blank", rel: "noopener noreferrer", "data-tracking-id": "request-ace-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))));
|
|
32
32
|
const [openRequestEscalationModal, setOpenRequestEscalationModal] = useState(false);
|
|
33
33
|
const toggleModal = () => {
|
|
34
34
|
if (canEditCase.alert())
|
|
@@ -36,7 +36,7 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
|
|
|
36
36
|
setOpenRequestEscalationModal((openRequestEscalationModal) => !openRequestEscalationModal);
|
|
37
37
|
};
|
|
38
38
|
const isNotInternalElements = (React.createElement("div", { className: "card card-white card-support escalations", ref: ref },
|
|
39
|
-
React.createElement("h3", { className: "card-heading" },
|
|
39
|
+
React.createElement("h3", { className: "card-heading case-detail-panel-card-heading" },
|
|
40
40
|
t('Request an escalation'),
|
|
41
41
|
React.createElement("div", { style: { marginLeft: 'auto' } },
|
|
42
42
|
React.createElement(Popover, { showClose: false, position: 'left', hasAutoWidth: true, bodyContent: (hide) => (React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about escalation cases.') },
|
|
@@ -51,7 +51,7 @@ export const ActiveCustomerEscalation = forwardRef((props, ref) => {
|
|
|
51
51
|
React.createElement("li", null, t('Needs a senior resource.')),
|
|
52
52
|
React.createElement("li", null, t('Is more severe or should be a higher priority.'))),
|
|
53
53
|
commonElements,
|
|
54
|
-
React.createElement(Button, {
|
|
54
|
+
React.createElement(Button, { variant: ButtonVariant.secondary, onClick: toggleModal, "data-tracking-id": "request-rme-trigger", "aria-label": t('Request an escalation') }, t('Request an escalation')))));
|
|
55
55
|
return (React.createElement(React.Fragment, null,
|
|
56
56
|
React.createElement(RequestEscalationModal, { caseNumber: props.caseNumber, severity: props.caseSeverity, caseStatus: props.caseStatus, show: openRequestEscalationModal, onClose: toggleModal }),
|
|
57
57
|
React.createElement(Can, { do: resourceActions.CREATE, on: resources.ICE_ESCALATION, passThrough: true }, (canCreateICE) => canCreateICE ? isInternalElements : isCreateRMEVisible ? isNotInternalElements : React.createElement(React.Fragment, null))));
|
package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface IProps {
|
|
2
3
|
caseNumber: string;
|
|
3
4
|
severity: string;
|
|
@@ -5,6 +6,6 @@ interface IProps {
|
|
|
5
6
|
caseStatus: string;
|
|
6
7
|
onClose: () => void;
|
|
7
8
|
}
|
|
8
|
-
export declare function RequestEscalationModal(props: IProps): JSX.Element;
|
|
9
|
+
export declare function RequestEscalationModal(props: IProps): React.JSX.Element;
|
|
9
10
|
export {};
|
|
10
11
|
//# sourceMappingURL=RequestEscalationModal.d.ts.map
|
package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequestEscalationModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RequestEscalationModal.d.ts","sourceRoot":"","sources":["../../../../../src/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAkBnD,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAID,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,qBA8WnD"}
|
|
@@ -8,8 +8,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { escalations, publicApi } from '@cee-eng/hydrajs';
|
|
11
|
-
import { Button, Form, FormGroup, Grid, GridItem,
|
|
12
|
-
import
|
|
11
|
+
import { Button, Form, FormGroup, FormHelperText, Grid, GridItem, HelperText, HelperTextItem, Modal, Popover, TextArea, TextInput, Title, ValidatedOptions, } from '@patternfly/react-core';
|
|
12
|
+
import { Select, SelectOption } from '@patternfly/react-core/deprecated';
|
|
13
13
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
14
14
|
import { AlertMessage, AlertType, LoadingIndicator, ToastNotification, useFetch } from '@rh-support/components';
|
|
15
15
|
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
@@ -46,7 +46,7 @@ export function RequestEscalationModal(props) {
|
|
|
46
46
|
const [submitButtonIsClicked, setSubmitSaveButtonIsClicked] = useState(false);
|
|
47
47
|
// checks if all the fields have values.
|
|
48
48
|
const hasRequiredInfo = () => Object.keys(formState).reduce((accumulator, currentValue) => { var _a; return !accumulator ? accumulator : formState[currentValue].length > 0 && ((_a = formState[currentValue]) === null || _a === void 0 ? void 0 : _a.trim()); }, true);
|
|
49
|
-
const setFormStateValue = (key) => (
|
|
49
|
+
const setFormStateValue = (key, value) => setFormState((pre) => (Object.assign(Object.assign({}, pre), { [key]: value })));
|
|
50
50
|
const createEscalationFetch = useFetch(escalations.createIceEscalation, { propgateErrors: true });
|
|
51
51
|
const { request: postCommentRequest, isFetching: isPostingComment } = useFetch(publicApi.kase.postComment, {
|
|
52
52
|
propgateErrors: true,
|
|
@@ -72,7 +72,7 @@ export function RequestEscalationModal(props) {
|
|
|
72
72
|
escalationNum &&
|
|
73
73
|
fetchCaseEscalations(caseDetailsPageDispatch, props.caseNumber, loggedInUserRights.data.getAccountNumber(), false);
|
|
74
74
|
yield postCommentRequest({ caseNumber: props.caseNumber, commentBody: comment, contentType: 'markdown' });
|
|
75
|
-
updateDiscussionStateComments(dispatchDiscussion, props.caseNumber, allDiscussions, sort, caseFeedbacksHydra.data, discussionFiltersListState);
|
|
75
|
+
updateDiscussionStateComments(dispatchDiscussion, caseDispatch, props.caseNumber, allDiscussions, sort, caseFeedbacksHydra.data, discussionFiltersListState);
|
|
76
76
|
yield updateCaseRequest(props.caseNumber, { customerEscalation: true });
|
|
77
77
|
checkForCaseStatusToggleOnAttachOrComment(caseDispatch, loggedInUserRights.data.isInternal(), props.caseStatus);
|
|
78
78
|
escalationNum &&
|
|
@@ -126,11 +126,11 @@ export function RequestEscalationModal(props) {
|
|
|
126
126
|
t('Submit')),
|
|
127
127
|
React.createElement(Button, { key: "cancel", variant: "link", onClick: onCancel, "data-tracking-id": "request-rme-cancel", isDisabled: createEscalationFetch.isFetching || isPostingComment || isUpdatingCase, "aria-label": t('Cancel') }, t('Cancel')),
|
|
128
128
|
];
|
|
129
|
-
const header = (React.createElement(Title, { className: "pf-u-mb-0", id: "custom-header-label", headingLevel: "h1" },
|
|
129
|
+
const header = (React.createElement(Title, { className: "pf-v5-u-mb-0", id: "custom-header-label", headingLevel: "h1" },
|
|
130
130
|
React.createElement(Trans, null, "Request an escalation"),
|
|
131
131
|
React.createElement(Popover, { showClose: false, position: 'top', hasAutoWidth: true, bodyContent: () => (React.createElement("a", { href: "/support/escalation", target: "_blank", "aria-label": t('Learn more about escalation cases.') },
|
|
132
132
|
React.createElement(Trans, null, "Learn more about escalation cases."))) },
|
|
133
|
-
React.createElement(InfoCircleIcon, { className: "pf-u-ml-sm" }))));
|
|
133
|
+
React.createElement(InfoCircleIcon, { className: "pf-v5-u-ml-sm" }))));
|
|
134
134
|
// load rme categories as soon as user opens the modal
|
|
135
135
|
useEffect(() => {
|
|
136
136
|
if (!props.show || categories.length !== 0)
|
|
@@ -148,37 +148,40 @@ export function RequestEscalationModal(props) {
|
|
|
148
148
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
149
149
|
}, [props.show]);
|
|
150
150
|
return (React.createElement(Modal, { id: "request-mgmt-escalation-modal", className: "request-escalation-modal", isOpen: props.show, onClose: onCancel, actions: modalActions, header: header, "aria-label": t('Request an escalation') },
|
|
151
|
-
React.createElement("p", { className: "pf-u-mb-md" },
|
|
151
|
+
React.createElement("p", { className: "pf-v5-u-mb-md" },
|
|
152
152
|
React.createElement(Trans, { i18nKey: "i18RequestEscalationDescription" }, "Submit an escalation if an issue has become more severe or you feel the case needs a higher priority. A support manager will review your escalation request.")),
|
|
153
|
-
React.createElement(AlertMessage, { variant: AlertType.DANGER, title: t('Could not create case escalation'), show: creationError, onClose: onErrorClose, isInline: true, className: "pf-u-mb-md", "aria-label": t('Could not create case escalation') }),
|
|
153
|
+
React.createElement(AlertMessage, { variant: AlertType.DANGER, title: t('Could not create case escalation'), show: creationError, onClose: onErrorClose, isInline: true, className: "pf-v5-u-mb-md", "aria-label": t('Could not create case escalation') }),
|
|
154
154
|
React.createElement(Form, { "aria-label": t('form'), className: "request-escalation-form" },
|
|
155
155
|
React.createElement(Grid, { hasGutter: true, md: 12 },
|
|
156
156
|
React.createElement(GridItem, { span: 6 },
|
|
157
157
|
React.createElement(FormGroup, { isRequired: true, label: t('Category'), fieldId: "escalation-category" },
|
|
158
158
|
React.createElement(Select, Object.assign({ "aria-label": t('Category'), id: "customer-category-select", selections: formState.rmeCategory, validated: submitButtonIsClicked && isEmpty(formState.rmeCategory)
|
|
159
159
|
? ValidatedOptions.error
|
|
160
|
-
: ValidatedOptions.default, "aria-invalid": submitButtonIsClicked && isEmpty(formState.rmeCategory), onSelect: setCategoryState, isOpen: showCategoryDropdown, placeholderText: t('Select an option that best fits'), onToggle: onCategoryDropdownToggle }, (isCategoriesFetching && { loadingVariant: 'spinner' })), categories.map((value, index) => (React.createElement(SelectOption, { key: index, value: value }, value)))))),
|
|
160
|
+
: ValidatedOptions.default, "aria-invalid": submitButtonIsClicked && isEmpty(formState.rmeCategory), onSelect: setCategoryState, isOpen: showCategoryDropdown, placeholderText: t('Select an option that best fits'), onToggle: (_event, toggle) => onCategoryDropdownToggle(toggle) }, (isCategoriesFetching && { loadingVariant: 'spinner' })), categories.map((value, index) => (React.createElement(SelectOption, { key: index, value: value }, value)))))),
|
|
161
161
|
React.createElement(GridItem, { span: 6 },
|
|
162
162
|
React.createElement(FormGroup, { isRequired: true, label: t('My region'), fieldId: "escalation-region" },
|
|
163
163
|
React.createElement(Select, { "aria-label": t('My region'), id: "customer-geo-select", selections: formState.geo, onSelect: setGeoState, isOpen: showGeoDropdown, validated: submitButtonIsClicked && isEmpty(formState.geo)
|
|
164
164
|
? ValidatedOptions.error
|
|
165
|
-
: ValidatedOptions.default, placeholderText: t('Select a location'), onToggle: onGeoDropdownToggle, "aria-invalid": submitButtonIsClicked && isEmpty(formState.geo) }, customerGEOKeys.map((key, index) => (React.createElement(SelectOption, { key: index, value: CustomerGEOs[key].value }, t(CustomerGEOs[key].label))))))),
|
|
166
|
-
React.createElement(FormGroup, { isRequired: true,
|
|
167
|
-
|
|
168
|
-
|
|
165
|
+
: ValidatedOptions.default, placeholderText: t('Select a location'), onToggle: (_event, toggle) => onGeoDropdownToggle(toggle), "aria-invalid": submitButtonIsClicked && isEmpty(formState.geo) }, customerGEOKeys.map((key, index) => (React.createElement(SelectOption, { key: index, value: CustomerGEOs[key].value }, t(CustomerGEOs[key].label))))))),
|
|
166
|
+
React.createElement(FormGroup, { isRequired: true, label: t('Subject'), fieldId: "escalation-subject" },
|
|
167
|
+
submitButtonIsClicked && hasLargeSubject && (React.createElement(FormHelperText, null,
|
|
168
|
+
React.createElement(HelperText, null,
|
|
169
|
+
React.createElement(HelperTextItem, { variant: ValidatedOptions.error, hasIcon: true }, t('Subject cannot be more than {{limit}} characters', {
|
|
170
|
+
limit: ESCALATION_SUBJECT_LENGTH_LIMIT,
|
|
171
|
+
}))))),
|
|
169
172
|
React.createElement(TextInput, { isRequired: true, validated: (submitButtonIsClicked && isEmpty(formState.subject)) || hasLargeSubject
|
|
170
173
|
? ValidatedOptions.error
|
|
171
|
-
: ValidatedOptions.default, type: "text", placeholder: t('Enter a subject for your request'), id: "subject-input", name: "subject-input", value: formState.subject, onChange: onSubjectChange, "aria-label": t('Subject') })),
|
|
174
|
+
: ValidatedOptions.default, type: "text", placeholder: t('Enter a subject for your request'), id: "subject-input", name: "subject-input", value: formState.subject, onChange: (_event, subject) => onSubjectChange(subject), "aria-label": t('Subject') })),
|
|
172
175
|
React.createElement(FormGroup, { isRequired: true, label: t('Description'), fieldId: "escalation-description" },
|
|
173
|
-
React.createElement(TextArea, { value: formState.description, onChange: setFormStateValue('description'), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.description)
|
|
176
|
+
React.createElement(TextArea, { value: formState.description, onChange: (e, value) => setFormStateValue('description', value), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.description)
|
|
174
177
|
? ValidatedOptions.error
|
|
175
|
-
: ValidatedOptions.default, "aria-label": t('Description'), id: "description-textarea", placeholder: t('Provide a detailed comment for us to best assist you') })),
|
|
178
|
+
: ValidatedOptions.default, "aria-label": t('Description'), id: "description-textarea", placeholder: t('Provide a detailed comment for us to best assist you'), resizeOrientation: "vertical" })),
|
|
176
179
|
React.createElement(FormGroup, { isRequired: true, label: t('Expectations'), fieldId: "escalation-expectations" },
|
|
177
|
-
React.createElement(TextArea, { onChange: setFormStateValue('expectations'), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.expectations)
|
|
180
|
+
React.createElement(TextArea, { onChange: (e, value) => setFormStateValue('expectations', value), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.expectations)
|
|
178
181
|
? ValidatedOptions.error
|
|
179
|
-
: ValidatedOptions.default, placeholder: t('What do you expect to happen with this escalation?'), id: "expectations-input", value: formState.expectations, "aria-label": t('Expectations') })),
|
|
182
|
+
: ValidatedOptions.default, placeholder: t('What do you expect to happen with this escalation?'), id: "expectations-input", value: formState.expectations, "aria-label": t('Expectations'), resizeOrientation: "vertical" })),
|
|
180
183
|
React.createElement(FormGroup, { isRequired: true, label: t('Business impact'), fieldId: "escalation-business-impact" },
|
|
181
|
-
React.createElement(TextArea, { onChange: setFormStateValue('businessImpactDescription'), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.businessImpactDescription)
|
|
184
|
+
React.createElement(TextArea, { onChange: (e, value) => setFormStateValue('businessImpactDescription', value), isRequired: true, validated: submitButtonIsClicked && isEmpty(formState.businessImpactDescription)
|
|
182
185
|
? ValidatedOptions.error
|
|
183
|
-
: ValidatedOptions.default, placeholder: t('Does your business impact change with this escalation? Please describe how it changed.'), id: "business-impact-input", value: formState.businessImpactDescription, "aria-label": t('Business impact') }))))));
|
|
186
|
+
: ValidatedOptions.default, placeholder: t('Does your business impact change with this escalation? Please describe how it changed.'), id: "business-impact-input", value: formState.businessImpactDescription, "aria-label": t('Business impact'), resizeOrientation: "vertical" }))))));
|
|
184
187
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { RouteComponentProps } from 'react-router-dom';
|
|
2
3
|
interface IProps {
|
|
3
4
|
routeProps: RouteComponentProps;
|
|
4
5
|
}
|
|
5
|
-
export default function Case(props: IProps): JSX.Element;
|
|
6
|
+
export default function Case(props: IProps): React.JSX.Element;
|
|
6
7
|
export {};
|
|
7
8
|
//# sourceMappingURL=Case.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Case.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/Case.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Case.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseEditView/Case.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAS,mBAAmB,EAAiD,MAAM,kBAAkB,CAAC;AAkB7G,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC;CACnC;AAED,MAAM,CAAC,OAAO,UAAU,IAAI,CAAC,KAAK,EAAE,MAAM,qBA6LzC"}
|