@rh-support/troubleshoot 2.6.350 → 2.6.353
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/Tabs/CaseDiscussion/AsaCommentFeedbackModal.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.js +2 -5
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.js +3 -10
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.js +8 -2
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts +1 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.js +6 -0
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.d.ts.map +1 -1
- package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment.js +5 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.d.ts.map +1 -1
- package/lib/esm/components/ConfirmationModals/NoAttachmentSelectedModal.js +3 -0
- package/lib/esm/components/Recommendations/AsideResults.d.ts.map +1 -1
- package/lib/esm/components/Recommendations/AsideResults.js +5 -4
- package/lib/esm/components/Recommendations/InsightsResults.js +3 -3
- package/lib/esm/components/Recommendations/Recommendations.js +2 -2
- package/lib/esm/components/TroubleshootSection/TroubleshootSection.js +2 -2
- package/lib/esm/components/shared/Constants.d.ts +4 -0
- package/lib/esm/components/shared/Constants.d.ts.map +1 -1
- package/lib/esm/components/shared/Constants.js +4 -0
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.d.ts.map +1 -1
- package/lib/esm/components/shared/fileUpload/reducer/AttachmentHelper.js +4 -1
- package/lib/esm/components/wizardLayout/WizardLayout.d.ts.map +1 -1
- package/lib/esm/components/wizardLayout/WizardLayout.js +4 -1
- package/lib/esm/components/wizardLayout/WizardNavigation.js +1 -1
- package/lib/esm/css/case.css +21 -14
- package/lib/esm/reducers/RecommendationsReducer.d.ts.map +1 -1
- package/lib/esm/reducers/RecommendationsReducer.js +5 -5
- package/package.json +6 -6
package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AsaCommentFeedbackModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAIvB,CAAC;AAEX,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC;CACpG;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"AsaCommentFeedbackModal.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/AsaCommentFeedbackModal.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAGnD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;EAIvB,CAAC;AAEX,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,OAAO,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,GAAG,OAAO,GAAG,IAAI,CAAC;CACpG;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,qBA4JpD"}
|
|
@@ -62,7 +62,7 @@ export function AsaCommentFeedbackModal(props) {
|
|
|
62
62
|
React.createElement("p", { id: "asa-comment-feedback-modal-description", className: "asa-comment-feedback-modal-description" },
|
|
63
63
|
React.createElement(Trans, null, "Let us know if you found a bug or if you have a suggestion to improve the web experience.")),
|
|
64
64
|
React.createElement(Form, { onSubmit: handleSubmit },
|
|
65
|
-
React.createElement(FormGroup, { label: t('How satisfied are you with generated
|
|
65
|
+
React.createElement(FormGroup, { label: t('How satisfied are you with generated Support AI assistant comment?'), isRequired: true, fieldId: "asa-comment-feedback-rating" },
|
|
66
66
|
React.createElement("div", { className: "asa-feedback-rating-options", role: "radiogroup", "aria-labelledby": "asa-comment-feedback-rating", id: "asa-comment-feedback-rating" }, ASA_FEEDBACK_RATINGS.map((rating) => {
|
|
67
67
|
const isSelected = selectedFeedback === rating.value;
|
|
68
68
|
return (React.createElement("button", { key: rating.value, type: "button", className: `asa-feedback-rating-option${isSelected ? ' is-selected' : ''}`, "aria-pressed": isSelected, "aria-label": t(rating.label), "data-tracking-id": `case-asa-comment-feedback-${rating.label.toLowerCase()}`, disabled: props.isSubmitting, onClick: () => {
|
|
@@ -79,10 +79,7 @@ export function AsaCommentFeedbackModal(props) {
|
|
|
79
79
|
React.createElement(FormGroup, { label: t('How can we improve?'), fieldId: "asa-comment-feedback-reason" },
|
|
80
80
|
React.createElement(TextArea, { id: "asa-comment-feedback-reason", name: "feedbackReason", value: feedbackReason, onChange: (_event, value) => setFeedbackReason(value), placeholder: t('Describe your suggestion in details'), "aria-label": t('How can we improve?'), isDisabled: props.isSubmitting, resizeOrientation: "vertical" })),
|
|
81
81
|
React.createElement("p", { className: "asa-feedback-privacy" },
|
|
82
|
-
React.createElement(Trans, null, "Do not share any personal or other sensitive information in your feedback. Feedback may be used to improve Red Hat's products or services.
|
|
83
|
-
' ',
|
|
84
|
-
React.createElement("a", { href: "https://www.redhat.com/en/about/privacy-policy", target: "_blank", rel: "noreferrer" },
|
|
85
|
-
React.createElement(Trans, null, "Red Hat Privacy Statement."))))),
|
|
82
|
+
React.createElement(Trans, null, "Do not share any personal or other sensitive information in your feedback. Feedback may be used to improve Red Hat's products or services.")))),
|
|
86
83
|
React.createElement(ModalFooter, null,
|
|
87
84
|
React.createElement(Button, { key: "confirm", variant: "primary", onClick: handleSubmit, isDisabled: isSubmitDisabled, isLoading: props.isSubmitting, spinnerAriaValueText: props.isSubmitting ? t('Sending feedback') : undefined, "data-tracking-id": "case-asa-comment-feedback-submit", "aria-label": t('Send Feedback') },
|
|
88
85
|
React.createElement(Trans, null, "Send Feedback")),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseAttachment.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAexE,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,UAAU,MAAM;IACZ,UAAU,EAAE,WAAW,CAAC;IACxB,kBAAkB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,iBAAiB,EAAE,WAAW,KAAK,IAAI,CAAC;IACzE,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,kBAAkB,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChH;AAED,QAAA,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"CaseAttachment.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseAttachment.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAexE,OAAO,KAAuC,MAAM,OAAO,CAAC;AAS5D,UAAU,MAAM;IACZ,UAAU,EAAE,WAAW,CAAC;IACxB,kBAAkB,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC3C,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,gBAAgB,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,iBAAiB,EAAE,WAAW,KAAK,IAAI,CAAC;IACzE,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,kBAAkB,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChH;AAED,QAAA,MAAM,cAAc,4EAsPlB,CAAC;AAEH,eAAe,cAAc,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseComments.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AA+BvE,OAAO,KAAkD,MAAM,OAAO,CAAC;AASvE,eAAO,MAAM,2BAA2B,yBAAyB,CAAC;AAElE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClF,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAClF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,kBAAkB,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChH;AAED,QAAA,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"CaseComments.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseComments.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,yCAAyC,CAAC;AA+BvE,OAAO,KAAkD,MAAM,OAAO,CAAC;AASvE,eAAO,MAAM,2BAA2B,yBAAyB,CAAC;AAElE,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAClF,aAAa,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,EAAE,QAAQ,EAAE,OAAO,KAAK,IAAI,CAAC;IAClF,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9C,kBAAkB,EAAE,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE;QAAE,UAAU,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;CAChH;AAED,QAAA,MAAM,YAAY,4EAochB,CAAC;AAEH,eAAe,YAAY,CAAC"}
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { publicApi } from '@cee-eng/hydrajs';
|
|
11
11
|
import { encodeAngularBrackets, EventTypes, htmlEntitiesEncode, linkifyBZIDs, linkifyWithCaseIDs, parseCommentMarkdown, processRME, } from '@cee-eng/ui-toolkit';
|
|
12
|
-
import { Alert,
|
|
12
|
+
import { Alert, Button, ButtonVariant, Icon, Tooltip, TooltipPosition } from '@patternfly/react-core';
|
|
13
13
|
import FrownIcon from '@patternfly/react-icons/dist/js/icons/frown-icon';
|
|
14
14
|
import MehIcon from '@patternfly/react-icons/dist/js/icons/meh-icon';
|
|
15
15
|
import OutlinedFrownIcon from '@patternfly/react-icons/dist/js/icons/outlined-frown-icon';
|
|
@@ -260,21 +260,14 @@ const CaseComments = React.forwardRef((props, ref) => {
|
|
|
260
260
|
React.createElement("header", null,
|
|
261
261
|
React.createElement("h4", null,
|
|
262
262
|
computeCommentAuthorIcon(props.comment),
|
|
263
|
-
|
|
264
|
-
" ",
|
|
265
|
-
props.comment.createdBy) : React.createElement(React.Fragment, null,
|
|
266
|
-
" ",
|
|
267
|
-
props.comment.lastModifiedById),
|
|
263
|
+
props.comment.createdBy,
|
|
268
264
|
props.comment.createdByType === 'Partner' && (React.createElement("span", null,
|
|
269
265
|
' ',
|
|
270
266
|
"(",
|
|
271
267
|
React.createElement(Trans, null, "Partner"),
|
|
272
268
|
")"))),
|
|
273
269
|
React.createElement("time", null, formatDateTime(props.comment.lastModifiedDate))),
|
|
274
|
-
isAsaComment && (React.createElement(Alert, { className: `asa-comment-alert ${isExportingPDF ? 'hide-in-pdf' : ''}`, isInline: true, variant: "custom", title: t('
|
|
275
|
-
React.createElement(Trans, null, "Send Feedback")) },
|
|
276
|
-
React.createElement("p", null,
|
|
277
|
-
React.createElement(Trans, null, "This comment is based on information from your support case. It may not be up to date or completely accurate. Please review it and share your feedback to help us improve this feature.")))),
|
|
270
|
+
isAsaComment && (React.createElement(Alert, { className: `asa-comment-alert ${isExportingPDF ? 'hide-in-pdf' : ''}`, isInline: true, variant: "custom", title: t('Always review AI-Generated content prior to use') })),
|
|
278
271
|
React.createElement("div", { className: "comment-body", onClick: onCommentAreaClick, ref: markdownRef }, computeCommentText(props.comment)),
|
|
279
272
|
React.createElement("footer", null,
|
|
280
273
|
React.createElement("span", { className: "comment-note" }, computeCommentFooter(props.comment)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CaseDiscussion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAA0B,MAAM,yCAAyC,CAAC;AAkB1G,OAAO,KAAoE,MAAM,OAAO,CAAC;AAyCzF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC/C,eAAe,EAAE,OAAO,CAAC;CAC5B;AAOD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"CaseDiscussion.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/CaseDiscussion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,YAAY,EAA0B,MAAM,yCAAyC,CAAC;AAkB1G,OAAO,KAAoE,MAAM,OAAO,CAAC;AAyCzF,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,YAAY,EAAE,CAAC;IAC7B,SAAS,EAAE,SAAS,EAAE,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAC;IAC/C,eAAe,EAAE,OAAO,CAAC;CAC5B;AAOD,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,KAAK,EAAE,MAAM,qBAsqBnD"}
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { caseAttachments } from '@cee-eng/hydrajs';
|
|
11
|
-
import { MenuToggle, Select, SelectList, SelectOption } from '@patternfly/react-core';
|
|
11
|
+
import { Alert, MenuToggle, Select, SelectList, SelectOption } from '@patternfly/react-core';
|
|
12
12
|
import { AlertMessage, AlertType, ErrorBoundary, LoadingIndicator, ToastNotification } from '@rh-support/components';
|
|
13
13
|
import { useGlobalStateContext } from '@rh-support/react-context';
|
|
14
14
|
import { AbilityContext, CaseDetailsFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
@@ -32,7 +32,7 @@ import { AttachmentContextProvider } from '../../../shared/fileUpload/reducer/At
|
|
|
32
32
|
import { PDFContext } from '../../PDFContainer';
|
|
33
33
|
import CaseAttachment from './CaseAttachment';
|
|
34
34
|
import CaseChat from './CaseChat';
|
|
35
|
-
import CaseComments from './CaseComments';
|
|
35
|
+
import CaseComments, { AUTOMATED_SUPPORT_ASSISTANT } from './CaseComments';
|
|
36
36
|
import CaseExternalTrackerUpdate from './CaseExternalTrackerUpdate';
|
|
37
37
|
import { CommentSearch } from './CommentSearch';
|
|
38
38
|
import { PostComment } from './PostComment';
|
|
@@ -97,6 +97,7 @@ export default function CaseDiscussion(props) {
|
|
|
97
97
|
});
|
|
98
98
|
};
|
|
99
99
|
const shouldRenderRVComponent = !isExportingPDF && allDiscussions.length > VC_MINIMUM_COMMENT;
|
|
100
|
+
const hasAsaComment = (props.caseComments || []).some((comment) => (comment === null || comment === void 0 ? void 0 : comment.createdBy) === AUTOMATED_SUPPORT_ASSISTANT);
|
|
100
101
|
// filter comments on the basis of filterBy and search api
|
|
101
102
|
const computeFilteredComments = computeFilterComment();
|
|
102
103
|
const comuteSearchedComments = searchResult.length === 0
|
|
@@ -377,6 +378,11 @@ export default function CaseDiscussion(props) {
|
|
|
377
378
|
};
|
|
378
379
|
const onSortToggle = (toggleRef) => (React.createElement(MenuToggle, { ref: toggleRef, onClick: onSortToggleClick, isExpanded: isSortOpen, isFullWidth: true }, sort.name));
|
|
379
380
|
return (React.createElement(React.Fragment, null,
|
|
381
|
+
hasAsaComment && (React.createElement(Alert, { className: `asa-discussion-alert ${isExportingPDF ? 'hide-in-pdf' : ''}`, isInline: true, variant: "info", title: t('Important'), "data-tracking-id": "case-discussion-asa-notice" },
|
|
382
|
+
React.createElement(Trans, null,
|
|
383
|
+
"This feature uses AI technology to analyze interactions and provide you with support. Interactions may be used to improve Red Hat products or services. For more information about Red Hat's privacy practices, please refer to the",
|
|
384
|
+
' ',
|
|
385
|
+
React.createElement("a", { href: "https://www.redhat.com/en/about/privacy-policy", target: "_blank", rel: "noopener noreferrer" }, "Red Hat Privacy Statement")))),
|
|
380
386
|
React.createElement(ErrorBoundary, { errorMsgInfo: { message: t('There was an error loading post comment section') } },
|
|
381
387
|
React.createElement(AttachmentContextProvider, null,
|
|
382
388
|
React.createElement(PostComment, { caseNumber: caseNumber, allDiscussions: allDiscussions, onCommentAdded: onCommentAdded, onAttachmentAdded: onAttachmentAdded, commentText: replyCommentText, onCommentClear: resetReplyComment, commentCreator: replyCommentCreator, defaultIsPublic: replyingToPrivateComment === null ? replyingToPrivateComment : !replyingToPrivateComment }))),
|
package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export declare function useMarkdownFileUploader({ caseNumber, secureSupport, onA
|
|
|
9
9
|
isMarkdownFileUploadInProgress: boolean;
|
|
10
10
|
isDeletingFile: boolean;
|
|
11
11
|
isUploadingFile: boolean;
|
|
12
|
+
onFileSelect: (selectedImage: any) => void;
|
|
12
13
|
onFileAttach: (files: any, isPublic: any) => Promise<void>;
|
|
13
14
|
onFileDelete: (attachment: Partial<IAttachment>) => Promise<void>;
|
|
14
15
|
cancelFileUpload: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMarkdownFileUploader.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;
|
|
1
|
+
{"version":3,"file":"useMarkdownFileUploader.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AAcxE,UAAU,MAAM;IACZ,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,eAAe,QAAkB,CAAC;AAE/C,wBAAgB,uBAAuB,CAAC,EAAE,UAAU,EAAE,aAAa,EAAE,iBAAiB,EAAE,EAAE,MAAM;;;;;;+BAyDpD,OAAO,CAAC,WAAW,CAAC;;EA2C/D"}
|
package/lib/esm/components/CaseEditView/Tabs/CaseDiscussion/PostComment/useMarkdownFileUploader.js
CHANGED
|
@@ -9,11 +9,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { caseAttachments } from '@cee-eng/hydrajs';
|
|
11
11
|
import { ToastNotification, useConfirmation, useFetch } from '@rh-support/components';
|
|
12
|
+
import { pendoTrackEvent } from '@rh-support/utils';
|
|
12
13
|
import React, { useRef, useState } from 'react';
|
|
13
14
|
import { Trans, useTranslation } from 'react-i18next';
|
|
14
15
|
import { useCaseDiscussionTabDispatchContext, useCaseDiscussionTabStateContext, } from '../../../../../context/CaseDiscussionTabContext';
|
|
15
16
|
import { useS3Upload } from '../../../../../hooks/useS3Upload';
|
|
16
17
|
import { updateAttacmentsAfterRemoval } from '../../../../../reducers/CaseDiscussionTabReducer';
|
|
18
|
+
import { markdownInlineFileSelectEvent } from '../../../../shared/Constants';
|
|
17
19
|
export const FILE_SIZE_LIMIT = 2 * 1024 * 1000;
|
|
18
20
|
export function useMarkdownFileUploader({ caseNumber, secureSupport, onAttachmentAdded }) {
|
|
19
21
|
const [isMarkdownFileUploadInProgress, setIsMarkdownFileUploadinProgress] = useState(false);
|
|
@@ -61,6 +63,9 @@ export function useMarkdownFileUploader({ caseNumber, secureSupport, onAttachmen
|
|
|
61
63
|
isMarkdownFileUploadCanceled.current = true;
|
|
62
64
|
setIsMarkdownFileUploadinProgress(false);
|
|
63
65
|
};
|
|
66
|
+
const onFileSelect = (selectedImage) => {
|
|
67
|
+
pendoTrackEvent(markdownInlineFileSelectEvent);
|
|
68
|
+
};
|
|
64
69
|
const onFileDelete = (attachment) => __awaiter(this, void 0, void 0, function* () {
|
|
65
70
|
try {
|
|
66
71
|
yield confirm({
|
|
@@ -89,6 +94,7 @@ export function useMarkdownFileUploader({ caseNumber, secureSupport, onAttachmen
|
|
|
89
94
|
isMarkdownFileUploadInProgress,
|
|
90
95
|
isDeletingFile,
|
|
91
96
|
isUploadingFile,
|
|
97
|
+
onFileSelect,
|
|
92
98
|
onFileAttach,
|
|
93
99
|
onFileDelete,
|
|
94
100
|
cancelFileUpload,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PostComment.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/PostComment.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PostComment.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseDiscussion/PostComment.tsx"],"names":[],"mappings":"AA8BA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAQ7F,OAAO,EAAkB,WAAW,EAAE,MAAM,+CAA+C,CAAC;AAsB5F,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC/B,kBAAkB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC5C,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,EAAE,WAAW,EAAE,CAAC;CACjC;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,qBA+iBxC"}
|
|
@@ -13,6 +13,7 @@ import PlusIcon from '@patternfly/react-icons/dist/js/icons/plus-icon';
|
|
|
13
13
|
import { EditorMode, LoadingIndicator, MarkdownEditor, ToastNotification, useFetch, usePrevious, } from '@rh-support/components';
|
|
14
14
|
import { FeatureAnnouncementKeys, GlobalMetadataStateContext, NewFeaturePopoverAnnouncement, useCanEditCase, useUserPreferences, } from '@rh-support/react-context';
|
|
15
15
|
import { ability, CaseDiscussionFields, CaseListFields, resourceActions, resources, } from '@rh-support/user-permissions';
|
|
16
|
+
import { pendoTrackEvent } from '@rh-support/utils';
|
|
16
17
|
import isEmpty from 'lodash/isEmpty';
|
|
17
18
|
import isEqual from 'lodash/isEqual';
|
|
18
19
|
import uniqBy from 'lodash/uniqBy';
|
|
@@ -25,6 +26,7 @@ import { useCaseUpdateErrorMessage } from '../../../../hooks/useCaseUpdateErrorM
|
|
|
25
26
|
import { DiscussionType } from '../../../../reducers/CaseDiscussionTabReducer';
|
|
26
27
|
import { addingNotifiedUsers, checkForCaseStatusToggleOnAttachOrComment, setNotifiedUser, } from '../../../../reducers/CaseReducer';
|
|
27
28
|
import { CaseDetailsCacheUtils } from '../../../../utils/caseDetailsCacheUtils';
|
|
29
|
+
import { markdownFilePasteEvent } from '../../../shared/Constants';
|
|
28
30
|
import { AttachmentDispatchContext, AttachmentStateContext, hasSomeSelectedFiles, hasSomeUnUploadedAttachments, isUploadingAttachment, resetAttachment, } from '../../../shared/fileUpload';
|
|
29
31
|
import FileSelectorButton from '../../../shared/fileUpload/fileSelectors/FileSelectorButton';
|
|
30
32
|
import FileUpload from '../../../shared/fileUpload/FileUpload';
|
|
@@ -80,7 +82,7 @@ export function PostComment(props) {
|
|
|
80
82
|
const [cssCommentAgreed, setCssCommentAgreed] = useState(false);
|
|
81
83
|
const [isProcessing, setIsProcessing] = useState(isPostingComment || isUploadingAttachments);
|
|
82
84
|
const { globalMetadataState: { loggedInUser, loggedInUserRights, loggedInUsersAccount }, } = useContext(GlobalMetadataStateContext);
|
|
83
|
-
const { onFileAttach, onFileDelete, isUploadingFile, isMarkdownFileUploadInProgress, cancelFileUpload } = useMarkdownFileUploader({
|
|
85
|
+
const { onFileSelect, onFileAttach, onFileDelete, isUploadingFile, isMarkdownFileUploadInProgress, cancelFileUpload, } = useMarkdownFileUploader({
|
|
84
86
|
caseNumber,
|
|
85
87
|
secureSupport: loggedInUsersAccount.data.secureSupport,
|
|
86
88
|
onAttachmentAdded: props.onAttachmentAdded,
|
|
@@ -299,6 +301,7 @@ export function PostComment(props) {
|
|
|
299
301
|
.map((elem) => elem.item);
|
|
300
302
|
};
|
|
301
303
|
const onClipboardPaste = (files) => {
|
|
304
|
+
pendoTrackEvent(markdownFilePasteEvent);
|
|
302
305
|
onFileAttach(files, isPublicRef.current);
|
|
303
306
|
};
|
|
304
307
|
const onCancel = () => {
|
|
@@ -334,6 +337,7 @@ export function PostComment(props) {
|
|
|
334
337
|
: 'Add a comment or attach a file privately', fileSelectorProps: {
|
|
335
338
|
showFileSelectorInToolbar: !loggedInUsersAccount.data.secureSupport,
|
|
336
339
|
filesList: getAllAttachments(),
|
|
340
|
+
onFileSelect: onFileSelect,
|
|
337
341
|
onFileDelete: onFileDelete,
|
|
338
342
|
isSupportedFile: (extension) => true,
|
|
339
343
|
attachFileBtn: markdownToolbarFileSelectorBtn,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NoAttachmentSelectedModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/NoAttachmentSelectedModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NoAttachmentSelectedModal.d.ts","sourceRoot":"","sources":["../../../../src/components/ConfirmationModals/NoAttachmentSelectedModal.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAiBvE,UAAU,MAAM;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,SAAS,EAAE,MAAM,IAAI,CAAC;CACzB;AAID,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,qBAiJtD"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { Button, ButtonVariant, Modal, ModalBody, ModalFooter, ModalHeader, ModalVariant, } from '@patternfly/react-core';
|
|
2
2
|
import { GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
3
3
|
import { ability, resourceActions, resources } from '@rh-support/user-permissions';
|
|
4
|
+
import { pendoTrackEvent } from '@rh-support/utils';
|
|
4
5
|
import React, { useContext, useEffect, useRef, useState } from 'react';
|
|
5
6
|
import { Trans, useTranslation } from 'react-i18next';
|
|
6
7
|
import { RulesDispatchContext, RulesStateContext } from '../../context/RulesContext';
|
|
7
8
|
import { SessionRestoreStateContext } from '../../context/SessionRestoreContext';
|
|
8
9
|
import { RulesReducerConstants } from '../../reducers/RulesReducer';
|
|
9
10
|
import FileEARule from '../ImproveCase/FileEARule';
|
|
11
|
+
import { recsViewedFromNoAttachmentModalEvent } from '../shared/Constants';
|
|
10
12
|
import { AttachmentStateContext, isAnyFileAttached, isAnyFileDiagnosticsAttachment, isUploadingAttachment, } from '../shared/fileUpload';
|
|
11
13
|
import FileSelectorButton from '../shared/fileUpload/fileSelectors/FileSelectorButton';
|
|
12
14
|
import FileUpload from '../shared/fileUpload/FileUpload';
|
|
@@ -29,6 +31,7 @@ export function NoAttachmentSelectedModal(props) {
|
|
|
29
31
|
type: RulesReducerConstants.triggerEARulesModalVisibiltyChange,
|
|
30
32
|
payload: { isRuleModalVisible: true },
|
|
31
33
|
});
|
|
34
|
+
pendoTrackEvent(recsViewedFromNoAttachmentModalEvent);
|
|
32
35
|
props.onClose();
|
|
33
36
|
}
|
|
34
37
|
isFirstMounRef.current = false;
|
|
@@ -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":"AAkBA,OAAO,KAAwC,MAAM,OAAO,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAUvD,OAAO,EAAoB,eAAe,EAAsC,MAAM,iCAAiC,CAAC;AAWxH,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBA8MzC"}
|
|
@@ -10,7 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
import { pcm, search } from '@cee-eng/hydrajs';
|
|
11
11
|
import { Card, CardBody, CardHeader } from '@patternfly/react-core';
|
|
12
12
|
import { useDebounce } from '@rh-support/components';
|
|
13
|
-
import { computeRecommendationAbstract, computeRecommendationTitle, convertObjToEncodedQueryParams, dtmTrackEventContentListingItemClicked, getRecommendationTitle, getSolrParams, getTrimmedCharacters, PreviousCaseTypes, replaceHighlightingData,
|
|
13
|
+
import { computeRecommendationAbstract, computeRecommendationTitle, convertObjToEncodedQueryParams, dtmTrackEventContentListingItemClicked, getRecommendationTitle, getSolrParams, getTrimmedCharacters, PreviousCaseTypes, replaceHighlightingData, } from '@rh-support/utils';
|
|
14
14
|
import isEmpty from 'lodash/isEmpty';
|
|
15
15
|
import isEqual from 'lodash/isEqual';
|
|
16
16
|
import React, { useContext, useEffect, useRef } from 'react';
|
|
@@ -83,12 +83,13 @@ export function AsideResults(props) {
|
|
|
83
83
|
description: getTrimmedCharacters(payload.description, WATSONX_DESCRIPTION_LIMIT),
|
|
84
84
|
};
|
|
85
85
|
const response = yield search.getWatsonXRecommendationsForCase2(convertObjToEncodedQueryParams(Object.assign({ rerank: true }, getSolrParams(PAGE_SIZE, 129, queryFilters))), payloadData, controllerRef.current.signal);
|
|
86
|
-
const sideDocs =
|
|
86
|
+
const sideDocs = replaceHighlightingData(response.response.docs, response.highlighting);
|
|
87
87
|
recommendationDispatch({
|
|
88
88
|
type: RecommendationsConstants.receiveSidebarRecommendation,
|
|
89
89
|
payload: { sideRecommendation: sideDocs, sideRecommendationError: false },
|
|
90
90
|
});
|
|
91
|
-
!isEmpty(caseResourceLinks) &&
|
|
91
|
+
!isEmpty(caseResourceLinks) &&
|
|
92
|
+
setCaseRecommendations(caseDispatch, response.response.docs, caseResourceLinks);
|
|
92
93
|
}
|
|
93
94
|
catch (error) {
|
|
94
95
|
// AbortError is thrown even if we cancel our fetch request so to handle and not to consider this as an erro
|
|
@@ -144,7 +145,7 @@ export function AsideResults(props) {
|
|
|
144
145
|
React.createElement(CardBody, null,
|
|
145
146
|
React.createElement("ul", { className: "list-flat" }, recommendationState.sideRecommendation.map((doc, index) => {
|
|
146
147
|
var _a, _b;
|
|
147
|
-
return (React.createElement("li", { className: `result${index !== 0 && 'pf-v6-u-mt-sm'}`, key: doc.
|
|
148
|
+
return (React.createElement("li", { className: `result${index !== 0 && 'pf-v6-u-mt-sm'}`, key: doc.id },
|
|
148
149
|
React.createElement("header", { className: "result-header" },
|
|
149
150
|
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) })),
|
|
150
151
|
React.createElement("p", { className: "result-body", dangerouslySetInnerHTML: computeRecommendationAbstract(doc, 150) })));
|
|
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
21
21
|
import { pcm, search } from '@cee-eng/hydrajs';
|
|
22
22
|
import { Alert } from '@patternfly/react-core';
|
|
23
23
|
import { usePrevious } from '@rh-support/components';
|
|
24
|
-
import { getSolrParams, PreviousCaseTypes
|
|
24
|
+
import { getSolrParams, PreviousCaseTypes } from '@rh-support/utils';
|
|
25
25
|
import difference from 'lodash/difference';
|
|
26
26
|
import filter from 'lodash/filter';
|
|
27
27
|
import flatMap from 'lodash/flatMap';
|
|
@@ -110,7 +110,7 @@ function InsightsResults(props) {
|
|
|
110
110
|
summary: summary,
|
|
111
111
|
description: getDescriptionWOQues(issue, environment, periodicityOfIssue, timeFramesAndUrgency),
|
|
112
112
|
}, getSolrParams(3, 129, { id: kcsIds }));
|
|
113
|
-
const docs =
|
|
113
|
+
const docs = (_c = (_b = response === null || response === void 0 ? void 0 : response.response) === null || _b === void 0 ? void 0 : _b.docs) !== null && _c !== void 0 ? _c : [];
|
|
114
114
|
if (!recommendedResultsMap[attachmentId]) {
|
|
115
115
|
setRecommendedResultsMap((oldMap) => (Object.assign(Object.assign({}, oldMap), { [attachmentId]: docs.map((item) => (Object.assign({ attachmentId }, item))) })));
|
|
116
116
|
}
|
|
@@ -138,7 +138,7 @@ function InsightsResults(props) {
|
|
|
138
138
|
try {
|
|
139
139
|
const _c = getSolrParams(200, 256, { id: kcsIds }, false, true), { start, rows, q } = _c, expression = __rest(_c, ["start", "rows", "q"]);
|
|
140
140
|
const res = yield search.solrSearchV2({ start, rows, q }, 'kcs', expression);
|
|
141
|
-
const docs =
|
|
141
|
+
const docs = (_b = (_a = res === null || res === void 0 ? void 0 : res.response) === null || _a === void 0 ? void 0 : _a.docs) !== null && _b !== void 0 ? _b : [];
|
|
142
142
|
const attachmentId = localFile.attachmentId;
|
|
143
143
|
if (!insightResultsMap[attachmentId]) {
|
|
144
144
|
setInsightResultsMap((oldMap) => (Object.assign(Object.assign({}, oldMap), { [attachmentId]: docs.map((item) => (Object.assign({ attachmentId }, item))) })));
|
|
@@ -47,7 +47,7 @@ export default function Recommendations(props) {
|
|
|
47
47
|
const { recommendationState } = useContext(RecommendationStateContext);
|
|
48
48
|
const prevMainRecommendations = usePrevious((_a = recommendationState === null || recommendationState === void 0 ? void 0 : recommendationState.visibleDocs) !== null && _a !== void 0 ? _a : []);
|
|
49
49
|
const recommendationDispatch = useContext(RecommendationDispatchContext);
|
|
50
|
-
const DEFAULTPAGESIZE =
|
|
50
|
+
const DEFAULTPAGESIZE = 10;
|
|
51
51
|
const MAXROW = 24;
|
|
52
52
|
const recPageSize = pageSize !== null && pageSize !== void 0 ? pageSize : DEFAULTPAGESIZE;
|
|
53
53
|
const abortControllerRef = useRef(undefined);
|
|
@@ -209,7 +209,7 @@ export default function Recommendations(props) {
|
|
|
209
209
|
' '))),
|
|
210
210
|
recommendationState.isLoadingRecommendations ? (React.createElement(RecommendationsLoader, null)) : (React.createElement("ul", { className: "list-flat" }, map(recommendationState.visibleDocs, (doc, i) => {
|
|
211
211
|
var _a, _b;
|
|
212
|
-
return (React.createElement("li", { className: "result", key: doc.
|
|
212
|
+
return (React.createElement("li", { className: "result", key: `${doc.id}-${i}` },
|
|
213
213
|
React.createElement("header", { className: "result-header" },
|
|
214
214
|
React.createElement("a", { href: `${doc.view_uri}?${RouteUtils.getSEResourceQueryParams(activeSessionId, (_b = (_a = sessionResourceTracking[SessionResourceSource.RECOMMENDATIONS]) === null || _a === void 0 ? void 0 : _a.resourceOriginId) !== null && _b !== void 0 ? _b : '', SessionResourceSource.RECOMMENDATIONS)}`, className: "se-recommended ts-result", "data-tracking-id": `se-recommended-main-recommendations-${i}`, rel: "noopener noreferrer", target: "_blank", onClick: onResourceClick(doc, i), dangerouslySetInnerHTML: computeRecommendationTitle(doc) }),
|
|
215
215
|
React.createElement("div", { className: "header-meta pf-v6-u-mt-xs" },
|
|
@@ -143,7 +143,7 @@ function TroubleshootSection(props) {
|
|
|
143
143
|
updateSession(sessionRestoreDispatch, activeSessionId, sessionDetails, newSession);
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
|
-
// Enable
|
|
146
|
+
// Enable "See more resources" button when first chunk is received
|
|
147
147
|
if (eventData.eventName === ARHEventName.FirstMessageReceived) {
|
|
148
148
|
aiResponseDispatch(setHasChunkReceived(true));
|
|
149
149
|
}
|
|
@@ -355,7 +355,7 @@ function TroubleshootSection(props) {
|
|
|
355
355
|
React.createElement("button", { onClick: props.onSeeMoreResources, className: "btn btn-app btn-primary main-nav-button", type: "button", disabled: isFunctionalCookieAccepted() &&
|
|
356
356
|
props.aiServicesAvailable &&
|
|
357
357
|
!aiResponseState.hasChunkReceived &&
|
|
358
|
-
!aiResponseState.error }, t('Continue')))) : isCaseCreate ? (React.createElement("span", null,
|
|
358
|
+
!aiResponseState.error }, isFunctionalCookieAccepted() ? t('See more resources') : t('Continue')))) : isCaseCreate ? (React.createElement("span", null,
|
|
359
359
|
React.createElement(Trans, { i18nKey: "<span>Return to</span> <button>case creation</button>", components: {
|
|
360
360
|
span: React.createElement("span", { className: "return-to-case-text" }),
|
|
361
361
|
button: (React.createElement(Button, { className: "return-to-case-btn", variant: "link", component: "a", onClick: () => props.setIsAIChatMode(false) })),
|
|
@@ -47,6 +47,10 @@ export declare enum CaseValuesToWatch {
|
|
|
47
47
|
hostname = "Hostname",
|
|
48
48
|
openshiftClusterID = "OpenShift Cluster ID"
|
|
49
49
|
}
|
|
50
|
+
export declare const preferredSSModalOpenPendoEvent = "PCM-Next > Preferred-secured-support-modal-open";
|
|
51
|
+
export declare const recsViewedFromNoAttachmentModalEvent = "PCM-Next > No-Attachment-modal-view-recommendations";
|
|
52
|
+
export declare const markdownInlineFileSelectEvent = "PCM-Next > Markdown-toolbar-file-select";
|
|
53
|
+
export declare const markdownFilePasteEvent = "PCM-Next > Markdown-toolbar-file-paste";
|
|
50
54
|
export declare const riskLabels: {
|
|
51
55
|
1: {
|
|
52
56
|
icon: React.JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Constants.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1B,wBA+BE;AAEF;;GAEG;AACH,oBAAY,iBAAiB;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,IAAI,iBAAiB;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,8BAA8B;IACnC,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,kBAAkB,yBAAyB;CAC9C;AAED,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAKtB,CAAC"}
|
|
1
|
+
{"version":3,"file":"Constants.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Constants.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,MAAM,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1B,wBA+BE;AAEF;;GAEG;AACH,oBAAY,iBAAiB;IACzB,QAAQ,aAAa;IACrB,MAAM,WAAW;IACjB,IAAI,iBAAiB;IACrB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,KAAK,8BAA8B;IACnC,KAAK,UAAU;IACf,KAAK,UAAU;IACf,QAAQ,aAAa;IACrB,kBAAkB,yBAAyB;CAC9C;AAED,eAAO,MAAM,8BAA8B,oDAAoD,CAAC;AAEhG,eAAO,MAAM,oCAAoC,wDAAwD,CAAC;AAC1G,eAAO,MAAM,6BAA6B,4CAA4C,CAAC;AACvF,eAAO,MAAM,sBAAsB,2CAA2C,CAAC;AAE/E,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;CAKtB,CAAC"}
|
|
@@ -51,6 +51,10 @@ export var CaseValuesToWatch;
|
|
|
51
51
|
CaseValuesToWatch["hostname"] = "Hostname";
|
|
52
52
|
CaseValuesToWatch["openshiftClusterID"] = "OpenShift Cluster ID";
|
|
53
53
|
})(CaseValuesToWatch || (CaseValuesToWatch = {}));
|
|
54
|
+
export const preferredSSModalOpenPendoEvent = 'PCM-Next > Preferred-secured-support-modal-open';
|
|
55
|
+
export const recsViewedFromNoAttachmentModalEvent = 'PCM-Next > No-Attachment-modal-view-recommendations';
|
|
56
|
+
export const markdownInlineFileSelectEvent = 'PCM-Next > Markdown-toolbar-file-select';
|
|
57
|
+
export const markdownFilePasteEvent = 'PCM-Next > Markdown-toolbar-file-paste';
|
|
54
58
|
export const riskLabels = {
|
|
55
59
|
1: { icon: React.createElement(AngleDoubleDownIcon, null), label: 'Low', className: 'pf-m-blue' },
|
|
56
60
|
2: { icon: React.createElement(EqualsIcon, null), label: 'Moderate', className: 'pf-m-gold' },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AttachmentHelper.d.ts","sourceRoot":"","sources":["../../../../../../src/components/shared/fileUpload/reducer/AttachmentHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,MAAM,oDAAoD,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AASvF,OAAO,EACH,uBAAuB,EAEvB,6BAA6B,EAK7B,gBAAgB,EAChB,UAAU,EACV,UAAU,EACV,eAAe,EAMf,qBAAqB,EACxB,MAAM,qBAAqB,CAAC;AAG7B,eAAO,MAAM,MAAM,GACd,6BAA6B,6BAA6B,EAAE,aAAa,OAAO,EAAE,mBAAiB,MACnG,eAAe,IAAI,EAAE,SA+BrB,CAAC;AAiBN,eAAO,MAAM,oBAAoB,GAAI,QAAQ,MAAM,uDAAwD,CAAC;AAC5G,eAAO,MAAM,iBAAiB,GAAI,QAAQ,MAAM,oDAAqD,CAAC;AACtG,eAAO,MAAM,wBAAwB,GAAI,QAAQ,MAAM,2DAA4D,CAAC;AACpH,eAAO,MAAM,qBAAqB,GAAI,QAAQ,MAAM,wDAAyD,CAAC;AAC9G,eAAO,MAAM,qBAAqB,GAAI,QAAQ,MAAM,wDAAyD,CAAC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,OAAO,EACpB,QAAQ,EAAE,CAAC,MAAM,EAAE,qBAAqB,KAAK,IAAI,GAClD,OAAO,CAAC,gBAAgB,CAAC,CAwB3B;AAED,wBAAsB,2BAA2B,CAC7C,QAAQ,KAAA,EACR,UAAU,EAAE,MAAM,EAClB,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,UAAU,EACrB,SAAS,EAAE,MAAM,iBA6BpB;AAED,wBAAsB,uBAAuB,CAAC,QAAQ,KAAA,EAAE,SAAS,EAAE,MAAM,iBA+CxE;AAED,wBAAgB,+BAA+B,CAAC,UAAU,EAAE,UAAU,EAAE,WAEvE;AAED,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,UAAU,EAAE,WAKzD;AAED,eAAO,MAAM,uBAAuB,GAAI,YAAY,UAAU,KAAG,OAShE,CAAC;AAKF,eAAO,MAAM,2BAA2B,UAOvC,CAAC;AAEF,eAAO,MAAM,8BAA8B,GAAI,oBAAoB,UAAU,EAAE,YAE9E,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,aAAQ,SAUvC,CAAC"}
|
|
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { caseAttachments, Config, pcm, sessionAttachments } from '@cee-eng/hydrajs';
|
|
11
11
|
import { ToastNotification } from '@rh-support/components';
|
|
12
|
-
import { getText } from '@rh-support/utils';
|
|
12
|
+
import { getText, pendoTrackEvent } from '@rh-support/utils';
|
|
13
13
|
import find from 'lodash/find';
|
|
14
14
|
import forEach from 'lodash/forEach';
|
|
15
15
|
import includes from 'lodash/includes';
|
|
@@ -432,10 +432,13 @@ export const isAnyFileDiagnosticsAttachment = (selectedLocalFiles) => {
|
|
|
432
432
|
return selectedLocalFiles.some(isDiagnosticsAttachment);
|
|
433
433
|
};
|
|
434
434
|
export const trackSlowUpload = (dispatch) => {
|
|
435
|
+
// show an alert
|
|
436
|
+
//track in pendo
|
|
435
437
|
dispatch({
|
|
436
438
|
type: AttachmentReducerConstants.setShowUploadingOnSlowConnectionMsg,
|
|
437
439
|
payload: {
|
|
438
440
|
showUploadingOnSlowConnectionMsg: true,
|
|
439
441
|
},
|
|
440
442
|
});
|
|
443
|
+
pendoTrackEvent('PCM-Next > S3-Slow-Upload');
|
|
441
444
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AASA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"WizardLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/wizardLayout/WizardLayout.tsx"],"names":[],"mappings":"AASA,OAAO,KAAkD,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAMvD,OAAO,EAAuC,eAAe,EAAE,MAAM,iCAAiC,CAAC;AAcvG,UAAU,MAAM;IACZ,UAAU,EAAE,mBAAmB,CAAC,eAAe,CAAC,CAAC;CACpD;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,MAAM,qBAqLzC"}
|
|
@@ -11,7 +11,7 @@ import { Grid, GridItem } from '@patternfly/react-core';
|
|
|
11
11
|
import { SupportFeedbackForm } from '@rh-support/components';
|
|
12
12
|
import { fetchProducts, GlobalMetadataDispatchContext, GlobalMetadataStateContext } from '@rh-support/react-context';
|
|
13
13
|
import { ability, CaseListFields, resourceActions, resources } from '@rh-support/user-permissions';
|
|
14
|
-
import { getVersionIfOnlyVersion, PreviousCaseTypes } from '@rh-support/utils';
|
|
14
|
+
import { getVersionIfOnlyVersion, pendoTrackEvent, PreviousCaseTypes } from '@rh-support/utils';
|
|
15
15
|
import findIndex from 'lodash/findIndex';
|
|
16
16
|
import isEmpty from 'lodash/isEmpty';
|
|
17
17
|
import isEqual from 'lodash/isEqual';
|
|
@@ -26,6 +26,7 @@ import { useMetadata } from '../../utils/metadataUtil';
|
|
|
26
26
|
import RouteUtils from '../../utils/routeUtils';
|
|
27
27
|
import PreCaseConfirmationModals, { PreCaseConfirmationModalsEnum, } from '../ConfirmationModals/PreCaseConfirmationModals';
|
|
28
28
|
import AlertToastWrapper from '../Recommendations/AlertToastWrapper';
|
|
29
|
+
import { preferredSSModalOpenPendoEvent } from '../shared/Constants';
|
|
29
30
|
import { AttachmentStateContext } from '../shared/fileUpload';
|
|
30
31
|
import { isAnyFileAttached } from '../shared/fileUpload/reducer/AttachmentHelper';
|
|
31
32
|
import { GlobalTroubleshootEffects } from './GlobalTroubleshootEffects';
|
|
@@ -109,6 +110,8 @@ export function WizardLayout(props) {
|
|
|
109
110
|
const confirmSupportModal = (hasPreferredSecureSupportAccount) => {
|
|
110
111
|
if (hasPreferredSecureSupportAccount) {
|
|
111
112
|
setConfirmationModalType(PreCaseConfirmationModalsEnum.PREFERRED_GS4_Modal);
|
|
113
|
+
// track pendo event
|
|
114
|
+
pendoTrackEvent(preferredSSModalOpenPendoEvent);
|
|
112
115
|
}
|
|
113
116
|
};
|
|
114
117
|
const onModalClose = () => {
|
|
@@ -287,7 +287,7 @@ function WizardNavigation(props) {
|
|
|
287
287
|
React.createElement("button", { onClick: props.onSeeMoreResources, className: "btn btn-app btn-primary main-nav-button", type: "button", disabled: isFunctionalCookieAccepted() &&
|
|
288
288
|
props.aiServicesAvailable &&
|
|
289
289
|
!aiResponseState.hasChunkReceived &&
|
|
290
|
-
!aiResponseState.error }, t('Continue')))) : props.isAIChatMode && activeSection === AppRouteSections.RESOURCES ? (isCaseCreate ? (React.createElement("span", null,
|
|
290
|
+
!aiResponseState.error }, isFunctionalCookieAccepted() ? t('See more resources') : t('Continue')))) : props.isAIChatMode && activeSection === AppRouteSections.RESOURCES ? (isCaseCreate ? (React.createElement("span", null,
|
|
291
291
|
React.createElement(Trans, { i18nKey: "<span>Return to</span> <button>case creation</button>", components: {
|
|
292
292
|
span: React.createElement("span", { className: "return-to-case-text" }),
|
|
293
293
|
button: (React.createElement(Button, { className: "return-to-case-btn", variant: "link", component: "a", onClick: props.onReturnToCaseCreation })),
|
package/lib/esm/css/case.css
CHANGED
|
@@ -127,26 +127,35 @@ button,
|
|
|
127
127
|
font-weight: 600;
|
|
128
128
|
}
|
|
129
129
|
|
|
130
|
-
.
|
|
131
|
-
margin
|
|
132
|
-
padding
|
|
130
|
+
.asa-discussion-alert.pf-v6-c-alert {
|
|
131
|
+
margin: 0 0 16px;
|
|
132
|
+
padding: 16px;
|
|
133
|
+
background-color: #fff;
|
|
134
|
+
border: 2px solid #5e40be;
|
|
135
|
+
border-radius: 16px;
|
|
136
|
+
box-shadow: none;
|
|
133
137
|
}
|
|
134
138
|
|
|
135
|
-
.
|
|
136
|
-
|
|
139
|
+
.asa-discussion-alert.pf-v6-c-alert::before {
|
|
140
|
+
display: none;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
.asa-discussion-alert .pf-v6-c-alert__icon {
|
|
144
|
+
color: #5e40be;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.asa-discussion-alert .pf-v6-c-alert__title {
|
|
148
|
+
font-weight: 600;
|
|
137
149
|
}
|
|
138
150
|
|
|
139
|
-
.
|
|
140
|
-
|
|
141
|
-
padding-block-start: 0;
|
|
151
|
+
.asa-discussion-alert .pf-v6-c-alert__description a {
|
|
152
|
+
text-decoration: underline;
|
|
142
153
|
}
|
|
143
154
|
|
|
144
155
|
.asa-send-feedback-link,
|
|
145
156
|
.asa-send-feedback-link.pf-v6-c-button,
|
|
146
157
|
.asa-send-feedback-link.pf-v6-c-button.pf-m-link,
|
|
147
|
-
.asa-send-feedback-link .pf-v6-c-button__text
|
|
148
|
-
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__action-group .pf-v6-c-button,
|
|
149
|
-
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__action-group .pf-v6-c-button__text {
|
|
158
|
+
.asa-send-feedback-link .pf-v6-c-button__text {
|
|
150
159
|
text-decoration: none;
|
|
151
160
|
}
|
|
152
161
|
|
|
@@ -155,9 +164,7 @@ button,
|
|
|
155
164
|
.asa-send-feedback-link.pf-v6-c-button:hover,
|
|
156
165
|
.asa-send-feedback-link.pf-v6-c-button:focus,
|
|
157
166
|
.asa-send-feedback-link:hover .pf-v6-c-button__text,
|
|
158
|
-
.asa-send-feedback-link:focus .pf-v6-c-button__text
|
|
159
|
-
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__action-group .pf-v6-c-button:hover,
|
|
160
|
-
.support-comment.comment-automated .asa-comment-alert .pf-v6-c-alert__action-group .pf-v6-c-button:focus {
|
|
167
|
+
.asa-send-feedback-link:focus .pf-v6-c-button__text {
|
|
161
168
|
text-decoration: none;
|
|
162
169
|
}
|
|
163
170
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RecommendationsReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/RecommendationsReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAoB,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACpH,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAiB,MAAM,0CAA0C,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAIH,gCAAgC,
|
|
1
|
+
{"version":3,"file":"RecommendationsReducer.d.ts","sourceRoot":"","sources":["../../../src/reducers/RecommendationsReducer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAoB,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACpH,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAiB,MAAM,0CAA0C,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EAIH,gCAAgC,E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B,wBAAwB,OAAO,EAC/B,oBAAoB,gCAAgC,EACpD,cAAc,WAAW,kBAsC5B,CAAC;AAEF,eAAO,MAAM,2BAA2B,GACpC,UAAU,kCAAkC,EAC5C,OAAO,mBAAmB,EAC1B,UAAU,MAAM,EAChB,WAAW,MAAM,EACjB,2BAA2B,MAAM,EACjC,uBAAqB,EACrB,oBAAoB,gCAAgC,EACpD,cAAc,WAAW,kBAqC5B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,UAAU,kCAAkC,EAAE,SAAS,mBAAmB,EAAE,SAE1G,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,UAAU,kCAAkC,EAAE,SAAS,MAAM,SAE3F,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,UAAU,kCAAkC,EAAE,gBAAgB,MAAM,EAAE,SAE5G,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,UAAU,kCAAkC,SAEhF,CAAC"}
|
|
@@ -8,7 +8,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
10
|
import { search } from '@cee-eng/hydrajs';
|
|
11
|
-
import { convertObjToEncodedQueryParams, getSolrParams, getTrimmedCharacters, replaceHighlightingData,
|
|
11
|
+
import { convertObjToEncodedQueryParams, getSolrParams, getTrimmedCharacters, replaceHighlightingData, } from '@rh-support/utils';
|
|
12
12
|
import { WATSONX_DESCRIPTION_LIMIT, WATSONX_SUMMARY_LIMIT } from './CaseConstNTypes';
|
|
13
13
|
export const initialRecommendationsState = {
|
|
14
14
|
isLoadingRecommendations: false,
|
|
@@ -91,13 +91,13 @@ export const fetchRecommendations = (dispatch_1, body_1, max_rows_1, page_size_1
|
|
|
91
91
|
const response = yield search.getRecommendationsForCase(body, Object.assign(Object.assign({}, searchParams), { caseNumber,
|
|
92
92
|
isSecureSupportAccount }), // Need to pass caseNumber and isSecureSupportAccount flag with SOLR parameter which will be used in service worker strategy.
|
|
93
93
|
abortSignal);
|
|
94
|
-
const docs =
|
|
94
|
+
const docs = replaceHighlightingData(response.response.docs, response.highlighting);
|
|
95
95
|
dispatch({
|
|
96
96
|
type: RecommendationsConstants.receivedRecommendations,
|
|
97
97
|
payload: {
|
|
98
98
|
allDocs: docs,
|
|
99
99
|
visibleDocs: docs.slice(0, page_size),
|
|
100
|
-
numFound:
|
|
100
|
+
numFound: response.response.numFound,
|
|
101
101
|
},
|
|
102
102
|
});
|
|
103
103
|
}
|
|
@@ -118,13 +118,13 @@ export const fetchWatsonXRecommendations = (dispatch_1, query_1, max_rows_1, pag
|
|
|
118
118
|
description: getTrimmedCharacters(query.description, WATSONX_DESCRIPTION_LIMIT),
|
|
119
119
|
};
|
|
120
120
|
const response = yield search.getWatsonXRecommendationsForCase2(convertObjToEncodedQueryParams(Object.assign({ rerank: true }, getSolrParams(max_rows, highlighted_fragment_size, additionalFilters, seQueryFields))), bodyPayload, abortSignal);
|
|
121
|
-
const docs =
|
|
121
|
+
const docs = replaceHighlightingData(response.response.docs, response.highlighting);
|
|
122
122
|
dispatch({
|
|
123
123
|
type: RecommendationsConstants.receivedRecommendations,
|
|
124
124
|
payload: {
|
|
125
125
|
allDocs: docs,
|
|
126
126
|
visibleDocs: docs.slice(0, page_size),
|
|
127
|
-
numFound:
|
|
127
|
+
numFound: response.response.numFound,
|
|
128
128
|
},
|
|
129
129
|
});
|
|
130
130
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rh-support/troubleshoot",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.353",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"registry": "https://registry.npmjs.org"
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"@progress/kendo-licensing": "1.3.5",
|
|
54
54
|
"@progress/kendo-react-pdf": "^5.16.0",
|
|
55
55
|
"@redux-devtools/extension": "^3.3.0",
|
|
56
|
-
"@rh-support/components": "2.5.
|
|
57
|
-
"@rh-support/react-context": "2.5.
|
|
56
|
+
"@rh-support/components": "2.5.182",
|
|
57
|
+
"@rh-support/react-context": "2.5.276",
|
|
58
58
|
"@rh-support/types": "2.0.26",
|
|
59
|
-
"@rh-support/user-permissions": "2.5.
|
|
60
|
-
"@rh-support/utils": "2.5.
|
|
59
|
+
"@rh-support/user-permissions": "2.5.128",
|
|
60
|
+
"@rh-support/utils": "2.5.92",
|
|
61
61
|
"@types/react-redux": "^7.1.33",
|
|
62
62
|
"@types/redux": "^3.6.0",
|
|
63
63
|
"date-fns": "3.6.0",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"defaults and supports es6-module",
|
|
128
128
|
"maintained node versions"
|
|
129
129
|
],
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "901ab574cf5530464bcbc26b62471c18cd2246d9"
|
|
131
131
|
}
|