@rh-support/troubleshoot 2.2.66 → 2.2.67

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.
@@ -141,7 +141,7 @@ const CaseAttachment = React.forwardRef((props, ref) => {
141
141
  React.createElement("code", { ref: clipboardRef }, props.attachment.checksum)),
142
142
  React.createElement(Tooltip, { position: TooltipPosition.top, content: clipboardText, trigger: "click" },
143
143
  React.createElement("button", { className: "nimbus-icon-clipboard clip-code-raw-btn xs-icon", "aria-hidden": "true", onClick: copyToClipboard }))))),
144
- React.createElement(InlineEdit, { labelProps: { htmlFor: `case-details-file-description-${props.attachment.id}` }, allowInlineEdit: true, labelContent: t('Description'), content: React.createElement("div", { className: "clip-content-wrapper code-block" }, props.attachment.description), hideSaveCancel: false, onSave: onDescriptionSave, onCancel: onDescriptionCancel, dataTrackingId: "case-details-file-description", initialIsEditing: props.attachment.description ? false : true, saveDisabled: isCaseAttachmentDescriptionLengthy ||
144
+ React.createElement(InlineEdit, { labelProps: { htmlFor: `case-details-file-description-${props.attachment.id}` }, allowInlineEdit: true, labelContent: React.createElement(React.Fragment, null, "t('Description')"), content: React.createElement("div", { className: "clip-content-wrapper code-block" }, props.attachment.description), hideSaveCancel: false, onSave: onDescriptionSave, onCancel: onDescriptionCancel, dataTrackingId: "case-details-file-description", initialIsEditing: props.attachment.description ? false : true, saveDisabled: isCaseAttachmentDescriptionLengthy ||
145
145
  isCaseAttachmentDescription ||
146
146
  attachmentDescription === props.attachment.description ||
147
147
  isUpdating, loadingIndicator: isUpdating ? React.createElement(LoadingIndicator, { isInline: true }) : undefined, isExportingPDF: isExportingPDF },
@@ -8,6 +8,7 @@ interface IProps {
8
8
  onRetryAnalysis?: (indexToRetry: number) => void;
9
9
  isSessionId?: boolean;
10
10
  showSlowUploadMsg?: boolean;
11
+ setfileExceedInfo?: (value: any) => void;
11
12
  }
12
13
  export default function FileLister(props: IProps): JSX.Element;
13
14
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AA+BA,OAAO,EAAiB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,qBAAqB,2FAAyC,CAAC;AAiB5E,UAAU,MAAM;IACZ,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACtG,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtE,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eAwS/C"}
1
+ {"version":3,"file":"FileLister.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/FileLister.tsx"],"names":[],"mappings":"AA+BA,OAAO,EAAiB,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAGxE,eAAO,MAAM,qBAAqB,2FAAyC,CAAC;AAiB5E,UAAU,MAAM;IACZ,kBAAkB,EAAE,UAAU,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,eAAe,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,UAAU,CAAC,KAAK,IAAI,CAAC;IACtG,YAAY,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;IACtE,OAAO,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACjD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,CAAC,KAAK,KAAA,KAAK,IAAI,CAAC;CACvC;AAED,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,KAAK,EAAE,MAAM,eAyS/C"}
@@ -55,6 +55,7 @@ export default function FileLister(props) {
55
55
  // To remove attachment
56
56
  const onRemoveClick = (localFile, index) => () => {
57
57
  props.onFileRemove && props.onFileRemove(index, localFile);
58
+ props.setfileExceedInfo && props.setfileExceedInfo({ show: false, fileName: [] });
58
59
  };
59
60
  const getAnalysisStepCount = (localFile) => {
60
61
  const diagStatus = getAnalysisStep(localFile);
@@ -1 +1 @@
1
- {"version":3,"file":"WidgetFileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/WidgetFileUploader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AA0B/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAInD,UAAU,MAAO,SAAQ,wBAAwB,EAAE,gBAAgB;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,MAAM,eA2OxC;kBA3OQ,kBAAkB;;;AA+O3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
1
+ {"version":3,"file":"WidgetFileUploader.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/fileUpload/WidgetFileUploader.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,OAAO,KAA0C,MAAM,OAAO,CAAC;AA0B/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAInD,UAAU,MAAO,SAAQ,wBAAwB,EAAE,gBAAgB;IAC/D,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,CAAC;IACtC,WAAW,EAAE,OAAO,CAAC;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAYD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,MAAM,eA8OxC;kBA9OQ,kBAAkB;;;AAkP3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
@@ -158,8 +158,8 @@ function WidgetFileUploader(props) {
158
158
  "to help us provide the best solutions for your system.")) : (React.createElement("span", { className: "pf-v5-u-font-family-redhatVF-heading-sans-serif pf-v5-u-color-300" },
159
159
  React.createElement(Trans, null, "Allowed file types: png, gif, jpg, jpeg."))),
160
160
  ' '))) : (React.createElement(React.Fragment, null,
161
- unallowedLocalFileExists && (React.createElement(Alert, { variant: "danger", title: "File type is not allowed on this case type. Please remove file to proceed." })),
162
- React.createElement(FileLister, { selectedLocalFiles: attachmentState.caseFiles.selectedLocalFiles, onFileEdit: editFile, onFileRemove: removeFile, onRetry: retryUpload, onRetryAnalysis: retryAnalysis, isSessionId: props.isSessionId, showSlowUploadMsg: attachmentState.showUploadingOnSlowConnectionMsg }),
161
+ unallowedLocalFileExists && (React.createElement(Alert, { variant: "danger", title: t('File type is not allowed on this support type. Please remove file to proceed.') })),
162
+ React.createElement(FileLister, { selectedLocalFiles: attachmentState.caseFiles.selectedLocalFiles, onFileEdit: editFile, onFileRemove: removeFile, onRetry: retryUpload, onRetryAnalysis: retryAnalysis, isSessionId: props.isSessionId, showSlowUploadMsg: attachmentState.showUploadingOnSlowConnectionMsg, setfileExceedInfo: setfileExceedInfo }),
163
163
  hasUploadedSomeAttachments(selectedLocalFiles) && !props.isIdea && (React.createElement("p", null,
164
164
  React.createElement(Trans, null, "If you can't find a solution, all files are moved to your case."))))),
165
165
  React.createElement(FileUploadButton, { className: "file-buttons", onUploadAll: uploadAll, uploadAnotherBtn: false, isSessionId: props.isSessionId }),
@@ -36,14 +36,14 @@ function WidgetFileSelector({ id = '', className = '', isSessionId, isPrivate =
36
36
  return !isImage ? (React.createElement("div", null,
37
37
  rejectedFile.name,
38
38
  " ",
39
- React.createElement(Trans, null, "is not an allowed file type or an image "))) : showFileExceed ? (React.createElement("div", null,
39
+ React.createElement(Trans, null, "is not an allowed file type or an image "))) : showFileExceed.show ? (React.createElement("div", null,
40
40
  rejectedFile.name,
41
41
  " ",
42
42
  React.createElement(Trans, null, "exceeded max size limit of"),
43
43
  " ",
44
44
  humanizeSize(MAX_SIZE))) : ('');
45
45
  }),
46
- showFileExceed &&
46
+ showFileExceed.show &&
47
47
  showFileExceed.fileName.map((exceededFiles) => (React.createElement("div", null,
48
48
  exceededFiles,
49
49
  " ",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.2.66",
3
+ "version": "2.2.67",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -59,8 +59,8 @@
59
59
  "@progress/kendo-drawing": "^1.6.0",
60
60
  "@progress/kendo-licensing": "1.3.5",
61
61
  "@progress/kendo-react-pdf": "4.6.0",
62
- "@rh-support/components": "2.1.36",
63
- "@rh-support/react-context": "2.1.39",
62
+ "@rh-support/components": "2.1.37",
63
+ "@rh-support/react-context": "2.1.40",
64
64
  "@rh-support/types": "2.0.2",
65
65
  "@rh-support/user-permissions": "2.1.26",
66
66
  "@rh-support/utils": "2.1.18",
@@ -122,5 +122,5 @@
122
122
  "defaults and supports es6-module",
123
123
  "maintained node versions"
124
124
  ],
125
- "gitHead": "e6b3526ebe44f3a4d7d2e3fe1f9ae4f5cca279a9"
125
+ "gitHead": "852ee8bdbdebd886e52c1dc695a2a017d2b0c6f7"
126
126
  }