@rh-support/troubleshoot 2.4.10-beta.8 → 2.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +11 -21
- 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 +79 -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 +30 -17
- 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 +108 -39
- 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 -34
- 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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Modal, ModalVariant } from '@patternfly/react-core';
|
|
2
|
-
import { AlertMessage, AlertType
|
|
2
|
+
import { AlertMessage, AlertType } from '@rh-support/components';
|
|
3
3
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
4
|
import filter from 'lodash/filter';
|
|
5
5
|
import find from 'lodash/find';
|
|
@@ -8,8 +8,10 @@ import isEqual from 'lodash/isEqual';
|
|
|
8
8
|
import React, { forwardRef, useContext, useEffect, useState } from 'react';
|
|
9
9
|
import { Trans, useTranslation } from 'react-i18next';
|
|
10
10
|
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
11
|
+
import { RouteContext } from '../../context/RouteContext';
|
|
11
12
|
import { TCStateContext } from '../../context/TopContentContext';
|
|
12
13
|
import { setCaseDetails } from '../../reducers/CaseReducer';
|
|
14
|
+
import { AppRouteSections } from '../../reducers/RouteConstNTypes';
|
|
13
15
|
import RouteUtils from '../../utils/routeUtils';
|
|
14
16
|
import OpenCaseIssue from '../CaseInformation/OpenCaseIssue';
|
|
15
17
|
import Suggestions from '../Suggestions/Suggestions';
|
|
@@ -31,12 +33,14 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
31
33
|
var _a, _b;
|
|
32
34
|
const { globalMetadataState: { allProducts, loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
|
|
33
35
|
const caseDispatch = useCaseDispatch();
|
|
34
|
-
const { product, version, contactSSOName } = useCaseSelector((state) => ({
|
|
36
|
+
const { product, version, contactSSOName, ABTestVariation } = useCaseSelector((state) => ({
|
|
35
37
|
product: state.caseDetails.product,
|
|
36
38
|
version: state.caseDetails.version,
|
|
37
39
|
contactSSOName: state.caseDetails.contactSSOName,
|
|
40
|
+
ABTestVariation: state.ABTestVariation,
|
|
38
41
|
}), isEqual);
|
|
39
42
|
const { topContentState: { topContent }, } = useContext(TCStateContext);
|
|
43
|
+
const { routeState: { activeSection }, } = useContext(RouteContext);
|
|
40
44
|
const [isModalOpen, setIsModalOpen] = useState(false);
|
|
41
45
|
const [showModal, setShowModal] = useState(false);
|
|
42
46
|
const [showModalButton, setShowModalButton] = useState(false);
|
|
@@ -76,16 +80,32 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
76
80
|
RouteUtils.updateQueryParams(props.routeProps, newParams);
|
|
77
81
|
}
|
|
78
82
|
const entitledProducts = filter(allProducts.data.productsResult, (p) => p.isEntitledProduct);
|
|
83
|
+
const isATestvariation = ABTestVariation === 'A';
|
|
84
|
+
const isBTestvariation = ABTestVariation === 'B' || isEmpty(ABTestVariation);
|
|
85
|
+
// Determine whether to render the ProductVersionDropdownSelector
|
|
86
|
+
const renderProductVersionDropdownSelector = (activeSection === AppRouteSections.SUMMARIZE && !props.caseCreateExperience) ||
|
|
87
|
+
activeSection === AppRouteSections.GET_SUPPORT ||
|
|
88
|
+
isBTestvariation ||
|
|
89
|
+
(isATestvariation && (props.isOnGetSupportPage || props.isOnReviewPage));
|
|
90
|
+
// Determine whether to render the OpenCaseIssue component
|
|
91
|
+
const renderOpenCaseIssue = (isBTestvariation &&
|
|
92
|
+
(activeSection === AppRouteSections.SUMMARIZE ||
|
|
93
|
+
activeSection === AppRouteSections.REVIEW ||
|
|
94
|
+
activeSection === AppRouteSections.SUBMIT_CASE)) ||
|
|
95
|
+
(isATestvariation &&
|
|
96
|
+
(activeSection === AppRouteSections.SUMMARIZE ||
|
|
97
|
+
activeSection === AppRouteSections.REVIEW ||
|
|
98
|
+
activeSection === AppRouteSections.SUBMIT_CASE)) ||
|
|
99
|
+
(!props.caseCreateExperience && activeSection === AppRouteSections.SUMMARIZE);
|
|
79
100
|
return (React.createElement(React.Fragment, null,
|
|
80
|
-
React.createElement("div", { className: "form-group product-selector-wrapper" },
|
|
81
|
-
React.createElement("div", { className: "case-details-summary" },
|
|
82
|
-
React.createElement(OpenCaseIssue, { inlineEditable: false, required: true })),
|
|
101
|
+
renderProductVersionDropdownSelector && (React.createElement("div", { className: "form-group product-selector-wrapper" },
|
|
83
102
|
React.createElement("div", { className: "all-product-selector-dropdown" },
|
|
84
|
-
React.createElement(ProductVersionDropdownSelector, { isLoading: allProducts.isFetching, products: props.checkEntitledProduct ? entitledProducts : allProducts.data.productsResult, onProductChange: onProductChange, onVersionChange: onVersionChange, ref: ref }))),
|
|
85
|
-
React.createElement(
|
|
103
|
+
React.createElement(ProductVersionDropdownSelector, { isLoading: allProducts.isFetching, products: props.checkEntitledProduct ? entitledProducts : allProducts.data.productsResult, onProductChange: onProductChange, onVersionChange: onVersionChange, ref: ref, isOnSummaryPage: props.isOnSummaryPage, loadTCOnChange: props.loadTCOnChange, isFetching: topContent.isFetching })))),
|
|
104
|
+
renderOpenCaseIssue && (React.createElement("div", { className: "case-details-summary" },
|
|
105
|
+
React.createElement(OpenCaseIssue, { inlineEditable: false, required: true, isOnSummaryPage: props.isOnSummaryPage }))),
|
|
106
|
+
React.createElement(AlertMessage, { isInline: true, variant: AlertType.DANGER, className: "pf-v5-u-mt-lg", title: t(`${loggedInUserRights.data.isSSOUsernameSameAsLoggedInUser(contactSSOName)
|
|
86
107
|
? 'You are'
|
|
87
108
|
: 'Selected owner is'} not allowed to create case on this product.`), show: !allProducts.isFetching && props.checkEntitledProduct && !isEntitledProduct && !isEmpty(product) }),
|
|
88
|
-
React.createElement(LoadingIndicator, { show: topContent.isFetching && props.loadTCOnChange }),
|
|
89
109
|
showModalButton &&
|
|
90
110
|
!isEmpty(product) &&
|
|
91
111
|
!isEmpty(version) &&
|
|
@@ -93,7 +113,7 @@ const AllProductsSelector = forwardRef((props, ref) => {
|
|
|
93
113
|
topContent.data.length !== 0 && (React.createElement("button", { className: "btn btn-bordered-blue btn-slim pull-top-narrow push-bottom-narrow", "data-tracking-id": "suggested-fixes-trigger", onClick: toggleTCModal, type: "button" },
|
|
94
114
|
React.createElement(Trans, null, "Suggested fixes"))),
|
|
95
115
|
props.loadTCOnChange && !topContent.isFetching && topContent.data.length !== 0 && (React.createElement(Modal, { className: "feedback-modal", title: t('Suggested fixes'), description: t('There are new updates to suggested fixes after changing your product.'), "aria-describedby": "Feedback Form", isOpen: isModalOpen, variant: ModalVariant.large, onClose: toggleTCModal, actions: [
|
|
96
|
-
React.createElement("button", { key: "cancel", onClick: toggleTCModal, className: "btn btn-app btn-primary" },
|
|
116
|
+
React.createElement("button", { key: "cancel", onClick: toggleTCModal, className: "btn btn-app btn-primary", type: "button" },
|
|
97
117
|
React.createElement(Trans, null, "Cancel")),
|
|
98
118
|
] },
|
|
99
119
|
React.createElement("span", null,
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ISEProduct } from '@cee-eng/hydrajs/@types/models/product';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
interface IProps {
|
|
3
4
|
products: Partial<ISEProduct>[];
|
|
4
5
|
onProductChange: (product: string) => any;
|
|
5
6
|
isNextBtnClickedToShowValidationError: boolean;
|
|
6
7
|
isCaseCreate: boolean;
|
|
8
|
+
isOnSummaryPage?: boolean;
|
|
9
|
+
isLoading?: boolean;
|
|
7
10
|
}
|
|
8
|
-
export declare const NewProductDropdownSelector: (props: IProps) => JSX.Element;
|
|
11
|
+
export declare const NewProductDropdownSelector: (props: IProps) => React.JSX.Element;
|
|
9
12
|
export {};
|
|
10
13
|
//# sourceMappingURL=NewProductDropdownSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"NewProductDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAMpE,OAAO,KAA0C,MAAM,OAAO,CAAC;AAK/D,UAAU,MAAM;IACZ,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;IAC/C,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAOD,eAAO,MAAM,0BAA0B,UAAW,MAAM,sBAyHvD,CAAC"}
|
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import { Divider
|
|
1
|
+
import { Divider } from '@patternfly/react-core';
|
|
2
|
+
import { Select, SelectGroup, SelectOption, SelectVariant } from '@patternfly/react-core/deprecated';
|
|
2
3
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
3
4
|
import isEmpty from 'lodash/isEmpty';
|
|
4
5
|
import isEqual from 'lodash/isEqual';
|
|
5
6
|
import React, { useContext, useEffect, useState } from 'react';
|
|
6
|
-
import { useTranslation } from 'react-i18next';
|
|
7
|
+
import { Trans, useTranslation } from 'react-i18next';
|
|
7
8
|
import { useCaseSelector } from '../../context/CaseContext';
|
|
9
|
+
const isProductSupportedForCustomer = (productName, productResults) => {
|
|
10
|
+
const foundItem = productResults.filter((item) => item.name === productName)[0];
|
|
11
|
+
return foundItem ? foundItem.supportedForCustomer : false;
|
|
12
|
+
};
|
|
8
13
|
export const NewProductDropdownSelector = (props) => {
|
|
9
14
|
const { t } = useTranslation();
|
|
10
15
|
const [isOpen, setIsOpen] = useState(false);
|
|
11
16
|
const [showValidationLocal, setShowValidationLocal] = useState(props.isNextBtnClickedToShowValidationError);
|
|
17
|
+
const [isSelectedProductSupportedForCustomer, setIsSelectedProductSupportedForCustomer] = useState(true);
|
|
12
18
|
const { product } = useCaseSelector((state) => ({
|
|
13
19
|
product: state.caseDetails.product,
|
|
14
20
|
}), isEqual);
|
|
@@ -18,7 +24,7 @@ export const NewProductDropdownSelector = (props) => {
|
|
|
18
24
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
19
25
|
}, [props.isNextBtnClickedToShowValidationError]);
|
|
20
26
|
const createOption = (product, id, type) => {
|
|
21
|
-
return (React.createElement(SelectOption, { key: `${type}-${id}`, value: product.name, className: "pf-c-select__menu-wrapper", "data-tracking-id": `${product.name ? product.name.replace(/\s+/g, '') : ''}-${type}-dropdown` }));
|
|
27
|
+
return (React.createElement(SelectOption, { key: `${type}-${id}`, value: product.name, className: "pf-v5-c-select__menu-wrapper", "data-tracking-id": `${product.name ? product.name.replace(/\s+/g, '') : ''}-${type}-dropdown` }));
|
|
22
28
|
};
|
|
23
29
|
const onToggle = (isOpen) => {
|
|
24
30
|
setIsOpen(isOpen);
|
|
@@ -31,10 +37,10 @@ export const NewProductDropdownSelector = (props) => {
|
|
|
31
37
|
const productOptions = props.products.map((p, id) => createOption(p, id, 'product'));
|
|
32
38
|
const allProductsTroubleshootOptions = allProducts.data.productsResult.map((p, id) => createOption(p, id, 'product'));
|
|
33
39
|
return [
|
|
34
|
-
React.createElement(SelectGroup, { label: t('Top products'), key: "topProducts", value: '' }),
|
|
40
|
+
React.createElement(SelectGroup, { label: t('Top products'), key: "topProducts", value: '', className: "product-selector-group" }),
|
|
35
41
|
...topProductOptions,
|
|
36
42
|
React.createElement(Divider, { key: "all-product-divider" }),
|
|
37
|
-
React.createElement(SelectGroup, { label: t('All products'), key: "AllProducts", value: '' }),
|
|
43
|
+
React.createElement(SelectGroup, { label: t('All products'), key: "AllProducts", value: '', className: "product-selector-group" }),
|
|
38
44
|
...(props.isCaseCreate ? productOptions : allProductsTroubleshootOptions),
|
|
39
45
|
];
|
|
40
46
|
};
|
|
@@ -61,6 +67,15 @@ export const NewProductDropdownSelector = (props) => {
|
|
|
61
67
|
props.onProductChange(selection);
|
|
62
68
|
setIsOpen(false);
|
|
63
69
|
};
|
|
70
|
+
useEffect(() => {
|
|
71
|
+
product &&
|
|
72
|
+
props.isOnSummaryPage &&
|
|
73
|
+
setIsSelectedProductSupportedForCustomer(isProductSupportedForCustomer(product, allProducts.data.productsResult));
|
|
74
|
+
}, [allProducts.data.productsResult, product, props.isOnSummaryPage]);
|
|
64
75
|
return (React.createElement("div", null,
|
|
65
|
-
React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Search for or select a product'), onToggle: onToggle, onSelect: onSelect, isOpen: isOpen, placeholderText: t('Search for or select a product'), "aria-labelledby": t('Product-selector'), onFilter: onFilter, selections: product, validated: isEmpty(product) && showValidationLocal ? 'error' : 'default', "data-tracking-id": "get-support-product-dropdown-selector" }, getOptions())
|
|
76
|
+
React.createElement(Select, { variant: SelectVariant.typeahead, typeAheadAriaLabel: t('Search for or select a product'), onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, isOpen: isOpen, placeholderText: t('Search for or select a product'), "aria-labelledby": t('Product-selector'), onFilter: onFilter, selections: product, validated: isEmpty(product) && showValidationLocal ? 'error' : 'default', "data-tracking-id": "get-support-product-dropdown-selector", isDisabled: props.isLoading }, getOptions()),
|
|
77
|
+
!props.isLoading && !isSelectedProductSupportedForCustomer && (React.createElement("div", { className: "pf-v5-u-ml-xs pf-v5-u-mt-sm form-instructions" },
|
|
78
|
+
React.createElement(Trans, null, "Red Hat must confirm your subscription status before providing support."),
|
|
79
|
+
React.createElement("br", null),
|
|
80
|
+
React.createElement(Trans, null, "We'll contact you if we have any questions.")))));
|
|
66
81
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
interface IProps {
|
|
2
3
|
onVersionChange: (option: string) => void;
|
|
3
4
|
isNextBtnClickedToShowValidationError: boolean;
|
|
4
5
|
}
|
|
5
|
-
export declare const NewProductVersionSelector: (props: IProps) => JSX.Element;
|
|
6
|
+
export declare const NewProductVersionSelector: (props: IProps) => React.JSX.Element;
|
|
6
7
|
export {};
|
|
7
8
|
//# sourceMappingURL=NewProductVersionSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NewProductVersionSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/NewProductVersionSelector.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAM/D,UAAU,MAAM;IACZ,eAAe,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,qCAAqC,EAAE,OAAO,CAAC;CAClD;AAED,eAAO,MAAM,yBAAyB,UAAW,MAAM,sBAoItD,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Select, SelectOption, SelectVariant } from '@patternfly/react-core';
|
|
1
|
+
import { Select, SelectOption, SelectVariant } from '@patternfly/react-core/deprecated';
|
|
2
2
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
3
3
|
import { getUniqueSortedVersions } from '@rh-support/utils';
|
|
4
4
|
import isEmpty from 'lodash/isEmpty';
|
|
@@ -91,5 +91,5 @@ export const NewProductVersionSelector = (props) => {
|
|
|
91
91
|
setIsOpen(false);
|
|
92
92
|
};
|
|
93
93
|
const titleId = 'version-selector';
|
|
94
|
-
return (React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle: onToggle, onSelect: onSelect, isOpen: isOpen, placeholderText: t('Select a version'), "aria-labelledby": titleId, selections: version, validated: isEmpty(version) && showValidationLocal ? 'error' : 'default', isDisabled: isEmpty(product), "data-tracking-id": "get-support-version-dropdown-selector" }, (isSEProductApiIsDown && versionsDetails.isFetching && { loadingVariant: 'spinner' })), selectVersionOptions.map((version, index) => (React.createElement(SelectOption, { key: index, value: version })))));
|
|
94
|
+
return (React.createElement(Select, Object.assign({ variant: SelectVariant.single, onToggle: (_event, isOpen) => onToggle(isOpen), onSelect: onSelect, isOpen: isOpen, placeholderText: t('Select a version'), toggleAriaLabel: t('Select a version'), "aria-labelledby": titleId, selections: version, validated: isEmpty(version) && showValidationLocal ? 'error' : 'default', isDisabled: isEmpty(product) || allProducts.isFetching, "data-tracking-id": "get-support-version-dropdown-selector" }, (isSEProductApiIsDown && versionsDetails.isFetching && { loadingVariant: 'spinner' })), selectVersionOptions.map((version, index) => (React.createElement(SelectOption, { key: index, value: version })))));
|
|
95
95
|
};
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RouteComponentProps } from 'react-router-dom';
|
|
2
3
|
import { IRouteUrlParams } from '../../reducers/RouteConstNTypes';
|
|
3
4
|
interface IProps {
|
|
4
5
|
routeProps: RouteComponentProps<IRouteUrlParams>;
|
|
6
|
+
userSeenRecommendations?: (value: React.SetStateAction<boolean>) => void;
|
|
7
|
+
userClickedNextonRecommendations?: boolean;
|
|
8
|
+
resultsRowRef?: React.MutableRefObject<HTMLDivElement | null>;
|
|
9
|
+
isOnGetSupportPage?: boolean;
|
|
10
|
+
caseCreateExperience?: boolean;
|
|
5
11
|
}
|
|
6
12
|
/**
|
|
7
13
|
* Responsible for:
|
|
@@ -11,6 +17,6 @@ interface IProps {
|
|
|
11
17
|
*
|
|
12
18
|
* @param props
|
|
13
19
|
*/
|
|
14
|
-
export default function ProductSelector(props: IProps): JSX.Element;
|
|
20
|
+
export default function ProductSelector(props: IProps): React.JSX.Element;
|
|
15
21
|
export {};
|
|
16
22
|
//# sourceMappingURL=ProductSelector.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductSelector.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductSelector.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAOlE,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,uBAAuB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;IACzE,gCAAgC,CAAC,EAAE,OAAO,CAAC;IAC3C,aAAa,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAC9D,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAClC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,KAAK,EAAE,MAAM,qBA0GpD"}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import { Alert, AlertVariant } from '@patternfly/react-core';
|
|
2
2
|
import { AlertMessage, AlertType, ErrorBoundary } from '@rh-support/components';
|
|
3
3
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
4
|
+
import { getConfigField, PCM_CONFIG_FIELD_TYPE } from '@rh-support/utils';
|
|
4
5
|
import isEmpty from 'lodash/isEmpty';
|
|
5
6
|
import isEqual from 'lodash/isEqual';
|
|
6
|
-
import React, { useContext, useRef } from 'react';
|
|
7
|
+
import React, { useContext, useEffect, useRef } from 'react';
|
|
7
8
|
import { Trans, useTranslation } from 'react-i18next';
|
|
8
|
-
import { useCaseSelector } from '../../context/CaseContext';
|
|
9
|
+
import { useCaseDispatch, useCaseSelector } from '../../context/CaseContext';
|
|
9
10
|
import { RouteContext } from '../../context/RouteContext';
|
|
11
|
+
import { useFetchCVEData } from '../../hooks/useFetchCVEData';
|
|
12
|
+
import { setCaseState } from '../../reducers/CaseReducer';
|
|
13
|
+
import { CveModal } from '../Cve/CveModal';
|
|
10
14
|
import { EARuleWidget } from '../Recommendations/EARules/EARuleWidget';
|
|
11
15
|
import Recommendations from '../Recommendations/Recommendations';
|
|
12
16
|
import { AllProductsSelector } from './AllProductsSelector';
|
|
@@ -20,37 +24,55 @@ import { ProductSelectorLoader } from './ProductSelectorLoader';
|
|
|
20
24
|
* @param props
|
|
21
25
|
*/
|
|
22
26
|
export default function ProductSelector(props) {
|
|
27
|
+
const { cveRecommendation } = useFetchCVEData();
|
|
23
28
|
const { t } = useTranslation();
|
|
24
|
-
const { globalMetadataState: { allProducts }, } = useContext(GlobalMetadataStateContext);
|
|
25
|
-
const { product, version } = useCaseSelector((state) => ({
|
|
29
|
+
const { globalMetadataState: { allProducts, pcmConfig }, } = useContext(GlobalMetadataStateContext);
|
|
30
|
+
const { product, version, ABTestVariation } = useCaseSelector((state) => ({
|
|
26
31
|
product: state.caseDetails.product,
|
|
27
32
|
version: state.caseDetails.version,
|
|
33
|
+
ABTestVariation: state.ABTestVariation,
|
|
28
34
|
}), isEqual);
|
|
29
35
|
const { routeState: { isCaseCreate }, } = useContext(RouteContext);
|
|
36
|
+
const caseDispatch = useCaseDispatch();
|
|
37
|
+
const cveModalEnabledConfig = getConfigField(pcmConfig.data, 'isCVEModalEnabled', PCM_CONFIG_FIELD_TYPE.STRING);
|
|
38
|
+
const isCVEModalEnabled = cveModalEnabledConfig === '1';
|
|
39
|
+
const isATestvariation = ABTestVariation === 'A';
|
|
40
|
+
const isBTestvariation = ABTestVariation === 'B' || isEmpty(ABTestVariation);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
if (!isCVEModalEnabled) {
|
|
43
|
+
setCaseState(caseDispatch, {
|
|
44
|
+
isCveModalOpened: false,
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
48
|
+
}, [isCVEModalEnabled]);
|
|
30
49
|
/**
|
|
31
50
|
* The all product selector and top product selector should always be "selected" because
|
|
32
51
|
* the all product selector needs to show the selection from the top products selector and the top product selector
|
|
33
52
|
* doesn't matter becasue it will be hidden whenever a product is selected.
|
|
34
53
|
*/
|
|
35
54
|
const productSelectorRef = useRef(null);
|
|
55
|
+
const rederProductSelect = (React.createElement("form", null,
|
|
56
|
+
(cveRecommendation === null || cveRecommendation === void 0 ? void 0 : cveRecommendation.length) !== 0 && isCVEModalEnabled && React.createElement(CveModal, null),
|
|
57
|
+
React.createElement(AllProductsSelector, { routeProps: props.routeProps, checkEntitledProduct: isCaseCreate ? true : false, ref: productSelectorRef, isOnSummaryPage: true, isOnGetSupportPage: props === null || props === void 0 ? void 0 : props.isOnGetSupportPage, caseCreateExperience: props.caseCreateExperience })));
|
|
36
58
|
return (React.createElement(React.Fragment, null,
|
|
37
|
-
allProducts.isFetching && React.createElement(ProductSelectorLoader, null),
|
|
38
|
-
React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-u-mt-lg", title: t('There was an error loading products.'), show: allProducts.isError }),
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
isBTestvariation && allProducts.isFetching && React.createElement(ProductSelectorLoader, null),
|
|
60
|
+
React.createElement(AlertMessage, { variant: AlertType.DANGER, className: "pf-v5-u-mt-lg", title: t('There was an error loading products.'), show: allProducts.isError }),
|
|
61
|
+
isBTestvariation
|
|
62
|
+
? !allProducts.isFetching && !allProducts.isError && rederProductSelect
|
|
63
|
+
: isATestvariation && rederProductSelect,
|
|
64
|
+
product === 'Subscription Watch' && (React.createElement(Alert, { isInline: true, variant: AlertVariant.warning, title: React.createElement(Trans, null,
|
|
65
|
+
' ',
|
|
66
|
+
"If you're having a subscription issue that doesn't relate to",
|
|
67
|
+
' ',
|
|
68
|
+
React.createElement("a", { href: "/products/subscription-central", rel: "noopener noreferrer", target: "_blank" }, "Subscription Watch"),
|
|
69
|
+
"product, then please contact",
|
|
70
|
+
' ',
|
|
71
|
+
React.createElement("a", { href: "/support/contact", "data-tracking-id": "contact-customer-service" }, "customer service"),
|
|
72
|
+
' ',
|
|
73
|
+
"for help.") })),
|
|
74
|
+
isBTestvariation && React.createElement(EARuleWidget, null),
|
|
75
|
+
!(props === null || props === void 0 ? void 0 : props.isOnGetSupportPage) && (React.createElement("div", { className: "suggestions-result-section" },
|
|
76
|
+
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading recommendations') } }, !isEmpty(version) && (React.createElement("div", { className: "common-suggestions" },
|
|
77
|
+
React.createElement(Recommendations, { routeProps: props.routeProps, userSeenRecommendations: props.userSeenRecommendations, userClickedNextonRecommendationsValue: props.userClickedNextonRecommendations, resultsRowRef: props.resultsRowRef }))))))));
|
|
56
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductSelectorLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductSelectorLoader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductSelectorLoader.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductSelectorLoader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,wBAAgB,qBAAqB,sBAkBpC"}
|
|
@@ -8,6 +8,9 @@ interface IProps extends IDClassNameProps {
|
|
|
8
8
|
disabled?: boolean;
|
|
9
9
|
htmlForId?: string;
|
|
10
10
|
isLoading?: boolean;
|
|
11
|
+
isOnSummaryPage?: boolean;
|
|
12
|
+
loadTCOnChange?: boolean;
|
|
13
|
+
isFetching?: boolean;
|
|
11
14
|
}
|
|
12
15
|
declare const ProductVersionDropdownSelector: React.ForwardRefExoticComponent<IProps & React.RefAttributes<unknown>>;
|
|
13
16
|
export { ProductVersionDropdownSelector };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductVersionDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductVersionDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"ProductVersionDropdownSelector.d.ts","sourceRoot":"","sources":["../../../../src/components/ProductSelector/ProductVersionDropdownSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,wCAAwC,CAAC;AAEpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,KAAiC,MAAM,OAAO,CAAC;AAOtD,UAAU,MAAO,SAAQ,gBAAgB;IACrC,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;IAChC,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,GAAG,CAAC;IAC1C,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAOD,QAAA,MAAM,8BAA8B,wEAuDlC,CAAC;AAEH,OAAO,EAAE,8BAA8B,EAAE,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { LoadingIndicator } from '@rh-support/components';
|
|
1
2
|
import React, { forwardRef, useContext } from 'react';
|
|
2
3
|
import { Trans } from 'react-i18next';
|
|
3
4
|
import { RouteContext } from '../../context/RouteContext';
|
|
@@ -15,13 +16,20 @@ const ProductVersionDropdownSelector = forwardRef((props, ref) => {
|
|
|
15
16
|
React.createElement(Trans, null, "Product"),
|
|
16
17
|
' ',
|
|
17
18
|
React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
|
|
18
|
-
React.createElement(
|
|
19
|
+
React.createElement("div", { className: "pf-v5-u-display-flex pf-v5-u-align-items-center" },
|
|
20
|
+
React.createElement("div", { className: "pf-v5-u-flex-1" },
|
|
21
|
+
React.createElement(NewProductDropdownSelector, { products: props.products, onProductChange: props.onProductChange, isNextBtnClickedToShowValidationError: isNextBtnClickedToShowValidationError, isCaseCreate: isCaseCreate, isOnSummaryPage: props.isOnSummaryPage, isLoading: props.isLoading })),
|
|
22
|
+
props.isLoading && (React.createElement("div", { className: "pf-v5-u-flex-basis-auto" },
|
|
23
|
+
React.createElement(LoadingIndicator, { className: "pf-v5-u-ml-sm", isInline: true, show: props.isLoading, size: "sm" })))),
|
|
24
|
+
React.createElement(React.Fragment, null)),
|
|
19
25
|
React.createElement("div", { className: "version-selector-wrapper" },
|
|
20
26
|
React.createElement("label", { htmlFor: "version-selector-dropdown-toggle" },
|
|
21
27
|
React.createElement(Trans, null, "Version"),
|
|
22
28
|
' ',
|
|
23
29
|
React.createElement("span", { className: "form-required", "aria-hidden": true }, "*")),
|
|
24
|
-
React.createElement(
|
|
30
|
+
React.createElement("div", { className: "version-dropdown-wrapper" },
|
|
31
|
+
React.createElement(NewProductVersionSelector, { onVersionChange: props.onVersionChange, isNextBtnClickedToShowValidationError: isNextBtnClickedToShowValidationError }),
|
|
32
|
+
React.createElement(LoadingIndicator, { show: props.isFetching && props.loadTCOnChange })))));
|
|
25
33
|
});
|
|
26
34
|
ProductVersionDropdownSelector.defaultProps = defaultProps;
|
|
27
35
|
export { ProductVersionDropdownSelector };
|
|
@@ -2,8 +2,11 @@
|
|
|
2
2
|
* We need to wrap Critical solution toast notification and Cluster recommendation toast notification so they don't get overlapped.
|
|
3
3
|
*/
|
|
4
4
|
import { FC } from 'react';
|
|
5
|
+
import { RouteComponentProps } from 'react-router-dom';
|
|
6
|
+
import { IRouteUrlParams } from '../../reducers/RouteConstNTypes';
|
|
5
7
|
interface IProps {
|
|
6
8
|
submitCaseAndNavigate: (isReSubmitting: boolean) => void;
|
|
9
|
+
routeProps: RouteComponentProps<IRouteUrlParams>;
|
|
7
10
|
}
|
|
8
11
|
declare const AlertToastWrapper: FC<IProps>;
|
|
9
12
|
export default AlertToastWrapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertToastWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/AlertToastWrapper.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertToastWrapper.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/AlertToastWrapper.tsx"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAc,EAAE,EAAE,EAAmC,MAAM,OAAO,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAKvD,OAAO,EAAiC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAMjG,UAAU,MAAM;IACZ,qBAAqB,EAAE,CAAC,cAAc,EAAE,OAAO,KAAK,IAAI,CAAC;IACzD,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,QAAA,MAAM,iBAAiB,EAAE,EAAE,CAAC,MAAM,CAuCjC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -13,7 +13,7 @@ import { AttachmentStateContext } from '../shared/fileUpload';
|
|
|
13
13
|
import { ResubmitToast } from '../SubmitCase/ResubmitToast';
|
|
14
14
|
import ClusterRecommendationToast from './ClusterRecommendationToast';
|
|
15
15
|
import CriticalSolutionsToast from './CriticalSolutionsToast';
|
|
16
|
-
const AlertToastWrapper = ({ submitCaseAndNavigate }) => {
|
|
16
|
+
const AlertToastWrapper = ({ submitCaseAndNavigate, routeProps }) => {
|
|
17
17
|
const { routeState: { activeSection }, } = useContext(RouteContext);
|
|
18
18
|
const [isCriticalSolutionsVisible, setIsCriticalSolutionsVisible] = useState(true);
|
|
19
19
|
const { caseType } = useCaseSelector((state) => ({
|
|
@@ -33,6 +33,6 @@ const AlertToastWrapper = ({ submitCaseAndNavigate }) => {
|
|
|
33
33
|
return (React.createElement(AlertGroup, { isToast: true },
|
|
34
34
|
isCriticalSolutionsVisible && isNotAnIdea && React.createElement(CriticalSolutionsToast, { userClosed: userClosed }),
|
|
35
35
|
!hideClusterIdReportModal && isNotAnIdea && React.createElement(ClusterRecommendationToast, null),
|
|
36
|
-
React.createElement(ResubmitToast, { submitCaseAndNavigate: submitCaseAndNavigate })));
|
|
36
|
+
React.createElement(ResubmitToast, { submitCaseAndNavigate: submitCaseAndNavigate, routeProps: routeProps })));
|
|
37
37
|
};
|
|
38
38
|
export default AlertToastWrapper;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import { RouteComponentProps } from 'react-router-dom';
|
|
2
3
|
import { IRouteUrlParams } from '../../reducers/RouteConstNTypes';
|
|
3
4
|
interface IProps {
|
|
4
5
|
routeProps: RouteComponentProps<IRouteUrlParams>;
|
|
6
|
+
className?: string;
|
|
5
7
|
}
|
|
6
|
-
export declare function AsideResults(props: IProps): JSX.Element;
|
|
8
|
+
export declare function AsideResults(props: IProps): React.JSX.Element;
|
|
7
9
|
export {};
|
|
8
10
|
//# sourceMappingURL=AsideResults.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsideResults.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/AsideResults.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AsideResults.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/AsideResults.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AASvD,OAAO,EAAE,eAAe,EAAsC,MAAM,iCAAiC,CAAC;AAUtG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBAsMzC"}
|
|
@@ -9,8 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { pcm, search } from '@cee-eng/hydrajs';
|
|
11
11
|
import { useDebounce } from '@rh-support/components';
|
|
12
|
-
import {
|
|
13
|
-
import { computeRecommendationAbstract, computeRecommendationTitle, getConfigField, getSolrParams, getTrimmedSpecialCharacters, PCM_CONFIG_FIELD_TYPE, PreviousCaseTypes, replaceHighlightingData, } from '@rh-support/utils';
|
|
12
|
+
import { computeRecommendationAbstract, computeRecommendationTitle, convertObjToEncodedQueryParams, dtmTrackEventRecommendationListingItemClicked, getSolrParams, getTrimmedCharacters, PreviousCaseTypes, replaceHighlightingData, } from '@rh-support/utils';
|
|
14
13
|
import isEmpty from 'lodash/isEmpty';
|
|
15
14
|
import isEqual from 'lodash/isEqual';
|
|
16
15
|
import React, { useContext, useEffect, useRef } from 'react';
|
|
@@ -20,32 +19,24 @@ import { RecommendationDispatchContext, RecommendationStateContext } from '../..
|
|
|
20
19
|
import { RouteContext } from '../../context/RouteContext';
|
|
21
20
|
import { SessionRestoreDispatchContext, SessionRestoreStateContext } from '../../context/SessionRestoreContext';
|
|
22
21
|
import { WATSONX_DESCRIPTION_LIMIT, WATSONX_SUMMARY_LIMIT } from '../../reducers/CaseConstNTypes';
|
|
23
|
-
import { getDescriptionWOQues } from '../../reducers/CaseHelpers';
|
|
24
22
|
import { setCaseRecommendations } from '../../reducers/CaseReducer';
|
|
25
23
|
import { RecommendationsConstants } from '../../reducers/RecommendationsReducer';
|
|
26
24
|
import { showSidebarRecommendationsSections } from '../../reducers/RouteConstNTypes';
|
|
27
25
|
import { createOrUpdateSessionResources, getSessResFromRec, getSessResFromRecs, } from '../../reducers/SessionRestoreReducer';
|
|
28
26
|
import RouteUtils from '../../utils/routeUtils';
|
|
29
|
-
import { ShowRank } from './ShowRank';
|
|
30
27
|
const { SessionResourceSource, SessionResourceVisibility } = pcm.preCase.session;
|
|
31
28
|
export function AsideResults(props) {
|
|
32
29
|
/*
|
|
33
30
|
* Sidebar recommendation logic
|
|
34
31
|
*/
|
|
35
|
-
const {
|
|
36
|
-
const isRerankEnabled = getConfigField(pcmConfig.data, 'isRerankEnabled', PCM_CONFIG_FIELD_TYPE.FEATURE_FLAG);
|
|
37
|
-
const { isSelectedAccounntSecureSupport, product, version, caseResourceLinks, summary, issue, environment, periodicityOfIssue, timeFramesAndUrgency, caseType, isFetchingRecommendationsFromWatsonX, } = useCaseSelector((state) => ({
|
|
32
|
+
const { isSelectedAccounntSecureSupport, product, version, caseResourceLinks, summary, issue, caseType } = useCaseSelector((state) => ({
|
|
38
33
|
isSelectedAccounntSecureSupport: state.selectedAccountDetails.data.secureSupport,
|
|
39
34
|
product: state.caseDetails.product,
|
|
40
35
|
version: state.caseDetails.version,
|
|
41
36
|
caseResourceLinks: state.caseDetails.caseResourceLinks,
|
|
42
37
|
summary: state.caseDetails.summary,
|
|
43
38
|
issue: state.caseDetails.issue,
|
|
44
|
-
environment: state.caseDetails.environment,
|
|
45
|
-
periodicityOfIssue: state.caseDetails.periodicityOfIssue,
|
|
46
|
-
timeFramesAndUrgency: state.caseDetails.timeFramesAndUrgency,
|
|
47
39
|
caseType: state.caseDetails.caseType,
|
|
48
|
-
isFetchingRecommendationsFromWatsonX: state.isFetchingRecommendationsFromWatsonX,
|
|
49
40
|
}), isEqual);
|
|
50
41
|
const caseDispatch = useCaseDispatch();
|
|
51
42
|
// getting recommendation dispatch and state via context
|
|
@@ -59,7 +50,7 @@ export function AsideResults(props) {
|
|
|
59
50
|
product: product,
|
|
60
51
|
version: version,
|
|
61
52
|
summary: summary,
|
|
62
|
-
description:
|
|
53
|
+
description: issue, // on recommendation API we only pass issue and skip other KTQs
|
|
63
54
|
});
|
|
64
55
|
// abort controller ref
|
|
65
56
|
const controllerRef = useRef(new AbortController());
|
|
@@ -76,18 +67,18 @@ export function AsideResults(props) {
|
|
|
76
67
|
product: product,
|
|
77
68
|
version: version,
|
|
78
69
|
summary: summary,
|
|
79
|
-
description:
|
|
70
|
+
description: issue, // on recommendation API we only pass issue and skip other KTQs
|
|
80
71
|
};
|
|
81
72
|
const queryFilters = {
|
|
82
73
|
id: { values: recommendationState.insightsKcsIds, exclude: true },
|
|
83
74
|
};
|
|
84
|
-
const
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
75
|
+
const payloadData = {
|
|
76
|
+
product: product,
|
|
77
|
+
version: version,
|
|
78
|
+
summary: getTrimmedCharacters(payload.summary, WATSONX_SUMMARY_LIMIT),
|
|
79
|
+
description: getTrimmedCharacters(payload.description, WATSONX_DESCRIPTION_LIMIT),
|
|
80
|
+
};
|
|
81
|
+
const response = yield search.getWatsonXRecommendationsForCase2(convertObjToEncodedQueryParams(Object.assign({ rerank: true }, getSolrParams(PAGE_SIZE, 129, queryFilters))), payloadData, controllerRef.current.signal);
|
|
91
82
|
const sideDocs = replaceHighlightingData(response.response.docs, response.highlighting);
|
|
92
83
|
recommendationDispatch({
|
|
93
84
|
type: RecommendationsConstants.receiveSidebarRecommendation,
|
|
@@ -117,10 +108,7 @@ export function AsideResults(props) {
|
|
|
117
108
|
version,
|
|
118
109
|
summary,
|
|
119
110
|
issue,
|
|
120
|
-
environment,
|
|
121
111
|
activeSection,
|
|
122
|
-
timeFramesAndUrgency,
|
|
123
|
-
periodicityOfIssue,
|
|
124
112
|
recommendationState.insightsKcsIds,
|
|
125
113
|
], 2000);
|
|
126
114
|
const canShowSideRecommendations = () => showSidebarRecommendationsSections.includes(activeSection) &&
|
|
@@ -129,26 +117,27 @@ export function AsideResults(props) {
|
|
|
129
117
|
const onResourceClick = (doc, index) => (event) => {
|
|
130
118
|
if (isSelectedAccounntSecureSupport)
|
|
131
119
|
return;
|
|
132
|
-
|
|
120
|
+
const rank = index + 1 + PAGE_SIZE * ((recommendationState.currentPage || 1) - 1);
|
|
121
|
+
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS_ASIDE, [getSessResFromRec(doc, SessionResourceVisibility.VISITED, index + 1)], payload);
|
|
122
|
+
dtmTrackEventRecommendationListingItemClicked(window.location.href, activeSection, 'middle', doc.id, rank, doc.allTitle, doc.view_uri, 'Recommendation Aside', 'Live troubleshooting powered by OpenShift AI');
|
|
133
123
|
};
|
|
134
124
|
useEffect(() => {
|
|
135
125
|
if (isSelectedAccounntSecureSupport)
|
|
136
126
|
return;
|
|
137
|
-
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS_ASIDE, getSessResFromRecs(recommendationState.sideRecommendation, SessionResourceVisibility.PRESENTED), JSON.stringify(payload));
|
|
127
|
+
createOrUpdateSessionResources(sessionRestoreDispatch, activeSessionId, sessionResourceTracking, SessionResourceSource.RECOMMENDATIONS_ASIDE, getSessResFromRecs(recommendationState.sideRecommendation, SessionResourceVisibility.PRESENTED), typeof payload === 'string' ? payload : JSON.stringify(payload));
|
|
138
128
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
139
129
|
}, [recommendationState.sideRecommendation, activeSessionId, activeSection]);
|
|
140
130
|
const isIdea = caseType === PreviousCaseTypes.FEATURE_ENHANCEMENT;
|
|
141
131
|
if (!canShowSideRecommendations())
|
|
142
132
|
return React.createElement(React.Fragment, null);
|
|
143
|
-
return (React.createElement("div", { className:
|
|
144
|
-
React.createElement("h3", { className: "card-heading popular-solutions green-card-heading" }, isIdea ? React.createElement(Trans, null, "Search recommendations") : React.createElement(Trans, null, "
|
|
133
|
+
return (React.createElement("div", { className: `card card-white card-support top-recommendations ${props.className ? props.className : ''}` },
|
|
134
|
+
React.createElement("h3", { className: "card-heading popular-solutions green-card-heading" }, isIdea ? React.createElement(Trans, null, "Search recommendations") : React.createElement(Trans, null, "Articles recommended by OpenShift AI")),
|
|
145
135
|
React.createElement("div", { className: "card-body" },
|
|
146
136
|
React.createElement("ul", { className: "list-flat" }, recommendationState.sideRecommendation.map((doc, index) => {
|
|
147
137
|
var _a, _b;
|
|
148
138
|
return (React.createElement("li", { className: "result", key: doc.id },
|
|
149
139
|
React.createElement("header", { className: "result-header" },
|
|
150
140
|
React.createElement("a", { href: `${doc.view_uri}?${RouteUtils.getSEResourceQueryParams(activeSessionId, (_b = (_a = sessionResourceTracking[SessionResourceSource.RECOMMENDATIONS_ASIDE]) === null || _a === void 0 ? void 0 : _a.resourceOriginId) !== null && _b !== void 0 ? _b : '', SessionResourceSource.RECOMMENDATIONS_ASIDE)}`, className: "se-recommended ts-result-aside", "data-tracking-id": `se-recommended-sidebar-recommendations-${index}`, rel: "noopener noreferrer", target: "_blank", onClick: onResourceClick(doc, index), dangerouslySetInnerHTML: computeRecommendationTitle(doc) })),
|
|
151
|
-
isFetchingRecommendationsFromWatsonX && (React.createElement(ShowRank, { index: index, originalRank: doc.original_rank, routeProps: props.routeProps })),
|
|
152
141
|
React.createElement("p", { className: "result-body", dangerouslySetInnerHTML: computeRecommendationAbstract(doc, 150) })));
|
|
153
142
|
})))));
|
|
154
143
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { IClusterRecommendation } from '@cee-eng/hydrajs/@types/api/pcm/preCaseDiagnostics';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
interface IProps {
|
|
3
4
|
clusterRecommendations: IClusterRecommendation[];
|
|
4
5
|
}
|
|
5
|
-
export declare function ClusterRecommendationItems(props: IProps): JSX.Element;
|
|
6
|
+
export declare function ClusterRecommendationItems(props: IProps): React.JSX.Element;
|
|
6
7
|
export {};
|
|
7
8
|
//# sourceMappingURL=ClusterRecommendationItems.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ClusterRecommendationItems.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendationItems.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;
|
|
1
|
+
{"version":3,"file":"ClusterRecommendationItems.d.ts","sourceRoot":"","sources":["../../../../src/components/Recommendations/ClusterRecommendationItems.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,oDAAoD,CAAC;AAI5F,OAAO,KAAgC,MAAM,OAAO,CAAC;AAWrD,UAAU,MAAM;IACZ,sBAAsB,EAAE,sBAAsB,EAAE,CAAC;CACpD;AAED,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,MAAM,qBAiFvD"}
|