@logora/debate 0.1.1 → 0.2.1

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 (320) hide show
  1. package/README.md +15 -23
  2. package/dist/components/action/button/Button.js +1 -1
  3. package/dist/components/argument/argument/Argument.js +49 -49
  4. package/dist/components/argument/top_arguments/TopArguments.js +17 -17
  5. package/dist/components/auth/auth_initializer/AuthInitializer.js +5 -5
  6. package/dist/components/auth/auth_modal/AuthModal.js +9 -9
  7. package/dist/components/auth/login_form/LoginForm.js +1 -0
  8. package/dist/components/auth/oauth2_button/OAuth2Button.js +3 -3
  9. package/dist/components/auth/providers/AuthProviderFactory.js +4 -4
  10. package/dist/components/auth/signup_form/SignupForm.js +4 -4
  11. package/dist/components/auth/social_auth_form/SocialAuthForm.js +10 -10
  12. package/dist/components/auth/sso_form/SSOForm.js +4 -4
  13. package/dist/components/chart/line_chart/LineChart.js +10 -10
  14. package/dist/components/chart/pie_chart/PieChart.js +6 -10
  15. package/dist/components/consultation/consultation_box/ConsultationBox.js +19 -14
  16. package/dist/components/debate/debate_box/DebateBox.js +11 -11
  17. package/dist/components/dialog/drawer/Drawer.js +16 -16
  18. package/dist/components/dialog/modal/Modal.js +8 -8
  19. package/dist/components/dialog/toast_provider/ToastProvider.js +10 -10
  20. package/dist/components/hooks/use_responsive/ResponsiveProvider.js +4 -4
  21. package/dist/components/icons/bild_icons/Alarm.js +15 -0
  22. package/dist/components/icons/bild_icons/Announcement.js +20 -0
  23. package/dist/components/icons/bild_icons/Arrow.js +11 -0
  24. package/dist/components/icons/bild_icons/Blockquote.js +11 -0
  25. package/dist/components/icons/bild_icons/Bold.js +11 -0
  26. package/dist/components/icons/bild_icons/Camera.js +11 -0
  27. package/dist/components/icons/bild_icons/Chat.js +44 -0
  28. package/dist/components/icons/bild_icons/Check.js +12 -0
  29. package/dist/components/icons/bild_icons/CheckCircle.js +20 -0
  30. package/dist/components/icons/bild_icons/Checkbox.js +11 -0
  31. package/dist/components/icons/bild_icons/Clap.js +21 -0
  32. package/dist/components/icons/bild_icons/Clock.js +11 -0
  33. package/dist/components/icons/bild_icons/Close.js +11 -0
  34. package/dist/components/icons/bild_icons/Code.js +32 -0
  35. package/dist/components/icons/bild_icons/Community.js +11 -0
  36. package/dist/components/icons/bild_icons/Crown.js +12 -0
  37. package/dist/components/icons/bild_icons/Document.js +11 -0
  38. package/dist/components/icons/bild_icons/Downvote.js +11 -0
  39. package/dist/components/icons/bild_icons/Ellipsis.js +12 -0
  40. package/dist/components/icons/bild_icons/ExpertBadge.js +33 -0
  41. package/dist/components/icons/bild_icons/Facebook.js +11 -0
  42. package/dist/components/icons/bild_icons/Flag.js +11 -0
  43. package/dist/components/icons/bild_icons/Home.js +11 -0
  44. package/dist/components/icons/bild_icons/Italic.js +11 -0
  45. package/dist/components/icons/bild_icons/LightArrow.js +12 -0
  46. package/dist/components/icons/bild_icons/Link.js +11 -0
  47. package/dist/components/icons/bild_icons/Login.js +19 -0
  48. package/dist/components/icons/bild_icons/Logora.js +25 -0
  49. package/dist/components/icons/bild_icons/Mail.js +11 -0
  50. package/dist/components/icons/bild_icons/MinusCircle.js +24 -0
  51. package/dist/components/icons/bild_icons/MobileClose.js +19 -0
  52. package/dist/components/icons/bild_icons/MobileMenu.js +29 -0
  53. package/dist/components/icons/bild_icons/Next.js +22 -0
  54. package/dist/components/icons/bild_icons/OpenBlank.js +15 -0
  55. package/dist/components/icons/bild_icons/OrderedList.js +11 -0
  56. package/dist/components/icons/bild_icons/PauseCircle.js +34 -0
  57. package/dist/components/icons/bild_icons/Point.js +21 -0
  58. package/dist/components/icons/bild_icons/Question.js +18 -0
  59. package/dist/components/icons/bild_icons/Refresh.js +11 -0
  60. package/dist/components/icons/bild_icons/Reply.js +11 -0
  61. package/dist/components/icons/bild_icons/Search.js +11 -0
  62. package/dist/components/icons/bild_icons/Send.js +11 -0
  63. package/dist/components/icons/bild_icons/Share.js +12 -0
  64. package/dist/components/icons/bild_icons/SmallArrow.js +11 -0
  65. package/dist/components/icons/bild_icons/Source.js +11 -0
  66. package/dist/components/icons/bild_icons/Suggestion.js +19 -0
  67. package/dist/components/icons/bild_icons/Twitter.js +29 -0
  68. package/dist/components/icons/bild_icons/Underline.js +11 -0
  69. package/dist/components/icons/bild_icons/Upvote.js +11 -0
  70. package/dist/components/icons/bild_icons/User.js +11 -0
  71. package/dist/components/icons/bild_icons/Versus.js +14 -0
  72. package/dist/components/icons/bild_icons/Votebox.js +12 -0
  73. package/dist/components/icons/bild_icons/index.js +110 -0
  74. package/dist/components/icons/hero_icons/Alarm.js +18 -0
  75. package/dist/components/icons/hero_icons/Announcement.js +18 -0
  76. package/dist/components/icons/hero_icons/Arrow.js +18 -0
  77. package/dist/components/icons/hero_icons/Blockquote.js +27 -0
  78. package/dist/components/icons/hero_icons/Bold.js +17 -0
  79. package/dist/components/icons/hero_icons/Camera.js +22 -0
  80. package/dist/components/icons/hero_icons/Chat.js +18 -0
  81. package/dist/components/icons/hero_icons/Check.js +18 -0
  82. package/dist/components/icons/hero_icons/CheckCircle.js +20 -0
  83. package/dist/components/icons/hero_icons/Checkbox.js +18 -0
  84. package/dist/components/icons/hero_icons/Clap.js +18 -0
  85. package/dist/components/icons/hero_icons/Clock.js +18 -0
  86. package/dist/components/icons/hero_icons/Close.js +18 -0
  87. package/dist/components/icons/hero_icons/Code.js +18 -0
  88. package/dist/components/icons/hero_icons/Community.js +18 -0
  89. package/dist/components/icons/hero_icons/Crown.js +18 -0
  90. package/dist/components/icons/hero_icons/Downvote.js +18 -0
  91. package/dist/components/icons/hero_icons/Ellipsis.js +18 -0
  92. package/dist/components/icons/hero_icons/ExpertBadge.js +18 -0
  93. package/dist/components/icons/hero_icons/Facebook.js +11 -0
  94. package/dist/components/icons/hero_icons/Flag.js +11 -0
  95. package/dist/components/icons/hero_icons/Home.js +18 -0
  96. package/dist/components/icons/hero_icons/Italic.js +17 -0
  97. package/dist/components/icons/hero_icons/LightArrow.js +12 -0
  98. package/dist/components/icons/hero_icons/Link.js +18 -0
  99. package/dist/components/icons/hero_icons/Login.js +19 -0
  100. package/dist/components/icons/hero_icons/Logora.js +25 -0
  101. package/dist/components/icons/hero_icons/Mail.js +18 -0
  102. package/dist/components/icons/hero_icons/MinusCircle.js +24 -0
  103. package/dist/components/icons/hero_icons/MobileClose.js +18 -0
  104. package/dist/components/icons/hero_icons/MobileMenu.js +18 -0
  105. package/dist/components/icons/hero_icons/Next.js +18 -0
  106. package/dist/components/icons/hero_icons/OpenBlank.js +18 -0
  107. package/dist/components/icons/hero_icons/OrderedList.js +47 -0
  108. package/dist/components/icons/hero_icons/PauseCircle.js +34 -0
  109. package/dist/components/icons/hero_icons/Point.js +21 -0
  110. package/dist/components/icons/hero_icons/Question.js +18 -0
  111. package/dist/components/icons/hero_icons/Refresh.js +18 -0
  112. package/dist/components/icons/hero_icons/Reply.js +18 -0
  113. package/dist/components/icons/hero_icons/Search.js +18 -0
  114. package/dist/components/icons/hero_icons/Send.js +18 -0
  115. package/dist/components/icons/hero_icons/Share.js +18 -0
  116. package/dist/components/icons/hero_icons/SmallArrow.js +18 -0
  117. package/dist/components/icons/hero_icons/Source.js +18 -0
  118. package/dist/components/icons/hero_icons/Suggestion.js +18 -0
  119. package/dist/components/icons/hero_icons/Twitter.js +29 -0
  120. package/dist/components/icons/hero_icons/Underline.js +27 -0
  121. package/dist/components/icons/hero_icons/Upvote.js +18 -0
  122. package/dist/components/icons/hero_icons/User.js +18 -0
  123. package/dist/components/icons/hero_icons/Versus.js +18 -0
  124. package/dist/components/icons/hero_icons/Votebox.js +18 -0
  125. package/dist/components/icons/hero_icons/index.js +108 -0
  126. package/dist/components/icons/krone_icons/Alarm.js +28 -0
  127. package/dist/components/icons/krone_icons/Announcement.js +16 -0
  128. package/dist/components/icons/krone_icons/Arrow.js +11 -0
  129. package/dist/components/icons/krone_icons/Blockquote.js +11 -0
  130. package/dist/components/icons/krone_icons/Bold.js +11 -0
  131. package/dist/components/icons/krone_icons/Camera.js +11 -0
  132. package/dist/components/icons/krone_icons/Chat.js +30 -0
  133. package/dist/components/icons/krone_icons/Check.js +11 -0
  134. package/dist/components/icons/krone_icons/CheckCircle.js +20 -0
  135. package/dist/components/icons/krone_icons/Clap.js +30 -0
  136. package/dist/components/icons/krone_icons/Clock.js +11 -0
  137. package/dist/components/icons/krone_icons/Close.js +11 -0
  138. package/dist/components/icons/krone_icons/Code.js +32 -0
  139. package/dist/components/icons/krone_icons/Community.js +11 -0
  140. package/dist/components/icons/krone_icons/Crown.js +11 -0
  141. package/dist/components/icons/krone_icons/Document.js +11 -0
  142. package/dist/components/icons/krone_icons/Downvote.js +11 -0
  143. package/dist/components/icons/krone_icons/Ellipsis.js +18 -0
  144. package/dist/components/icons/krone_icons/ExpertBadge.js +30 -0
  145. package/dist/components/icons/krone_icons/Facebook.js +11 -0
  146. package/dist/components/icons/krone_icons/Flag.js +11 -0
  147. package/dist/components/icons/krone_icons/Home.js +30 -0
  148. package/dist/components/icons/krone_icons/Italic.js +11 -0
  149. package/dist/components/icons/krone_icons/LightArrow.js +11 -0
  150. package/dist/components/icons/krone_icons/Link.js +11 -0
  151. package/dist/components/icons/krone_icons/Login.js +18 -0
  152. package/dist/components/icons/krone_icons/Logora.js +25 -0
  153. package/dist/components/icons/krone_icons/Mail.js +11 -0
  154. package/dist/components/icons/krone_icons/MinusCircle.js +24 -0
  155. package/dist/components/icons/krone_icons/MobileClose.js +18 -0
  156. package/dist/components/icons/krone_icons/MobileMenu.js +29 -0
  157. package/dist/components/icons/krone_icons/Next.js +22 -0
  158. package/dist/components/icons/krone_icons/OpenBlank.js +15 -0
  159. package/dist/components/icons/krone_icons/OrderedList.js +11 -0
  160. package/dist/components/icons/krone_icons/PauseCircle.js +33 -0
  161. package/dist/components/icons/krone_icons/Point.js +21 -0
  162. package/dist/components/icons/krone_icons/Question.js +30 -0
  163. package/dist/components/icons/krone_icons/Refresh.js +11 -0
  164. package/dist/components/icons/krone_icons/Reply.js +18 -0
  165. package/dist/components/icons/krone_icons/Search.js +11 -0
  166. package/dist/components/icons/krone_icons/Send.js +26 -0
  167. package/dist/components/icons/krone_icons/Share.js +14 -0
  168. package/dist/components/icons/krone_icons/SmallArrow.js +11 -0
  169. package/dist/components/icons/krone_icons/Source.js +11 -0
  170. package/dist/components/icons/krone_icons/Suggestion.js +30 -0
  171. package/dist/components/icons/krone_icons/Twitter.js +29 -0
  172. package/dist/components/icons/krone_icons/Underline.js +11 -0
  173. package/dist/components/icons/krone_icons/Upvote.js +30 -0
  174. package/dist/components/icons/krone_icons/User.js +33 -0
  175. package/dist/components/icons/krone_icons/Versus.js +11 -0
  176. package/dist/components/icons/krone_icons/Votebox.js +30 -0
  177. package/dist/components/icons/krone_icons/index.js +110 -0
  178. package/dist/components/icons/regular_icons/Alarm.js +15 -0
  179. package/dist/components/icons/regular_icons/Announcement.js +20 -0
  180. package/dist/components/icons/regular_icons/Arrow.js +11 -0
  181. package/dist/components/icons/regular_icons/Blockquote.js +11 -0
  182. package/dist/components/icons/regular_icons/Bold.js +11 -0
  183. package/dist/components/icons/regular_icons/Camera.js +11 -0
  184. package/dist/components/icons/regular_icons/Chat.js +16 -0
  185. package/dist/components/icons/regular_icons/Check.js +11 -0
  186. package/dist/components/icons/regular_icons/CheckCircle.js +20 -0
  187. package/dist/components/icons/regular_icons/Checkbox.js +11 -0
  188. package/dist/components/icons/regular_icons/Clap.js +15 -0
  189. package/dist/components/icons/regular_icons/Clock.js +11 -0
  190. package/dist/components/icons/regular_icons/Close.js +11 -0
  191. package/dist/components/icons/regular_icons/Code.js +32 -0
  192. package/dist/components/icons/regular_icons/Community.js +11 -0
  193. package/dist/components/icons/regular_icons/Crown.js +11 -0
  194. package/dist/components/icons/regular_icons/Document.js +11 -0
  195. package/dist/components/icons/regular_icons/Downvote.js +11 -0
  196. package/dist/components/icons/regular_icons/Ellipsis.js +11 -0
  197. package/dist/components/icons/regular_icons/ExpertBadge.js +32 -0
  198. package/dist/components/icons/regular_icons/Facebook.js +11 -0
  199. package/dist/components/icons/regular_icons/Flag.js +11 -0
  200. package/dist/components/icons/regular_icons/Home.js +11 -0
  201. package/dist/components/icons/regular_icons/Italic.js +11 -0
  202. package/dist/components/icons/regular_icons/LightArrow.js +11 -0
  203. package/dist/components/icons/regular_icons/Link.js +11 -0
  204. package/dist/components/icons/regular_icons/Login.js +18 -0
  205. package/dist/components/icons/regular_icons/Logora.js +25 -0
  206. package/dist/components/icons/regular_icons/Mail.js +11 -0
  207. package/dist/components/icons/regular_icons/MinusCircle.js +24 -0
  208. package/dist/components/icons/regular_icons/MobileClose.js +18 -0
  209. package/dist/components/icons/regular_icons/MobileMenu.js +29 -0
  210. package/dist/components/icons/regular_icons/Next.js +22 -0
  211. package/dist/components/icons/regular_icons/OpenBlank.js +15 -0
  212. package/dist/components/icons/regular_icons/OrderedList.js +11 -0
  213. package/dist/components/icons/regular_icons/PauseCircle.js +33 -0
  214. package/dist/components/icons/regular_icons/Point.js +21 -0
  215. package/dist/components/icons/regular_icons/Question.js +18 -0
  216. package/dist/components/icons/regular_icons/Refresh.js +11 -0
  217. package/dist/components/icons/regular_icons/Reply.js +11 -0
  218. package/dist/components/icons/regular_icons/Search.js +11 -0
  219. package/dist/components/icons/regular_icons/Send.js +11 -0
  220. package/dist/components/icons/regular_icons/Share.js +12 -0
  221. package/dist/components/icons/regular_icons/SmallArrow.js +11 -0
  222. package/dist/components/icons/regular_icons/Source.js +11 -0
  223. package/dist/components/icons/regular_icons/Suggestion.js +19 -0
  224. package/dist/components/icons/regular_icons/Twitter.js +29 -0
  225. package/dist/components/icons/regular_icons/Underline.js +11 -0
  226. package/dist/components/icons/regular_icons/Upvote.js +11 -0
  227. package/dist/components/icons/regular_icons/User.js +11 -0
  228. package/dist/components/icons/regular_icons/Versus.js +11 -0
  229. package/dist/components/icons/regular_icons/Votebox.js +12 -0
  230. package/dist/components/icons/regular_icons/index.js +110 -0
  231. package/dist/components/icons/spiegel_icons/Alarm.js +15 -0
  232. package/dist/components/icons/spiegel_icons/Announcement.js +20 -0
  233. package/dist/components/icons/spiegel_icons/Arrow.js +11 -0
  234. package/dist/components/icons/spiegel_icons/Blockquote.js +26 -0
  235. package/dist/components/icons/spiegel_icons/Bold.js +16 -0
  236. package/dist/components/icons/spiegel_icons/Camera.js +11 -0
  237. package/dist/components/icons/spiegel_icons/Chat.js +12 -0
  238. package/dist/components/icons/spiegel_icons/Check.js +11 -0
  239. package/dist/components/icons/spiegel_icons/CheckCircle.js +20 -0
  240. package/dist/components/icons/spiegel_icons/Checkbox.js +26 -0
  241. package/dist/components/icons/spiegel_icons/Clap.js +26 -0
  242. package/dist/components/icons/spiegel_icons/Clock.js +26 -0
  243. package/dist/components/icons/spiegel_icons/Close.js +15 -0
  244. package/dist/components/icons/spiegel_icons/Code.js +32 -0
  245. package/dist/components/icons/spiegel_icons/Community.js +11 -0
  246. package/dist/components/icons/spiegel_icons/Crown.js +12 -0
  247. package/dist/components/icons/spiegel_icons/Downvote.js +11 -0
  248. package/dist/components/icons/spiegel_icons/Ellipsis.js +12 -0
  249. package/dist/components/icons/spiegel_icons/ExpertBadge.js +28 -0
  250. package/dist/components/icons/spiegel_icons/Facebook.js +16 -0
  251. package/dist/components/icons/spiegel_icons/Flag.js +20 -0
  252. package/dist/components/icons/spiegel_icons/Home.js +11 -0
  253. package/dist/components/icons/spiegel_icons/Italic.js +16 -0
  254. package/dist/components/icons/spiegel_icons/LightArrow.js +12 -0
  255. package/dist/components/icons/spiegel_icons/Link.js +26 -0
  256. package/dist/components/icons/spiegel_icons/Login.js +19 -0
  257. package/dist/components/icons/spiegel_icons/Logora.js +25 -0
  258. package/dist/components/icons/spiegel_icons/Mail.js +16 -0
  259. package/dist/components/icons/spiegel_icons/MinusCircle.js +20 -0
  260. package/dist/components/icons/spiegel_icons/MobileClose.js +19 -0
  261. package/dist/components/icons/spiegel_icons/MobileMenu.js +29 -0
  262. package/dist/components/icons/spiegel_icons/Next.js +22 -0
  263. package/dist/components/icons/spiegel_icons/OpenBlank.js +15 -0
  264. package/dist/components/icons/spiegel_icons/OrderedList.js +29 -0
  265. package/dist/components/icons/spiegel_icons/PauseCircle.js +20 -0
  266. package/dist/components/icons/spiegel_icons/Point.js +21 -0
  267. package/dist/components/icons/spiegel_icons/Question.js +30 -0
  268. package/dist/components/icons/spiegel_icons/Refresh.js +11 -0
  269. package/dist/components/icons/spiegel_icons/Reply.js +12 -0
  270. package/dist/components/icons/spiegel_icons/Search.js +11 -0
  271. package/dist/components/icons/spiegel_icons/Send.js +11 -0
  272. package/dist/components/icons/spiegel_icons/Share.js +26 -0
  273. package/dist/components/icons/spiegel_icons/SmallArrow.js +12 -0
  274. package/dist/components/icons/spiegel_icons/Source.js +11 -0
  275. package/dist/components/icons/spiegel_icons/Suggestion.js +16 -0
  276. package/dist/components/icons/spiegel_icons/Twitter.js +29 -0
  277. package/dist/components/icons/spiegel_icons/Underline.js +26 -0
  278. package/dist/components/icons/spiegel_icons/Upvote.js +11 -0
  279. package/dist/components/icons/spiegel_icons/User.js +11 -0
  280. package/dist/components/icons/spiegel_icons/Versus.js +14 -0
  281. package/dist/components/icons/spiegel_icons/Votebox.js +26 -0
  282. package/dist/components/icons/spiegel_icons/index.js +108 -0
  283. package/dist/components/input/argument_input/ArgumentInput.js +100 -99
  284. package/dist/components/input/search_input/SearchInput.js +4 -4
  285. package/dist/components/input/text_editor/TextEditor.js +50 -50
  286. package/dist/components/input/text_editor/lexicalToHtml.js +7 -7
  287. package/dist/components/input/text_editor/plugins/MaxLengthPlugin.js +12 -12
  288. package/dist/components/input/text_editor/plugins/ResetPlugin.js +6 -6
  289. package/dist/components/input/text_editor/plugins/SetContentPlugin.js +6 -6
  290. package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +21 -21
  291. package/dist/components/intl/intl_provider/IntlProvider.js +6 -6
  292. package/dist/components/list/paginated_list/PaginatedList.js +16 -16
  293. package/dist/components/list/paginated_list/VotePaginatedList.js +6 -6
  294. package/dist/components/list/paginated_list/action_bar/ActionBar.js +7 -7
  295. package/dist/components/navbar/navbar_button/NavbarButton.js +3 -3
  296. package/dist/components/navbar/navbar_modal/NavbarModal.js +11 -11
  297. package/dist/components/notification/notification_menu/NotificationMenu.js +4 -4
  298. package/dist/components/proposal/proposal_box/ProposalBox.js +8 -8
  299. package/dist/components/share/share_box/ShareBox.js +17 -17
  300. package/dist/components/source/context_source_list/ContextSourceList.js +3 -3
  301. package/dist/components/source/source_modal/SourceModal.js +16 -16
  302. package/dist/components/suggestion/suggestion_banner/SuggestionBanner.js +14 -14
  303. package/dist/components/suggestion/suggestion_box/SuggestionBox.js +6 -6
  304. package/dist/components/suggestion/suggestion_input/SuggestionInput.js +13 -12
  305. package/dist/components/user/avatar/Avatar.js +7 -7
  306. package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.js +17 -15
  307. package/dist/components/user_content/content_footer/ContentFooter.js +11 -11
  308. package/dist/components/user_content/summary_content_box/SummaryContentBox.js +6 -6
  309. package/dist/components/user_content/use_delete_content/useDeleteContent.js +7 -7
  310. package/dist/components/user_content/use_report_content/ReportModal.js +9 -9
  311. package/dist/components/vote/use_vote/useVote.js +3 -3
  312. package/dist/components/vote/vote_box/VoteBox.js +7 -7
  313. package/dist/index.js +140 -84
  314. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalCharacterLimitPlugin.prod.js +57 -57
  315. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposer.prod.js +14 -14
  316. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalContentEditable.prod.js +15 -15
  317. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalListPlugin.prod.js +6 -6
  318. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalOnChangePlugin.prod.js +1 -1
  319. package/dist/node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalRichTextPlugin.prod.js +21 -21
  320. package/package.json +6 -1
@@ -1,20 +1,20 @@
1
- import { o as e } from "../../../../node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposerContext.prod.js";
2
- import { Lr as t, Ni as n, yr as r } from "../../../../node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js";
3
- import { L as i } from "../../../../node_modules/.pnpm/@lexical_selection@0.38.2/node_modules/@lexical/selection/LexicalSelection.prod.js";
4
- import { St as a } from "../../../../node_modules/.pnpm/@lexical_utils@0.38.2/node_modules/@lexical/utils/LexicalUtils.prod.js";
1
+ import { Lr as e, Ni as t, yr as n } from "../../../../node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js";
2
+ import { L as r } from "../../../../node_modules/.pnpm/@lexical_selection@0.38.2/node_modules/@lexical/selection/LexicalSelection.prod.js";
3
+ import { St as i } from "../../../../node_modules/.pnpm/@lexical_utils@0.38.2/node_modules/@lexical/utils/LexicalUtils.prod.js";
4
+ import { o as a } from "../../../../node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposerContext.prod.js";
5
5
  import { useEffect as o } from "react";
6
6
  //#region src/components/input/text_editor/plugins/MaxLengthPlugin.jsx
7
7
  var s = ({ maxLength: s = 5e4 }) => {
8
- let [c] = e();
8
+ let [c] = a();
9
9
  return o(() => {
10
- let e = null;
11
- return c.registerNodeTransform(n, (n) => {
12
- let o = t();
13
- if (!r(o) || !o.isCollapsed()) return;
14
- let l = c.getEditorState(), u = l.read(() => n.getTextContent()), d = n.getTextContent();
10
+ let a = null;
11
+ return c.registerNodeTransform(t, (t) => {
12
+ let o = e();
13
+ if (!n(o) || !o.isCollapsed()) return;
14
+ let l = c.getEditorState(), u = l.read(() => t.getTextContent()), d = t.getTextContent();
15
15
  if (u !== d) {
16
- let t = d.length - s, n = o.anchor;
17
- t > 0 && (u.length === s && e !== l ? (e = l, a(c, l)) : i(c, n, t));
16
+ let e = d.length - s, t = o.anchor;
17
+ e > 0 && (u.length === s && a !== l ? (a = l, i(c, l)) : r(c, t, e));
18
18
  }
19
19
  });
20
20
  }, [c, s]), null;
@@ -1,16 +1,16 @@
1
1
  import { useInput as e } from "../../input_provider/useInput.js";
2
- import { o as t } from "../../../../node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposerContext.prod.js";
3
- import { Li as n, No as r, ns as i } from "../../../../node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js";
2
+ import { Li as t, No as n, ns as r } from "../../../../node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js";
3
+ import { o as i } from "../../../../node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposerContext.prod.js";
4
4
  import a from "../../../../node_modules/.pnpm/@rooks_use-localstorage-state@4.11.2_react@18.3.1/node_modules/@rooks/use-localstorage-state/lib/index.esm.js";
5
5
  import { useEffect as o } from "react";
6
6
  //#region src/components/input/text_editor/plugins/ResetPlugin.jsx
7
7
  var s = ({ storageUid: s }) => {
8
- let [c] = t(), { reset: l, setReset: u } = e(), [d, f, p] = a(`TextEditor:content_${s}`, {});
8
+ let [c] = i(), { reset: l, setReset: u } = e(), [d, f, p] = a(`TextEditor:content_${s}`, {});
9
9
  return o(() => {
10
10
  l && c.update(() => {
11
- i("skip-dom-selection");
12
- let e = r(), t = n();
13
- e.clear(), e.append(t), p(), u(!1);
11
+ r("skip-dom-selection");
12
+ let e = n(), i = t();
13
+ e.clear(), e.append(i), p(), u(!1);
14
14
  });
15
15
  }, [l]), null;
16
16
  };
@@ -1,16 +1,16 @@
1
1
  import { useInput as e } from "../../input_provider/useInput.js";
2
- import { o as t } from "../../../../node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposerContext.prod.js";
3
- import { Li as n, No as r, sr as i } from "../../../../node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js";
2
+ import { Li as t, No as n, sr as r } from "../../../../node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js";
3
+ import { o as i } from "../../../../node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposerContext.prod.js";
4
4
  import { useEffect as a } from "react";
5
5
  //#region src/components/input/text_editor/plugins/SetContentPlugin.jsx
6
6
  var o = () => {
7
- let [o] = t(), { inputContent: s, setInputContent: c } = e();
7
+ let [o] = i(), { inputContent: s, setInputContent: c } = e();
8
8
  return a(() => {
9
9
  s && o.update(() => {
10
- let e = r();
10
+ let e = n();
11
11
  e.clear();
12
- let t = n();
13
- t.append(i(s)), e.append(t), c(null);
12
+ let i = t();
13
+ i.append(r(s)), e.append(i), c(null);
14
14
  });
15
15
  }, [s]), null;
16
16
  };
@@ -4,42 +4,42 @@ import { Icon as n } from "../../../icons/icon/Icon.js";
4
4
  import { require_classnames as r } from "../../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
5
5
  import { Button as i } from "../../../action/button/Button.js";
6
6
  import a from "../../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
7
- import { o } from "../../../../node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposerContext.prod.js";
8
- import { Lr as s, _e as c, ie as l, yr as u } from "../../../../node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js";
9
- import { W as d } from "../../../../node_modules/.pnpm/@lexical_selection@0.38.2/node_modules/@lexical/selection/LexicalSelection.prod.js";
10
- import { U as f, wt as p } from "../../../../node_modules/.pnpm/@lexical_utils@0.38.2/node_modules/@lexical/utils/LexicalUtils.prod.js";
11
- import { It as m, _t as h } from "../../../../node_modules/.pnpm/@lexical_rich-text@0.38.2/node_modules/@lexical/rich-text/LexicalRichText.prod.js";
12
- import { dt as g, lt as _, xt as v } from "../../../../node_modules/.pnpm/@lexical_list@0.38.2/node_modules/@lexical/list/LexicalList.prod.js";
7
+ import { Lr as o, _e as s, ie as c, yr as l } from "../../../../node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js";
8
+ import { W as u } from "../../../../node_modules/.pnpm/@lexical_selection@0.38.2/node_modules/@lexical/selection/LexicalSelection.prod.js";
9
+ import { U as d, wt as f } from "../../../../node_modules/.pnpm/@lexical_utils@0.38.2/node_modules/@lexical/utils/LexicalUtils.prod.js";
10
+ import { dt as p, lt as m, xt as h } from "../../../../node_modules/.pnpm/@lexical_list@0.38.2/node_modules/@lexical/list/LexicalList.prod.js";
11
+ import { o as g } from "../../../../node_modules/.pnpm/@lexical_react@0.38.2_react-dom@18.3.1_react@18.3.1__react@18.3.1_yjs@13.6.30/node_modules/@lexical/react/LexicalComposerContext.prod.js";
12
+ import { It as _, _t as v } from "../../../../node_modules/.pnpm/@lexical_rich-text@0.38.2/node_modules/@lexical/rich-text/LexicalRichText.prod.js";
13
13
  import y from "./ToolbarPlugin.module.js";
14
14
  import { useCallback as b, useEffect as x, useRef as S, useState as C } from "react";
15
15
  //#region src/components/input/text_editor/plugins/ToolbarPlugin.jsx
16
16
  var w = /* @__PURE__ */ e(r()), T = t(), E = (e) => {
17
- let t = a(), [r] = o(), E = S(null), [D, O] = C("paragraph"), [k, A] = C(null), [j, M] = C(!1), [N, P] = C(!1), [F, I] = C(!1), L = e.hideSubmit && e.hideSourceAction && e.disableRichText, R = b(() => {
18
- let e = s();
19
- if (u(e)) {
17
+ let t = a(), [r] = g(), E = S(null), [D, O] = C("paragraph"), [k, A] = C(null), [j, M] = C(!1), [N, P] = C(!1), [F, I] = C(!1), L = e.hideSubmit && e.hideSourceAction && e.disableRichText, R = b(() => {
18
+ let e = o();
19
+ if (l(e)) {
20
20
  let t = e.anchor.getNode(), n = t.getKey() === "root" ? t : t.getTopLevelElementOrThrow(), i = n.getKey();
21
- if (r.getElementByKey(i) !== null) if (A(i), g(n)) {
22
- let e = p(t, _);
21
+ if (r.getElementByKey(i) !== null) if (A(i), p(n)) {
22
+ let e = f(t, m);
23
23
  O(e ? e.getTag() : n.getTag());
24
- } else O(m(n) ? n.getTag() : n.getType());
24
+ } else O(_(n) ? n.getTag() : n.getType());
25
25
  M(e.hasFormat("bold")), P(e.hasFormat("italic")), I(e.hasFormat("underline"));
26
26
  }
27
27
  }, [r]);
28
- x(() => f(r.registerUpdateListener(({ editorState: e }) => {
28
+ x(() => d(r.registerUpdateListener(({ editorState: e }) => {
29
29
  e.read(() => {
30
30
  R();
31
31
  });
32
- }), r.registerCommand(l, (e, t) => (R(), !1), 1)), [r, R]);
32
+ }), r.registerCommand(c, (e, t) => (R(), !1), 1)), [r, R]);
33
33
  let z = () => {
34
34
  r.update(() => {
35
- let e = s();
36
- u(e) && d(e, () => $createParagraphNode());
35
+ let e = o();
36
+ l(e) && u(e, () => $createParagraphNode());
37
37
  });
38
38
  }, B = () => {
39
- D === "number" ? z(r) : r.dispatchCommand(v);
39
+ D === "number" ? z(r) : r.dispatchCommand(h);
40
40
  }, V = () => {
41
41
  D !== "quote" && r.update(() => {
42
- d(s(), () => h());
42
+ u(o(), () => v());
43
43
  });
44
44
  };
45
45
  return L ? null : /* @__PURE__ */ (0, T.jsxs)("div", {
@@ -50,7 +50,7 @@ var w = /* @__PURE__ */ e(r()), T = t(), E = (e) => {
50
50
  children: [
51
51
  /* @__PURE__ */ (0, T.jsx)("button", {
52
52
  onClick: () => {
53
- r.dispatchCommand(c, "bold");
53
+ r.dispatchCommand(s, "bold");
54
54
  },
55
55
  type: "button",
56
56
  className: (0, w.default)(y.toolbarItem, { [y.active]: j }),
@@ -68,7 +68,7 @@ var w = /* @__PURE__ */ e(r()), T = t(), E = (e) => {
68
68
  }),
69
69
  /* @__PURE__ */ (0, T.jsx)("button", {
70
70
  onClick: () => {
71
- r.dispatchCommand(c, "italic");
71
+ r.dispatchCommand(s, "italic");
72
72
  },
73
73
  type: "button",
74
74
  className: (0, w.default)(y.toolbarItem, { [y.active]: N }),
@@ -85,7 +85,7 @@ var w = /* @__PURE__ */ e(r()), T = t(), E = (e) => {
85
85
  }),
86
86
  /* @__PURE__ */ (0, T.jsx)("button", {
87
87
  onClick: () => {
88
- r.dispatchCommand(c, "underline");
88
+ r.dispatchCommand(s, "underline");
89
89
  },
90
90
  type: "button",
91
91
  className: (0, w.default)(y.toolbarItem, { [y.active]: F }),
@@ -1,17 +1,17 @@
1
1
  import { require_jsx_runtime as e } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
2
  import t from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/provider.js";
3
3
  import n from "../../../node_modules/.pnpm/@rooks_use-sessionstorage-state@4.11.2_react@18.3.1/node_modules/@rooks/use-sessionstorage-state/lib/index.esm.js";
4
- import { IntlContext as r } from "./IntlContext.js";
5
- import { require_flat as i } from "../../../node_modules/.pnpm/flat@5.0.2/node_modules/flat/index.js";
4
+ import { require_flat as r } from "../../../node_modules/.pnpm/flat@5.0.2/node_modules/flat/index.js";
5
+ import { IntlContext as i } from "./IntlContext.js";
6
6
  import { useEffect as a, useState as o } from "react";
7
7
  //#region src/components/intl/intl_provider/IntlProvider.jsx
8
- var s = i(), c = e(), l = ({ language: e, locales: i, async: l = !1, customMessages: u = {}, children: d, onError: f }) => {
8
+ var s = r(), c = e(), l = ({ language: e, locales: r, async: l = !1, customMessages: u = {}, children: d, onError: f }) => {
9
9
  let [p, m] = n("logora:locale", null), h = () => {
10
10
  if (p) return p;
11
11
  if (e) return e;
12
- }, g = () => !l && _ in i ? i[_] : {}, [_, v] = o(h()), [y, b] = o(g());
12
+ }, g = () => !l && _ in r ? r[_] : {}, [_, v] = o(h()), [y, b] = o(g());
13
13
  a(() => {
14
- _ && (l && _ in i && i[_]().then((e) => {
14
+ _ && (l && _ in r && r[_]().then((e) => {
15
15
  b(e?.default || e);
16
16
  }).catch(() => b({})), p !== _ && m(_));
17
17
  }, [_]);
@@ -24,7 +24,7 @@ var s = i(), c = e(), l = ({ language: e, locales: i, async: l = !1, customMessa
24
24
  locale: _,
25
25
  messages: x((0, s.flatten)(y)),
26
26
  onError: f,
27
- children: /* @__PURE__ */ (0, c.jsx)(r.Provider, {
27
+ children: /* @__PURE__ */ (0, c.jsx)(i.Provider, {
28
28
  value: {
29
29
  locale: _,
30
30
  setLocale: v
@@ -1,25 +1,25 @@
1
1
  import { __toESM as e } from "../../../_virtual/_rolldown/runtime.js";
2
2
  import { require_jsx_runtime as t } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
3
3
  import { require_classnames as n } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
4
- import { useDataProvider as r } from "../../data/data_provider/useDataProvider.js";
5
- import { useData as ee } from "../../data/data_provider/useData.js";
6
- import te from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
7
- import { useList as ne } from "../list_provider/useList.js";
4
+ import { useDataProvider as ee } from "../../data/data_provider/useDataProvider.js";
5
+ import { useData as te } from "../../data/data_provider/useData.js";
6
+ import { StandardErrorBoundary as ne } from "../../error/standard_error_boundary/StandardErrorBoundary.js";
8
7
  import { useResponsive as re } from "../../hooks/use_responsive/useResponsive.js";
9
- import { ActionBar as ie } from "./action_bar/ActionBar.js";
8
+ import { useList as ie } from "../list_provider/useList.js";
10
9
  import { Pagination as ae } from "../pagination/Pagination.js";
11
- import { uniqueBy as i } from "../../util/unique_by/uniqueBy.js";
12
- import { StandardErrorBoundary as a } from "../../error/standard_error_boundary/StandardErrorBoundary.js";
13
- import oe from "../../../node_modules/.pnpm/@rooks_use-previous@4.11.2/node_modules/@rooks/use-previous/lib/index.esm.js";
10
+ import { uniqueBy as r } from "../../util/unique_by/uniqueBy.js";
11
+ import i from "../../../node_modules/.pnpm/@rooks_use-previous@4.11.2/node_modules/@rooks/use-previous/lib/index.esm.js";
12
+ import a from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
14
13
  import o from "./PaginatedList.module.js";
14
+ import { ActionBar as oe } from "./action_bar/ActionBar.js";
15
15
  import se, { useEffect as s, useState as c } from "react";
16
16
  import { useLocation as ce } from "react-router";
17
17
  //#region src/components/list/paginated_list/PaginatedList.jsx
18
18
  var le = /* @__PURE__ */ e(n()), l = t(), u = ({ query: e, sortOptions: t, sort: n, filters: u, tagList: ue, currentPage: d, resource: f, currentListId: p, withToken: m, perPage: h, perPageParam: de = "per_page", pageParam: fe = "page", sortParam: pe = "sort", queryParam: me = "query", tagParam: he = "tag_id", totalHeaderParam: g = "total", onUpdateTotal: _, onElementsLoad: v, transformData: y, uniqueIdKey: b = "id", children: ge, resourcePropName: _e, loadingComponent: x, searchBar: ve = !1, title: ye, emptyListComponent: S, emptyText: be, display: C, elementsPerLine: w, indexLayout: xe = !1, gap: Se = "1em", withPagination: Ce = !0, numberElements: T, countless: we, onElementClick: E, withUrlParams: D = !1, onLoadNewPage: O }) => {
19
- let k = te(), A = ne(), j = r(), M = ce(), { isMobile: N, isTablet: Te, isDesktop: P } = re(), [F, I] = c(!1), [Ee, De] = c(!1), [L, R] = ee(p, []), [z, Oe] = c(L?.length || 0), [B, V] = c(d || 1), [H, U] = c(e || null), [W, G] = c(null), [ke, K] = c(null), q = new URLSearchParams(typeof window < "u" ? window.location.search : M.search), Ae = () => t && t[0].type === "sort" && t[0].value || n || "", je = () => {
19
+ let k = a(), A = ie(), j = ee(), M = ce(), { isMobile: N, isTablet: Te, isDesktop: P } = re(), [F, I] = c(!1), [Ee, De] = c(!1), [L, R] = te(p, []), [z, Oe] = c(L?.length || 0), [B, V] = c(d || 1), [H, U] = c(e || null), [W, G] = c(null), [ke, K] = c(null), q = new URLSearchParams(typeof window < "u" ? window.location.search : M.search), Ae = () => t && t[0].type === "sort" && t[0].value || n || "", je = () => {
20
20
  let e = {};
21
21
  return t && t[0].type === "filter" && (e[t[0].name] = t[0].value), u && (e = Object.assign({}, e, u)), e;
22
- }, [J, Y] = c(Ae()), [X, Z] = c(je()), Q = oe(u);
22
+ }, [J, Y] = c(Ae()), [X, Z] = c(je()), Q = i(u);
23
23
  d && d !== B && V(d), e !== void 0 && e !== H && U(e), n !== void 0 && n !== J && Y(n), Q && JSON.stringify(u) !== JSON.stringify(Q) && JSON.stringify(u) !== JSON.stringify(X) && Z(u), s(() => {
24
24
  if (q.get("tagId") && G(Number.parseInt(q.get("tagId"))), q.get("search") && U(q.get("search")), q.get("sort")) {
25
25
  Y(q.get("sort"));
@@ -95,20 +95,20 @@ var le = /* @__PURE__ */ e(n()), l = t(), u = ({ query: e, sortOptions: t, sort:
95
95
  console.error(e), e?.response?.status !== 404 && De(!0), I(!1);
96
96
  }) : I(!1);
97
97
  }, Pe = (e) => {
98
- R((t) => i([...e, ...t], b || "id")), v && v(e);
98
+ R((t) => r([...e, ...t], b || "id")), v && v(e);
99
99
  }, Fe = (e) => {
100
100
  let t = L;
101
- e.forEach((e) => t = t.map((t) => t.id === e.id ? e : t)), R(i(t, b || "id"));
101
+ e.forEach((e) => t = t.map((t) => t.id === e.id ? e : t)), R(r(t, b || "id"));
102
102
  }, Ie = (e) => {
103
103
  let t = e.map((e) => e.id);
104
- R(i(L.filter((e) => t.indexOf(e.id) === -1), b || "id"));
104
+ R(r(L.filter((e) => t.indexOf(e.id) === -1), b || "id"));
105
105
  }, Le = (e) => {
106
- R((t) => i([...t, ...e], b || "id"));
106
+ R((t) => r([...t, ...e], b || "id"));
107
107
  }, Re = (e, t) => e === void 0 ? null : /* @__PURE__ */ (0, l.jsx)("li", {
108
108
  className: o.paginatedListItem,
109
109
  "data-testid": "list-item",
110
110
  onClick: E,
111
- children: /* @__PURE__ */ (0, l.jsx)(a, {
111
+ children: /* @__PURE__ */ (0, l.jsx)(ne, {
112
112
  hideMessage: !0,
113
113
  children: se.cloneElement(ge, {
114
114
  index: t,
@@ -125,7 +125,7 @@ var le = /* @__PURE__ */ e(n()), l = t(), u = ({ query: e, sortOptions: t, sort:
125
125
  }));
126
126
  return /* @__PURE__ */ (0, l.jsxs)("div", {
127
127
  className: o.listContainer,
128
- children: [/* @__PURE__ */ (0, l.jsx)(ie, {
128
+ children: [/* @__PURE__ */ (0, l.jsx)(oe, {
129
129
  title: ye,
130
130
  sortOptions: t,
131
131
  defaultSelectOption: ke,
@@ -1,18 +1,18 @@
1
1
  import { require_jsx_runtime as e } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
- import { VoteContext as t, VoteProvider as n } from "../../vote/vote_provider/VoteProvider.js";
3
- import { PaginatedList as r } from "./PaginatedList.js";
2
+ import { PaginatedList as t } from "./PaginatedList.js";
3
+ import { VoteContext as n, VoteProvider as r } from "../../vote/vote_provider/VoteProvider.js";
4
4
  import "react";
5
5
  //#region src/components/list/paginated_list/VotePaginatedList.jsx
6
6
  var i = e(), a = (e) => {
7
7
  let a = (t, n) => {
8
8
  e.onElementsLoad && e.onElementsLoad(t), n.addVoteableIds(t.map((t) => e.voteableIdFormat ? e.voteableIdFormat(t) : t.id));
9
9
  };
10
- return /* @__PURE__ */ (0, i.jsx)(n, {
10
+ return /* @__PURE__ */ (0, i.jsx)(r, {
11
11
  voteableType: e.voteableType,
12
- children: /* @__PURE__ */ (0, i.jsx)(t.Consumer, { children: (t) => /* @__PURE__ */ (0, i.jsx)(r, {
12
+ children: /* @__PURE__ */ (0, i.jsx)(n.Consumer, { children: (n) => /* @__PURE__ */ (0, i.jsx)(t, {
13
13
  ...e,
14
- ...t,
15
- onElementsLoad: (e) => a(e, t)
14
+ ...n,
15
+ onElementsLoad: (e) => a(e, n)
16
16
  }) })
17
17
  });
18
18
  };
@@ -2,17 +2,17 @@ import { __toESM as e } from "../../../../_virtual/_rolldown/runtime.js";
2
2
  import { require_jsx_runtime as t } from "../../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
3
3
  import { Icon as n } from "../../../icons/icon/Icon.js";
4
4
  import { require_classnames as r } from "../../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
5
- import i from "../../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
6
- import { Select as a } from "../../../input/select/Select.js";
7
- import { useResponsive as o } from "../../../hooks/use_responsive/useResponsive.js";
8
- import { SearchInput as s } from "../../../input/search_input/SearchInput.js";
5
+ import { useResponsive as i } from "../../../hooks/use_responsive/useResponsive.js";
6
+ import a from "../../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
7
+ import { SearchInput as o } from "../../../input/search_input/SearchInput.js";
8
+ import { Select as s } from "../../../input/select/Select.js";
9
9
  import { Tag as c } from "../../../tag/tag/Tag.js";
10
10
  import l from "./ActionBar.module.js";
11
11
  import { useState as u } from "react";
12
12
  import { useLocation as d } from "react-router";
13
13
  //#region src/components/list/paginated_list/action_bar/ActionBar.jsx
14
14
  var f = /* @__PURE__ */ e(r()), p = t(), m = ({ title: e, sortOptions: t, defaultSelectOption: r, searchBar: m = !1, tagList: h, activeTagId: g, withUrlParams: _ = !1, onSearch: v, onSortChange: y, onTagChange: b }) => {
15
- let x = i(), S = d(), { isMobile: C } = o(), [w, T] = u(!1), E = new URLSearchParams(typeof window < "u" ? window.location.search : S.search), D = (e) => {
15
+ let x = a(), S = d(), { isMobile: C } = i(), [w, T] = u(!1), E = new URLSearchParams(typeof window < "u" ? window.location.search : S.search), D = (e) => {
16
16
  if (_) {
17
17
  for (let e of E.keys()) t.map((t) => {
18
18
  t.name === e && E.delete(e);
@@ -49,7 +49,7 @@ var f = /* @__PURE__ */ e(r()), p = t(), m = ({ title: e, sortOptions: t, defaul
49
49
  className: (0, f.default)(l.rightBar, { [l.rightBarOneItem]: !m || !t }),
50
50
  children: [m ? /* @__PURE__ */ (0, p.jsx)("div", {
51
51
  className: l.search,
52
- children: /* @__PURE__ */ (0, p.jsx)(s, {
52
+ children: /* @__PURE__ */ (0, p.jsx)(o, {
53
53
  onSearchSubmit: k,
54
54
  placeholder: x.formatMessage({
55
55
  id: "info.search_mobile",
@@ -57,7 +57,7 @@ var f = /* @__PURE__ */ e(r()), p = t(), m = ({ title: e, sortOptions: t, defaul
57
57
  }),
58
58
  reducedByDefault: !1
59
59
  })
60
- }) : null, t ? /* @__PURE__ */ (0, p.jsx)(a, {
60
+ }) : null, t ? /* @__PURE__ */ (0, p.jsx)(s, {
61
61
  onChange: D,
62
62
  options: t,
63
63
  defaultOption: r,
@@ -2,13 +2,13 @@ import { __toESM as e } from "../../../_virtual/_rolldown/runtime.js";
2
2
  import { require_jsx_runtime as t } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
3
3
  import { Icon as n } from "../../icons/icon/Icon.js";
4
4
  import { require_classnames as r } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
5
- import { useModal as i } from "../../dialog/modal/useModal.js";
6
- import { useResponsive as a } from "../../hooks/use_responsive/useResponsive.js";
5
+ import { useResponsive as i } from "../../hooks/use_responsive/useResponsive.js";
6
+ import { useModal as a } from "../../dialog/modal/useModal.js";
7
7
  import { NavbarModal as o } from "../navbar_modal/NavbarModal.js";
8
8
  import s from "./NavbarButton.module.js";
9
9
  //#region src/components/navbar/navbar_button/NavbarButton.jsx
10
10
  var c = /* @__PURE__ */ e(r()), l = t(), u = ({ inDrawer: e = !1, showNavbarButtonInDrawer: t = !0 }) => {
11
- let r = i?.(), { isMobile: u, elementWidth: d } = a?.() || {}, f = () => {
11
+ let r = a?.(), { isMobile: u, elementWidth: d } = i?.() || {}, f = () => {
12
12
  r?.showModal?.(/* @__PURE__ */ (0, l.jsx)(o, {}));
13
13
  };
14
14
  return e && !t || !e && !(u && d <= 576) ? null : /* @__PURE__ */ (0, l.jsx)("div", {
@@ -6,19 +6,19 @@ import { require_classnames as i } from "../../../node_modules/.pnpm/classnames@
6
6
  import { useAuth as a } from "../../auth/use_auth/useAuth.js";
7
7
  import { useConfig as o } from "../../data/config_provider/useConfig.js";
8
8
  import { useRoutes as s } from "../../data/config_provider/useRoutes.js";
9
- import c from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/message.js";
10
- import { Avatar as l } from "../../user/avatar/Avatar.js";
9
+ import { useResponsive as c } from "../../hooks/use_responsive/useResponsive.js";
10
+ import l from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/message.js";
11
11
  import { useModal as u } from "../../dialog/modal/useModal.js";
12
12
  import { Modal as d } from "../../dialog/modal/Modal.js";
13
13
  import { useAuthRequired as f } from "../../hooks/use_auth_required/useAuthRequired.js";
14
- import { useResponsive as p } from "../../hooks/use_responsive/useResponsive.js";
14
+ import { Avatar as p } from "../../user/avatar/Avatar.js";
15
15
  import m from "./NavbarModal.module.js";
16
16
  import "react";
17
17
  import { matchPath as h } from "react-router-dom";
18
18
  import { useLocation as g } from "react-router";
19
19
  //#region src/components/navbar/navbar_modal/NavbarModal.jsx
20
20
  var _ = /* @__PURE__ */ e(i()), v = t(), y = () => {
21
- let { hideModal: e } = u(), t = o(), i = s(), { pathname: y } = g(), { isLoggedIn: b, currentUser: x } = a(), S = f(), { isMobile: C, elementWidth: w } = p?.() || {}, T = C && w <= 576 && !t.isDrawer, E = (e) => !!h(e, y), D = () => {
21
+ let { hideModal: e } = u(), t = o(), i = s(), { pathname: y } = g(), { isLoggedIn: b, currentUser: x } = a(), S = f(), { isMobile: C, elementWidth: w } = c?.() || {}, T = C && w <= 576 && !t.isDrawer, E = (e) => !!h(e, y), D = () => {
22
22
  S({});
23
23
  };
24
24
  return /* @__PURE__ */ (0, v.jsxs)(d, {
@@ -28,7 +28,7 @@ var _ = /* @__PURE__ */ e(i()), v = t(), y = () => {
28
28
  className: m.modalContainer,
29
29
  children: [/* @__PURE__ */ (0, v.jsx)("div", {
30
30
  className: m.modalTitle,
31
- children: /* @__PURE__ */ (0, v.jsx)(c, {
31
+ children: /* @__PURE__ */ (0, v.jsx)(l, {
32
32
  id: "info.menu",
33
33
  defaultMessage: "Navigation"
34
34
  })
@@ -48,7 +48,7 @@ var _ = /* @__PURE__ */ e(i()), v = t(), y = () => {
48
48
  width: 24
49
49
  }), /* @__PURE__ */ (0, v.jsx)("span", {
50
50
  className: m.text,
51
- children: /* @__PURE__ */ (0, v.jsx)(c, {
51
+ children: /* @__PURE__ */ (0, v.jsx)(l, {
52
52
  id: "info.all_debates_short",
53
53
  defaultMessage: "Debates"
54
54
  })
@@ -68,7 +68,7 @@ var _ = /* @__PURE__ */ e(i()), v = t(), y = () => {
68
68
  width: 24
69
69
  }), /* @__PURE__ */ (0, v.jsx)("span", {
70
70
  className: (0, _.default)(m.text, m.consultationText),
71
- children: /* @__PURE__ */ (0, v.jsx)(c, {
71
+ children: /* @__PURE__ */ (0, v.jsx)(l, {
72
72
  id: "info.consultations",
73
73
  defaultMessage: "Consultations"
74
74
  })
@@ -88,7 +88,7 @@ var _ = /* @__PURE__ */ e(i()), v = t(), y = () => {
88
88
  width: 24
89
89
  }), /* @__PURE__ */ (0, v.jsx)("span", {
90
90
  className: m.text,
91
- children: /* @__PURE__ */ (0, v.jsx)(c, {
91
+ children: /* @__PURE__ */ (0, v.jsx)(l, {
92
92
  id: "info.suggestion",
93
93
  defaultMessage: "Suggestions"
94
94
  })
@@ -105,14 +105,14 @@ var _ = /* @__PURE__ */ e(i()), v = t(), y = () => {
105
105
  children: /* @__PURE__ */ (0, v.jsxs)("div", {
106
106
  "data-tid": "view_user_profile",
107
107
  className: m.profile,
108
- children: [/* @__PURE__ */ (0, v.jsx)(l, {
108
+ children: [/* @__PURE__ */ (0, v.jsx)(p, {
109
109
  avatarUrl: x.image_url,
110
110
  userName: x.full_name,
111
111
  size: 24,
112
112
  "data-tid": "view_user_profile"
113
113
  }), /* @__PURE__ */ (0, v.jsx)("span", {
114
114
  className: m.text,
115
- children: /* @__PURE__ */ (0, v.jsx)(c, {
115
+ children: /* @__PURE__ */ (0, v.jsx)(l, {
116
116
  id: "info.profile",
117
117
  defaultMessage: "Profile"
118
118
  })
@@ -133,7 +133,7 @@ var _ = /* @__PURE__ */ e(i()), v = t(), y = () => {
133
133
  width: 24
134
134
  }), /* @__PURE__ */ (0, v.jsx)("span", {
135
135
  className: m.text,
136
- children: /* @__PURE__ */ (0, v.jsx)(c, {
136
+ children: /* @__PURE__ */ (0, v.jsx)(l, {
137
137
  id: "action.sign_in",
138
138
  defaultMessage: "Sign in"
139
139
  })
@@ -1,8 +1,8 @@
1
1
  import { require_jsx_runtime as e } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
2
2
  import { useDataProvider as t } from "../../data/data_provider/useDataProvider.js";
3
3
  import n from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
4
- import { UserContentSkeleton as r } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
5
- import { PaginatedList as i } from "../../list/paginated_list/PaginatedList.js";
4
+ import { PaginatedList as r } from "../../list/paginated_list/PaginatedList.js";
5
+ import { UserContentSkeleton as i } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
6
6
  import { NotificationItem as a } from "../notification_item/NotificationItem.js";
7
7
  import o from "./NotificationMenu.module.js";
8
8
  import { useState as s } from "react";
@@ -32,9 +32,9 @@ var c = e(), l = ({ notificationDefinitions: e = {} }) => {
32
32
  })]
33
33
  }), /* @__PURE__ */ (0, c.jsx)("div", {
34
34
  className: o.notificationList,
35
- children: /* @__PURE__ */ (0, c.jsx)(i, {
35
+ children: /* @__PURE__ */ (0, c.jsx)(r, {
36
36
  currentListId: "notificationList",
37
- loadingComponent: /* @__PURE__ */ (0, c.jsx)(r, { numberLines: 0 }),
37
+ loadingComponent: /* @__PURE__ */ (0, c.jsx)(i, { numberLines: 0 }),
38
38
  resourcePropName: "notification",
39
39
  resource: "notifications",
40
40
  sort: "-created_at",
@@ -4,19 +4,19 @@ import { require_classnames as n } from "../../../node_modules/.pnpm/classnames@
4
4
  import { useAuth as r } from "../../auth/use_auth/useAuth.js";
5
5
  import { useConfig as i } from "../../data/config_provider/useConfig.js";
6
6
  import a from "../../../node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/useIntl.js";
7
- import { useTranslatedContent as o } from "../../translation/translated_content/useTranslatedContent.js";
8
- import { ContentHeader as s } from "../../user_content/content_header/ContentHeader.js";
9
- import { ReadMore as c } from "../../text/read_more/ReadMore.js";
7
+ import { ReadMore as o } from "../../text/read_more/ReadMore.js";
8
+ import { HashScroll as s } from "../../tools/hash_scroll/HashScroll.js";
9
+ import { useTranslatedContent as c } from "../../translation/translated_content/useTranslatedContent.js";
10
10
  import { TranslationButton as l } from "../../translation/translation_button/TranslationButton.js";
11
11
  import { ContentFooter as u } from "../../user_content/content_footer/ContentFooter.js";
12
- import { HashScroll as d } from "../../tools/hash_scroll/HashScroll.js";
12
+ import { ContentHeader as d } from "../../user_content/content_header/ContentHeader.js";
13
13
  import { lexicalToHtml as f } from "../../input/text_editor/lexicalToHtml.js";
14
14
  import { UpDownVoteBox as p } from "../../vote/up_down_vote_box/UpDownVoteBox.js";
15
15
  import m from "./ProposalBox.module.js";
16
16
  import { useEffect as h, useState as g } from "react";
17
17
  //#region src/components/proposal/proposal_box/ProposalBox.jsx
18
18
  var _ = /* @__PURE__ */ e(n()), v = t(), y = ({ proposal: e, disabled: t = !1, fixedContentHeight: n, contentMaxHeight: y = 156, enableEdition: b = !0, hideFooter: x = !1 }) => {
19
- let [S, C] = g(null), [w, T] = g(!1), E = a(), D = i(), { currentUser: O } = r(), k = O?.moderation_status === "banned", A = `proposal_${e.id}`, j = o(e.title, e.language, "title", e.translation_entries), M = o(e.content, e.language, "content", e.translation_entries);
19
+ let [S, C] = g(null), [w, T] = g(!1), E = a(), D = i(), { currentUser: O } = r(), k = O?.moderation_status === "banned", A = `proposal_${e.id}`, j = c(e.title, e.language, "title", e.translation_entries), M = c(e.content, e.language, "content", e.translation_entries);
20
20
  h(() => {
21
21
  if (e.rich_content) {
22
22
  let t = JSON.parse(e.rich_content);
@@ -26,14 +26,14 @@ var _ = /* @__PURE__ */ e(n()), v = t(), y = ({ proposal: e, disabled: t = !1, f
26
26
  let N = () => {
27
27
  j.toggleContent(), M.toggleContent();
28
28
  };
29
- return /* @__PURE__ */ (0, v.jsx)(d, {
29
+ return /* @__PURE__ */ (0, v.jsx)(s, {
30
30
  elementId: A,
31
31
  onScroll: () => T(!0),
32
32
  children: /* @__PURE__ */ (0, v.jsxs)("div", {
33
33
  className: (0, _.default)(m.proposalBoxContainer, { [m.flash]: w }),
34
34
  id: A,
35
35
  children: [
36
- /* @__PURE__ */ (0, v.jsx)(s, {
36
+ /* @__PURE__ */ (0, v.jsx)(d, {
37
37
  author: e.author,
38
38
  tag: e.tag?.display_name,
39
39
  date: e.created_at,
@@ -41,7 +41,7 @@ var _ = /* @__PURE__ */ e(n()), v = t(), y = ({ proposal: e, disabled: t = !1, f
41
41
  }),
42
42
  /* @__PURE__ */ (0, v.jsx)("div", {
43
43
  className: (0, _.default)(m.proposalBoxContent, { [m.fixedHeight]: n }),
44
- children: /* @__PURE__ */ (0, v.jsx)("div", { children: /* @__PURE__ */ (0, v.jsx)(c, {
44
+ children: /* @__PURE__ */ (0, v.jsx)("div", { children: /* @__PURE__ */ (0, v.jsx)(o, {
45
45
  content: /* @__PURE__ */ (0, v.jsxs)(v.Fragment, { children: [
46
46
  e.is_edited && /* @__PURE__ */ (0, v.jsx)("div", {
47
47
  className: m.edited,