@rh-support/components 2.4.10-beta.6 → 2.5.0

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 (516) hide show
  1. package/README.md +2 -0
  2. package/lib/esm/AlertMessage/AlertMessage.d.ts +2 -2
  3. package/lib/esm/AlertMessage/AlertMessage.d.ts.map +1 -1
  4. package/lib/esm/AlertMessage/AlertMessage.js +1 -1
  5. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts +2 -1
  6. package/lib/esm/ConfirmationModal/ConfirmationContext.d.ts.map +1 -1
  7. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts +2 -1
  8. package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
  9. package/lib/esm/CoverSpinner/CoverSpinner.d.ts +2 -1
  10. package/lib/esm/CoverSpinner/CoverSpinner.d.ts.map +1 -1
  11. package/lib/esm/CustomContentLoader/CustomContentLoader.d.ts +2 -2
  12. package/lib/esm/CustomContentLoader/CustomContentLoader.d.ts.map +1 -1
  13. package/lib/esm/CustomTextInput/CustomTextInput.d.ts +3 -1
  14. package/lib/esm/CustomTextInput/CustomTextInput.d.ts.map +1 -1
  15. package/lib/esm/CustomTextInput/CustomTextInput.js +4 -2
  16. package/lib/esm/DropDownList/AsyncDropDownList.d.ts +1 -1
  17. package/lib/esm/DropDownList/AsyncDropDownList.d.ts.map +1 -1
  18. package/lib/esm/DropDownList/DropDownList.d.ts +2 -1
  19. package/lib/esm/DropDownList/DropDownList.d.ts.map +1 -1
  20. package/lib/esm/DropDownList/DropDownList.js +10 -10
  21. package/lib/esm/DropDownList/DropdownWrapper.d.ts +1 -1
  22. package/lib/esm/DropDownList/DropdownWrapper.d.ts.map +1 -1
  23. package/lib/esm/DropDownList/DropdownWrapper.js +2 -2
  24. package/lib/esm/DropDownList/MultiSelectDropdownList.d.ts.map +1 -1
  25. package/lib/esm/DropDownList/SearchableList.d.ts +1 -1
  26. package/lib/esm/DropDownList/SearchableList.d.ts.map +1 -1
  27. package/lib/esm/DropDownList/SearchableList.js +6 -6
  28. package/lib/esm/DropDownList/SelectList.d.ts +1 -1
  29. package/lib/esm/DropDownList/SelectList.d.ts.map +1 -1
  30. package/lib/esm/DropDownList/SelectList.js +6 -6
  31. package/lib/esm/DropDownList/async.d.ts +1 -1
  32. package/lib/esm/DropDownList/async.d.ts.map +1 -1
  33. package/lib/esm/DropDownList/dropdownList.css +10 -5
  34. package/lib/esm/DropDownList/types.d.ts +6 -7
  35. package/lib/esm/DropDownList/types.d.ts.map +1 -1
  36. package/lib/esm/DropDownList/withMulti.d.ts +1 -1
  37. package/lib/esm/DropDownList/withMulti.d.ts.map +1 -1
  38. package/lib/esm/DropDownList/withMulti.js +1 -0
  39. package/lib/esm/ErrorBoundary/ErrorBoundary.d.ts +2 -1
  40. package/lib/esm/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
  41. package/lib/esm/ErrorBoundary/ErrorBoundary.js +1 -1
  42. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +2 -1
  43. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +1 -1
  44. package/lib/esm/ErrorBoundary/ErrorBoundaryFallbackComponent.js +3 -4
  45. package/lib/esm/ErrorPages/Generic403.d.ts +2 -1
  46. package/lib/esm/ErrorPages/Generic403.d.ts.map +1 -1
  47. package/lib/esm/FeedbackForm/FeedbackForm.d.ts +2 -1
  48. package/lib/esm/FeedbackForm/FeedbackForm.d.ts.map +1 -1
  49. package/lib/esm/FeedbackForm/FeedbackForm.js +2 -2
  50. package/lib/esm/Functional/CaseContactsSelectorExternal.d.ts +5 -4
  51. package/lib/esm/Functional/CaseContactsSelectorExternal.d.ts.map +1 -1
  52. package/lib/esm/Functional/CaseContactsSelectorExternal.js +9 -8
  53. package/lib/esm/InlineEdit/InlineEdit.d.ts +2 -2
  54. package/lib/esm/InlineEdit/InlineEdit.d.ts.map +1 -1
  55. package/lib/esm/InlineEdit/InlineEdit.js +1 -1
  56. package/lib/esm/InlineEdit/NewInlineEdit.d.ts +2 -2
  57. package/lib/esm/InlineEdit/NewInlineEdit.d.ts.map +1 -1
  58. package/lib/esm/InlineEdit/NewInlineEdit.js +2 -2
  59. package/lib/esm/InlineEdit/inlineEdit.css +24 -1
  60. package/lib/esm/InlineEdit/newInlineEdit.css +5 -4
  61. package/lib/esm/LanguageSelector/LanguageSelector.d.ts +2 -1
  62. package/lib/esm/LanguageSelector/LanguageSelector.d.ts.map +1 -1
  63. package/lib/esm/LanguageSelector/LanguageSelector.js +13 -3
  64. package/lib/esm/LanguageSelector/languageSelector.css +1 -1
  65. package/lib/esm/LoadingDots/LoadingDots.d.ts +3 -1
  66. package/lib/esm/LoadingDots/LoadingDots.d.ts.map +1 -1
  67. package/lib/esm/LoadingDots/LoadingDots.js +2 -2
  68. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts +2 -1
  69. package/lib/esm/LoadingIndicator/LoadingIndicator.d.ts.map +1 -1
  70. package/lib/esm/LoginModal/LoginModal.d.ts +2 -1
  71. package/lib/esm/LoginModal/LoginModal.d.ts.map +1 -1
  72. package/lib/esm/LoginModal/LoginModal.js +1 -1
  73. package/lib/esm/MarkdownEditor/MarkdownEditor.d.ts +1 -1
  74. package/lib/esm/MarkdownEditor/MarkdownEditor.d.ts.map +1 -1
  75. package/lib/esm/MarkdownEditor/MarkdownEditor.js +168 -80
  76. package/lib/esm/MarkdownEditor/markdownEditor.css +113 -5
  77. package/lib/esm/MoreOrLess/MoreOrLess.d.ts +1 -1
  78. package/lib/esm/MoreOrLess/MoreOrLess.d.ts.map +1 -1
  79. package/lib/esm/PaginatedList/PaginatedList.d.ts +2 -1
  80. package/lib/esm/PaginatedList/PaginatedList.d.ts.map +1 -1
  81. package/lib/esm/PaginatedList/PaginatedList.js +9 -0
  82. package/lib/esm/PaginationCompact/PaginationCompact.d.ts +2 -1
  83. package/lib/esm/PaginationCompact/PaginationCompact.d.ts.map +1 -1
  84. package/lib/esm/PaginationCompact/PaginationCompact.js +4 -4
  85. package/lib/esm/PaginationCompact/paginationCompact.css +1 -1
  86. package/lib/esm/PhoneInput/CountryData.d.ts.map +1 -1
  87. package/lib/esm/PhoneInput/CountryData.js +3 -2
  88. package/lib/esm/PhoneInput/FlagSvgs.d.ts +3 -0
  89. package/lib/esm/PhoneInput/FlagSvgs.d.ts.map +1 -0
  90. package/lib/esm/PhoneInput/FlagSvgs.js +2018 -0
  91. package/lib/esm/PhoneInput/PhoneInput.d.ts +14 -1
  92. package/lib/esm/PhoneInput/PhoneInput.d.ts.map +1 -1
  93. package/lib/esm/PhoneInput/PhoneInput.js +121 -120
  94. package/lib/esm/PhoneInput/PhoneInput.scss +15 -732
  95. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +2 -1
  96. package/lib/esm/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +1 -1
  97. package/lib/esm/ProgressBar/CircularProgressBar/Path.d.ts +1 -1
  98. package/lib/esm/ProgressBar/CircularProgressBar/Path.d.ts.map +1 -1
  99. package/lib/esm/ProgressBar/CircularProgressBar/types.d.ts +3 -4
  100. package/lib/esm/ProgressBar/CircularProgressBar/types.d.ts.map +1 -1
  101. package/lib/esm/ProgressBar/ProgressBar.d.ts +1 -1
  102. package/lib/esm/ProgressBar/ProgressBar.d.ts.map +1 -1
  103. package/lib/esm/PromisifyModal/PromisifyModal.d.ts +6 -9
  104. package/lib/esm/PromisifyModal/PromisifyModal.d.ts.map +1 -1
  105. package/lib/esm/PromisifyModal/PromisifyModal.js +21 -18
  106. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +2 -1
  107. package/lib/esm/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +1 -1
  108. package/lib/esm/SubscriptionAbuse/const.d.ts +2 -1
  109. package/lib/esm/SubscriptionAbuse/const.d.ts.map +1 -1
  110. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts +2 -1
  111. package/lib/esm/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +1 -1
  112. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts +2 -1
  113. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +1 -1
  114. package/lib/esm/SupportFeedbackForm/SupportFeedbackModal.js +14 -14
  115. package/lib/esm/Table/PFTable.d.ts +4 -3
  116. package/lib/esm/Table/PFTable.d.ts.map +1 -1
  117. package/lib/esm/Table/PFTable.js +6 -6
  118. package/lib/{cjs/Table/Table.d.ts → esm/Table/TableComponent.d.ts} +2 -2
  119. package/lib/esm/Table/TableComponent.d.ts.map +1 -0
  120. package/lib/esm/Table/{Table.js → TableComponent.js} +1 -1
  121. package/lib/esm/Table/TablePagination.d.ts +2 -1
  122. package/lib/esm/Table/TablePagination.d.ts.map +1 -1
  123. package/lib/esm/Table/TablePagination.js +4 -2
  124. package/lib/esm/Table/index.d.ts +1 -2
  125. package/lib/esm/Table/index.d.ts.map +1 -1
  126. package/lib/esm/Table/index.js +1 -2
  127. package/lib/esm/TagsSelector/TagsSelector.d.ts +14 -0
  128. package/lib/esm/TagsSelector/TagsSelector.d.ts.map +1 -0
  129. package/lib/esm/TagsSelector/TagsSelector.js +73 -0
  130. package/lib/esm/TagsSelector/index.d.ts +2 -0
  131. package/lib/esm/TagsSelector/index.d.ts.map +1 -0
  132. package/lib/esm/TagsSelector/index.js +1 -0
  133. package/lib/esm/TagsSelector/tagSelector.css +11 -0
  134. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts +2 -1
  135. package/lib/esm/TermsAndConditions/AcceptTermsModal.d.ts.map +1 -1
  136. package/lib/esm/TermsAndConditions/AcceptTermsModal.js +7 -6
  137. package/lib/esm/TextAreaAutosize/TextAreaAutosize.d.ts +1 -1
  138. package/lib/esm/TextAreaAutosize/TextAreaAutosize.d.ts.map +1 -1
  139. package/lib/esm/TextAreaResizable/TextAreaResizable.d.ts +1 -1
  140. package/lib/esm/TextAreaResizable/TextAreaResizable.d.ts.map +1 -1
  141. package/lib/esm/TextAreaResizable/TextAreaResizable.js +1 -1
  142. package/lib/esm/ToastNotification/ToastNotification.d.ts +1 -1
  143. package/lib/esm/ToastNotification/ToastNotification.d.ts.map +1 -1
  144. package/lib/esm/ToastNotification/ToastNotification.js +13 -5
  145. package/lib/esm/ToastNotification/toastNotification.css +1 -1
  146. package/lib/esm/TopContentSearch/TopContentSearch.d.ts +5 -1
  147. package/lib/esm/TopContentSearch/TopContentSearch.d.ts.map +1 -1
  148. package/lib/esm/TopContentSearch/TopContentSearch.js +20 -23
  149. package/lib/esm/ValueChangedIcon/ValueChangedIcon.d.ts +1 -1
  150. package/lib/esm/ValueChangedIcon/ValueChangedIcon.d.ts.map +1 -1
  151. package/lib/esm/helperFunctions/errorMessage.js +2 -2
  152. package/lib/esm/helperFunctions/errorMessage.scss +1 -1
  153. package/lib/esm/hooks/index.d.ts +4 -0
  154. package/lib/esm/hooks/index.d.ts.map +1 -1
  155. package/lib/esm/hooks/index.js +4 -0
  156. package/lib/esm/hooks/useBreakpoint.d.ts +2 -2
  157. package/lib/esm/hooks/useBreakpoint.d.ts.map +1 -1
  158. package/lib/esm/hooks/useBreakpoint.js +2 -0
  159. package/lib/esm/hooks/useCopyToClipboard.d.ts.map +1 -1
  160. package/lib/esm/hooks/useCopyToClipboard.js +1 -0
  161. package/lib/esm/hooks/useFetch.js +1 -2
  162. package/lib/esm/hooks/useLocalStorage.d.ts +2 -2
  163. package/lib/esm/hooks/useLocalStorage.d.ts.map +1 -1
  164. package/lib/esm/hooks/useSearchDocument.d.ts +7 -0
  165. package/lib/esm/hooks/useSearchDocument.d.ts.map +1 -0
  166. package/lib/esm/hooks/useSearchDocument.js +42 -0
  167. package/lib/esm/hooks/useSelectKeyboardNavigator.d.ts +13 -0
  168. package/lib/esm/hooks/useSelectKeyboardNavigator.d.ts.map +1 -0
  169. package/lib/esm/hooks/useSelectKeyboardNavigator.js +54 -0
  170. package/lib/esm/hooks/useSessionStorage.d.ts +5 -0
  171. package/lib/esm/hooks/useSessionStorage.d.ts.map +1 -0
  172. package/lib/esm/hooks/useSessionStorage.js +30 -0
  173. package/lib/esm/index.d.ts +1 -0
  174. package/lib/esm/index.d.ts.map +1 -1
  175. package/lib/esm/index.js +1 -0
  176. package/package.json +40 -46
  177. package/lib/cjs/AlertMessage/AlertMessage.css +0 -9
  178. package/lib/cjs/AlertMessage/AlertMessage.d.ts +0 -24
  179. package/lib/cjs/AlertMessage/AlertMessage.d.ts.map +0 -1
  180. package/lib/cjs/AlertMessage/AlertMessage.js +0 -30
  181. package/lib/cjs/AlertMessage/index.d.ts +0 -2
  182. package/lib/cjs/AlertMessage/index.d.ts.map +0 -1
  183. package/lib/cjs/AlertMessage/index.js +0 -14
  184. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts +0 -6
  185. package/lib/cjs/ConfirmationModal/ConfirmationContext.d.ts.map +0 -1
  186. package/lib/cjs/ConfirmationModal/ConfirmationContext.js +0 -53
  187. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +0 -29
  188. package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +0 -1
  189. package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +0 -28
  190. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts +0 -1
  191. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.d.ts.map +0 -1
  192. package/lib/cjs/ConfirmationModal/ConfirmationModal.stories.js +0 -36
  193. package/lib/cjs/ConfirmationModal/index.d.ts +0 -3
  194. package/lib/cjs/ConfirmationModal/index.d.ts.map +0 -1
  195. package/lib/cjs/ConfirmationModal/index.js +0 -14
  196. package/lib/cjs/CoverSpinner/CoverSpinner.css +0 -16
  197. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts +0 -3
  198. package/lib/cjs/CoverSpinner/CoverSpinner.d.ts.map +0 -1
  199. package/lib/cjs/CoverSpinner/CoverSpinner.js +0 -13
  200. package/lib/cjs/CoverSpinner/index.d.ts +0 -2
  201. package/lib/cjs/CoverSpinner/index.d.ts.map +0 -1
  202. package/lib/cjs/CoverSpinner/index.js +0 -13
  203. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts +0 -15
  204. package/lib/cjs/CustomContentLoader/CustomContentLoader.d.ts.map +0 -1
  205. package/lib/cjs/CustomContentLoader/CustomContentLoader.js +0 -62
  206. package/lib/cjs/CustomContentLoader/index.d.ts +0 -2
  207. package/lib/cjs/CustomContentLoader/index.d.ts.map +0 -1
  208. package/lib/cjs/CustomContentLoader/index.js +0 -13
  209. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts +0 -12
  210. package/lib/cjs/CustomTextInput/CustomTextInput.d.ts.map +0 -1
  211. package/lib/cjs/CustomTextInput/CustomTextInput.js +0 -48
  212. package/lib/cjs/CustomTextInput/index.d.ts +0 -2
  213. package/lib/cjs/CustomTextInput/index.d.ts.map +0 -1
  214. package/lib/cjs/CustomTextInput/index.js +0 -13
  215. package/lib/cjs/DropDownList/AsyncDropDownList.d.ts +0 -6
  216. package/lib/cjs/DropDownList/AsyncDropDownList.d.ts.map +0 -1
  217. package/lib/cjs/DropDownList/AsyncDropDownList.js +0 -10
  218. package/lib/cjs/DropDownList/DropDownList.d.ts +0 -8
  219. package/lib/cjs/DropDownList/DropDownList.d.ts.map +0 -1
  220. package/lib/cjs/DropDownList/DropDownList.js +0 -141
  221. package/lib/cjs/DropDownList/DropdownWrapper.d.ts +0 -16
  222. package/lib/cjs/DropDownList/DropdownWrapper.d.ts.map +0 -1
  223. package/lib/cjs/DropDownList/DropdownWrapper.js +0 -25
  224. package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts +0 -4
  225. package/lib/cjs/DropDownList/MultiSelectDropdownList.d.ts.map +0 -1
  226. package/lib/cjs/DropDownList/MultiSelectDropdownList.js +0 -7
  227. package/lib/cjs/DropDownList/Readme.md +0 -114
  228. package/lib/cjs/DropDownList/SearchableList.d.ts +0 -14
  229. package/lib/cjs/DropDownList/SearchableList.d.ts.map +0 -1
  230. package/lib/cjs/DropDownList/SearchableList.js +0 -104
  231. package/lib/cjs/DropDownList/SelectList.d.ts +0 -11
  232. package/lib/cjs/DropDownList/SelectList.d.ts.map +0 -1
  233. package/lib/cjs/DropDownList/SelectList.js +0 -41
  234. package/lib/cjs/DropDownList/async.d.ts +0 -9
  235. package/lib/cjs/DropDownList/async.d.ts.map +0 -1
  236. package/lib/cjs/DropDownList/async.js +0 -138
  237. package/lib/cjs/DropDownList/dropdownList.css +0 -54
  238. package/lib/cjs/DropDownList/dropdownUtils.d.ts +0 -5
  239. package/lib/cjs/DropDownList/dropdownUtils.d.ts.map +0 -1
  240. package/lib/cjs/DropDownList/dropdownUtils.js +0 -29
  241. package/lib/cjs/DropDownList/index.d.ts +0 -4
  242. package/lib/cjs/DropDownList/index.d.ts.map +0 -1
  243. package/lib/cjs/DropDownList/index.js +0 -15
  244. package/lib/cjs/DropDownList/types.d.ts +0 -54
  245. package/lib/cjs/DropDownList/types.d.ts.map +0 -1
  246. package/lib/cjs/DropDownList/types.js +0 -2
  247. package/lib/cjs/DropDownList/withMulti.d.ts +0 -5
  248. package/lib/cjs/DropDownList/withMulti.d.ts.map +0 -1
  249. package/lib/cjs/DropDownList/withMulti.js +0 -69
  250. package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts +0 -36
  251. package/lib/cjs/ErrorBoundary/ErrorBoundary.d.ts.map +0 -1
  252. package/lib/cjs/ErrorBoundary/ErrorBoundary.js +0 -62
  253. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts +0 -14
  254. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.d.ts.map +0 -1
  255. package/lib/cjs/ErrorBoundary/ErrorBoundaryFallbackComponent.js +0 -40
  256. package/lib/cjs/ErrorBoundary/index.d.ts +0 -2
  257. package/lib/cjs/ErrorBoundary/index.d.ts.map +0 -1
  258. package/lib/cjs/ErrorBoundary/index.js +0 -13
  259. package/lib/cjs/ErrorPages/Generic403.d.ts +0 -2
  260. package/lib/cjs/ErrorPages/Generic403.d.ts.map +0 -1
  261. package/lib/cjs/ErrorPages/Generic403.js +0 -14
  262. package/lib/cjs/ErrorPages/index.d.ts +0 -2
  263. package/lib/cjs/ErrorPages/index.d.ts.map +0 -1
  264. package/lib/cjs/ErrorPages/index.js +0 -13
  265. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts +0 -11
  266. package/lib/cjs/FeedbackForm/FeedbackForm.d.ts.map +0 -1
  267. package/lib/cjs/FeedbackForm/FeedbackForm.js +0 -140
  268. package/lib/cjs/FeedbackForm/index.d.ts +0 -2
  269. package/lib/cjs/FeedbackForm/index.d.ts.map +0 -1
  270. package/lib/cjs/FeedbackForm/index.js +0 -13
  271. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts +0 -30
  272. package/lib/cjs/Functional/CaseContactsSelectorExternal.d.ts.map +0 -1
  273. package/lib/cjs/Functional/CaseContactsSelectorExternal.js +0 -223
  274. package/lib/cjs/Functional/index.d.ts +0 -2
  275. package/lib/cjs/Functional/index.d.ts.map +0 -1
  276. package/lib/cjs/Functional/index.js +0 -13
  277. package/lib/cjs/InlineEdit/InlineEdit.d.ts +0 -37
  278. package/lib/cjs/InlineEdit/InlineEdit.d.ts.map +0 -1
  279. package/lib/cjs/InlineEdit/InlineEdit.js +0 -169
  280. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts +0 -41
  281. package/lib/cjs/InlineEdit/NewInlineEdit.d.ts.map +0 -1
  282. package/lib/cjs/InlineEdit/NewInlineEdit.js +0 -178
  283. package/lib/cjs/InlineEdit/index.d.ts +0 -3
  284. package/lib/cjs/InlineEdit/index.d.ts.map +0 -1
  285. package/lib/cjs/InlineEdit/index.js +0 -14
  286. package/lib/cjs/InlineEdit/inlineEdit.css +0 -29
  287. package/lib/cjs/InlineEdit/newInlineEdit.css +0 -44
  288. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts +0 -25
  289. package/lib/cjs/LanguageSelector/LanguageSelector.d.ts.map +0 -1
  290. package/lib/cjs/LanguageSelector/LanguageSelector.js +0 -61
  291. package/lib/cjs/LanguageSelector/index.d.ts +0 -2
  292. package/lib/cjs/LanguageSelector/index.d.ts.map +0 -1
  293. package/lib/cjs/LanguageSelector/index.js +0 -13
  294. package/lib/cjs/LanguageSelector/languageSelector.css +0 -5
  295. package/lib/cjs/LoadingDots/LoadingDots.css +0 -33
  296. package/lib/cjs/LoadingDots/LoadingDots.d.ts +0 -11
  297. package/lib/cjs/LoadingDots/LoadingDots.d.ts.map +0 -1
  298. package/lib/cjs/LoadingDots/LoadingDots.js +0 -25
  299. package/lib/cjs/LoadingDots/index.d.ts +0 -2
  300. package/lib/cjs/LoadingDots/index.d.ts.map +0 -1
  301. package/lib/cjs/LoadingDots/index.js +0 -14
  302. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts +0 -14
  303. package/lib/cjs/LoadingIndicator/LoadingIndicator.d.ts.map +0 -1
  304. package/lib/cjs/LoadingIndicator/LoadingIndicator.js +0 -25
  305. package/lib/cjs/LoadingIndicator/index.d.ts +0 -2
  306. package/lib/cjs/LoadingIndicator/index.d.ts.map +0 -1
  307. package/lib/cjs/LoadingIndicator/index.js +0 -13
  308. package/lib/cjs/LoadingIndicator/loadingIndicator.css +0 -79
  309. package/lib/cjs/LoginModal/LoginModal.d.ts +0 -14
  310. package/lib/cjs/LoginModal/LoginModal.d.ts.map +0 -1
  311. package/lib/cjs/LoginModal/LoginModal.js +0 -21
  312. package/lib/cjs/LoginModal/index.d.ts +0 -2
  313. package/lib/cjs/LoginModal/index.d.ts.map +0 -1
  314. package/lib/cjs/LoginModal/index.js +0 -13
  315. package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts +0 -45
  316. package/lib/cjs/MarkdownEditor/MarkdownEditor.d.ts.map +0 -1
  317. package/lib/cjs/MarkdownEditor/MarkdownEditor.js +0 -437
  318. package/lib/cjs/MarkdownEditor/index.d.ts +0 -2
  319. package/lib/cjs/MarkdownEditor/index.d.ts.map +0 -1
  320. package/lib/cjs/MarkdownEditor/index.js +0 -13
  321. package/lib/cjs/MarkdownEditor/markdownEditor.css +0 -111
  322. package/lib/cjs/MoreOrLess/MoreOrLess.d.ts +0 -13
  323. package/lib/cjs/MoreOrLess/MoreOrLess.d.ts.map +0 -1
  324. package/lib/cjs/MoreOrLess/MoreOrLess.js +0 -71
  325. package/lib/cjs/MoreOrLess/index.d.ts +0 -2
  326. package/lib/cjs/MoreOrLess/index.d.ts.map +0 -1
  327. package/lib/cjs/MoreOrLess/index.js +0 -13
  328. package/lib/cjs/PaginatedList/PaginatedList.d.ts +0 -18
  329. package/lib/cjs/PaginatedList/PaginatedList.d.ts.map +0 -1
  330. package/lib/cjs/PaginatedList/PaginatedList.js +0 -63
  331. package/lib/cjs/PaginatedList/index.d.ts +0 -2
  332. package/lib/cjs/PaginatedList/index.d.ts.map +0 -1
  333. package/lib/cjs/PaginatedList/index.js +0 -13
  334. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts +0 -9
  335. package/lib/cjs/PaginationCompact/PaginationCompact.d.ts.map +0 -1
  336. package/lib/cjs/PaginationCompact/PaginationCompact.js +0 -63
  337. package/lib/cjs/PaginationCompact/index.d.ts +0 -2
  338. package/lib/cjs/PaginationCompact/index.d.ts.map +0 -1
  339. package/lib/cjs/PaginationCompact/index.js +0 -13
  340. package/lib/cjs/PaginationCompact/paginationCompact.css +0 -5
  341. package/lib/cjs/PhoneInput/CountryData.d.ts +0 -3
  342. package/lib/cjs/PhoneInput/CountryData.d.ts.map +0 -1
  343. package/lib/cjs/PhoneInput/CountryData.js +0 -583
  344. package/lib/cjs/PhoneInput/PhoneInput.d.ts +0 -19
  345. package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +0 -1
  346. package/lib/cjs/PhoneInput/PhoneInput.js +0 -286
  347. package/lib/cjs/PhoneInput/PhoneInput.scss +0 -753
  348. package/lib/cjs/PhoneInput/flags.png +0 -0
  349. package/lib/cjs/PhoneInput/index.d.ts +0 -2
  350. package/lib/cjs/PhoneInput/index.d.ts.map +0 -1
  351. package/lib/cjs/PhoneInput/index.js +0 -13
  352. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts +0 -8
  353. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.d.ts.map +0 -1
  354. package/lib/cjs/ProgressBar/CircularProgressBar/CircularProgressBar.js +0 -68
  355. package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts +0 -12
  356. package/lib/cjs/ProgressBar/CircularProgressBar/Path.d.ts.map +0 -1
  357. package/lib/cjs/ProgressBar/CircularProgressBar/Path.js +0 -39
  358. package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts +0 -6
  359. package/lib/cjs/ProgressBar/CircularProgressBar/constants.d.ts.map +0 -1
  360. package/lib/cjs/ProgressBar/CircularProgressBar/constants.js +0 -8
  361. package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts +0 -2
  362. package/lib/cjs/ProgressBar/CircularProgressBar/index.d.ts.map +0 -1
  363. package/lib/cjs/ProgressBar/CircularProgressBar/index.js +0 -13
  364. package/lib/cjs/ProgressBar/CircularProgressBar/styles.css +0 -60
  365. package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts +0 -32
  366. package/lib/cjs/ProgressBar/CircularProgressBar/types.d.ts.map +0 -1
  367. package/lib/cjs/ProgressBar/CircularProgressBar/types.js +0 -2
  368. package/lib/cjs/ProgressBar/ProgressBar.d.ts +0 -15
  369. package/lib/cjs/ProgressBar/ProgressBar.d.ts.map +0 -1
  370. package/lib/cjs/ProgressBar/ProgressBar.js +0 -36
  371. package/lib/cjs/ProgressBar/index.d.ts +0 -3
  372. package/lib/cjs/ProgressBar/index.d.ts.map +0 -1
  373. package/lib/cjs/ProgressBar/index.js +0 -14
  374. package/lib/cjs/PromisifyModal/PromisifyModal.d.ts +0 -18
  375. package/lib/cjs/PromisifyModal/PromisifyModal.d.ts.map +0 -1
  376. package/lib/cjs/PromisifyModal/PromisifyModal.js +0 -40
  377. package/lib/cjs/PromisifyModal/index.d.ts +0 -2
  378. package/lib/cjs/PromisifyModal/index.d.ts.map +0 -1
  379. package/lib/cjs/PromisifyModal/index.js +0 -13
  380. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts +0 -7
  381. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.d.ts.map +0 -1
  382. package/lib/cjs/SubscriptionAbuse/SubscriptionAbuseModal.js +0 -20
  383. package/lib/cjs/SubscriptionAbuse/const.d.ts +0 -4
  384. package/lib/cjs/SubscriptionAbuse/const.d.ts.map +0 -1
  385. package/lib/cjs/SubscriptionAbuse/const.js +0 -15
  386. package/lib/cjs/SubscriptionAbuse/index.d.ts +0 -3
  387. package/lib/cjs/SubscriptionAbuse/index.d.ts.map +0 -1
  388. package/lib/cjs/SubscriptionAbuse/index.js +0 -14
  389. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts +0 -11
  390. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.d.ts.map +0 -1
  391. package/lib/cjs/SupportFeedbackForm/SupportFeedbackForm.js +0 -44
  392. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts +0 -10
  393. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.d.ts.map +0 -1
  394. package/lib/cjs/SupportFeedbackForm/SupportFeedbackModal.js +0 -178
  395. package/lib/cjs/SupportFeedbackForm/index.d.ts +0 -3
  396. package/lib/cjs/SupportFeedbackForm/index.d.ts.map +0 -1
  397. package/lib/cjs/SupportFeedbackForm/index.js +0 -14
  398. package/lib/cjs/Table/PFTable.d.ts +0 -39
  399. package/lib/cjs/Table/PFTable.d.ts.map +0 -1
  400. package/lib/cjs/Table/PFTable.js +0 -204
  401. package/lib/cjs/Table/README.md +0 -65
  402. package/lib/cjs/Table/Table.d.ts.map +0 -1
  403. package/lib/cjs/Table/Table.js +0 -38
  404. package/lib/cjs/Table/TableColumnSelector.d.ts +0 -7
  405. package/lib/cjs/Table/TableColumnSelector.d.ts.map +0 -1
  406. package/lib/cjs/Table/TableColumnSelector.js +0 -34
  407. package/lib/cjs/Table/TablePagination.d.ts +0 -18
  408. package/lib/cjs/Table/TablePagination.d.ts.map +0 -1
  409. package/lib/cjs/Table/TablePagination.js +0 -44
  410. package/lib/cjs/Table/TableProvider.d.ts +0 -15
  411. package/lib/cjs/Table/TableProvider.d.ts.map +0 -1
  412. package/lib/cjs/Table/TableProvider.js +0 -25
  413. package/lib/cjs/Table/columnSelector.css +0 -37
  414. package/lib/cjs/Table/index.d.ts +0 -5
  415. package/lib/cjs/Table/index.d.ts.map +0 -1
  416. package/lib/cjs/Table/index.js +0 -16
  417. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts +0 -14
  418. package/lib/cjs/TermsAndConditions/AcceptTermsModal.d.ts.map +0 -1
  419. package/lib/cjs/TermsAndConditions/AcceptTermsModal.js +0 -116
  420. package/lib/cjs/TermsAndConditions/index.d.ts +0 -2
  421. package/lib/cjs/TermsAndConditions/index.d.ts.map +0 -1
  422. package/lib/cjs/TermsAndConditions/index.js +0 -13
  423. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts +0 -8
  424. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.d.ts.map +0 -1
  425. package/lib/cjs/TextAreaAutosize/TextAreaAutosize.js +0 -136
  426. package/lib/cjs/TextAreaAutosize/index.d.ts +0 -2
  427. package/lib/cjs/TextAreaAutosize/index.d.ts.map +0 -1
  428. package/lib/cjs/TextAreaAutosize/index.js +0 -13
  429. package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts +0 -20
  430. package/lib/cjs/TextAreaResizable/TextAreaResizable.d.ts.map +0 -1
  431. package/lib/cjs/TextAreaResizable/TextAreaResizable.js +0 -56
  432. package/lib/cjs/TextAreaResizable/index.d.ts +0 -2
  433. package/lib/cjs/TextAreaResizable/index.d.ts.map +0 -1
  434. package/lib/cjs/TextAreaResizable/index.js +0 -13
  435. package/lib/cjs/ToastNotification/ToastNotification.d.ts +0 -28
  436. package/lib/cjs/ToastNotification/ToastNotification.d.ts.map +0 -1
  437. package/lib/cjs/ToastNotification/ToastNotification.js +0 -63
  438. package/lib/cjs/ToastNotification/index.d.ts +0 -2
  439. package/lib/cjs/ToastNotification/index.d.ts.map +0 -1
  440. package/lib/cjs/ToastNotification/index.js +0 -13
  441. package/lib/cjs/ToastNotification/toastNotification.css +0 -22
  442. package/lib/cjs/TopContentSearch/TopContentSearch.d.ts +0 -14
  443. package/lib/cjs/TopContentSearch/TopContentSearch.d.ts.map +0 -1
  444. package/lib/cjs/TopContentSearch/TopContentSearch.js +0 -138
  445. package/lib/cjs/TopContentSearch/index.d.ts +0 -2
  446. package/lib/cjs/TopContentSearch/index.d.ts.map +0 -1
  447. package/lib/cjs/TopContentSearch/index.js +0 -13
  448. package/lib/cjs/TopContentSearch/topContentSearch.scss +0 -22
  449. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts +0 -14
  450. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.d.ts.map +0 -1
  451. package/lib/cjs/ValueChangedIcon/ValueChangedIcon.js +0 -76
  452. package/lib/cjs/ValueChangedIcon/index.d.ts +0 -2
  453. package/lib/cjs/ValueChangedIcon/index.d.ts.map +0 -1
  454. package/lib/cjs/ValueChangedIcon/index.js +0 -13
  455. package/lib/cjs/helperFunctions/errorMessage.d.ts +0 -12
  456. package/lib/cjs/helperFunctions/errorMessage.d.ts.map +0 -1
  457. package/lib/cjs/helperFunctions/errorMessage.js +0 -95
  458. package/lib/cjs/helperFunctions/errorMessage.scss +0 -3
  459. package/lib/cjs/helperFunctions/index.d.ts +0 -2
  460. package/lib/cjs/helperFunctions/index.d.ts.map +0 -1
  461. package/lib/cjs/helperFunctions/index.js +0 -13
  462. package/lib/cjs/hooks/index.d.ts +0 -14
  463. package/lib/cjs/hooks/index.d.ts.map +0 -1
  464. package/lib/cjs/hooks/index.js +0 -25
  465. package/lib/cjs/hooks/useBreakpoint.d.ts +0 -12
  466. package/lib/cjs/hooks/useBreakpoint.d.ts.map +0 -1
  467. package/lib/cjs/hooks/useBreakpoint.js +0 -86
  468. package/lib/cjs/hooks/useCopyToClipboard.d.ts +0 -6
  469. package/lib/cjs/hooks/useCopyToClipboard.d.ts.map +0 -1
  470. package/lib/cjs/hooks/useCopyToClipboard.js +0 -39
  471. package/lib/cjs/hooks/useDebounce.d.ts +0 -9
  472. package/lib/cjs/hooks/useDebounce.d.ts.map +0 -1
  473. package/lib/cjs/hooks/useDebounce.js +0 -40
  474. package/lib/cjs/hooks/useFetch.d.ts +0 -20
  475. package/lib/cjs/hooks/useFetch.d.ts.map +0 -1
  476. package/lib/cjs/hooks/useFetch.js +0 -71
  477. package/lib/cjs/hooks/useForceUpdate.d.ts +0 -18
  478. package/lib/cjs/hooks/useForceUpdate.d.ts.map +0 -1
  479. package/lib/cjs/hooks/useForceUpdate.js +0 -28
  480. package/lib/cjs/hooks/useForkRef.d.ts +0 -2
  481. package/lib/cjs/hooks/useForkRef.d.ts.map +0 -1
  482. package/lib/cjs/hooks/useForkRef.js +0 -29
  483. package/lib/cjs/hooks/useIsMounted.d.ts +0 -3
  484. package/lib/cjs/hooks/useIsMounted.d.ts.map +0 -1
  485. package/lib/cjs/hooks/useIsMounted.js +0 -18
  486. package/lib/cjs/hooks/useLRUCache.d.ts +0 -8
  487. package/lib/cjs/hooks/useLRUCache.d.ts.map +0 -1
  488. package/lib/cjs/hooks/useLRUCache.js +0 -28
  489. package/lib/cjs/hooks/useLocalStorage.d.ts +0 -5
  490. package/lib/cjs/hooks/useLocalStorage.d.ts.map +0 -1
  491. package/lib/cjs/hooks/useLocalStorage.js +0 -39
  492. package/lib/cjs/hooks/useOnScreen.d.ts +0 -2
  493. package/lib/cjs/hooks/useOnScreen.d.ts.map +0 -1
  494. package/lib/cjs/hooks/useOnScreen.js +0 -18
  495. package/lib/cjs/hooks/usePolling.d.ts +0 -2
  496. package/lib/cjs/hooks/usePolling.d.ts.map +0 -1
  497. package/lib/cjs/hooks/usePolling.js +0 -19
  498. package/lib/cjs/hooks/usePrevious.d.ts +0 -2
  499. package/lib/cjs/hooks/usePrevious.d.ts.map +0 -1
  500. package/lib/cjs/hooks/usePrevious.js +0 -12
  501. package/lib/cjs/hooks/useTitle.d.ts +0 -2
  502. package/lib/cjs/hooks/useTitle.d.ts.map +0 -1
  503. package/lib/cjs/hooks/useTitle.js +0 -14
  504. package/lib/cjs/hooks/useUndo.d.ts +0 -22
  505. package/lib/cjs/hooks/useUndo.d.ts.map +0 -1
  506. package/lib/cjs/hooks/useUndo.js +0 -76
  507. package/lib/cjs/index.d.ts +0 -34
  508. package/lib/cjs/index.d.ts.map +0 -1
  509. package/lib/cjs/index.js +0 -45
  510. package/lib/esm/PhoneInput/flags.png +0 -0
  511. package/lib/esm/Table/Table.d.ts +0 -11
  512. package/lib/esm/Table/Table.d.ts.map +0 -1
  513. package/lib/esm/Table/TableColumnSelector.d.ts +0 -7
  514. package/lib/esm/Table/TableColumnSelector.d.ts.map +0 -1
  515. package/lib/esm/Table/TableColumnSelector.js +0 -27
  516. package/lib/esm/Table/columnSelector.css +0 -37
@@ -11,8 +11,10 @@ var __rest = (this && this.__rest) || function (s, e) {
11
11
  };
12
12
  import './markdownEditor.css';
13
13
  import { parseCommentMarkdown } from '@cee-eng/ui-toolkit';
14
- import { Button, ButtonVariant, Dropdown, DropdownItem, DropdownSeparator, DropdownToggle, Flex, FlexItem, Spinner, Text, TextVariants, Toolbar, ToolbarGroup, ToolbarItem, } from '@patternfly/react-core';
14
+ import { Button, ButtonVariant, DrilldownMenu, Flex, FlexItem, Menu, MenuContainer, MenuContent, MenuItem, MenuList, MenuToggle, Spinner, Text, TextVariants, Toolbar, ToolbarGroup, ToolbarItem, } from '@patternfly/react-core';
15
+ import { Dropdown, DropdownItem, DropdownSeparator, DropdownToggle } from '@patternfly/react-core/deprecated';
15
16
  import CodeIcon from '@patternfly/react-icons/dist/js/icons/code-icon';
17
+ import EllipsisVIcon from '@patternfly/react-icons/dist/js/icons/ellipsis-v-icon';
16
18
  import ImageIcon from '@patternfly/react-icons/dist/js/icons/image-icon';
17
19
  import LinkIcon from '@patternfly/react-icons/dist/js/icons/link-icon';
18
20
  import ListUlIcon from '@patternfly/react-icons/dist/js/icons/list-ul-icon';
@@ -52,9 +54,9 @@ const defaultProps = {
52
54
  };
53
55
  function MarkdownEditor(props) {
54
56
  const { t } = useTranslation();
55
- const { hidePreviewText, showPreviewText, mdPlaceholder, plainTextPlaceholder, textAreaClassName, bindTextArea, markedownOptions, allowEmoji, hideHeadingOptions, rows, showMarkdownPlainTextToggle, editorMode, className, charLimit, minCharsForCounter, id, onCommentExceedCharsLimit, fileSelectorProps: { onClipboardPaste, onFileDelete, onFileSelect, isSupportedFile, showFileSelectorInToolbar = false, isUploadingFile = false, filesList = [], attachFileBtn, } } = props, textAreaProps = __rest(props, ["hidePreviewText", "showPreviewText", "mdPlaceholder", "plainTextPlaceholder", "textAreaClassName", "bindTextArea", "markedownOptions", "allowEmoji", "hideHeadingOptions", "rows", "showMarkdownPlainTextToggle", "editorMode", "className", "charLimit", "minCharsForCounter", "id", "onCommentExceedCharsLimit", "fileSelectorProps"]);
57
+ const { hidePreviewText, showPreviewText, mdPlaceholder, plainTextPlaceholder, textAreaClassName, bindTextArea, markedownOptions, allowEmoji, hideHeadingOptions, rows, showMarkdownPlainTextToggle, editorMode, className, charLimit, minCharsForCounter, id, value, onCommentExceedCharsLimit, fileSelectorProps: { onClipboardPaste, onFileDelete, onFileSelect, isSupportedFile, showFileSelectorInToolbar = false, isUploadingFile = false, filesList = [], attachFileBtn, } } = props, textAreaProps = __rest(props, ["hidePreviewText", "showPreviewText", "mdPlaceholder", "plainTextPlaceholder", "textAreaClassName", "bindTextArea", "markedownOptions", "allowEmoji", "hideHeadingOptions", "rows", "showMarkdownPlainTextToggle", "editorMode", "className", "charLimit", "minCharsForCounter", "id", "value", "onCommentExceedCharsLimit", "fileSelectorProps"]);
56
58
  const [isPreview, setIsPreview] = useState(false);
57
- const [mdValue, setMdValue] = useState(props.value);
59
+ const [mdValue, setMdValue] = useState(props.value || '');
58
60
  const previousFileList = usePrevious(filesList);
59
61
  const [isPlainModeEnabled, setIsPlainModeEnabled] = useState(showMarkdownPlainTextToggle && props.editorMode === EditorMode.PLAIN ? true : false);
60
62
  const textareaRef = useRef(null);
@@ -114,27 +116,34 @@ function MarkdownEditor(props) {
114
116
  event.preventDefault();
115
117
  onClipboardPaste(files);
116
118
  };
117
- const getFileSelectorList = () => {
119
+ const getFileSelectorList = (isMobile = false) => {
118
120
  const filesAsDropdownItems = filesList.map((file) => {
119
- return (React.createElement(DropdownItem, { key: file.id, onClick: () => {
120
- onFileInsert(file);
121
- } },
122
- React.createElement(Flex, { flexWrap: { default: 'nowrap' } },
123
- React.createElement(FlexItem, null,
124
- React.createElement(Text, { component: TextVariants.small }, file.fileName)),
125
- onFileDelete && (React.createElement(FlexItem, { className: "pf-u-ml-auto" },
126
- React.createElement(Button, { variant: ButtonVariant.plain, onClick: (event) => {
127
- onFileSelectToggle(false);
128
- onFileDelete(file);
129
- event.stopPropagation();
130
- } },
131
- React.createElement(TrashIcon, { color: "#c9190b" })))))));
121
+ return (React.createElement(React.Fragment, null,
122
+ React.createElement(DropdownItem, { key: file.id, onClick: () => {
123
+ onFileInsert(file);
124
+ } },
125
+ React.createElement(Flex, { flexWrap: { default: 'nowrap' } },
126
+ React.createElement(FlexItem, null,
127
+ React.createElement(Text, { component: TextVariants.small }, file.fileName)),
128
+ onFileDelete && (React.createElement(FlexItem, { className: "pf-v5-u-ml-auto" },
129
+ React.createElement(Button, { variant: ButtonVariant.plain, onClick: (event) => {
130
+ onFileSelectToggle(false);
131
+ onFileDelete(file);
132
+ event.stopPropagation();
133
+ } },
134
+ React.createElement(TrashIcon, { color: "#c9190b" }))))))));
132
135
  });
133
- return [
134
- ...filesAsDropdownItems,
135
- ...(filesAsDropdownItems.length > 0 ? [React.createElement(DropdownSeparator, { key: "separator" })] : []),
136
- React.createElement(DropdownItem, { key: "separated link", component: attachFileBtn }),
137
- ];
136
+ return isMobile
137
+ ? [
138
+ React.createElement(DropdownItem, { key: "separated link", component: attachFileBtn }),
139
+ ...(filesAsDropdownItems.length > 0 ? [React.createElement(DropdownSeparator, { key: "separator" })] : []),
140
+ ...filesAsDropdownItems,
141
+ ]
142
+ : [
143
+ ...filesAsDropdownItems,
144
+ ...(filesAsDropdownItems.length > 0 ? [React.createElement(DropdownSeparator, { key: "separator" })] : []),
145
+ React.createElement(DropdownItem, { key: "separated link", component: attachFileBtn }),
146
+ ];
138
147
  };
139
148
  const bindTextAreaRef = (ref) => {
140
149
  textareaRef.current = ref;
@@ -148,16 +157,26 @@ function MarkdownEditor(props) {
148
157
  const mode = isPlainMode ? EditorMode.PLAIN : EditorMode.MARKDOWN;
149
158
  props.onChange(mdValue, mode);
150
159
  };
160
+ // Add this useEffect to properly initialize the mdValue when component mounts
151
161
  useEffect(() => {
152
- if (mdValue !== props.value) {
153
- setMdValue(props.value);
162
+ setMdValue(props.value || '');
163
+ }, [props.value]);
164
+ // Update the existing useEffect to handle both value and editorMode changes
165
+ useEffect(() => {
166
+ if (value !== mdValue) {
167
+ setMdValue(value);
154
168
  }
155
- }, [mdValue, props.value]);
169
+ // eslint-disable-next-line react-hooks/exhaustive-deps
170
+ }, [value]);
156
171
  useEffect(() => {
157
- const isPlainMode = props.editorMode === EditorMode.PLAIN ? true : false;
158
- if (isPlainMode === isPlainModeEnabled)
159
- return;
160
- onModeChange(isPlainMode);
172
+ const isPlainMode = props.editorMode === EditorMode.PLAIN;
173
+ if (isPlainMode !== isPlainModeEnabled) {
174
+ setIsPlainModeEnabled(isPlainMode);
175
+ isPlainModeEnabledRef.current = isPlainMode;
176
+ if (isPlainMode && isPreview) {
177
+ setIsPreview(false);
178
+ }
179
+ }
161
180
  // eslint-disable-next-line react-hooks/exhaustive-deps
162
181
  }, [props.editorMode]);
163
182
  useEffect(() => {
@@ -174,8 +193,8 @@ function MarkdownEditor(props) {
174
193
  }, [mdValue], 500);
175
194
  const onValueChangeLocal = (text) => {
176
195
  const mode = showMarkdownPlainTextToggle && isPlainModeEnabled ? EditorMode.PLAIN : EditorMode.MARKDOWN;
177
- props.onChange(text, mode);
178
196
  setMdValue(text);
197
+ props.onChange(text, mode);
179
198
  };
180
199
  const textChanged = (event) => {
181
200
  let value = event.target.value;
@@ -183,7 +202,12 @@ function MarkdownEditor(props) {
183
202
  value = value.replace(emojiPattern, '').trim();
184
203
  }
185
204
  onValueChangeLocal(value);
186
- charLimit - value.length < 0 ? props.onCommentExceedCharsLimit(true) : props.onCommentExceedCharsLimit(false);
205
+ // Add a null check before calling onCommentExceedCharsLimit
206
+ if (props.onCommentExceedCharsLimit) {
207
+ charLimit - value.length < 0
208
+ ? props.onCommentExceedCharsLimit(true)
209
+ : props.onCommentExceedCharsLimit(false);
210
+ }
187
211
  };
188
212
  const hasSelection = () => {
189
213
  return textareaRef.current.selectionStart !== textareaRef.current.selectionEnd;
@@ -203,11 +227,12 @@ function MarkdownEditor(props) {
203
227
  templateEnd +
204
228
  trailingWhitespace +
205
229
  currentText.substring(posEnd);
206
- onValueChangeLocal(newText);
230
+ // Set the value in the textarea
207
231
  textareaRef.current.value = newText;
208
232
  textareaRef.current.selectionStart = posEnd + templateStart.length + templateEnd.length;
209
233
  textareaRef.current.selectionEnd = textareaRef.current.selectionStart;
210
234
  textareaRef.current.focus();
235
+ // Call onValueChangeLocal only once
211
236
  onValueChangeLocal(newText);
212
237
  };
213
238
  const wrapBasedOnNewLines = () => {
@@ -359,54 +384,117 @@ function MarkdownEditor(props) {
359
384
  // editor is disabled and preview is true -> set preview to false
360
385
  props.disabled && isPreview && setIsPreview(false);
361
386
  const disablePreviewButton = mdValue === '';
362
- return (React.createElement("div", { className: `markdown-editor-container ${props.className}`, id: props.id, "data-tracking-id": "md-editor-container", onDrop: onDrop, onPaste: onPaste },
363
- React.createElement("div", { className: "toolbar-container border-bottom" }, !isPlainModeEnabled && (React.createElement(Toolbar, { className: "pf-l-flex" },
364
- React.createElement(ToolbarGroup, { "data-tracking-id": "md-editor-toolbar", className: "markdown-toolbar-left-section pf-m-wrap" },
365
- React.createElement(Button, { variant: ButtonVariant.plain, tabIndex: -1, isDisabled: props.disabled || isPreview, onClick: bold, "data-tracking-id": "md-editor-toolbar-b", title: "Bold" }, "B"),
366
- React.createElement(Button, { variant: ButtonVariant.plain, tabIndex: -1, isDisabled: props.disabled || isPreview, onClick: italic, "data-tracking-id": "md-editor-toolbar-i", title: "Italic" }, "I"),
367
- React.createElement("div", { className: "btn-group-separator" }),
368
- !props.hideHeadingOptions && (React.createElement(React.Fragment, null,
369
- React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: h1, title: "Heading 1", "data-tracking-id": "md-editor-toolbar-h1" }, "H1"),
370
- React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: h2, title: "Heading 2", "data-tracking-id": "md-editor-toolbar-h2" }, "H2"),
371
- React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: h3, title: "Heading 3", "data-tracking-id": "md-editor-toolbar-h3" }, "H3"),
372
- React.createElement("div", { className: "btn-group-separator" }))),
373
- React.createElement(Button, { tabIndex: -1, isDisabled: props.disabled || isPreview, variant: ButtonVariant.plain, onClick: list, title: "Bullet List", "data-tracking-id": "md-editor-toolbar-bul-list" },
374
- React.createElement(ListUlIcon, null)),
375
- React.createElement("div", { className: "btn-group-separator" }),
376
- React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: link, title: "Link", "data-tracking-id": "md-editor-toolbar-link" },
377
- React.createElement(LinkIcon, null)),
378
- React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: quote, title: "Quote", "data-tracking-id": "md-editor-toolbar-quote" },
379
- React.createElement(QuoteRightIcon, null)),
380
- React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: code, title: "Code", "data-tracking-id": "md-editor-toolbar-code" },
381
- React.createElement(CodeIcon, null)),
382
- showFileSelectorInToolbar && (React.createElement(Dropdown, { onSelect: onFileSelectLocal, id: "md-editor-toolbar-file-selector", toggle: React.createElement(DropdownToggle, { onToggle: onFileSelectToggle, isDisabled: props.disabled || isPreview },
383
- React.createElement(ImageIcon, null)), dropdownItems: getFileSelectorList(), tabIndex: -1, isPlain: true, menuAppendTo: document.body, isOpen: isFileSelectorOpen, "data-tracking-id": "md-editor-toolbar-file-selector" }))),
384
- React.createElement(ToolbarItem, null,
385
- React.createElement("a", { className: "pf-c-button pf-m-link pf-m-inline markdown-guidance", rel: "noopener noreferrer", target: "_blank", href: "/articles/4729621", "data-tracking-id": "md-guidance" },
386
- React.createElement(Trans, null, "Markdown guidance")))))),
387
- React.createElement("div", { className: "markdown-content" }, !isPreview ? (React.createElement("textarea", Object.assign({}, textAreaProps, { onKeyDown: keydown, placeholder: isPlainModeEnabled ? t(props.plainTextPlaceholder) : t(props.mdPlaceholder), ref: bindTextAreaRef, className: cx('form-control', 'markdown-text-area', props.textAreaClassName, 'textArea'), value: mdValue, onChange: textChanged, rows: props.rows || contentRows, style: { height: '313px' } }))) : (React.createElement("div", { className: "markdown-preview-placeholder", style: { height: '313px' } },
388
- React.createElement("div", { className: "markdown-preview", style: { maxHeight: '313px' } },
389
- React.createElement("div", { dangerouslySetInnerHTML: {
390
- __html: DOMPurify.sanitize(previewMDText(mdValue)),
391
- } }))))),
392
- React.createElement("div", null, props.showMarkdownPlainTextToggle && (React.createElement("div", { className: `markdown-toggle-toolbar pf-l-flex` },
393
- React.createElement("span", { className: "markdown-toolbar-left-section" },
394
- !isPlainModeEnabled && (React.createElement(Button, { className: "markdown-preview-btn", tabIndex: -1, variant: ButtonVariant.link, onClick: preview, title: "Show preview", "data-tracking-id": `md-preview-${isPreview ? 'hide' : 'show'}`, isDisabled: disablePreviewButton }, isPreview ? (React.createElement("span", null,
395
- " ",
396
- t(hidePreviewText))) : (React.createElement("span", null,
397
- " ",
398
- t(showPreviewText))))),
399
- isUploadingFile && (React.createElement(React.Fragment, null,
400
- React.createElement(Trans, null,
401
- React.createElement("small", { className: "pf-u-pl-md" },
402
- React.createElement(Trans, null, "Uploading File"))),
403
- React.createElement(Spinner, { className: "pf-u-ml-sm", size: "md" }))),
404
- mdValue.length > props.minCharsForCounter && getCharCountText(mdValue)),
405
- React.createElement("span", null,
406
- React.createElement(Button, { variant: "plain", className: isPlainModeEnabled ? 'markdown-active-mode' : '', onClick: () => onModeChange(true), isDisabled: isPlainModeEnabled || isUploadingFile, "data-tracking-id": "md-editor-plaintext" },
407
- React.createElement(Trans, null, "Plain text")),
408
- React.createElement(Button, { variant: "plain", className: !isPlainModeEnabled ? 'markdown-active-mode' : '', onClick: () => onModeChange(false), isDisabled: !isPlainModeEnabled, "data-tracking-id": "md-editor-md" },
409
- React.createElement(Trans, null, "Markdown"))))))));
387
+ const [isHeadingDropdownOpen, setIsHeadingDropdownOpen] = React.useState(false);
388
+ const onToggle = (_event, isOpen) => {
389
+ setIsHeadingDropdownOpen(isOpen);
390
+ };
391
+ const onHeadingSelect = () => {
392
+ setIsHeadingDropdownOpen(false);
393
+ };
394
+ const [isDrillMenuOpen, setIsDrillMenuOpen] = React.useState(false);
395
+ const [activeMenu, setActiveMenu] = useState('toolsKebabMenu');
396
+ const [menuDrilledIn, setMenuDrilledIn] = useState([]);
397
+ const [drilldownPath, setDrilldownPath] = useState([]);
398
+ const [menuHeights, setMenuHeights] = useState({});
399
+ const toggleRef = useRef(null);
400
+ const drillMenuRef = useRef(null);
401
+ const onToggleClick = (e) => {
402
+ e.stopPropagation();
403
+ setIsDrillMenuOpen(!isDrillMenuOpen);
404
+ setMenuDrilledIn([]);
405
+ setDrilldownPath([]);
406
+ setActiveMenu('toolsKebabMenu');
407
+ };
408
+ const drillIn = (_event, fromMenuId, toMenuId, pathId) => {
409
+ setMenuDrilledIn([...menuDrilledIn, fromMenuId]);
410
+ setDrilldownPath([...drilldownPath, pathId]);
411
+ setActiveMenu(toMenuId);
412
+ };
413
+ const drillOut = (_event, toMenuId) => {
414
+ setMenuDrilledIn(menuDrilledIn.slice(0, menuDrilledIn.length - 1));
415
+ setDrilldownPath(drilldownPath.slice(0, drilldownPath.length - 1));
416
+ setActiveMenu(toMenuId);
417
+ };
418
+ const setHeight = (menuId, height) => {
419
+ if (!menuHeights[menuId] || (menuId !== 'toolsKebabMenu' && menuHeights[menuId] !== height)) {
420
+ setMenuHeights(Object.assign(Object.assign({}, menuHeights), { [menuId]: height }));
421
+ }
422
+ };
423
+ const markdownGuidanceBtn = (React.createElement("a", { className: "pf-v5-c-button pf-m-link pf-m-inline markdown-guidance", rel: "noopener noreferrer", target: "_blank", href: "/articles/4729621", "data-tracking-id": "md-guidance" },
424
+ React.createElement(Trans, null, "Markdown guidance")));
425
+ return (React.createElement("div", { id: "markdown-editor" },
426
+ !isPlainModeEnabled && React.createElement("div", { className: "markdown-guidance-container" }, markdownGuidanceBtn),
427
+ React.createElement("div", { className: `markdown-editor-container ${props.className}`, id: props.id, "data-tracking-id": "md-editor-container", onDrop: onDrop, onPaste: onPaste },
428
+ React.createElement("div", { className: "toolbar-container border-bottom" }, !isPlainModeEnabled && (React.createElement(React.Fragment, null,
429
+ React.createElement(Toolbar, { className: "desktop-markdown-toolbar pf-v5-l-flex" },
430
+ React.createElement(ToolbarGroup, { "data-tracking-id": "md-editor-toolbar", className: "markdown-toolbar-left-section pf-m-wrap" },
431
+ React.createElement(Button, { variant: ButtonVariant.plain, tabIndex: -1, isDisabled: props.disabled || isPreview, onClick: bold, "data-tracking-id": "md-editor-toolbar-b", title: "Bold" }, "B"),
432
+ React.createElement(Button, { variant: ButtonVariant.plain, tabIndex: -1, isDisabled: props.disabled || isPreview, onClick: italic, "data-tracking-id": "md-editor-toolbar-i", title: "Italic" }, "I"),
433
+ React.createElement("div", { className: "btn-group-separator" }),
434
+ !props.hideHeadingOptions && (React.createElement(React.Fragment, null,
435
+ React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: h1, title: "Heading 1", "data-tracking-id": "md-editor-toolbar-h1" }, "H1"),
436
+ React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: h2, title: "Heading 2", "data-tracking-id": "md-editor-toolbar-h2" }, "H2"),
437
+ React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: h3, title: "Heading 3", "data-tracking-id": "md-editor-toolbar-h3" }, "H3"),
438
+ React.createElement("div", { className: "btn-group-separator" }))),
439
+ React.createElement(Button, { tabIndex: -1, isDisabled: props.disabled || isPreview, variant: ButtonVariant.plain, onClick: list, title: "Bullet List", "data-tracking-id": "md-editor-toolbar-bul-list" },
440
+ React.createElement(ListUlIcon, null)),
441
+ React.createElement("div", { className: "btn-group-separator" }),
442
+ React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: link, title: "Link", "data-tracking-id": "md-editor-toolbar-link" },
443
+ React.createElement(LinkIcon, null)),
444
+ React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: quote, title: "Quote", "data-tracking-id": "md-editor-toolbar-quote" },
445
+ React.createElement(QuoteRightIcon, null)),
446
+ React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: code, title: "Code", "data-tracking-id": "md-editor-toolbar-code" },
447
+ React.createElement(CodeIcon, null)),
448
+ showFileSelectorInToolbar && (React.createElement(Dropdown, { onSelect: onFileSelectLocal, id: "md-editor-toolbar-file-selector", toggle: React.createElement(DropdownToggle, { "aria-label": "file selector", onToggle: (_event, isOpen) => onFileSelectToggle(isOpen), isDisabled: props.disabled || isPreview },
449
+ React.createElement(ImageIcon, null)), dropdownItems: getFileSelectorList(), tabIndex: -1, isPlain: true, menuAppendTo: document.body, isOpen: isFileSelectorOpen, "data-tracking-id": "md-editor-toolbar-file-selector" }))),
450
+ React.createElement(ToolbarItem, null, markdownGuidanceBtn)),
451
+ React.createElement(Toolbar, { className: "mobile-markdown-toolbar" },
452
+ React.createElement("div", { className: "mobile-markdown-toolbar" },
453
+ React.createElement(ToolbarGroup, { spaceItems: { default: 'spaceItemsNone' }, "data-tracking-id": "mobile-md-editor-toolbar", className: "markdown-toolbar-left-section" },
454
+ !props.hideHeadingOptions && (React.createElement(Dropdown, { isText: true, isPlain: true, onSelect: onHeadingSelect, toggle: React.createElement(DropdownToggle, { id: "heading-selector", onToggle: onToggle }, "Heading"), isOpen: isHeadingDropdownOpen, dropdownItems: [
455
+ React.createElement(DropdownItem, { key: "heading-1", tabIndex: -1, isDisabled: props.disabled || isPreview, onClick: h1, title: "Heading 1", "data-tracking-id": "mobile-md-editor-toolbar-h1" }, "Heading 1"),
456
+ React.createElement(DropdownItem, { tabIndex: -1, isDisabled: props.disabled || isPreview, onClick: h2, title: "Heading 2", "data-tracking-id": "mobile-md-editor-toolbar-h2" }, "Heading 2"),
457
+ React.createElement(DropdownItem, { tabIndex: -1, isDisabled: props.disabled || isPreview, onClick: h3, title: "Heading 3", "data-tracking-id": "mobile-md-editor-toolbar-h3" }, "Heading 3"),
458
+ ] })),
459
+ React.createElement(Button, { variant: ButtonVariant.plain, tabIndex: -1, isDisabled: props.disabled || isPreview, onClick: bold, "data-tracking-id": "mobile-md-editor-toolbar-b", title: "Bold", className: "mobile-markdown-tool-item" }, "B"),
460
+ React.createElement(Button, { variant: ButtonVariant.plain, tabIndex: -1, isDisabled: props.disabled || isPreview, onClick: italic, "data-tracking-id": "mobile-md-editor-toolbar-i", title: "Italic", className: "mobile-markdown-tool-item" }, "I"),
461
+ React.createElement(Button, { tabIndex: -1, isDisabled: props.disabled || isPreview, variant: ButtonVariant.plain, onClick: list, title: "Bullet List", "data-tracking-id": "mobile-md-editor-toolbar-bul-list", className: "mobile-markdown-tool-item" },
462
+ React.createElement(ListUlIcon, null)),
463
+ React.createElement(Button, { tabIndex: -1, variant: ButtonVariant.plain, isDisabled: props.disabled || isPreview, onClick: code, title: "Code", "data-tracking-id": "mobile-md-editor-toolbar-code", className: "mobile-markdown-tool-item" },
464
+ React.createElement(CodeIcon, null))),
465
+ React.createElement(ToolbarItem, { id: "tools-kebab-menu-container", className: "mobile-markdown-tool-item", spacer: { default: 'spacerSm' } },
466
+ React.createElement(MenuContainer, { isOpen: isDrillMenuOpen, onOpenChange: (isOpen) => setIsDrillMenuOpen(isOpen), popperProps: { position: 'left' }, menu: React.createElement(Menu, { id: "toolsKebabMenu", containsDrilldown: true, drilldownItemPath: drilldownPath, drilledInMenus: menuDrilledIn, activeMenu: activeMenu, onDrillIn: drillIn, onDrillOut: drillOut, onGetMenuHeight: setHeight, ref: drillMenuRef },
467
+ React.createElement(MenuContent, { menuHeight: `${menuHeights[activeMenu]}px` },
468
+ React.createElement(MenuList, null,
469
+ React.createElement(MenuItem, { itemId: "link-btn-menu-item", isDisabled: props.disabled || isPreview, onClick: link, "data-tracking-id": "mobile-md-editor-toolbar-link", icon: React.createElement(LinkIcon, { "aria-hidden": true }) }, "Link"),
470
+ React.createElement(MenuItem, { itemId: "code-btn-menu-item", isDisabled: props.disabled || isPreview, onClick: quote, "data-tracking-id": "mobile-md-editor-toolbar-quote", icon: React.createElement(QuoteRightIcon, { "aria-hidden": true }) }, "Quote"),
471
+ React.createElement(MenuItem, { itemId: "group:manage_attachments", direction: "down", icon: React.createElement(ImageIcon, { "aria-hidden": true }), drilldownMenu: React.createElement(DrilldownMenu, { id: "drilldownMenuStart" },
472
+ React.createElement(MenuItem, { itemId: "group:manage_attachments_breadcrumb", direction: "up" }, "Manage attachments"),
473
+ React.createElement("div", { className: "attachments-items" }, getFileSelectorList(true))) }, "Manage Attachments")))), menuRef: drillMenuRef, toggle: React.createElement(MenuToggle, { variant: "plain", ref: toggleRef, onClick: onToggleClick, isExpanded: isDrillMenuOpen },
474
+ React.createElement(EllipsisVIcon, null)), toggleRef: toggleRef }))))))),
475
+ React.createElement("div", { className: "markdown-content" }, !isPreview ? (React.createElement("textarea", Object.assign({}, textAreaProps, { onKeyDown: keydown, placeholder: isPlainModeEnabled ? t(props.plainTextPlaceholder) : t(props.mdPlaceholder), ref: bindTextAreaRef, className: cx('form-control', 'markdown-text-area', props.textAreaClassName, 'textArea'), value: mdValue, onChange: textChanged, rows: props.rows || contentRows, style: { height: '313px' } }))) : (React.createElement("div", { className: "markdown-preview-placeholder", style: { height: '313px' } },
476
+ React.createElement("div", { className: "markdown-preview", style: { maxHeight: '313px' } },
477
+ React.createElement("div", { dangerouslySetInnerHTML: {
478
+ __html: DOMPurify.sanitize(previewMDText(mdValue)),
479
+ } }))))),
480
+ React.createElement("div", null, props.showMarkdownPlainTextToggle && (React.createElement("div", { className: `markdown-toggle-toolbar pf-v5-l-flex` },
481
+ React.createElement("span", { className: "markdown-toolbar-left-section pf-m-wrap" },
482
+ !isPlainModeEnabled && (React.createElement(Button, { className: "markdown-preview-btn", tabIndex: -1, variant: ButtonVariant.link, onClick: preview, title: "Show preview", "data-tracking-id": `md-preview-${isPreview ? 'hide' : 'show'}`, isDisabled: disablePreviewButton }, isPreview ? (React.createElement("span", null,
483
+ " ",
484
+ t(hidePreviewText))) : (React.createElement("span", null,
485
+ " ",
486
+ t(showPreviewText))))),
487
+ isUploadingFile && (React.createElement(React.Fragment, null,
488
+ React.createElement(Trans, null,
489
+ React.createElement("small", { className: "pf-v5-u-pl-md uploading-spinner-text" },
490
+ React.createElement(Trans, null, "Uploading File"))),
491
+ React.createElement(Spinner, { className: "pf-v5-u-ml-sm", size: "sm" }))),
492
+ mdValue.length > props.minCharsForCounter && getCharCountText(mdValue)),
493
+ React.createElement("span", null,
494
+ React.createElement(Button, { variant: "plain", className: `${isPlainModeEnabled ? 'markdown-active-mode' : ''} plain-mode-btn`, onClick: () => onModeChange(true), isDisabled: isPlainModeEnabled || isUploadingFile, "data-tracking-id": "md-editor-plaintext" },
495
+ React.createElement(Trans, null, "Plain text")),
496
+ React.createElement(Button, { variant: "plain", className: `${!isPlainModeEnabled ? 'markdown-active-mode' : ''} markdown-mode-btn`, onClick: () => onModeChange(false), isDisabled: !isPlainModeEnabled, "data-tracking-id": "md-editor-md" },
497
+ React.createElement(Trans, null, "Markdown")))))))));
410
498
  }
411
499
  MarkdownEditor.defaultProps = defaultProps;
412
500
  export { MarkdownEditor };
@@ -22,10 +22,9 @@
22
22
  border: 1px solid #d2d2d2;
23
23
  display: block;
24
24
  min-height: 100px;
25
- overflow: hidden;
26
25
  }
27
26
 
28
- .markdown-editor-container .pf-c-toolbar {
27
+ .markdown-editor-container .pf-v5-c-toolbar {
29
28
  padding: 0.5rem;
30
29
  }
31
30
 
@@ -35,6 +34,7 @@
35
34
  margin-left: 10px;
36
35
  margin-right: 5px;
37
36
  width: 1px;
37
+ margin-top: 10px;
38
38
  }
39
39
 
40
40
  .markdown-content .markdown-text-area {
@@ -65,8 +65,12 @@
65
65
  color: #06c;
66
66
  }
67
67
 
68
- .markdown-editor-container .markdown-guidance {
69
- padding-right: 12px;
68
+ .markdown-editor-container .pf-v5-c-button.pf-m-link.pf-m-inline.markdown-guidance {
69
+ padding-block-start: 0.375rem;
70
+ padding-block-end: 0.375rem;
71
+ padding-inline-start: 0.375rem;
72
+ padding-inline-end: 0.375rem;
73
+ box-sizing: border-box;
70
74
  }
71
75
 
72
76
  .markdown-editor-container .character-count-wrapper {
@@ -91,7 +95,6 @@ a[href*='/attachments/']::before,
91
95
  button[data-link*='/attachments/']::before {
92
96
  margin-right: 4px;
93
97
  font-style: normal;
94
- font-size: inherit;
95
98
  text-rendering: auto;
96
99
  -webkit-font-smoothing: antialiased;
97
100
  content: '📎';
@@ -109,3 +112,108 @@ button[data-link*='/attachments/']::before {
109
112
  .markdown-preview {
110
113
  border-bottom: none !important;
111
114
  }
115
+
116
+ .desktop-markdown-toolbar {
117
+ display: flex;
118
+ }
119
+
120
+ .markdown-toolbar-left-section {
121
+ display: flex;
122
+ align-items: center;
123
+ }
124
+
125
+ .btn-group-separator {
126
+ display: inline-block;
127
+ width: 1px;
128
+ height: 24px;
129
+ margin: 0 8px;
130
+ background-color: #ccc;
131
+ }
132
+
133
+ .markdown-guidance-container {
134
+ display: none;
135
+ }
136
+
137
+ .mobile-markdown-toolbar {
138
+ display: none;
139
+ }
140
+
141
+ #toolsKebabMenu {
142
+ overflow: hidden;
143
+ inset: 0px auto auto -12rem !important;
144
+
145
+ .pf-v5-c-menu__list {
146
+ padding-left: 0px !important;
147
+ padding-right: 0px !important;
148
+ }
149
+
150
+ .attachments-items li {
151
+ padding: 0px 10px !important;
152
+
153
+ .pf-v5-c-divider {
154
+ width: 15rem;
155
+ margin-left: -1rem;
156
+ }
157
+ }
158
+ }
159
+
160
+ /* Mobile toolbar styles */
161
+ @media (max-width: 880px) {
162
+ .desktop-markdown-toolbar {
163
+ display: none;
164
+ }
165
+
166
+ .markdown-guidance-container {
167
+ display: flex;
168
+ justify-content: flex-end;
169
+ padding: 9px;
170
+ }
171
+
172
+ .mobile-markdown-toolbar {
173
+ display: flex;
174
+ flex-direction: row;
175
+ justify-content: space-between;
176
+ align-items: center;
177
+
178
+ .mobile-markdown-tool-item {
179
+ width: 2.5rem !important;
180
+ }
181
+ }
182
+
183
+ .markdown-toolbar-left-section {
184
+ margin-inline-end: 0px !important;
185
+ }
186
+
187
+ .markdown-preview-btn,
188
+ .plain-mode-btn,
189
+ .markdown-mode-btn {
190
+ padding-left: 4px;
191
+ padding-right: 4px;
192
+ }
193
+
194
+ .markdown-editor-container .markdown-toggle-toolbar button {
195
+ font-size: 14px;
196
+ padding: 10px 0.25rem;
197
+ }
198
+ }
199
+
200
+ @media (max-width: 475px) {
201
+ .markdown-editor-container .pf-v5-c-toolbar {
202
+ padding: 0.5rem 0rem;
203
+ }
204
+
205
+ .mobile-markdown-toolbar {
206
+ .mobile-markdown-tool-item {
207
+ width: 0.1rem !important;
208
+ }
209
+
210
+ #tools-kebab-menu-container {
211
+ position: relative;
212
+ right: 2rem;
213
+ }
214
+ }
215
+
216
+ .uploading-spinner-text {
217
+ display: none;
218
+ }
219
+ }
@@ -5,7 +5,7 @@ interface IProps {
5
5
  className?: string;
6
6
  appStickyHeaderRef?: React.MutableRefObject<HTMLElement>;
7
7
  }
8
- declare function MoreOrLess(props: IProps): JSX.Element;
8
+ declare function MoreOrLess(props: IProps): React.JSX.Element;
9
9
  declare namespace MoreOrLess {
10
10
  var defaultProps: Partial<IProps>;
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"MoreOrLess.d.ts","sourceRoot":"","sources":["../../../src/MoreOrLess/MoreOrLess.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;CAC5D;AAOD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,eAgEhC;kBAhEQ,UAAU;;;AAoEnB,OAAO,EAAE,UAAU,EAAE,CAAC"}
1
+ {"version":3,"file":"MoreOrLess.d.ts","sourceRoot":"","sources":["../../../src/MoreOrLess/MoreOrLess.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmD,MAAM,OAAO,CAAC;AAIxE,UAAU,MAAM;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,GAAG,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAC;CAC5D;AAOD,iBAAS,UAAU,CAAC,KAAK,EAAE,MAAM,qBAgEhC;kBAhEQ,UAAU;;;AAoEnB,OAAO,EAAE,UAAU,EAAE,CAAC"}
@@ -12,7 +12,8 @@ interface IProps {
12
12
  onPerPageSelect?: (pageSize: number) => void;
13
13
  perPageOptions?: PaginationProps['perPageOptions'];
14
14
  errorMessage?: string;
15
+ setPaginatedListLength?: React.Dispatch<React.SetStateAction<number | undefined>>;
15
16
  }
16
- export declare function PaginatedList(props: IProps): JSX.Element;
17
+ export declare function PaginatedList(props: IProps): React.JSX.Element;
17
18
  export {};
18
19
  //# sourceMappingURL=PaginatedList.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaginatedList.d.ts","sourceRoot":"","sources":["../../../src/PaginatedList/PaginatedList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAElB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,UAAU,MAAM;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,eA4D1C"}
1
+ {"version":3,"file":"PaginatedList.d.ts","sourceRoot":"","sources":["../../../src/PaginatedList/PaginatedList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIH,eAAe,EAElB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,KAA8B,MAAM,OAAO,CAAC;AAKnD,UAAU,MAAM;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,eAAe,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,cAAc,CAAC,EAAE,eAAe,CAAC,gBAAgB,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sBAAsB,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC,CAAC;CACrF;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,qBAwE1C"}
@@ -14,6 +14,15 @@ export function PaginatedList(props) {
14
14
  if (!props.serverPaginated) {
15
15
  listItems = listItems.slice(indexOfFirstShownElement, indexOfFirstShownElement + pageSize);
16
16
  }
17
+ useEffect(() => {
18
+ // Only update the external state if the prop function is provided
19
+ if (props.setPaginatedListLength) {
20
+ // Calculate the length based on current page and perPage, or directly use listItems.length
21
+ listItems &&
22
+ props.setPaginatedListLength(listItems.slice(indexOfFirstShownElement, indexOfFirstShownElement + pageSize).length);
23
+ }
24
+ // eslint-disable-next-line react-hooks/exhaustive-deps
25
+ }, [props.listItems.length]);
17
26
  const onSetPage = (event, pageNumber) => {
18
27
  setCurrentPage(pageNumber);
19
28
  props.onSetPage && props.onSetPage(pageNumber);
@@ -1,9 +1,10 @@
1
1
  import './paginationCompact.css';
2
+ import React from 'react';
2
3
  interface IProps {
3
4
  maxPage: number;
4
5
  dataTrackingId: string;
5
6
  onPageChange: (currentPage: number) => void;
6
7
  }
7
- export declare function PaginationCompact({ maxPage, dataTrackingId, onPageChange }: IProps): JSX.Element;
8
+ export declare function PaginationCompact({ maxPage, dataTrackingId, onPageChange }: IProps): React.JSX.Element;
8
9
  export {};
9
10
  //# sourceMappingURL=PaginationCompact.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"PaginationCompact.d.ts","sourceRoot":"","sources":["../../../src/PaginationCompact/PaginationCompact.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAOjC,UAAU,MAAM;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,MAAM,eA0DlF"}
1
+ {"version":3,"file":"PaginationCompact.d.ts","sourceRoot":"","sources":["../../../src/PaginationCompact/PaginationCompact.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AAKjC,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,UAAU,MAAM;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,CAAC,WAAW,EAAE,MAAM,KAAK,IAAI,CAAC;CAC/C;AAED,wBAAgB,iBAAiB,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,MAAM,qBA0DlF"}
@@ -20,9 +20,9 @@ export function PaginationCompact({ maxPage, dataTrackingId, onPageChange }) {
20
20
  onPageChange(currentPage);
21
21
  // eslint-disable-next-line react-hooks/exhaustive-deps
22
22
  }, [currentPage]);
23
- return (React.createElement("div", { className: "pagination-compact pf-c-pagination pf-m-compact pf-m-bottom pf-u-ml-auto" },
24
- React.createElement("nav", { className: "pf-c-pagination__nav" },
25
- React.createElement("div", { className: "pf-c-pagination__nav-control pf-m-prev" },
23
+ return (React.createElement("div", { className: "pagination-compact pf-v5-c-pagination pf-m-compact pf-m-bottom pf-v5-u-ml-auto" },
24
+ React.createElement("nav", { className: "pf-v5-c-pagination__nav" },
25
+ React.createElement("div", { className: "pf-v5-c-pagination__nav-control pf-m-prev" },
26
26
  React.createElement(Button, { variant: ButtonVariant.plain, type: "button", "data-tracking-id": `${dataTrackingId}-previous`, onClick: onPreviousClick, isDisabled: currentPage === 1, "aria-label": "Go to previous page" },
27
27
  React.createElement(AngleLeftIcon, null))),
28
28
  React.createElement("div", { style: {
@@ -31,7 +31,7 @@ export function PaginationCompact({ maxPage, dataTrackingId, onPageChange }) {
31
31
  currentPage,
32
32
  " of ",
33
33
  maxPage),
34
- React.createElement("div", { className: "pf-c-pagination__nav-control pf-m-next" },
34
+ React.createElement("div", { className: "pf-v5-c-pagination__nav-control pf-m-next" },
35
35
  React.createElement(Button, { variant: ButtonVariant.plain, onClick: onNextClick, "data-tracking-id": `${dataTrackingId}-next`, isDisabled: currentPage === maxPage, type: "button", "aria-label": "Go to next page" },
36
36
  React.createElement(AngleRightIcon, null))))));
37
37
  }
@@ -1,4 +1,4 @@
1
- .pagination-compact.pf-c-pagination.pf-m-bottom {
1
+ .pagination-compact.pf-v5-c-pagination.pf-m-bottom {
2
2
  padding: 0px;
3
3
  background: none;
4
4
  box-shadow: none;
@@ -1 +1 @@
1
- {"version":3,"file":"CountryData.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/CountryData.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,eAAe,UA2C3B,CAAC;AAEF,eAAO,MAAM,YAAY,kCAsgBxB,CAAC"}
1
+ {"version":3,"file":"CountryData.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/CountryData.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,eAAe,UA2C3B,CAAC;AAEF,eAAO,MAAM,YAAY,kCAugBxB,CAAC"}
@@ -169,9 +169,10 @@ export const COUNTRY_DATA = [
169
169
  ['Gabon', ['africa'], 'ga', '241'],
170
170
  ['Gambia', ['africa'], 'gm', '220'],
171
171
  ['Georgia', ['asia', 'ex-ussr'], 'ge', '995'],
172
- ['Germany', ['europe', 'eu-union', 'baltic'], 'de', '49', '.... ........'],
172
+ ['Germany', ['europe', 'eu-union', 'baltic'], 'de', '49'],
173
173
  ['Ghana', ['africa'], 'gh', '233'],
174
174
  ['Greece', ['europe', 'eu-union'], 'gr', '30'],
175
+ ['Greenland', ['america', 'north-america'], 'gl', '299'],
175
176
  ['Grenada', ['america', 'carribean'], 'gd', '1473'],
176
177
  ['Guadeloupe', ['america', 'carribean'], 'gp', '590', '', 0],
177
178
  ['Guam', ['oceania'], 'gu', '1671'],
@@ -201,7 +202,7 @@ export const COUNTRY_DATA = [
201
202
  '7',
202
203
  '... ...-..-..',
203
204
  1,
204
- ['310', '311', '312', '313', '315', '318', '321', '324', '325', '326', '327', '336', '7172', '73622'],
205
+ ['310', '311', '312', '313', '315', '318', '321', '324', '325', '326', '327', '336', '727', '7172', '73622'],
205
206
  ],
206
207
  ['Kenya', ['africa'], 'ke', '254'],
207
208
  ['Kiribati', ['oceania'], 'ki', '686'],
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ export declare const FlagSvgs: () => React.JSX.Element;
3
+ //# sourceMappingURL=FlagSvgs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FlagSvgs.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/FlagSvgs.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,eAAO,MAAM,QAAQ,yBAyiIpB,CAAC"}