@rh-support/troubleshoot 2.6.39 → 2.6.45
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/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts +0 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/ActiveCustomerEscalation.js +5 -31
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ActiveCustomerEscalation/RequestEscalationModal.js +34 -33
- package/lib/esm/components/CaseEditView/CaseDetailsAside.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsAside.js +2 -3
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseDetailsTabs.js +0 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutions.js +18 -14
- package/lib/esm/components/CaseEditView/CaseSolutions/CaseSolutionsItem.js +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/ConfirmationModals/ReopenCaseModal.js +22 -16
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/ESSRemoteSession.js +2 -2
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/NewEssTermsModal.js +102 -53
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreement.js +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/RequestRemoteSession/RemoteSessionAgreementModal.js +21 -23
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CaseHostname.js +2 -4
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDetails/CasePhoneNumberConfirmAlert.js +4 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +1 -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 +9 -7
- package/lib/esm/components/CaseEditView/Tabs/CaseHistory/Timeline.css +8 -0
- package/lib/esm/components/CaseInformation/Fts.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/Fts.js +2 -6
- package/lib/esm/components/CaseInformation/Severity.js +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.d.ts.map +1 -1
- package/lib/esm/components/CaseInformation/SupportLevel.js +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/OpenshiftDropdownV4.js +13 -1
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/RHAssociatesSelector.js +7 -5
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/AddCustomEmailToAccountModal.js +18 -20
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/CaseContactSelector.js +9 -6
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.d.ts.map +1 -1
- package/lib/esm/components/CaseManagement/SendNotifications/NonOrgCaseNotifyeesSelector.js +15 -22
- package/lib/esm/components/Cve/CveModal.d.ts.map +1 -1
- package/lib/esm/components/Cve/CveModal.js +3 -2
- package/lib/esm/components/Cve/CveSidebar.js +1 -1
- package/lib/esm/components/OpenCase/SupportTypeSelectorPage.js +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/AllProductsSelector.js +9 -6
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.d.ts.map +1 -1
- package/lib/esm/components/ProductSelector/NewProductDropdownSelector.js +10 -1
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +3 -3
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/ClusterRecommendationsModal.js +7 -4
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/EARules/EARuleInfoAccordion.js +3 -1
- package/lib/esm/components/Recommendations/InsightsResults.js +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/InsightsRuleInfo.js +9 -2
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RecommendationFeedbackModal.js +4 -4
- package/lib/esm/components/Recommendations/Recommendations.js +2 -2
- package/lib/esm/components/Recommendations/RulesModal.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/RulesModal.js +7 -4
- package/lib/esm/components/Recommendations/WatsonxAiIcon.js +1 -1
- package/lib/esm/components/SessionRestore/RestoreLastSessionModal.d.ts.map +1 -1
- package/lib/esm/components/SessionRestore/RestoreLastSessionModal.js +5 -3
- package/lib/esm/components/SessionRestore/SessionRestore.js +1 -1
- package/lib/esm/components/Suggestions/Suggestions.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/Suggestions.js +17 -12
- package/lib/esm/components/Suggestions/TopContent.d.ts.map +1 -1
- package/lib/esm/components/Suggestions/TopContent.js +13 -13
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts +0 -7
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.d.ts.map +1 -1
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +13 -99
- package/lib/esm/components/shared/fileUpload/WidgetFileUploader.js +3 -3
- package/lib/esm/components/shared/fileUpload/css/fileSelector.css +1 -0
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts +1 -0
- package/lib/esm/components/shared/input/ContactSelectorInternal.d.ts.map +1 -1
- package/lib/esm/components/shared/input/ContactSelectorInternal.js +6 -1
- package/lib/esm/components/shared/useIsSectionValid.d.ts.map +1 -1
- package/lib/esm/components/shared/useIsSectionValid.js +7 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/GlobalTroubleshootEffects.js +8 -2
- package/lib/esm/components/wizardLayout/WizardAside.js +3 -3
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +6 -9
- package/lib/esm/components/wizardLayout/WizardMain.d.ts +1 -7
- package/lib/esm/components/wizardLayout/WizardMain.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardMain.js +18 -202
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts +2 -4
- package/lib/esm/components/wizardLayout/WizardNavigation.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +16 -13
- package/lib/esm/components/wizardLayout/index.d.ts +0 -1
- package/lib/esm/components/wizardLayout/index.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/index.js +0 -1
- package/lib/esm/context/RootTroubleshootProvider.d.ts.map +1 -1
- package/lib/esm/context/RootTroubleshootProvider.js +6 -8
- package/lib/esm/css/app.css +5 -4
- package/lib/esm/css/case.css +39 -6
- package/lib/esm/css/results.css +2 -2
- package/lib/esm/hooks/useWizard.d.ts +0 -6
- package/lib/esm/hooks/useWizard.d.ts.map +1 -1
- package/lib/esm/hooks/useWizard.js +1 -1
- package/lib/esm/reducers/CaseConstNTypes.d.ts +0 -2
- package/lib/esm/reducers/CaseConstNTypes.d.ts.map +1 -1
- package/lib/esm/reducers/CaseConstNTypes.js +0 -2
- package/lib/esm/scss/_main.scss +84 -22
- package/lib/esm/scss/_pf-overrides.scss +37 -10
- package/package.json +6 -7
- package/lib/esm/components/TroubleshootSection/AskRedHat.d.ts +0 -7
- package/lib/esm/components/TroubleshootSection/AskRedHat.d.ts.map +0 -1
- package/lib/esm/components/TroubleshootSection/AskRedHat.js +0 -151
- package/lib/esm/components/TroubleshootSection/CloseButton.d.ts +0 -9
- package/lib/esm/components/TroubleshootSection/CloseButton.d.ts.map +0 -1
- package/lib/esm/components/TroubleshootSection/CloseButton.js +0 -5
- package/lib/esm/components/TroubleshootSection/QuickResponse.d.ts +0 -15
- package/lib/esm/components/TroubleshootSection/QuickResponse.d.ts.map +0 -1
- package/lib/esm/components/TroubleshootSection/QuickResponse.js +0 -26
- package/lib/esm/components/TroubleshootSection/ResponseActionButton.d.ts +0 -18
- package/lib/esm/components/TroubleshootSection/ResponseActionButton.d.ts.map +0 -1
- package/lib/esm/components/TroubleshootSection/ResponseActionButton.js +0 -28
- package/lib/esm/components/TroubleshootSection/ResponseActions.d.ts +0 -20
- package/lib/esm/components/TroubleshootSection/ResponseActions.d.ts.map +0 -1
- package/lib/esm/components/TroubleshootSection/ResponseActions.js +0 -52
- package/lib/esm/components/TroubleshootSection/UserFeedback.d.ts +0 -12
- package/lib/esm/components/TroubleshootSection/UserFeedback.d.ts.map +0 -1
- package/lib/esm/components/TroubleshootSection/UserFeedback.js +0 -44
- package/lib/esm/components/TroubleshootSection/UserFeedbackComplete.d.ts +0 -10
- package/lib/esm/components/TroubleshootSection/UserFeedbackComplete.d.ts.map +0 -1
- package/lib/esm/components/TroubleshootSection/UserFeedbackComplete.js +0 -46
- package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.d.ts +0 -9
- package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.d.ts.map +0 -1
- package/lib/esm/components/TroubleshootSection/icons/CollapseIcon.js +0 -9
- package/lib/esm/components/TroubleshootSection/icons/StarIcon.d.ts +0 -9
- package/lib/esm/components/TroubleshootSection/icons/StarIcon.d.ts.map +0 -1
- package/lib/esm/components/TroubleshootSection/icons/StarIcon.js +0 -17
- package/lib/esm/constants/askRedHatMessages.d.ts +0 -35
- package/lib/esm/constants/askRedHatMessages.d.ts.map +0 -1
- package/lib/esm/constants/askRedHatMessages.js +0 -36
- package/lib/esm/context/AIResponseContext.d.ts +0 -10
- package/lib/esm/context/AIResponseContext.d.ts.map +0 -1
- package/lib/esm/context/AIResponseContext.js +0 -26
- package/lib/esm/css/AskRedHat.css +0 -359
- package/lib/esm/reducers/AIResponseConstNTypes.d.ts +0 -48
- package/lib/esm/reducers/AIResponseConstNTypes.d.ts.map +0 -1
- package/lib/esm/reducers/AIResponseConstNTypes.js +0 -16
- package/lib/esm/reducers/AIResponseReducer.d.ts +0 -9
- package/lib/esm/reducers/AIResponseReducer.d.ts.map +0 -1
- package/lib/esm/reducers/AIResponseReducer.js +0 -43
|
@@ -242,6 +242,4 @@ export type ICaseActionType = IAction<CaseReducerConstants, ICreateCasePayloadTy
|
|
|
242
242
|
export type CaseReducerDispatchType = Dispatch<ICaseActionType>;
|
|
243
243
|
export declare const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = "https://access.redhat.com/articles/5967811";
|
|
244
244
|
export declare const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = "https://access.redhat.com/articles/5967831";
|
|
245
|
-
export declare const excludedCaseTypesforARH: string[];
|
|
246
|
-
export declare const appSourceId_ARH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,CAAC,eAAe,CAAC,CAAC;AAEhE,eAAO,MAAM,qCAAqC,+CAA+C,CAAC;AAClG,eAAO,MAAM,yCAAyC,+CAA+C,CAAC"}
|
|
@@ -234,5 +234,3 @@ export const initialCaseState = {
|
|
|
234
234
|
};
|
|
235
235
|
export const ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967811';
|
|
236
236
|
export const NON_ORG_ADMIN_SEND_NOTIFCATION_KBASE_LINK = 'https://access.redhat.com/articles/5967831';
|
|
237
|
-
export const excludedCaseTypesforARH = ['Feature / Enhancement Request', 'Certification']; //Feature / Enhancement Request casetype is alias for Idea on PCM UI
|
|
238
|
-
export const appSourceId_ARH = 'PCM-001';
|
package/lib/esm/scss/_main.scss
CHANGED
|
@@ -81,6 +81,17 @@ div.support-grid-case-details.support-case {
|
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
|
+
.grid-aside-content-inner-div {
|
|
85
|
+
margin: 0px !important;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.card-heading {
|
|
89
|
+
margin-bottom: 0px;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
#case-details-top-recommendations-pagination-bottom-pagination {
|
|
93
|
+
justify-content: flex-start;
|
|
94
|
+
}
|
|
84
95
|
}
|
|
85
96
|
}
|
|
86
97
|
|
|
@@ -258,6 +269,7 @@ div.support-grid-case-details.support-case {
|
|
|
258
269
|
justify-content: space-between;
|
|
259
270
|
-ms-flex-wrap: wrap;
|
|
260
271
|
flex-wrap: wrap;
|
|
272
|
+
border-radius: 8px;
|
|
261
273
|
|
|
262
274
|
& > * {
|
|
263
275
|
margin: 9px;
|
|
@@ -303,6 +315,7 @@ div.support-grid-case-details.support-case {
|
|
|
303
315
|
}
|
|
304
316
|
|
|
305
317
|
.case-overview-secondary {
|
|
318
|
+
border-radius: 8px;
|
|
306
319
|
.form-group {
|
|
307
320
|
margin-bottom: 0;
|
|
308
321
|
}
|
|
@@ -647,24 +660,30 @@ mark {
|
|
|
647
660
|
margin-left: -2rem;
|
|
648
661
|
}
|
|
649
662
|
|
|
663
|
+
.list-icons li:last-child {
|
|
664
|
+
margin-bottom: 0;
|
|
665
|
+
}
|
|
666
|
+
|
|
650
667
|
// pinning feature - can't be overly specific here
|
|
651
668
|
.recommendation-header {
|
|
652
669
|
font-size: 14px;
|
|
653
670
|
font-weight: 600;
|
|
654
671
|
|
|
655
672
|
.pinned-resource {
|
|
656
|
-
color: var(--pf-
|
|
673
|
+
color: var(--pf-t--global--text--color--link--default);
|
|
657
674
|
}
|
|
658
675
|
|
|
659
|
-
button:hover[title='Link'] {
|
|
676
|
+
button:hover[title='Link'] svg {
|
|
660
677
|
color: #6ca100;
|
|
661
678
|
}
|
|
662
679
|
|
|
663
680
|
button[title='Unlink'] {
|
|
664
|
-
|
|
681
|
+
svg {
|
|
682
|
+
color: #6ca100;
|
|
683
|
+
}
|
|
665
684
|
|
|
666
|
-
&:hover {
|
|
667
|
-
color: var(
|
|
685
|
+
&:hover svg {
|
|
686
|
+
color: var(pf-t--global--icon--color--status--danger--default);
|
|
668
687
|
}
|
|
669
688
|
}
|
|
670
689
|
}
|
|
@@ -765,10 +784,10 @@ p.pref-case-popover-text {
|
|
|
765
784
|
}
|
|
766
785
|
|
|
767
786
|
.support-types-card {
|
|
768
|
-
border:
|
|
787
|
+
border: var(--pf-t--global--border--width--box--default) solid var(--pf-t--global--border--color--default);
|
|
769
788
|
|
|
770
789
|
&.pf-m-selected {
|
|
771
|
-
border:
|
|
790
|
+
border: var(--pf-t--global--border--width--box--clicked) solid var(--pf-t--global--border--color--clicked);
|
|
772
791
|
}
|
|
773
792
|
}
|
|
774
793
|
|
|
@@ -968,6 +987,7 @@ svg.pf-v6-u-ml-xs.icon-size {
|
|
|
968
987
|
button {
|
|
969
988
|
padding: 0;
|
|
970
989
|
display: flex;
|
|
990
|
+
min-width: 7rem;
|
|
971
991
|
}
|
|
972
992
|
.eval-icons span {
|
|
973
993
|
color: var(--pf-v5-global--primary-color--200);
|
|
@@ -981,6 +1001,23 @@ svg.pf-v6-u-ml-xs.icon-size {
|
|
|
981
1001
|
padding: 0.2rem;
|
|
982
1002
|
}
|
|
983
1003
|
|
|
1004
|
+
#case-details-pinned-recommendations {
|
|
1005
|
+
margin-bottom: 0;
|
|
1006
|
+
}
|
|
1007
|
+
|
|
1008
|
+
.card-body-wrapper {
|
|
1009
|
+
display: flex;
|
|
1010
|
+
padding: 16px;
|
|
1011
|
+
flex-direction: column;
|
|
1012
|
+
align-items: flex-start;
|
|
1013
|
+
gap: 16px;
|
|
1014
|
+
border-radius: 0px 0px var(--global-border-radius-medium, 16px) var(--global-border-radius-medium, 16px);
|
|
1015
|
+
border-right: 1px solid var(--global-border-color-default, #c7c7c7);
|
|
1016
|
+
border-bottom: 1px solid var(--global-border-color-default, #c7c7c7);
|
|
1017
|
+
border-left: 1px solid var(--global-border-color-default, #c7c7c7);
|
|
1018
|
+
background: #fff;
|
|
1019
|
+
}
|
|
1020
|
+
|
|
984
1021
|
.card-body-wrapper {
|
|
985
1022
|
display: flex;
|
|
986
1023
|
padding: 16px;
|
|
@@ -1097,6 +1134,7 @@ svg.pf-v6-u-ml-xs.icon-size {
|
|
|
1097
1134
|
|
|
1098
1135
|
.review-form {
|
|
1099
1136
|
background-color: #e0e0e0 !important;
|
|
1137
|
+
border-radius: 8px;
|
|
1100
1138
|
}
|
|
1101
1139
|
|
|
1102
1140
|
.ai-label-text {
|
|
@@ -1110,35 +1148,25 @@ svg.pf-v6-u-ml-xs.icon-size {
|
|
|
1110
1148
|
}
|
|
1111
1149
|
|
|
1112
1150
|
#DeepPurpleColorAILabel {
|
|
1113
|
-
|
|
1151
|
+
background-color: #6600cc !important; //deep purple override because not available in PF yet
|
|
1114
1152
|
position: relative;
|
|
1153
|
+
display: inline-block;
|
|
1115
1154
|
z-index: 1;
|
|
1116
|
-
margin: 1px;
|
|
1117
|
-
line-height: normal;
|
|
1118
|
-
font-size: 14px;
|
|
1119
|
-
height: 29px;
|
|
1120
|
-
padding: 0 12px;
|
|
1121
|
-
align-items: center;
|
|
1122
|
-
flex-shrink: 0;
|
|
1123
|
-
border-radius: var(--Radius---pf-v5-global-BorderRadius--lg, 18px);
|
|
1124
|
-
border: 1px solid var(--Purple---pf-v5-global--palette--purple-100, #cbc1ff);
|
|
1125
|
-
background: var(--Purple---pf-v5-global--palette--purple-50, #f2f0fc);
|
|
1126
1155
|
}
|
|
1127
|
-
|
|
1128
1156
|
#DeepPurpleColorAILabel .pf-v6-c-label__content {
|
|
1129
1157
|
color: #ffffff !important;
|
|
1130
1158
|
}
|
|
1131
1159
|
|
|
1132
1160
|
#DeepPurpleColorAILabel .pf-v5-svg {
|
|
1133
|
-
margin: 0 10px 0 5px
|
|
1161
|
+
margin: 0 10px 0 5px;
|
|
1134
1162
|
}
|
|
1135
1163
|
|
|
1136
1164
|
#DeepPurpleColorAILabel .pf-v6-c-spinner__path {
|
|
1137
|
-
stroke: black
|
|
1165
|
+
stroke: black;
|
|
1138
1166
|
}
|
|
1139
1167
|
|
|
1140
1168
|
#DeepPurpleColorAILabel svg.pf-v6-c-spinner {
|
|
1141
|
-
margin: 0 10px 0 5px
|
|
1169
|
+
margin: 0 10px 0 5px;
|
|
1142
1170
|
}
|
|
1143
1171
|
|
|
1144
1172
|
.label-container-icon {
|
|
@@ -1148,6 +1176,7 @@ svg.pf-v6-u-ml-xs.icon-size {
|
|
|
1148
1176
|
padding: 1px;
|
|
1149
1177
|
border-radius: 20px;
|
|
1150
1178
|
height: 32px;
|
|
1179
|
+
margin-bottom: 18px;
|
|
1151
1180
|
}
|
|
1152
1181
|
|
|
1153
1182
|
.single-select-toggle-text {
|
|
@@ -1184,6 +1213,15 @@ svg.pf-v6-u-ml-xs.icon-size {
|
|
|
1184
1213
|
transform-origin: top center;
|
|
1185
1214
|
}
|
|
1186
1215
|
|
|
1216
|
+
#DeepPurpleColorAILabel {
|
|
1217
|
+
background-color: #5e40be !important;
|
|
1218
|
+
position: relative;
|
|
1219
|
+
display: inline-block;
|
|
1220
|
+
z-index: 1;
|
|
1221
|
+
line-height: normal;
|
|
1222
|
+
font-size: 14px;
|
|
1223
|
+
}
|
|
1224
|
+
|
|
1187
1225
|
@keyframes rotate {
|
|
1188
1226
|
from {
|
|
1189
1227
|
transform: rotate(0deg);
|
|
@@ -1254,3 +1292,27 @@ svg.pf-v6-u-ml-xs.icon-size {
|
|
|
1254
1292
|
.cursor-pointer {
|
|
1255
1293
|
cursor: pointer;
|
|
1256
1294
|
}
|
|
1295
|
+
|
|
1296
|
+
#file-uploader-title {
|
|
1297
|
+
margin-bottom: 0;
|
|
1298
|
+
}
|
|
1299
|
+
|
|
1300
|
+
.file-upload-body {
|
|
1301
|
+
padding-top: 0;
|
|
1302
|
+
}
|
|
1303
|
+
|
|
1304
|
+
.article-recommendations-card h3 {
|
|
1305
|
+
margin-bottom: 0;
|
|
1306
|
+
}
|
|
1307
|
+
|
|
1308
|
+
.postcomment-submit:disabled {
|
|
1309
|
+
color: var(--pf-v6-c-button--disabled--Color);
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.remote-session-button:disabled {
|
|
1313
|
+
color: var(--pf-v6-c-button--disabled--Color);
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
.send-notifications-add:disabled {
|
|
1317
|
+
color: var(--pf-v6-c-button--disabled--Color) !important;
|
|
1318
|
+
}
|
|
@@ -107,6 +107,7 @@
|
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
.pf-v6-c-alert {
|
|
110
|
+
margin-top: 24px;
|
|
110
111
|
.pf-v6-c-alert__title {
|
|
111
112
|
font-weight: 600 !important;
|
|
112
113
|
font-size: 15px;
|
|
@@ -193,6 +194,7 @@
|
|
|
193
194
|
|
|
194
195
|
.pf-v6-c-accordion {
|
|
195
196
|
padding: 0;
|
|
197
|
+
margin: 0;
|
|
196
198
|
.pf-m-expanded ul {
|
|
197
199
|
list-style-type: none; //Because, FF
|
|
198
200
|
}
|
|
@@ -294,10 +296,6 @@
|
|
|
294
296
|
margin-top: 2px;
|
|
295
297
|
}
|
|
296
298
|
|
|
297
|
-
.file-diag {
|
|
298
|
-
border: 1px solid #ededed;
|
|
299
|
-
}
|
|
300
|
-
|
|
301
299
|
.file-diag > .card-heading {
|
|
302
300
|
display: flex;
|
|
303
301
|
-ms-flex-align: center;
|
|
@@ -329,6 +327,14 @@
|
|
|
329
327
|
color: #06c;
|
|
330
328
|
}
|
|
331
329
|
|
|
330
|
+
.pf-v6-c-button.pf-m-primary {
|
|
331
|
+
color: var(--pf-v6-c-button--Color);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
.pf-m-aria-disabled {
|
|
335
|
+
color: var(--pf-v6-c-button--disabled--Color) !important;
|
|
336
|
+
}
|
|
337
|
+
|
|
332
338
|
// Override disable color on darker backgrounds
|
|
333
339
|
.case-overview-secondary,
|
|
334
340
|
#review {
|
|
@@ -399,6 +405,10 @@ div#cep-details-modal.pf-v6-c-modal-box__body {
|
|
|
399
405
|
div#request-mgmt-escalation-modal.request-escalation-modal {
|
|
400
406
|
div.pf-v6-c-modal-box__body {
|
|
401
407
|
form.pf-v6-c-form.request-escalation-form {
|
|
408
|
+
.pf-m-textarea textarea {
|
|
409
|
+
resize: none !important;
|
|
410
|
+
}
|
|
411
|
+
|
|
402
412
|
div.pf-v6-l-grid.pf-m-all-12-col-on-md.pf-m-gutter {
|
|
403
413
|
div.pf-v6-l-grid__item.pf-m-6-col {
|
|
404
414
|
div.pf-v6-c-form__group {
|
|
@@ -739,6 +749,7 @@ a.case-resource-recommendation-link {
|
|
|
739
749
|
}
|
|
740
750
|
|
|
741
751
|
.description-textarea {
|
|
752
|
+
resize: none !important;
|
|
742
753
|
&.pf-v6-c-form-control {
|
|
743
754
|
&:disabled,
|
|
744
755
|
&.kt1-disabled {
|
|
@@ -795,12 +806,28 @@ div.case-details-tabs pre {
|
|
|
795
806
|
margin-bottom: 1rem;
|
|
796
807
|
}
|
|
797
808
|
|
|
798
|
-
#external-ssousername-filter:has(.pf-v6-c-truncate) {
|
|
799
|
-
@media (min-width: 1300px) {
|
|
800
|
-
min-width: calc(100% + 269px) !important;
|
|
801
|
-
}
|
|
802
|
-
}
|
|
803
|
-
|
|
804
809
|
.case-creation-severity-select {
|
|
805
810
|
max-width: min-content !important;
|
|
806
811
|
}
|
|
812
|
+
|
|
813
|
+
.pf-v6-c-wizard__main-body {
|
|
814
|
+
padding: 32px;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
.pf-v6-c-alert__description {
|
|
818
|
+
color: #000000;
|
|
819
|
+
}
|
|
820
|
+
|
|
821
|
+
.pf-v6-c-card__header.pf-v6-u-display-flex > .pf-v6-c-card__header-toggle {
|
|
822
|
+
align-self: center;
|
|
823
|
+
}
|
|
824
|
+
|
|
825
|
+
.pf-v6-c-button.secondary-button-pill {
|
|
826
|
+
border-radius: var(--pf-t--global--border--radius--400);
|
|
827
|
+
padding-left: 1.5rem;
|
|
828
|
+
padding-right: 1.5rem;
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
.pf-v6-c-alert {
|
|
832
|
+
margin-top: 0;
|
|
833
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.45",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@cee-eng/hydrajs": "4.18.57",
|
|
53
53
|
"@cee-eng/ui-toolkit": "1.1.8",
|
|
54
|
-
"@ifd-ui/ask-redhat-core": "^0.0.30",
|
|
55
54
|
"@patternfly/patternfly": "6.2.1",
|
|
56
55
|
"@patternfly/react-core": "6.2.1",
|
|
57
56
|
"@patternfly/react-table": "6.2.1",
|
|
@@ -59,11 +58,11 @@
|
|
|
59
58
|
"@progress/kendo-licensing": "1.3.5",
|
|
60
59
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
61
60
|
"@redux-devtools/extension": "^3.3.0",
|
|
62
|
-
"@rh-support/components": "2.5.
|
|
63
|
-
"@rh-support/react-context": "2.5.
|
|
61
|
+
"@rh-support/components": "2.5.45",
|
|
62
|
+
"@rh-support/react-context": "2.5.45",
|
|
64
63
|
"@rh-support/types": "2.0.5",
|
|
65
|
-
"@rh-support/user-permissions": "2.5.
|
|
66
|
-
"@rh-support/utils": "2.5.
|
|
64
|
+
"@rh-support/user-permissions": "2.5.20",
|
|
65
|
+
"@rh-support/utils": "2.5.19",
|
|
67
66
|
"@types/react-redux": "^7.1.33",
|
|
68
67
|
"@types/redux": "^3.6.0",
|
|
69
68
|
"date-fns": "3.6.0",
|
|
@@ -135,5 +134,5 @@
|
|
|
135
134
|
"defaults and supports es6-module",
|
|
136
135
|
"maintained node versions"
|
|
137
136
|
],
|
|
138
|
-
"gitHead": "
|
|
137
|
+
"gitHead": "7c863ffbb7b897925e55fa610b76584e78c6accc"
|
|
139
138
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AskRedHat.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/AskRedHat.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA2B,MAAM,OAAO,CAAC;AAYhD,UAAU,MAAM;IACZ,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC;AAED,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,MAAM,CA0PtC,CAAC"}
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import { Env } from '@cee-eng/hydrajs';
|
|
11
|
-
import { sendRHDirectMessageFeedback } from '@ifd-ui/ask-redhat-core';
|
|
12
|
-
import { Button, Card, CardBody, CardHeader, Modal, ModalVariant, Spinner } from '@patternfly/react-core';
|
|
13
|
-
import React, { useRef, useState } from 'react';
|
|
14
|
-
import { MODAL_MESSAGES, QUICK_RESPONSES, TOOLTIP_MESSAGES } from '../../constants/askRedHatMessages';
|
|
15
|
-
import { useAIResponseState } from '../../context/AIResponseContext';
|
|
16
|
-
import { useParseRuleMarkdown } from '../../hooks/useParseRuleMarkdown';
|
|
17
|
-
import { appSourceId_ARH } from '../../reducers/CaseConstNTypes';
|
|
18
|
-
import { CollapseIcon } from './icons/CollapseIcon';
|
|
19
|
-
import { StarIcon } from './icons/StarIcon';
|
|
20
|
-
import ResponseActions from './ResponseActions';
|
|
21
|
-
import UserFeedback from './UserFeedback';
|
|
22
|
-
import UserFeedbackComplete from './UserFeedbackComplete';
|
|
23
|
-
export const AskRedHat = ({ onChatWithAIClick }) => {
|
|
24
|
-
var _a, _b, _c;
|
|
25
|
-
const [isExpanded, setIsExpanded] = useState(false);
|
|
26
|
-
const [showFeedbackCard, setShowFeedbackCard] = useState(false);
|
|
27
|
-
const [showFeedbackComplete, setShowFeedbackComplete] = useState(false);
|
|
28
|
-
const [feedbackType, setFeedbackType] = useState('');
|
|
29
|
-
const [submittedFeedbackTypes, setSubmittedFeedbackTypes] = useState([]);
|
|
30
|
-
const aiResponseState = useAIResponseState();
|
|
31
|
-
const contentRef = useRef(null);
|
|
32
|
-
const onToggle = () => {
|
|
33
|
-
if (isExpanded && contentRef.current) {
|
|
34
|
-
contentRef.current.scrollTop = 0;
|
|
35
|
-
}
|
|
36
|
-
setIsExpanded((prev) => !prev);
|
|
37
|
-
};
|
|
38
|
-
const handleChatWithAIClick = () => onChatWithAIClick === null || onChatWithAIClick === void 0 ? void 0 : onChatWithAIClick();
|
|
39
|
-
const aiResponse = aiResponseState.aiResponse;
|
|
40
|
-
const messageId = aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.messageId;
|
|
41
|
-
const conversationId = aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.conversationId;
|
|
42
|
-
const answer = (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.answer) || (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.content) || 'No AI response available yet.';
|
|
43
|
-
const sources = (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.sources) || (aiResponse === null || aiResponse === void 0 ? void 0 : aiResponse.references) || [];
|
|
44
|
-
const sourcesCount = sources.length || 0;
|
|
45
|
-
const isLoading = aiResponseState.isLoading || !aiResponse;
|
|
46
|
-
const { parseMarkdown } = useParseRuleMarkdown();
|
|
47
|
-
const config = {
|
|
48
|
-
appSourceId: appSourceId_ARH,
|
|
49
|
-
packageVersion: (_a = window === null || window === void 0 ? void 0 : window.supportVersionInfo) === null || _a === void 0 ? void 0 : _a.packageVersion,
|
|
50
|
-
authToken: (_c = (_b = window === null || window === void 0 ? void 0 : window.sessionjs) === null || _b === void 0 ? void 0 : _b.getEncodedToken()) !== null && _c !== void 0 ? _c : '',
|
|
51
|
-
appEnv: Env.getEnvName(),
|
|
52
|
-
};
|
|
53
|
-
const handleFeedbackSubmit = (selectedResponse, additionalFeedback) => __awaiter(void 0, void 0, void 0, function* () {
|
|
54
|
-
setShowFeedbackCard(false);
|
|
55
|
-
try {
|
|
56
|
-
const payload = {
|
|
57
|
-
rating: (feedbackType === 'positive' ? 'positive' : 'negative'),
|
|
58
|
-
freeform: additionalFeedback || undefined,
|
|
59
|
-
predefined_response: selectedResponse,
|
|
60
|
-
};
|
|
61
|
-
yield sendRHDirectMessageFeedback(conversationId, messageId, payload, config);
|
|
62
|
-
setShowFeedbackComplete(true);
|
|
63
|
-
setSubmittedFeedbackTypes(prev => [...prev, feedbackType]);
|
|
64
|
-
}
|
|
65
|
-
catch (error) {
|
|
66
|
-
setShowFeedbackCard(false);
|
|
67
|
-
}
|
|
68
|
-
});
|
|
69
|
-
const responseActions = {
|
|
70
|
-
positive: Object.assign({ onClick: () => {
|
|
71
|
-
setFeedbackType('positive');
|
|
72
|
-
setShowFeedbackCard(true);
|
|
73
|
-
} }, TOOLTIP_MESSAGES.positive),
|
|
74
|
-
negative: Object.assign({ onClick: () => {
|
|
75
|
-
setFeedbackType('negative');
|
|
76
|
-
setShowFeedbackCard(true);
|
|
77
|
-
} }, TOOLTIP_MESSAGES.negative),
|
|
78
|
-
copy: Object.assign({ onClick: () => {
|
|
79
|
-
navigator.clipboard.writeText(answer);
|
|
80
|
-
} }, TOOLTIP_MESSAGES.copy),
|
|
81
|
-
};
|
|
82
|
-
if (isLoading) {
|
|
83
|
-
return (React.createElement("div", { className: "ask-redhat" },
|
|
84
|
-
React.createElement("p", { className: "ask-redhat-title" },
|
|
85
|
-
React.createElement(StarIcon, { width: 20, height: 20 }),
|
|
86
|
-
"Resolve your issue now with AI insights"),
|
|
87
|
-
React.createElement("div", { className: "ask-redhat-content-wrapper" },
|
|
88
|
-
React.createElement("div", { className: "ask-redhat-content", style: { textAlign: 'center', padding: '2rem' } },
|
|
89
|
-
React.createElement(Spinner, { size: "lg" }),
|
|
90
|
-
React.createElement("p", { style: { marginTop: '1rem' } }, "Getting AI insights..."))),
|
|
91
|
-
!aiResponseState.isLoading && (React.createElement("div", { className: "ask-redhat-toggle-button" },
|
|
92
|
-
React.createElement(Button, { variant: "link", onClick: handleChatWithAIClick, className: "ask-redhat-chat-button" }, "Chat with AI to get started")))));
|
|
93
|
-
}
|
|
94
|
-
if (aiResponseState.error) {
|
|
95
|
-
return (React.createElement("div", { className: "ask-redhat" },
|
|
96
|
-
React.createElement("p", { className: "ask-redhat-title" },
|
|
97
|
-
React.createElement(StarIcon, { width: 20, height: 20 }),
|
|
98
|
-
"Resolve your issue now with AI insights"),
|
|
99
|
-
React.createElement("div", { className: "ask-redhat-content-wrapper" },
|
|
100
|
-
React.createElement("div", { className: "ask-redhat-content", style: { textAlign: 'center', padding: '2rem' } },
|
|
101
|
-
React.createElement("p", { style: { color: '#d73502', marginBottom: '1rem' } }, "Unable to get AI insights. Please try again later."),
|
|
102
|
-
React.createElement(Button, { variant: "link", onClick: handleChatWithAIClick, className: "ask-redhat-chat-button", icon: React.createElement(StarIcon, null) }, "Try again with AI Chat")))));
|
|
103
|
-
}
|
|
104
|
-
return (React.createElement("div", { className: "ask-redhat" },
|
|
105
|
-
React.createElement("p", { className: "ask-redhat-title" },
|
|
106
|
-
React.createElement(StarIcon, { width: 20, height: 20 }),
|
|
107
|
-
"Resolve your issue now with AI insights"),
|
|
108
|
-
React.createElement("div", { className: "ask-redhat-content-wrapper" },
|
|
109
|
-
React.createElement("div", { ref: contentRef, className: `ask-redhat-content ${isExpanded ? 'ask-redhat-content--expanded' : ''}` },
|
|
110
|
-
React.createElement("div", { className: `ask-redhat-content-scrollable ${isExpanded ? 'ask-redhat-content--expanded-scrollable' : ''}` },
|
|
111
|
-
React.createElement("div", null,
|
|
112
|
-
React.createElement("div", { dangerouslySetInnerHTML: { __html: parseMarkdown(answer) } }),
|
|
113
|
-
sourcesCount > 0 && (React.createElement(React.Fragment, null,
|
|
114
|
-
React.createElement("p", null, "2 sources"),
|
|
115
|
-
React.createElement("div", { className: "ask-redhat-cards" }, sources.map((source, index) => (React.createElement(Card, { className: "ask-redhat-card", key: index },
|
|
116
|
-
React.createElement(CardHeader, null,
|
|
117
|
-
React.createElement("h3", { className: "ask-redhat-card-title" },
|
|
118
|
-
React.createElement("a", { href: source.link, target: "_blank", rel: "noopener noreferrer" }, source.title))),
|
|
119
|
-
React.createElement(CardBody, null,
|
|
120
|
-
React.createElement("p", null, source.snippet)))))))),
|
|
121
|
-
React.createElement("div", { className: "response-actions-wrapper" },
|
|
122
|
-
React.createElement(ResponseActions, { actions: responseActions, submittedFeedbackTypes: submittedFeedbackTypes })))),
|
|
123
|
-
React.createElement("div", { className: "ask-redhat-footer-wrapper" },
|
|
124
|
-
React.createElement("div", { className: "ask-redhat-footer" },
|
|
125
|
-
React.createElement("p", { className: "ask-redhat-footer-text" }, "Want to continue the conversation? Dive deeper with our AI assistant"),
|
|
126
|
-
React.createElement(Button, { onClick: handleChatWithAIClick, className: 'ask-redhat-chat-button', icon: React.createElement(StarIcon, null) }, "Chat with AI"))),
|
|
127
|
-
!isExpanded && React.createElement("div", { className: "ask-redhat-fade-overlay" }))),
|
|
128
|
-
React.createElement("div", { className: "ask-redhat-toggle-button-wrapper" },
|
|
129
|
-
React.createElement("div", { className: "ask-redhat-border-line" }),
|
|
130
|
-
React.createElement(Button, { onClick: onToggle, className: isExpanded ? 'ask-redhat-toggle-button-collapsed' : 'ask-redhat-toggle-button' },
|
|
131
|
-
isExpanded ? React.createElement(CollapseIcon, null) : React.createElement(StarIcon, { width: 20, height: 20 }),
|
|
132
|
-
isExpanded ? '' : 'Read more')),
|
|
133
|
-
React.createElement(Modal, { variant: ModalVariant.small, isOpen: showFeedbackCard, onClose: () => {
|
|
134
|
-
setShowFeedbackCard(false);
|
|
135
|
-
setFeedbackType('');
|
|
136
|
-
} },
|
|
137
|
-
React.createElement(UserFeedback, { title: feedbackType === 'positive'
|
|
138
|
-
? MODAL_MESSAGES.feedback.positive
|
|
139
|
-
: MODAL_MESSAGES.feedback.negative, hasTextArea: true, quickResponses: feedbackType === 'positive' ? QUICK_RESPONSES.positive : QUICK_RESPONSES.negative, onSubmit: handleFeedbackSubmit, onClose: () => {
|
|
140
|
-
setShowFeedbackCard(false);
|
|
141
|
-
setFeedbackType('');
|
|
142
|
-
} })),
|
|
143
|
-
React.createElement(Modal, { variant: ModalVariant.small, isOpen: showFeedbackComplete, onClose: () => {
|
|
144
|
-
setShowFeedbackComplete(false);
|
|
145
|
-
setFeedbackType('');
|
|
146
|
-
} },
|
|
147
|
-
React.createElement(UserFeedbackComplete, { title: MODAL_MESSAGES.complete.title, body: MODAL_MESSAGES.complete.body, onClose: () => {
|
|
148
|
-
setShowFeedbackComplete(false);
|
|
149
|
-
setFeedbackType('');
|
|
150
|
-
} }))));
|
|
151
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from '@patternfly/react-core';
|
|
2
|
-
import { type FunctionComponent } from 'react';
|
|
3
|
-
export interface CloseButtonProps extends ButtonProps {
|
|
4
|
-
onClose?: () => void;
|
|
5
|
-
ariaLabel?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const CloseButton: FunctionComponent<CloseButtonProps>;
|
|
8
|
-
export default CloseButton;
|
|
9
|
-
//# sourceMappingURL=CloseButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CloseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/CloseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE7D,OAAc,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEtD,MAAM,WAAW,gBAAiB,SAAQ,WAAW;IACjD,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,QAAA,MAAM,WAAW,EAAE,iBAAiB,CAAC,gBAAgB,CAEpD,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Button } from '@patternfly/react-core';
|
|
2
|
-
import CloseIcon from '@patternfly/react-icons/dist/esm/icons/close-icon';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
const CloseButton = ({ onClose, ariaLabel }) => (React.createElement(Button, { variant: "plain", onClick: onClose, icon: React.createElement(CloseIcon, null), "aria-label": ariaLabel }));
|
|
5
|
-
export default CloseButton;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { LabelGroupProps, LabelProps } from '@patternfly/react-core';
|
|
2
|
-
import { type FunctionComponent } from 'react';
|
|
3
|
-
export interface QuickResponse extends Omit<LabelProps, 'children'> {
|
|
4
|
-
content: string;
|
|
5
|
-
id: string;
|
|
6
|
-
}
|
|
7
|
-
export interface QuickResponseProps {
|
|
8
|
-
quickResponses: QuickResponse[];
|
|
9
|
-
quickResponseContainerProps?: Omit<LabelGroupProps, 'ref'>;
|
|
10
|
-
onSelect?: (id: string) => void;
|
|
11
|
-
isCompact?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare const QuickResponse: FunctionComponent<QuickResponseProps>;
|
|
14
|
-
export default QuickResponse;
|
|
15
|
-
//# sourceMappingURL=QuickResponse.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"QuickResponse.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/QuickResponse.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAqB,eAAe,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAExF,OAAc,EAAE,KAAK,iBAAiB,EAAY,MAAM,OAAO,CAAC;AAEhE,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,UAAU,EAAE,UAAU,CAAC;IAC/D,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IAC/B,cAAc,EAAE,aAAa,EAAE,CAAC;IAChC,2BAA2B,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,CAAC;IAC3D,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,eAAO,MAAM,aAAa,EAAE,iBAAiB,CAAC,kBAAkB,CAqC/D,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
|
-
var t = {};
|
|
3
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
4
|
-
t[p] = s[p];
|
|
5
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
6
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
7
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
8
|
-
t[p[i]] = s[p[i]];
|
|
9
|
-
}
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import { Label, LabelGroup } from '@patternfly/react-core';
|
|
13
|
-
import CheckIcon from '@patternfly/react-icons/dist/esm/icons/check-icon';
|
|
14
|
-
import React, { useState } from 'react';
|
|
15
|
-
export const QuickResponse = ({ quickResponses, quickResponseContainerProps = { numLabels: 5 }, onSelect, isCompact, }) => {
|
|
16
|
-
const [selectedQuickResponse, setSelectedQuickResponse] = useState();
|
|
17
|
-
const handleQuickResponseClick = (id) => {
|
|
18
|
-
setSelectedQuickResponse(id);
|
|
19
|
-
onSelect && onSelect(id);
|
|
20
|
-
};
|
|
21
|
-
return (React.createElement(LabelGroup, Object.assign({ className: `pf-chatbot__message-quick-response ${(quickResponseContainerProps === null || quickResponseContainerProps === void 0 ? void 0 : quickResponseContainerProps.className) ? quickResponseContainerProps === null || quickResponseContainerProps === void 0 ? void 0 : quickResponseContainerProps.className : ''}` }, quickResponseContainerProps), quickResponses.map((_a) => {
|
|
22
|
-
var { id, content, className } = _a, props = __rest(_a, ["id", "content", "className"]);
|
|
23
|
-
return (React.createElement(Label, Object.assign({ variant: id === selectedQuickResponse ? undefined : 'outline', icon: id === selectedQuickResponse ? React.createElement(CheckIcon, null) : undefined, color: "blue", key: id, onClick: () => handleQuickResponseClick(id), className: `${id === selectedQuickResponse ? 'pf-chatbot__message-quick-response--selected' : ''} ${className ? className : ''}`, isCompact: isCompact }, props), content));
|
|
24
|
-
})));
|
|
25
|
-
};
|
|
26
|
-
export default QuickResponse;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { ButtonProps } from '@patternfly/react-core';
|
|
2
|
-
import React, { type FunctionComponent, type MouseEvent } from 'react';
|
|
3
|
-
export interface ResponseActionButtonProps extends ButtonProps {
|
|
4
|
-
ariaLabel?: string;
|
|
5
|
-
clickedAriaLabel?: string;
|
|
6
|
-
icon: React.ReactNode;
|
|
7
|
-
onClick?: ((event: MouseEvent | React.MouseEvent<Element, MouseEvent> | KeyboardEvent) => void) | undefined;
|
|
8
|
-
tooltipContent?: string;
|
|
9
|
-
clickedTooltipContent?: string;
|
|
10
|
-
/** Props to control if the button should be disabled */
|
|
11
|
-
isDisabled?: boolean;
|
|
12
|
-
isClicked?: boolean;
|
|
13
|
-
innerRef?: React.Ref<HTMLButtonElement>;
|
|
14
|
-
}
|
|
15
|
-
export declare const ResponseActionButtonBase: FunctionComponent<ResponseActionButtonProps>;
|
|
16
|
-
declare const ResponseActionButton: React.ForwardRefExoticComponent<ResponseActionButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
17
|
-
export default ResponseActionButton;
|
|
18
|
-
//# sourceMappingURL=ResponseActionButton.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ResponseActionButton.d.ts","sourceRoot":"","sources":["../../../../src/components/TroubleshootSection/ResponseActionButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,WAAW,EAAiB,MAAM,wBAAwB,CAAC;AAC5E,OAAO,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,KAAK,UAAU,EAAwB,MAAM,OAAO,CAAC;AAE7F,MAAM,WAAW,yBAA0B,SAAQ,WAAW;IAC1D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;IACtB,OAAO,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,CAAC,UAAU,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,aAAa,KAAK,IAAI,CAAC,GAAG,SAAS,CAAC;IAC5G,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,wDAAwD;IACxD,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;CAC3C;AAED,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,yBAAyB,CAmDjF,CAAC;AAEF,QAAA,MAAM,oBAAoB,qGAExB,CAAC;AAEH,eAAe,oBAAoB,CAAC"}
|