@rh-support/components 2.1.49 → 2.1.51

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.
Files changed (337) hide show
  1. package/lib/esm/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  2. package/lib/esm/LanguageSelector/LanguageSelector.js +13 -3
  3. package/lib/esm/LanguageSelector/languageSelector.css +1 -1
  4. package/package.json +10 -21
  5. package/lib/cjs/AlertMessage/AlertMessage.css +0 -9
  6. package/lib/cjs/AlertMessage/AlertMessage.d.ts +0 -24
  7. package/lib/cjs/AlertMessage/AlertMessage.d.ts.map +0 -1
  8. package/lib/cjs/AlertMessage/AlertMessage.js +0 -30
  9. package/lib/cjs/AlertMessage/index.d.ts +0 -2
  10. package/lib/cjs/AlertMessage/index.d.ts.map +0 -1
  11. package/lib/cjs/AlertMessage/index.js +0 -18
  12. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -7
  13. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +0 -1
  14. package/lib/cjs/ConfirmationModal/ConfirmationContext.js +0 -57
  15. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +0 -30
  16. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +0 -1
  17. package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +0 -28
  18. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -1
  19. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts.map +0 -1
  20. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.js +0 -36
  21. package/lib/cjs/ConfirmationModal/index.d.ts +0 -3
  22. package/lib/cjs/ConfirmationModal/index.d.ts.map +0 -1
  23. package/lib/cjs/ConfirmationModal/index.js +0 -18
  24. package/lib/cjs/CoverSpinner/CoverSpinner.css +0 -16
  25. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -4
  26. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +0 -1
  27. package/lib/cjs/CoverSpinner/CoverSpinner.js +0 -13
  28. package/lib/cjs/CoverSpinner/index.d.ts +0 -2
  29. package/lib/cjs/CoverSpinner/index.d.ts.map +0 -1
  30. package/lib/cjs/CoverSpinner/index.js +0 -17
  31. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts +0 -15
  32. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts.map +0 -1
  33. package/lib/cjs/CustomContentLoader/CustomContentLoader.js +0 -62
  34. package/lib/cjs/CustomContentLoader/index.d.ts +0 -2
  35. package/lib/cjs/CustomContentLoader/index.d.ts.map +0 -1
  36. package/lib/cjs/CustomContentLoader/index.js +0 -17
  37. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -14
  38. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +0 -1
  39. package/lib/cjs/CustomTextInput/CustomTextInput.js +0 -50
  40. package/lib/cjs/CustomTextInput/index.d.ts +0 -2
  41. package/lib/cjs/CustomTextInput/index.d.ts.map +0 -1
  42. package/lib/cjs/CustomTextInput/index.js +0 -17
  43. package/lib/cjs/DropDownList/AsyncDropDownList.d.ts +0 -6
  44. package/lib/cjs/DropDownList/AsyncDropDownList.d.ts.map +0 -1
  45. package/lib/cjs/DropDownList/AsyncDropDownList.js +0 -10
  46. package/lib/cjs/DropDownList/DropDownList.d.ts +0 -9
  47. package/lib/cjs/DropDownList/DropDownList.d.ts.map +0 -1
  48. package/lib/cjs/DropDownList/DropDownList.js +0 -145
  49. package/lib/cjs/DropDownList/DropdownWrapper.d.ts +0 -16
  50. package/lib/cjs/DropDownList/DropdownWrapper.d.ts.map +0 -1
  51. package/lib/cjs/DropDownList/DropdownWrapper.js +0 -25
  52. package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts +0 -4
  53. package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts.map +0 -1
  54. package/lib/cjs/DropDownList/MultiSelectDropdownList.js +0 -7
  55. package/lib/cjs/DropDownList/Readme.md +0 -114
  56. package/lib/cjs/DropDownList/SearchableList.d.ts +0 -14
  57. package/lib/cjs/DropDownList/SearchableList.d.ts.map +0 -1
  58. package/lib/cjs/DropDownList/SearchableList.js +0 -104
  59. package/lib/cjs/DropDownList/SelectList.d.ts +0 -11
  60. package/lib/cjs/DropDownList/SelectList.d.ts.map +0 -1
  61. package/lib/cjs/DropDownList/SelectList.js +0 -41
  62. package/lib/cjs/DropDownList/async.d.ts +0 -9
  63. package/lib/cjs/DropDownList/async.d.ts.map +0 -1
  64. package/lib/cjs/DropDownList/async.js +0 -142
  65. package/lib/cjs/DropDownList/dropdownList.css +0 -59
  66. package/lib/cjs/DropDownList/dropdownUtils.d.ts +0 -5
  67. package/lib/cjs/DropDownList/dropdownUtils.d.ts.map +0 -1
  68. package/lib/cjs/DropDownList/dropdownUtils.js +0 -29
  69. package/lib/cjs/DropDownList/index.d.ts +0 -4
  70. package/lib/cjs/DropDownList/index.d.ts.map +0 -1
  71. package/lib/cjs/DropDownList/index.js +0 -19
  72. package/lib/cjs/DropDownList/types.d.ts +0 -54
  73. package/lib/cjs/DropDownList/types.d.ts.map +0 -1
  74. package/lib/cjs/DropDownList/types.js +0 -2
  75. package/lib/cjs/DropDownList/withMulti.d.ts +0 -5
  76. package/lib/cjs/DropDownList/withMulti.d.ts.map +0 -1
  77. package/lib/cjs/DropDownList/withMulti.js +0 -73
  78. package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts +0 -37
  79. package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
  80. package/lib/cjs/ErrorBoundary/ErrorBoundary.js +0 -66
  81. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -15
  82. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +0 -1
  83. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.js +0 -39
  84. package/lib/cjs/ErrorBoundary/index.d.ts +0 -2
  85. package/lib/cjs/ErrorBoundary/index.d.ts.map +0 -1
  86. package/lib/cjs/ErrorBoundary/index.js +0 -17
  87. package/lib/cjs/ErrorPages/Generic403.d.ts +0 -3
  88. package/lib/cjs/ErrorPages/Generic403.d.ts.map +0 -1
  89. package/lib/cjs/ErrorPages/Generic403.js +0 -14
  90. package/lib/cjs/ErrorPages/index.d.ts +0 -2
  91. package/lib/cjs/ErrorPages/index.d.ts.map +0 -1
  92. package/lib/cjs/ErrorPages/index.js +0 -17
  93. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -12
  94. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +0 -1
  95. package/lib/cjs/FeedbackForm/FeedbackForm.js +0 -144
  96. package/lib/cjs/FeedbackForm/index.d.ts +0 -2
  97. package/lib/cjs/FeedbackForm/index.d.ts.map +0 -1
  98. package/lib/cjs/FeedbackForm/index.js +0 -17
  99. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts +0 -30
  100. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +0 -1
  101. package/lib/cjs/Functional/CaseContactsSelectorExternal.js +0 -227
  102. package/lib/cjs/Functional/index.d.ts +0 -2
  103. package/lib/cjs/Functional/index.d.ts.map +0 -1
  104. package/lib/cjs/Functional/index.js +0 -17
  105. package/lib/cjs/InlineEdit/InlineEdit.d.ts +0 -37
  106. package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +0 -1
  107. package/lib/cjs/InlineEdit/InlineEdit.js +0 -173
  108. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts +0 -41
  109. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts.map +0 -1
  110. package/lib/cjs/InlineEdit/NewInlineEdit.js +0 -182
  111. package/lib/cjs/InlineEdit/index.d.ts +0 -3
  112. package/lib/cjs/InlineEdit/index.d.ts.map +0 -1
  113. package/lib/cjs/InlineEdit/index.js +0 -18
  114. package/lib/cjs/InlineEdit/inlineEdit.css +0 -29
  115. package/lib/cjs/InlineEdit/newInlineEdit.css +0 -44
  116. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -26
  117. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +0 -1
  118. package/lib/cjs/LanguageSelector/LanguageSelector.js +0 -65
  119. package/lib/cjs/LanguageSelector/index.d.ts +0 -2
  120. package/lib/cjs/LanguageSelector/index.d.ts.map +0 -1
  121. package/lib/cjs/LanguageSelector/index.js +0 -17
  122. package/lib/cjs/LanguageSelector/languageSelector.css +0 -5
  123. package/lib/cjs/LoadingDots/LoadingDots.css +0 -33
  124. package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -13
  125. package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +0 -1
  126. package/lib/cjs/LoadingDots/LoadingDots.js +0 -25
  127. package/lib/cjs/LoadingDots/index.d.ts +0 -2
  128. package/lib/cjs/LoadingDots/index.d.ts.map +0 -1
  129. package/lib/cjs/LoadingDots/index.js +0 -18
  130. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -15
  131. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +0 -1
  132. package/lib/cjs/LoadingIndicator/LoadingIndicator.js +0 -25
  133. package/lib/cjs/LoadingIndicator/index.d.ts +0 -2
  134. package/lib/cjs/LoadingIndicator/index.d.ts.map +0 -1
  135. package/lib/cjs/LoadingIndicator/index.js +0 -17
  136. package/lib/cjs/LoadingIndicator/loadingIndicator.css +0 -79
  137. package/lib/cjs/LoginModal/LoginModal.d.ts +0 -15
  138. package/lib/cjs/LoginModal/LoginModal.d.ts.map +0 -1
  139. package/lib/cjs/LoginModal/LoginModal.js +0 -21
  140. package/lib/cjs/LoginModal/index.d.ts +0 -2
  141. package/lib/cjs/LoginModal/index.d.ts.map +0 -1
  142. package/lib/cjs/LoginModal/index.js +0 -17
  143. package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts +0 -45
  144. package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts.map +0 -1
  145. package/lib/cjs/MarkdownEditor/MarkdownEditor.js +0 -442
  146. package/lib/cjs/MarkdownEditor/index.d.ts +0 -2
  147. package/lib/cjs/MarkdownEditor/index.d.ts.map +0 -1
  148. package/lib/cjs/MarkdownEditor/index.js +0 -17
  149. package/lib/cjs/MarkdownEditor/markdownEditor.css +0 -113
  150. package/lib/cjs/MoreOrLess/MoreOrLess.d.ts +0 -13
  151. package/lib/cjs/MoreOrLess/MoreOrLess.d.ts.map +0 -1
  152. package/lib/cjs/MoreOrLess/MoreOrLess.js +0 -75
  153. package/lib/cjs/MoreOrLess/index.d.ts +0 -2
  154. package/lib/cjs/MoreOrLess/index.d.ts.map +0 -1
  155. package/lib/cjs/MoreOrLess/index.js +0 -17
  156. package/lib/cjs/PaginatedList/PaginatedList.d.ts +0 -18
  157. package/lib/cjs/PaginatedList/PaginatedList.d.ts.map +0 -1
  158. package/lib/cjs/PaginatedList/PaginatedList.js +0 -67
  159. package/lib/cjs/PaginatedList/index.d.ts +0 -2
  160. package/lib/cjs/PaginatedList/index.d.ts.map +0 -1
  161. package/lib/cjs/PaginatedList/index.js +0 -17
  162. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -10
  163. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +0 -1
  164. package/lib/cjs/PaginationCompact/PaginationCompact.js +0 -67
  165. package/lib/cjs/PaginationCompact/index.d.ts +0 -2
  166. package/lib/cjs/PaginationCompact/index.d.ts.map +0 -1
  167. package/lib/cjs/PaginationCompact/index.js +0 -17
  168. package/lib/cjs/PaginationCompact/paginationCompact.css +0 -5
  169. package/lib/cjs/PhoneInput/CountryData.d.ts +0 -3
  170. package/lib/cjs/PhoneInput/CountryData.d.ts.map +0 -1
  171. package/lib/cjs/PhoneInput/CountryData.js +0 -583
  172. package/lib/cjs/PhoneInput/PhoneInput.d.ts +0 -20
  173. package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +0 -1
  174. package/lib/cjs/PhoneInput/PhoneInput.js +0 -293
  175. package/lib/cjs/PhoneInput/PhoneInput.scss +0 -753
  176. package/lib/cjs/PhoneInput/flags.png +0 -0
  177. package/lib/cjs/PhoneInput/index.d.ts +0 -2
  178. package/lib/cjs/PhoneInput/index.d.ts.map +0 -1
  179. package/lib/cjs/PhoneInput/index.js +0 -17
  180. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -9
  181. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +0 -1
  182. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.js +0 -68
  183. package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts +0 -12
  184. package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts.map +0 -1
  185. package/lib/cjs/ProgressBar/CircularProgressBar/Path.js +0 -39
  186. package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts +0 -6
  187. package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts.map +0 -1
  188. package/lib/cjs/ProgressBar/CircularProgressBar/constants.js +0 -8
  189. package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts +0 -2
  190. package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts.map +0 -1
  191. package/lib/cjs/ProgressBar/CircularProgressBar/index.js +0 -17
  192. package/lib/cjs/ProgressBar/CircularProgressBar/styles.css +0 -60
  193. package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts +0 -32
  194. package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts.map +0 -1
  195. package/lib/cjs/ProgressBar/CircularProgressBar/types.js +0 -2
  196. package/lib/cjs/ProgressBar/ProgressBar.d.ts +0 -15
  197. package/lib/cjs/ProgressBar/ProgressBar.d.ts.map +0 -1
  198. package/lib/cjs/ProgressBar/ProgressBar.js +0 -36
  199. package/lib/cjs/ProgressBar/index.d.ts +0 -3
  200. package/lib/cjs/ProgressBar/index.d.ts.map +0 -1
  201. package/lib/cjs/ProgressBar/index.js +0 -18
  202. package/lib/cjs/PromisifyModal/PromisifyModal.d.ts +0 -15
  203. package/lib/cjs/PromisifyModal/PromisifyModal.d.ts.map +0 -1
  204. package/lib/cjs/PromisifyModal/PromisifyModal.js +0 -43
  205. package/lib/cjs/PromisifyModal/index.d.ts +0 -2
  206. package/lib/cjs/PromisifyModal/index.d.ts.map +0 -1
  207. package/lib/cjs/PromisifyModal/index.js +0 -17
  208. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -8
  209. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +0 -1
  210. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.js +0 -20
  211. package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -5
  212. package/lib/cjs/SubscriptionAbuse/const.d.ts.map +0 -1
  213. package/lib/cjs/SubscriptionAbuse/const.js +0 -15
  214. package/lib/cjs/SubscriptionAbuse/index.d.ts +0 -3
  215. package/lib/cjs/SubscriptionAbuse/index.d.ts.map +0 -1
  216. package/lib/cjs/SubscriptionAbuse/index.js +0 -18
  217. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -12
  218. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +0 -1
  219. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.js +0 -48
  220. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -11
  221. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +0 -1
  222. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +0 -182
  223. package/lib/cjs/SupportFeedbackForm/index.d.ts +0 -3
  224. package/lib/cjs/SupportFeedbackForm/index.d.ts.map +0 -1
  225. package/lib/cjs/SupportFeedbackForm/index.js +0 -18
  226. package/lib/cjs/Table/PFTable.d.ts +0 -40
  227. package/lib/cjs/Table/PFTable.d.ts.map +0 -1
  228. package/lib/cjs/Table/PFTable.js +0 -208
  229. package/lib/cjs/Table/README.md +0 -65
  230. package/lib/cjs/Table/TableComponent.d.ts +0 -11
  231. package/lib/cjs/Table/TableComponent.d.ts.map +0 -1
  232. package/lib/cjs/Table/TableComponent.js +0 -42
  233. package/lib/cjs/Table/TablePagination.d.ts +0 -19
  234. package/lib/cjs/Table/TablePagination.d.ts.map +0 -1
  235. package/lib/cjs/Table/TablePagination.js +0 -50
  236. package/lib/cjs/Table/TableProvider.d.ts +0 -15
  237. package/lib/cjs/Table/TableProvider.d.ts.map +0 -1
  238. package/lib/cjs/Table/TableProvider.js +0 -25
  239. package/lib/cjs/Table/index.d.ts +0 -4
  240. package/lib/cjs/Table/index.d.ts.map +0 -1
  241. package/lib/cjs/Table/index.js +0 -19
  242. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -15
  243. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +0 -1
  244. package/lib/cjs/TermsAndConditions/AcceptTermsModal.js +0 -121
  245. package/lib/cjs/TermsAndConditions/index.d.ts +0 -2
  246. package/lib/cjs/TermsAndConditions/index.d.ts.map +0 -1
  247. package/lib/cjs/TermsAndConditions/index.js +0 -17
  248. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts +0 -8
  249. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts.map +0 -1
  250. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.js +0 -140
  251. package/lib/cjs/TextAreaAutosize/index.d.ts +0 -2
  252. package/lib/cjs/TextAreaAutosize/index.d.ts.map +0 -1
  253. package/lib/cjs/TextAreaAutosize/index.js +0 -17
  254. package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts +0 -20
  255. package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts.map +0 -1
  256. package/lib/cjs/TextAreaResizable/TextAreaResizable.js +0 -60
  257. package/lib/cjs/TextAreaResizable/index.d.ts +0 -2
  258. package/lib/cjs/TextAreaResizable/index.d.ts.map +0 -1
  259. package/lib/cjs/TextAreaResizable/index.js +0 -17
  260. package/lib/cjs/ToastNotification/ToastNotification.d.ts +0 -28
  261. package/lib/cjs/ToastNotification/ToastNotification.d.ts.map +0 -1
  262. package/lib/cjs/ToastNotification/ToastNotification.js +0 -71
  263. package/lib/cjs/ToastNotification/index.d.ts +0 -2
  264. package/lib/cjs/ToastNotification/index.d.ts.map +0 -1
  265. package/lib/cjs/ToastNotification/index.js +0 -17
  266. package/lib/cjs/ToastNotification/toastNotification.css +0 -22
  267. package/lib/cjs/TopContentSearch/TopContentSearch.d.ts +0 -14
  268. package/lib/cjs/TopContentSearch/TopContentSearch.d.ts.map +0 -1
  269. package/lib/cjs/TopContentSearch/TopContentSearch.js +0 -143
  270. package/lib/cjs/TopContentSearch/index.d.ts +0 -2
  271. package/lib/cjs/TopContentSearch/index.d.ts.map +0 -1
  272. package/lib/cjs/TopContentSearch/index.js +0 -17
  273. package/lib/cjs/TopContentSearch/topContentSearch.scss +0 -22
  274. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts +0 -14
  275. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts.map +0 -1
  276. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.js +0 -80
  277. package/lib/cjs/ValueChangedIcon/index.d.ts +0 -2
  278. package/lib/cjs/ValueChangedIcon/index.d.ts.map +0 -1
  279. package/lib/cjs/ValueChangedIcon/index.js +0 -17
  280. package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -12
  281. package/lib/cjs/helperFunctions/errorMessage.d.ts.map +0 -1
  282. package/lib/cjs/helperFunctions/errorMessage.js +0 -95
  283. package/lib/cjs/helperFunctions/errorMessage.scss +0 -3
  284. package/lib/cjs/helperFunctions/index.d.ts +0 -2
  285. package/lib/cjs/helperFunctions/index.d.ts.map +0 -1
  286. package/lib/cjs/helperFunctions/index.js +0 -17
  287. package/lib/cjs/hooks/index.d.ts +0 -15
  288. package/lib/cjs/hooks/index.d.ts.map +0 -1
  289. package/lib/cjs/hooks/index.js +0 -30
  290. package/lib/cjs/hooks/useBreakpoint.d.ts +0 -12
  291. package/lib/cjs/hooks/useBreakpoint.d.ts.map +0 -1
  292. package/lib/cjs/hooks/useBreakpoint.js +0 -91
  293. package/lib/cjs/hooks/useCopyToClipboard.d.ts +0 -6
  294. package/lib/cjs/hooks/useCopyToClipboard.d.ts.map +0 -1
  295. package/lib/cjs/hooks/useCopyToClipboard.js +0 -40
  296. package/lib/cjs/hooks/useDebounce.d.ts +0 -9
  297. package/lib/cjs/hooks/useDebounce.d.ts.map +0 -1
  298. package/lib/cjs/hooks/useDebounce.js +0 -40
  299. package/lib/cjs/hooks/useFetch.d.ts +0 -20
  300. package/lib/cjs/hooks/useFetch.d.ts.map +0 -1
  301. package/lib/cjs/hooks/useFetch.js +0 -70
  302. package/lib/cjs/hooks/useForceUpdate.d.ts +0 -18
  303. package/lib/cjs/hooks/useForceUpdate.d.ts.map +0 -1
  304. package/lib/cjs/hooks/useForceUpdate.js +0 -28
  305. package/lib/cjs/hooks/useForkRef.d.ts +0 -2
  306. package/lib/cjs/hooks/useForkRef.d.ts.map +0 -1
  307. package/lib/cjs/hooks/useForkRef.js +0 -29
  308. package/lib/cjs/hooks/useIsMounted.d.ts +0 -3
  309. package/lib/cjs/hooks/useIsMounted.d.ts.map +0 -1
  310. package/lib/cjs/hooks/useIsMounted.js +0 -18
  311. package/lib/cjs/hooks/useLRUCache.d.ts +0 -8
  312. package/lib/cjs/hooks/useLRUCache.d.ts.map +0 -1
  313. package/lib/cjs/hooks/useLRUCache.js +0 -28
  314. package/lib/cjs/hooks/useLocalStorage.d.ts +0 -5
  315. package/lib/cjs/hooks/useLocalStorage.d.ts.map +0 -1
  316. package/lib/cjs/hooks/useLocalStorage.js +0 -39
  317. package/lib/cjs/hooks/useOnScreen.d.ts +0 -2
  318. package/lib/cjs/hooks/useOnScreen.d.ts.map +0 -1
  319. package/lib/cjs/hooks/useOnScreen.js +0 -18
  320. package/lib/cjs/hooks/usePolling.d.ts +0 -2
  321. package/lib/cjs/hooks/usePolling.d.ts.map +0 -1
  322. package/lib/cjs/hooks/usePolling.js +0 -19
  323. package/lib/cjs/hooks/usePrevious.d.ts +0 -2
  324. package/lib/cjs/hooks/usePrevious.d.ts.map +0 -1
  325. package/lib/cjs/hooks/usePrevious.js +0 -12
  326. package/lib/cjs/hooks/useSelectKeyboardNavigator.d.ts +0 -13
  327. package/lib/cjs/hooks/useSelectKeyboardNavigator.d.ts.map +0 -1
  328. package/lib/cjs/hooks/useSelectKeyboardNavigator.js +0 -58
  329. package/lib/cjs/hooks/useTitle.d.ts +0 -2
  330. package/lib/cjs/hooks/useTitle.d.ts.map +0 -1
  331. package/lib/cjs/hooks/useTitle.js +0 -14
  332. package/lib/cjs/hooks/useUndo.d.ts +0 -22
  333. package/lib/cjs/hooks/useUndo.d.ts.map +0 -1
  334. package/lib/cjs/hooks/useUndo.js +0 -76
  335. package/lib/cjs/index.d.ts +0 -34
  336. package/lib/cjs/index.d.ts.map +0 -1
  337. package/lib/cjs/index.js +0 -49
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./TextAreaResizable"), exports);
@@ -1,28 +0,0 @@
1
- import 'react-toastify/dist/ReactToastify.min.css';
2
- import './toastNotification.css';
3
- import React from 'react';
4
- import { ToastContainer, ToastOptions } from 'react-toastify';
5
- import { IAppError } from '../helperFunctions/errorMessage';
6
- export declare enum ToastType {
7
- DANGER = "danger",
8
- INFO = "info",
9
- SUCCESS = "success",
10
- WARNING = "warning"
11
- }
12
- declare class ToastNotification {
13
- static addDangerMessage(message: React.ReactNode, alertBody?: React.ReactNode, options?: ToastOptions): import("react-toastify").ToastId;
14
- static addSuccessMessage(message: React.ReactNode, alertBody?: React.ReactNode, options?: ToastOptions): import("react-toastify").ToastId;
15
- static addWarningMessage(message: any, alertBody?: React.ReactNode | string, options?: ToastOptions): import("react-toastify").ToastId;
16
- static addInfoMessage(message: any, options?: ToastOptions): import("react-toastify").ToastId;
17
- static addXHRErrorMessage(error: any, errorMessageObj?: IAppError): void;
18
- static clearAll(): void;
19
- static clearAllDebounce(timeToDebounce: number): void;
20
- static clearToast(toastId: any): void;
21
- /**
22
- * DEPRECATED: Call an add message function with { autoClose: timeToDelat } in the ToastOptions object to clear toast
23
- * after a certain amount of time.
24
- */
25
- static clearToastDebounce(timeToDebounce: number, ...toastIds: React.ReactText[]): void;
26
- }
27
- export { ToastContainer, ToastNotification };
28
- //# sourceMappingURL=ToastNotification.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ToastNotification.d.ts","sourceRoot":"","sources":["../../../src/ToastNotification/ToastNotification.tsx"],"names":[],"mappings":"AAAA,OAAO,2CAA2C,CAAC;AACnD,OAAO,yBAAyB,CAAC;AAIjC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAS,cAAc,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAErE,OAAO,EAA+C,SAAS,EAAE,MAAM,iCAAiC,CAAC;AAEzG,oBAAY,SAAS;IACjB,MAAM,WAAW;IACjB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,OAAO,YAAY;CACtB;AAsBD,cAAM,iBAAiB;WACL,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,SAAS,EAAE,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,GAAE,YAAiB;WAalG,iBAAiB,CAC3B,OAAO,EAAE,KAAK,CAAC,SAAS,EACxB,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,EAC3B,OAAO,GAAE,YAAkC;WAajC,iBAAiB,CAAC,OAAO,KAAA,EAAE,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,EAAE,OAAO,GAAE,YAAiB;WAY3F,cAAc,CAAC,OAAO,KAAA,EAAE,OAAO,GAAE,YAAkC;WAQnE,kBAAkB,CAAC,KAAK,KAAA,EAAE,eAAe,CAAC,EAAE,SAAS;WAOrD,QAAQ;WAIR,gBAAgB,CAAC,cAAc,EAAE,MAAM;WAIvC,UAAU,CAAC,OAAO,KAAA;IAIhC;;;OAGG;WACW,kBAAkB,CAAC,cAAc,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,KAAK,CAAC,SAAS,EAAE;CAG1F;AAED,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,71 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.ToastNotification = exports.ToastContainer = exports.ToastType = void 0;
7
- require("react-toastify/dist/ReactToastify.min.css");
8
- require("./toastNotification.css");
9
- const react_core_1 = require("@patternfly/react-core");
10
- const debounce_1 = __importDefault(require("lodash/debounce"));
11
- const react_1 = __importDefault(require("react"));
12
- const react_toastify_1 = require("react-toastify");
13
- Object.defineProperty(exports, "ToastContainer", { enumerable: true, get: function () { return react_toastify_1.ToastContainer; } });
14
- const errorMessage_1 = require("../helperFunctions/errorMessage");
15
- var ToastType;
16
- (function (ToastType) {
17
- ToastType["DANGER"] = "danger";
18
- ToastType["INFO"] = "info";
19
- ToastType["SUCCESS"] = "success";
20
- ToastType["WARNING"] = "warning";
21
- })(ToastType || (exports.ToastType = ToastType = {}));
22
- const AlertComponent = ({ variant, message, alertActions = {}, closeToast, children }) => {
23
- return (react_1.default.createElement(react_core_1.Alert, { variant: variant, title: message, actionClose: react_1.default.createElement(react_core_1.AlertActionCloseButton, { onClose: closeToast }) }, children));
24
- };
25
- const defaultCloseMs = 8000;
26
- const defaultToastOptions = { autoClose: defaultCloseMs };
27
- class ToastNotification {
28
- static addDangerMessage(message, alertBody, options = {}) {
29
- return (0, react_toastify_1.toast)(
30
- //@ts-ignore
31
- ({ closeToast }) => (react_1.default.createElement(AlertComponent, { variant: ToastType.DANGER, message: message, closeToast: closeToast }, alertBody)), Object.assign({}, options));
32
- }
33
- // removed options: ToastOptions = defaultToastOptions to fix auto-dismissing of success alerts.
34
- static addSuccessMessage(message, alertBody, options = defaultToastOptions) {
35
- return (0, react_toastify_1.toast)(
36
- //@ts-ignore
37
- ({ closeToast }) => (react_1.default.createElement(AlertComponent, { variant: ToastType.SUCCESS, message: message, closeToast: closeToast }, alertBody)), Object.assign({}, options));
38
- }
39
- static addWarningMessage(message, alertBody, options = {}) {
40
- return (0, react_toastify_1.toast)(
41
- //@ts-ignore
42
- ({ closeToast }) => (react_1.default.createElement(AlertComponent, { variant: ToastType.WARNING, message: message, closeToast: closeToast }, alertBody)), Object.assign({}, options));
43
- }
44
- static addInfoMessage(message, options = defaultToastOptions) {
45
- return (0, react_toastify_1.toast)(
46
- //@ts-ignore
47
- ({ closeToast }) => react_1.default.createElement(AlertComponent, { variant: ToastType.INFO, message: message, closeToast: closeToast }), Object.assign({}, options));
48
- }
49
- static addXHRErrorMessage(error, errorMessageObj) {
50
- const messageBody = (0, errorMessage_1.formattedApiErrorMessage)(error, errorMessageObj);
51
- const messageHeader = (0, errorMessage_1.errorMessageTitle)(error, errorMessageObj);
52
- ToastNotification.addDangerMessage(messageHeader, messageBody, { closeOnClick: false });
53
- }
54
- static clearAll() {
55
- react_toastify_1.toast.dismiss();
56
- }
57
- static clearAllDebounce(timeToDebounce) {
58
- (0, debounce_1.default)(() => react_toastify_1.toast.dismiss, timeToDebounce)();
59
- }
60
- static clearToast(toastId) {
61
- react_toastify_1.toast.dismiss(toastId);
62
- }
63
- /**
64
- * DEPRECATED: Call an add message function with { autoClose: timeToDelat } in the ToastOptions object to clear toast
65
- * after a certain amount of time.
66
- */
67
- static clearToastDebounce(timeToDebounce, ...toastIds) {
68
- (0, debounce_1.default)(() => toastIds.forEach((id) => ToastNotification.clearToast(id)), timeToDebounce)();
69
- }
70
- }
71
- exports.ToastNotification = ToastNotification;
@@ -1,2 +0,0 @@
1
- export * from './ToastNotification';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ToastNotification/index.tsx"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ToastNotification"), exports);
@@ -1,22 +0,0 @@
1
- .Toastify__toast-container {
2
- width: 95%;
3
- }
4
-
5
- @media (min-width: 992px) {
6
- .Toastify__toast-container {
7
- width: 600px;
8
- }
9
- }
10
-
11
- .Toastify__toast-container > .Toastify__toast {
12
- padding: 0px;
13
- }
14
-
15
- .Toastify__toast-body {
16
- margin: 0;
17
- }
18
-
19
- .Toastify__toast-body > .pf-v5-c-alert {
20
- height: 100%;
21
- min-width: 500px;
22
- }
@@ -1,14 +0,0 @@
1
- import './topContentSearch.scss';
2
- import { ITopContentList } from '@cee-eng/hydrajs/@types/models/topContent/topContentModel';
3
- import React from 'react';
4
- interface IProps {
5
- dataTrackingId: string;
6
- topContentResultsWrapperRef: React.MutableRefObject<any>;
7
- topContentData: ITopContentList[];
8
- enableEventTracking?: boolean;
9
- onSearch: (searchVal: string, searchResults: ITopContentList[]) => void;
10
- }
11
- export declare const getTopContentUrl: (contentUrl: string) => string;
12
- export declare function TopContentSearch({ topContentData, topContentResultsWrapperRef, onSearch, dataTrackingId, enableEventTracking, }: IProps): React.JSX.Element;
13
- export {};
14
- //# sourceMappingURL=TopContentSearch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TopContentSearch.d.ts","sourceRoot":"","sources":["../../../src/TopContentSearch/TopContentSearch.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,MAAM,2DAA2D,CAAC;AAQ5F,OAAO,KAA4D,MAAM,OAAO,CAAC;AAGjF,UAAU,MAAM;IACZ,cAAc,EAAE,MAAM,CAAC;IACvB,2BAA2B,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACzD,cAAc,EAAE,eAAe,EAAE,CAAC;IAClC,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,QAAQ,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,aAAa,EAAE,eAAe,EAAE,KAAK,IAAI,CAAC;CAC3E;AAED,eAAO,MAAM,gBAAgB,eAAgB,MAAM,WASlD,CAAC;AAOF,wBAAgB,gBAAgB,CAAC,EAC7B,cAAmB,EACnB,2BAA6C,EAC7C,QAAQ,EACR,cAAc,EACd,mBAA2B,GAC9B,EAAE,MAAM,qBA8GR"}
@@ -1,143 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
26
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
27
- return new (P || (P = Promise))(function (resolve, reject) {
28
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
29
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
30
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
31
- step((generator = generator.apply(thisArg, _arguments || [])).next());
32
- });
33
- };
34
- var __importDefault = (this && this.__importDefault) || function (mod) {
35
- return (mod && mod.__esModule) ? mod : { "default": mod };
36
- };
37
- Object.defineProperty(exports, "__esModule", { value: true });
38
- exports.TopContentSearch = exports.getTopContentUrl = void 0;
39
- require("./topContentSearch.scss");
40
- const react_core_1 = require("@patternfly/react-core");
41
- const utils_1 = require("@rh-support/utils");
42
- const js_worker_search_1 = __importStar(require("js-worker-search"));
43
- const debounce_1 = __importDefault(require("lodash/debounce"));
44
- const flatMap_1 = __importDefault(require("lodash/flatMap"));
45
- const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
46
- const mark_js_1 = __importDefault(require("mark.js"));
47
- const react_1 = __importStar(require("react"));
48
- const react_i18next_1 = require("react-i18next");
49
- const getTopContentUrl = (contentUrl) => {
50
- // There is some data urls (e.g. /solutions/articles/etc.) that aren't valid urls
51
- // this adds the access.redhat.com to make them valid urls, otherwise the top content edit functionality won't work
52
- // for product/versions that already have data not created by users.
53
- if (contentUrl.startsWith('/')) {
54
- return `https://${(0, utils_1.getAccessHostname)()}${contentUrl}`;
55
- }
56
- return contentUrl;
57
- };
58
- exports.getTopContentUrl = getTopContentUrl;
59
- var CustomEvents;
60
- (function (CustomEvents) {
61
- CustomEvents["inputChange"] = "top-content-filter-input-change";
62
- CustomEvents["inputClear"] = "top-content-filter-input-clear";
63
- })(CustomEvents || (CustomEvents = {}));
64
- function TopContentSearch({ topContentData = [], topContentResultsWrapperRef = { current: {} }, onSearch, dataTrackingId, enableEventTracking = false, }) {
65
- const [searchText, setSearchText] = (0, react_1.useState)('');
66
- const { t } = (0, react_i18next_1.useTranslation)();
67
- const searchWorkerRef = (0, react_1.useRef)(new js_worker_search_1.default({
68
- indexMode: js_worker_search_1.INDEX_MODES.ALL_SUBSTRINGS,
69
- caseSensitive: false,
70
- matchAnyToken: true,
71
- }));
72
- const searchWrapperRef = (0, react_1.useRef)(null);
73
- (0, react_1.useEffect)(() => {
74
- topContentData.forEach((item) => {
75
- item.content.forEach((content) => {
76
- searchWorkerRef.current.indexDocument(content.topContentId, `${content.contentTitle} ${(0, exports.getTopContentUrl)(content.contentUrl)}`);
77
- });
78
- });
79
- searchText && handleSearch(searchText);
80
- // eslint-disable-next-line react-hooks/exhaustive-deps
81
- }, [topContentData]);
82
- // to log custom events for dtm tracking.
83
- const logCustomEvent = (eventName, event) => {
84
- if (!enableEventTracking || !searchWrapperRef.current || !event || !eventName)
85
- return;
86
- (0, utils_1.dtmTrackEvent)(searchWrapperRef, eventName, event);
87
- };
88
- const highlightSearchResults = (0, react_1.useCallback)((searchTerm) => {
89
- // highlight search term present in contents only. Contents are present within <dd> tag
90
- const contentElements = topContentResultsWrapperRef.current.querySelectorAll('dd.pf-v5-c-accordion__expandable-content');
91
- const markInstance = new mark_js_1.default(contentElements);
92
- markInstance.unmark({
93
- done: () => {
94
- if ((0, isEmpty_1.default)(searchTerm))
95
- return;
96
- markInstance.mark(searchTerm, { separateWordSearch: true });
97
- },
98
- });
99
- }, [topContentResultsWrapperRef]);
100
- const onSearchInputClear = (0, react_1.useCallback)((event) => {
101
- logCustomEvent(CustomEvents.inputClear, event);
102
- setSearchText('');
103
- highlightSearchResults('');
104
- onSearch('', topContentData);
105
- },
106
- // eslint-disable-next-line react-hooks/exhaustive-deps
107
- [highlightSearchResults, topContentData]);
108
- // To handle search
109
- const handleSearch = (0, react_1.useCallback)((query) => __awaiter(this, void 0, void 0, function* () {
110
- if (!query) {
111
- onSearchInputClear();
112
- return;
113
- }
114
- const contentIds = yield searchWorkerRef.current.search(query);
115
- let contentFound = 0;
116
- const filteredData = (0, flatMap_1.default)(topContentData, (item) => {
117
- const filteredContent = item.content.filter((item) => contentIds.includes(item.topContentId));
118
- const filteredContentLength = filteredContent.length;
119
- if (filteredContentLength > 0 && contentFound < contentIds.length) {
120
- contentFound = contentFound + filteredContentLength;
121
- return [Object.assign(Object.assign({}, item), { content: filteredContent })];
122
- }
123
- else {
124
- return [];
125
- }
126
- });
127
- onSearch(query, filteredData);
128
- highlightSearchResults(query);
129
- logCustomEvent(CustomEvents.inputChange, { bubbles: true, detail: { query } });
130
- }),
131
- // eslint-disable-next-line react-hooks/exhaustive-deps
132
- [highlightSearchResults, topContentData, onSearchInputClear]);
133
- const debounceSearch = (0, react_1.useMemo)(() => (0, debounce_1.default)(handleSearch, 500), [handleSearch]);
134
- const onSearchInputChange = (value) => {
135
- setSearchText(value);
136
- debounceSearch(value);
137
- };
138
- return (react_1.default.createElement("div", { className: "top-content-search-wrapper pf-v5-u-p-md", ref: searchWrapperRef },
139
- react_1.default.createElement("label", { htmlFor: "top-content-search-input", className: "pf-v5-u-mr-md top-content-search-label" },
140
- react_1.default.createElement(react_i18next_1.Trans, null, "Filter results:")),
141
- react_1.default.createElement(react_core_1.SearchInput, { id: "top-content-search-input", className: "top-content-search-input pf-v5-u-flex-grow-1", "aria-label": t('search top content'), placeholder: t('Enter relevant keywords'), value: searchText, "data-tracking-id": dataTrackingId, onChange: (e, val) => onSearchInputChange(val), onClear: onSearchInputClear })));
142
- }
143
- exports.TopContentSearch = TopContentSearch;
@@ -1,2 +0,0 @@
1
- export * from './TopContentSearch';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/TopContentSearch/index.tsx"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./TopContentSearch"), exports);
@@ -1,22 +0,0 @@
1
- .top-content-search-wrapper {
2
- display: flex;
3
- align-items: baseline;
4
- background-color: #f0f0f0;
5
- border: 1px solid #d2d2d2;
6
- margin-bottom: 0.5rem;
7
- padding: 1rem;
8
-
9
- .top-content-search-input {
10
- background-color: #fff;
11
- }
12
- }
13
-
14
- pfe-accordion {
15
- width: calc(100%);
16
- box-shadow: inset 1px 1px 0px #d2d2d2, inset -1px -1px 0px #d2d2d2;
17
- }
18
-
19
- #se-solution-engine .top-content-search-wrapper {
20
- margin-bottom: 0;
21
- border-bottom: 0;
22
- }
@@ -1,14 +0,0 @@
1
- import { TooltipPosition } from '@patternfly/react-core';
2
- import React from 'react';
3
- interface IProps<T> {
4
- value: T;
5
- isFetching?: boolean;
6
- tooltipPosition?: TooltipPosition;
7
- isLocalChange?: boolean;
8
- afterLocalChange?: () => void;
9
- comparator?: (current: T, previous: T) => boolean;
10
- getTooltipContent: (currentValue: T, previousValue: T) => React.ReactNode;
11
- }
12
- export declare function ValueChangedIcon<T>(props: IProps<T>): React.JSX.Element;
13
- export {};
14
- //# sourceMappingURL=ValueChangedIcon.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ValueChangedIcon.d.ts","sourceRoot":"","sources":["../../../src/ValueChangedIcon/ValueChangedIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAGlE,OAAO,KAA8B,MAAM,OAAO,CAAC;AAEnD,UAAU,MAAM,CAAC,CAAC;IACd,KAAK,EAAE,CAAC,CAAC;IACT,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,KAAK,OAAO,CAAC;IAClD,iBAAiB,EAAE,CAAC,YAAY,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC;CAC7E;AAED,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC,CAAC,qBAyDnD"}
@@ -1,80 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- var __importDefault = (this && this.__importDefault) || function (mod) {
26
- return (mod && mod.__esModule) ? mod : { "default": mod };
27
- };
28
- Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ValueChangedIcon = void 0;
30
- const react_core_1 = require("@patternfly/react-core");
31
- const lightbulb_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/lightbulb-icon"));
32
- const debounce_1 = __importDefault(require("lodash/debounce"));
33
- const react_1 = __importStar(require("react"));
34
- function ValueChangedIcon(props) {
35
- // removed 2 min refresh functionality so this icon never needs to be shown
36
- // TODO: Reimplement "setShow"
37
- const [show] = (0, react_1.useState)(false);
38
- const [tooltipContent, setTooltipContent] = (0, react_1.useState)();
39
- const [currentValue, setCurrentValue] = (0, react_1.useState)(props.value);
40
- const [previousValue, setPreviousValue] = (0, react_1.useState)();
41
- const [clearTTDebounce, setClearTTDebounce] = (0, react_1.useState)();
42
- if (clearTTDebounce) {
43
- clearTTDebounce();
44
- setClearTTDebounce(undefined);
45
- }
46
- (0, react_1.useEffect)(() => {
47
- if (props.isLocalChange) {
48
- props.afterLocalChange();
49
- setPreviousValue(currentValue);
50
- return;
51
- }
52
- const showTT = props.comparator
53
- ? props.comparator(currentValue, previousValue)
54
- : previousValue !== currentValue;
55
- if (!!previousValue && !props.isLocalChange && showTT) {
56
- // setShow(true);
57
- setTooltipContent(props.getTooltipContent(currentValue, previousValue));
58
- setPreviousValue(currentValue);
59
- setClearTTDebounce((0, debounce_1.default)(() => {
60
- setTooltipContent(null);
61
- // setShow(false);
62
- }, 6000));
63
- }
64
- }, [props, previousValue, currentValue]);
65
- (0, react_1.useEffect)(() => {
66
- if (currentValue !== props.value) {
67
- setPreviousValue(!!currentValue ? currentValue : props.value);
68
- setCurrentValue(props.value);
69
- }
70
- }, [props.value, currentValue]);
71
- // useEffect(() => {
72
- // if (props.isLocalChange) setShow(!props.isLocalChange)
73
- // }, [props.isLocalChange]);
74
- if (!tooltipContent || !show) {
75
- return null;
76
- }
77
- return (react_1.default.createElement(react_core_1.Tooltip, { content: tooltipContent, position: props.tooltipPosition || react_core_1.TooltipPosition.top },
78
- react_1.default.createElement(lightbulb_icon_1.default, null)));
79
- }
80
- exports.ValueChangedIcon = ValueChangedIcon;
@@ -1,2 +0,0 @@
1
- export * from './ValueChangedIcon';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/ValueChangedIcon/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
- for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
- };
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./ValueChangedIcon"), exports);
@@ -1,12 +0,0 @@
1
- import './errorMessage.scss';
2
- export interface IAppErrorObj {
3
- title: string;
4
- message: string | JSX.Element;
5
- }
6
- export interface IAppError {
7
- [key: string]: Partial<IAppErrorObj>;
8
- }
9
- declare function formattedApiErrorMessage(error: any, customMessage?: IAppError): string | JSX.Element;
10
- declare function errorMessageTitle(error: any, customError?: IAppError): string;
11
- export { formattedApiErrorMessage, errorMessageTitle };
12
- //# sourceMappingURL=errorMessage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"errorMessage.d.ts","sourceRoot":"","sources":["../../../src/helperFunctions/errorMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,qBAAqB,CAAC;AAS7B,MAAM,WAAW,YAAY;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;CACjC;AAED,MAAM,WAAW,SAAS;IACtB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CACxC;AAoDD,iBAAS,wBAAwB,CAAC,KAAK,KAAA,EAAE,aAAa,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,GAAG,CAAC,OAAO,CAwCxF;AAED,iBAAS,iBAAiB,CAAC,KAAK,KAAA,EAAE,WAAW,CAAC,EAAE,SAAS,GAAG,MAAM,CAIjE;AAED,OAAO,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,CAAC"}
@@ -1,95 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.errorMessageTitle = exports.formattedApiErrorMessage = void 0;
7
- require("./errorMessage.scss");
8
- const react_core_1 = require("@patternfly/react-core");
9
- const external_link_alt_icon_1 = __importDefault(require("@patternfly/react-icons/dist/js/icons/external-link-alt-icon"));
10
- const isEmpty_1 = __importDefault(require("lodash/isEmpty"));
11
- const react_1 = __importDefault(require("react"));
12
- const SupportFeedbackForm_1 = require("../SupportFeedbackForm");
13
- const defaultTitle = "Sorry, we're experiencing an error";
14
- const errorMessageButtonLabel = 'contact us';
15
- const defaultErrorMessage = (react_1.default.createElement("p", { className: "pf-v5-u-mb-0" },
16
- "Try refreshing the page. Please ",
17
- react_1.default.createElement(SupportFeedbackForm_1.SupportFeedbackForm, { isInline: true, buttonLabel: errorMessageButtonLabel }),
18
- " if the problem persists.",
19
- react_1.default.createElement("br", null),
20
- react_1.default.createElement(react_core_1.Button, { variant: "link", component: "a", href: "https://status.redhat.com/", "data-tracking-id": "redirect-status-portal-button", target: "_blank", icon: react_1.default.createElement(external_link_alt_icon_1.default, { className: "status-portal-button-icon" }), iconPosition: "right", className: "pf-v5-u-pl-0", isInline: true, "aria-label": "View status page" }, "View status page"),
21
- ' '));
22
- const defaultErrorObj = {
23
- 500: {
24
- title: defaultTitle,
25
- message: defaultErrorMessage,
26
- },
27
- 403: {
28
- title: 'There was a problem with your request',
29
- message: (react_1.default.createElement("p", null,
30
- "You are not authorized to do this action. Please",
31
- ' ',
32
- react_1.default.createElement("a", { href: "/support/contact/customerService" }, "contact Customer Service"),
33
- " if you think this is an error.")),
34
- },
35
- 404: {
36
- title: 'There was a problem with your request',
37
- message: (react_1.default.createElement("p", null,
38
- "The resource that you are looking for doesn't exist. Please",
39
- ' ',
40
- react_1.default.createElement("a", { href: "/support/contact/customerService" }, "contact Customer Service"),
41
- " if you think this is an error.")),
42
- },
43
- };
44
- // the error argument need a better typing here. We want to make sure that user is passing an error object and not an error string
45
- function formattedApiErrorMessage(error, customMessage) {
46
- var _a, _b, _c;
47
- const errorCode = parseInt((error === null || error === void 0 ? void 0 : error.code) || (error === null || error === void 0 ? void 0 : error.status)) || '';
48
- if (!customMessage)
49
- customMessage = {};
50
- // Note: We show default error message on 503 error codes
51
- // eslint-disable-next-line
52
- if (errorCode === 500) {
53
- return ((_a = customMessage[errorCode]) === null || _a === void 0 ? void 0 : _a.message) || defaultErrorMessage;
54
- }
55
- else if (errorCode === 403) {
56
- if ((_b = customMessage[errorCode]) === null || _b === void 0 ? void 0 : _b.message) {
57
- return customMessage[errorCode].message;
58
- }
59
- else if ((error === null || error === void 0 ? void 0 : error.message) || (error === null || error === void 0 ? void 0 : error.detailMessage)) {
60
- return (react_1.default.createElement("p", null,
61
- error.message || '',
62
- " ",
63
- error.detailMessage || '',
64
- react_1.default.createElement("br", null),
65
- "Please ",
66
- react_1.default.createElement("a", { href: "/support/contact/customerService" }, "contact Customer Service"),
67
- " if you think this is an error."));
68
- }
69
- else {
70
- return defaultErrorMessage;
71
- }
72
- }
73
- else if (errorCode === 404) {
74
- return (((_c = customMessage[errorCode]) === null || _c === void 0 ? void 0 : _c.message) ||
75
- (error === null || error === void 0 ? void 0 : error.message) ||
76
- (error === null || error === void 0 ? void 0 : error.detailMessage) ||
77
- defaultErrorObj[errorCode].message);
78
- }
79
- else {
80
- // api call error
81
- const message = (error === null || error === void 0 ? void 0 : error.statusText) || (error === null || error === void 0 ? void 0 : error.responseText) || '';
82
- // error.message -> javascript error
83
- const isNotProperUXError = (0, isEmpty_1.default)(message) || (message === null || message === void 0 ? void 0 : message.length) > 200 || (error === null || error === void 0 ? void 0 : error.message) || (error === null || error === void 0 ? void 0 : error.detailMessage);
84
- return isNotProperUXError ? defaultErrorMessage : message;
85
- }
86
- }
87
- exports.formattedApiErrorMessage = formattedApiErrorMessage;
88
- function errorMessageTitle(error, customError) {
89
- var _a, _b;
90
- if (!customError)
91
- customError = {};
92
- const errorCode = parseInt((error === null || error === void 0 ? void 0 : error.code) || (error === null || error === void 0 ? void 0 : error.status)) || '';
93
- return ((_a = customError[errorCode]) === null || _a === void 0 ? void 0 : _a.title) || ((_b = defaultErrorObj[errorCode]) === null || _b === void 0 ? void 0 : _b.title) || defaultTitle;
94
- }
95
- exports.errorMessageTitle = errorMessageTitle;
@@ -1,3 +0,0 @@
1
- .status-portal-button-icon {
2
- font-size: var(--pf-v5-global--icon--FontSize--sm);
3
- }
@@ -1,2 +0,0 @@
1
- export * from './errorMessage';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helperFunctions/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC"}