@logora/debate 0.2.2 → 0.2.3

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 (716) hide show
  1. package/dist/assets/components/action/back_link/BackLink.module-nMAM5nvb.css +1 -0
  2. package/dist/assets/components/action/button/Button.module-BDXB-NbU.css +1 -0
  3. package/dist/assets/components/action/icon_text_link/IconTextLink.module-B5PF-MMK.css +1 -0
  4. package/dist/assets/components/ad/ad_unit/AdUnit.module-C_5JFle_.css +1 -0
  5. package/dist/assets/components/argument/argument/Argument.module-ynS4ZRdG.css +1 -0
  6. package/dist/assets/components/argument/argument/ReplyFooter.module-DQL2iGS0.css +1 -0
  7. package/dist/assets/components/argument/top_arguments/TopArguments.module-BwLPbpJ0.css +1 -0
  8. package/dist/assets/components/auth/auth_modal/AuthModal.module-RhX-zUfZ.css +1 -0
  9. package/dist/assets/components/auth/facebook_login_button/FacebookLoginButton.module-DwTlkJ7n.css +1 -0
  10. package/dist/assets/components/auth/google_login_button/GoogleLoginButton.module-C9XnfW0J.css +1 -0
  11. package/dist/assets/components/auth/login_form/LoginForm.module-uN7oeX8e.css +1 -0
  12. package/dist/assets/components/auth/oauth2_button/OAuth2Button.module-BDxwikoC.css +1 -0
  13. package/dist/assets/components/auth/signup_form/SignupForm.module-BEj4tidE.css +1 -0
  14. package/dist/assets/components/auth/social_auth_form/SocialAuthForm.module-DYgKVEK4.css +1 -0
  15. package/dist/assets/components/auth/sso_form/SSOForm.module-D5v2TrOv.css +1 -0
  16. package/dist/assets/components/chart/line_chart/LineChart.module-DTKqDhLv.css +1 -0
  17. package/dist/assets/components/chart/pie_chart/PieChart.module-bTKTwTOZ.css +1 -0
  18. package/dist/assets/components/consultation/consultation_box/ConsultationBox.module-BnTr5IaF.css +1 -0
  19. package/dist/assets/components/debate/debate_box/DebateBox.module-ek6ldCNI.css +1 -0
  20. package/dist/assets/components/dialog/announcement_dialog/AnnouncementDialog.module-X5I5xt5N.css +1 -0
  21. package/dist/assets/components/dialog/confirm_modal/ConfirmModal.module-CWzzKcm5.css +1 -0
  22. package/dist/assets/components/dialog/dialog_box/DialogBox.module-DKztqqmb.css +1 -0
  23. package/dist/assets/components/dialog/drawer/Drawer.module-DlSpsEkA.css +1 -0
  24. package/dist/assets/components/dialog/dropdown/Dropdown.module-BL67cFpj.css +1 -0
  25. package/dist/assets/components/dialog/modal/Modal.module-CIj-xCzY.css +1 -0
  26. package/dist/assets/components/dialog/toast/Toast.module-DJ2wSlJT.css +1 -0
  27. package/dist/assets/components/dialog/toast_provider/ToastProvider.module-Dg1lvYKc.css +1 -0
  28. package/dist/assets/components/dialog/tooltip/Tooltip.module-zMXumgnX.css +1 -0
  29. package/dist/assets/components/embed/embed_header/EmbedHeader.module-DajJz2CY.css +1 -0
  30. package/dist/assets/components/error/standard_error_boundary/StandardErrorBoundary.module-nVUIMoUd.css +1 -0
  31. package/dist/assets/components/follow/follow_button/FollowButton.module-Da-cPgwT.css +1 -0
  32. package/dist/assets/components/gamification/badge_box/BadgeBox.module-BnskGH9b.css +1 -0
  33. package/dist/assets/components/gamification/point_box/PointBox.module-BzKRidYf.css +1 -0
  34. package/dist/assets/components/input/argument_input/ArgumentInput.module-CDv7j77K.css +1 -0
  35. package/dist/assets/components/input/checkbox/hidden/hidden-checkbox.module-BfKmji_8.css +1 -0
  36. package/dist/assets/components/input/checkbox/indicator/checkbox-indicator.module-4cSB11ys.css +1 -0
  37. package/dist/assets/components/input/search_input/SearchInput.module-C_q8rryY.css +1 -0
  38. package/dist/assets/components/input/select/Select.module-Bf-5XrJ1.css +1 -0
  39. package/dist/assets/components/input/text_editor/TextEditor.module-DePSfOvG.css +1 -0
  40. package/dist/assets/components/input/text_editor/plugins/ToolbarPlugin.module-CbPmMciY.css +1 -0
  41. package/dist/assets/components/input/text_input/TextInput.module-BBojTQEu.css +1 -0
  42. package/dist/assets/components/input/toggle/Toggle.module-B_g0Uxy3.css +1 -0
  43. package/dist/assets/components/input/toggle_position/TogglePosition.module-DDIigbfA.css +1 -0
  44. package/dist/assets/components/list/paginated_list/PaginatedList.module-DI1wH2Na.css +1 -0
  45. package/dist/assets/components/list/paginated_list/action_bar/ActionBar.module-pxwFC_Y2.css +1 -0
  46. package/dist/assets/components/list/pagination/Pagination.module-L9-ykJZ2.css +1 -0
  47. package/dist/assets/components/modal/side_modal/SideModal.module-57E9_p4y.css +1 -0
  48. package/dist/assets/components/navbar/navbar_button/NavbarButton.module-lKeBjoEX.css +1 -0
  49. package/dist/assets/components/navbar/navbar_modal/NavbarModal.module-B02ZOEuE.css +1 -0
  50. package/dist/assets/components/notification/notification_item/NotificationItem.module-BWdhgSy4.css +1 -0
  51. package/dist/assets/components/notification/notification_menu/NotificationMenu.module-BQwbvRIV.css +1 -0
  52. package/dist/assets/components/progress/loader/Loader.module-BK-wXEtx.css +1 -0
  53. package/dist/assets/components/progress/progress_bar/ProgressBar.module-Dy-27Wf9.css +1 -0
  54. package/dist/assets/components/proposal/proposal_box/ProposalBox.module-T4ms_LQ7.css +1 -0
  55. package/dist/assets/components/report/report_box/ReportBox.module-B-_0iQqX.css +1 -0
  56. package/dist/assets/components/section/section_box/SectionBox.module-DUeUtdWr.css +1 -0
  57. package/dist/assets/components/share/share_box/ShareBox.module-AIRPhwtg.css +1 -0
  58. package/dist/assets/components/share/share_button/ShareButton.module-BS6STEUD.css +1 -0
  59. package/dist/assets/components/share/share_modal/ShareModal.module-CczX4YRd.css +1 -0
  60. package/dist/assets/components/skeleton/user_content_skeleton/UserContentSkeleton.module-DhZm1xTr.css +1 -0
  61. package/dist/assets/components/source/context_source_box/ContextSourceBox.module-78Gxjx0w.css +1 -0
  62. package/dist/assets/components/source/context_source_list/ContextSourceList.module-D6X_0dB7.css +1 -0
  63. package/dist/assets/components/source/source_box/SourceBox.module-Cu_m3E85.css +1 -0
  64. package/dist/assets/components/source/source_list_item/SourceListItem.module-mTxHhXPV.css +1 -0
  65. package/dist/assets/components/source/source_modal/SourceModal.module-DfEHopJo.css +1 -0
  66. package/dist/assets/components/suggestion/suggestion_banner/SuggestionBanner.module-D37NVZLS.css +1 -0
  67. package/dist/assets/components/suggestion/suggestion_box/SuggestionBox.module-fwf3pCuJ.css +1 -0
  68. package/dist/assets/components/suggestion/suggestion_input/SuggestionInput.module-BsEj7sF3.css +1 -0
  69. package/dist/assets/components/summary/argument_summary_box/ArgumentSummaryBox.module-DLcsyMSD.css +1 -0
  70. package/dist/assets/components/summary/keyword_box/KeywordBox.module-DHkYfW0l.css +1 -0
  71. package/dist/assets/components/summary/summary/Summary.module-DjfmUlkW.css +1 -0
  72. package/dist/assets/components/summary/summary_box/SummaryBox.module-DQVkA8l7.css +1 -0
  73. package/dist/assets/components/tag/tag/Tag.module-DSSGWMKh.css +1 -0
  74. package/dist/assets/components/text/expandable_text/ExpandableText.module-C9NQVGvu.css +1 -0
  75. package/dist/assets/components/text/read_more/ReadMore.module-Ni_Mm8o8.css +1 -0
  76. package/dist/assets/components/translation/translation_button/TranslationButton.module-DZv7Csu4.css +1 -0
  77. package/dist/assets/components/user/author_box/AuthorBox.module-CbH2S-MT.css +1 -0
  78. package/dist/assets/components/user/avatar/Avatar.module-DmWuUR8K.css +1 -0
  79. package/dist/assets/components/user/avatar_selector/AvatarSelector.module-C2_Sfb_6.css +1 -0
  80. package/dist/assets/components/user/update_user_info_modal/UpdateUserInfoModal.module-DJym6u4r.css +1 -0
  81. package/dist/assets/components/user/user_box/UserBox.module-DGKK1afI.css +1 -0
  82. package/dist/assets/components/user/user_box_small/UserBoxSmall.module-ibAw9gGE.css +1 -0
  83. package/dist/assets/components/user_content/content_footer/ContentFooter.module-B9R3dZFl.css +1 -0
  84. package/dist/assets/components/user_content/content_header/ContentHeader.module-B0VwpU-R.css +1 -0
  85. package/dist/assets/components/user_content/summary_content_box/SummaryContentBox.module-DdzWnPjq.css +1 -0
  86. package/dist/assets/components/user_content/use_report_content/ReportModal.module-BxF-D5C5.css +1 -0
  87. package/dist/assets/components/vote/suggestion_vote_box/SuggestionVoteBox.module-CZeQKWIw.css +1 -0
  88. package/dist/assets/components/vote/up_down_vote_box/UpDownVoteBox.module-Bk_s4Ph0.css +1 -0
  89. package/dist/assets/components/vote/vote_box/VoteBox.module-BhTSjU8w.css +1 -0
  90. package/dist/assets/components/vote/vote_button/VoteButton.module-mxq12D3_.css +1 -0
  91. package/dist/components/action/back_link/BackLink.js +21 -22
  92. package/dist/components/action/back_link/BackLink.module.scss.js +9 -0
  93. package/dist/components/action/button/Button.js +74 -32
  94. package/dist/components/action/button/Button.module.scss.js +17 -0
  95. package/dist/components/action/icon_text_link/IconTextLink.js +51 -34
  96. package/dist/components/action/icon_text_link/IconTextLink.module.scss.js +19 -0
  97. package/dist/components/action/link/Link.js +36 -22
  98. package/dist/components/ad/ad_unit/AdUnit.js +41 -41
  99. package/dist/components/ad/ad_unit/AdUnit.module.scss.js +7 -0
  100. package/dist/components/ad/use_google_ad_manager/useGoogleAdManager.js +21 -21
  101. package/dist/components/ad/with_ad/WithAd.js +29 -13
  102. package/dist/components/argument/argument/Argument.js +327 -265
  103. package/dist/components/argument/argument/Argument.module.scss.js +50 -0
  104. package/dist/components/argument/argument/ReplyFooter.js +52 -37
  105. package/dist/components/argument/argument/ReplyFooter.module.scss.js +15 -0
  106. package/dist/components/argument/argument/useRichContent.js +16 -13
  107. package/dist/components/argument/top_arguments/TopArguments.js +93 -61
  108. package/dist/components/argument/top_arguments/TopArguments.module.scss.js +13 -0
  109. package/dist/components/auth/auth_initializer/AuthInitializer.js +51 -34
  110. package/dist/components/auth/auth_modal/AuthModal.js +77 -67
  111. package/dist/components/auth/auth_modal/AuthModal.module.scss.js +7 -0
  112. package/dist/components/auth/auth_modal/index.js +4 -2
  113. package/dist/components/auth/facebook_login_button/FacebookIcon.js +19 -13
  114. package/dist/components/auth/facebook_login_button/FacebookLoginButton.js +30 -28
  115. package/dist/components/auth/facebook_login_button/FacebookLoginButton.module.scss.js +9 -0
  116. package/dist/components/auth/google_login_button/GoogleIcon.js +43 -28
  117. package/dist/components/auth/google_login_button/GoogleLoginButton.js +33 -30
  118. package/dist/components/auth/google_login_button/GoogleLoginButton.module.scss.js +9 -0
  119. package/dist/components/auth/login_form/LoginForm.js +86 -82
  120. package/dist/components/auth/login_form/LoginForm.module.scss.js +15 -0
  121. package/dist/components/auth/oauth2_button/OAuth2Button.js +52 -34
  122. package/dist/components/auth/oauth2_button/OAuth2Button.module.scss.js +9 -0
  123. package/dist/components/auth/providers/AuthProvider.js +20 -19
  124. package/dist/components/auth/providers/AuthProviderFactory.js +9 -9
  125. package/dist/components/auth/providers/FormAuth.js +28 -28
  126. package/dist/components/auth/providers/JWTAuth.js +26 -26
  127. package/dist/components/auth/providers/OAuth2ServerAuth.js +35 -34
  128. package/dist/components/auth/providers/PasswordAuth.js +23 -23
  129. package/dist/components/auth/signup_form/SignupForm.js +164 -153
  130. package/dist/components/auth/signup_form/SignupForm.module.scss.js +11 -0
  131. package/dist/components/auth/social_auth_form/SocialAuthForm.js +225 -197
  132. package/dist/components/auth/social_auth_form/SocialAuthForm.module.scss.js +39 -0
  133. package/dist/components/auth/sso_form/SSOForm.js +191 -143
  134. package/dist/components/auth/sso_form/SSOForm.module.scss.js +31 -0
  135. package/dist/components/auth/use_auth/AuthContext.js +5 -5
  136. package/dist/components/auth/use_auth/AuthProvider.js +26 -25
  137. package/dist/components/auth/use_auth/AuthStorage.js +28 -28
  138. package/dist/components/auth/use_auth/authTokenHandler.js +46 -44
  139. package/dist/components/auth/use_auth/useAuth.js +5 -5
  140. package/dist/components/auth/use_auth/useAuthActions.js +46 -34
  141. package/dist/components/auth/use_auth/useAuthInterceptor.js +34 -26
  142. package/dist/components/chart/line_chart/LineChart.js +98 -98
  143. package/dist/components/chart/line_chart/LineChart.module.scss.js +15 -0
  144. package/dist/components/chart/pie_chart/PieChart.js +81 -66
  145. package/dist/components/chart/pie_chart/PieChart.module.scss.js +7 -0
  146. package/dist/components/consultation/consultation_box/ConsultationBox.js +165 -120
  147. package/dist/components/consultation/consultation_box/ConsultationBox.module.scss.js +35 -0
  148. package/dist/components/data/axios_client/httpClient.js +7 -7
  149. package/dist/components/data/config_provider/ConfigProvider.js +7 -12
  150. package/dist/components/data/config_provider/useConfig.js +7 -7
  151. package/dist/components/data/config_provider/useRoutes.js +7 -7
  152. package/dist/components/data/config_provider/withConfig.js +6 -9
  153. package/dist/components/data/data_provider/DataProvider.js +106 -99
  154. package/dist/components/data/data_provider/DataProviderContext.js +5 -5
  155. package/dist/components/data/data_provider/useData.js +10 -8
  156. package/dist/components/data/data_provider/useDataProvider.js +7 -7
  157. package/dist/components/debate/debate_box/DebateBox.js +185 -152
  158. package/dist/components/debate/debate_box/DebateBox.module.scss.js +49 -0
  159. package/dist/components/dialog/announcement_dialog/AnnouncementDialog.js +36 -28
  160. package/dist/components/dialog/announcement_dialog/AnnouncementDialog.module.scss.js +13 -0
  161. package/dist/components/dialog/confirm_modal/ConfirmModal.js +47 -35
  162. package/dist/components/dialog/confirm_modal/ConfirmModal.module.scss.js +13 -0
  163. package/dist/components/dialog/countdown/Countdown.js +22 -22
  164. package/dist/components/dialog/dialog_box/DialogBox.js +51 -49
  165. package/dist/components/dialog/dialog_box/DialogBox.module.scss.js +27 -0
  166. package/dist/components/dialog/drawer/Drawer.js +139 -125
  167. package/dist/components/dialog/drawer/Drawer.module.scss.js +31 -0
  168. package/dist/components/dialog/dropdown/Dropdown.js +48 -27
  169. package/dist/components/dialog/dropdown/Dropdown.module.scss.js +17 -0
  170. package/dist/components/dialog/modal/Modal.js +83 -63
  171. package/dist/components/dialog/modal/Modal.module.scss.js +19 -0
  172. package/dist/components/dialog/modal/ModalProvider.js +16 -19
  173. package/dist/components/dialog/modal/useModal.js +6 -6
  174. package/dist/components/dialog/toast/Toast.js +35 -38
  175. package/dist/components/dialog/toast/Toast.module.scss.js +25 -0
  176. package/dist/components/dialog/toast_provider/ToastContext.js +5 -5
  177. package/dist/components/dialog/toast_provider/ToastProvider.js +32 -27
  178. package/dist/components/dialog/toast_provider/ToastProvider.module.scss.js +7 -0
  179. package/dist/components/dialog/toast_provider/useToast.js +8 -11
  180. package/dist/components/dialog/tooltip/Tooltip.js +43 -30
  181. package/dist/components/dialog/tooltip/Tooltip.module.scss.js +21 -0
  182. package/dist/components/embed/embed_header/EmbedHeader.js +97 -70
  183. package/dist/components/embed/embed_header/EmbedHeader.module.scss.js +29 -0
  184. package/dist/components/error/standard_error_boundary/StandardErrorBoundary.js +15 -16
  185. package/dist/components/error/standard_error_boundary/StandardErrorBoundary.module.scss.js +7 -0
  186. package/dist/components/follow/follow_button/FollowButton.js +45 -46
  187. package/dist/components/follow/follow_button/FollowButton.module.scss.js +9 -0
  188. package/dist/components/follow/use_follow/useFollow.js +41 -35
  189. package/dist/components/forms/form/extract-form-data.js +10 -10
  190. package/dist/components/forms/form/form-context.js +5 -5
  191. package/dist/components/forms/form/form.js +22 -25
  192. package/dist/components/forms/form/use-form-context.js +28 -31
  193. package/dist/components/forms/form/use-form.js +6 -6
  194. package/dist/components/forms/use_form_validation/useFormValidation.js +50 -44
  195. package/dist/components/gamification/badge_box/BadgeBox.js +102 -90
  196. package/dist/components/gamification/badge_box/BadgeBox.module.scss.js +32 -0
  197. package/dist/components/gamification/point_box/PointBox.js +12 -18
  198. package/dist/components/gamification/point_box/PointBox.module.scss.js +11 -0
  199. package/dist/components/hooks/use_auth_required/useAuthRequired.js +22 -15
  200. package/dist/components/hooks/use_css_theme/useCssTheme.js +16 -15
  201. package/dist/components/hooks/use_font_loader/useFontLoader.js +10 -6
  202. package/dist/components/hooks/use_matomo/useMatomo.js +9 -9
  203. package/dist/components/hooks/use_relative_time/useRelativeTime.js +32 -52
  204. package/dist/components/hooks/use_responsive/ResponsiveContext.js +5 -5
  205. package/dist/components/hooks/use_responsive/ResponsiveProvider.js +41 -32
  206. package/dist/components/hooks/use_responsive/useResponsive.js +8 -13
  207. package/dist/components/icons/bild_icons/Alarm.js +12 -14
  208. package/dist/components/icons/bild_icons/Announcement.js +14 -19
  209. package/dist/components/icons/bild_icons/Arrow.js +5 -10
  210. package/dist/components/icons/bild_icons/Blockquote.js +5 -10
  211. package/dist/components/icons/bild_icons/Bold.js +5 -10
  212. package/dist/components/icons/bild_icons/Camera.js +8 -10
  213. package/dist/components/icons/bild_icons/Chat.js +37 -43
  214. package/dist/components/icons/bild_icons/Check.js +14 -11
  215. package/dist/components/icons/bild_icons/CheckCircle.js +21 -19
  216. package/dist/components/icons/bild_icons/Checkbox.js +8 -10
  217. package/dist/components/icons/bild_icons/Clap.js +32 -20
  218. package/dist/components/icons/bild_icons/Clock.js +5 -10
  219. package/dist/components/icons/bild_icons/Close.js +5 -10
  220. package/dist/components/icons/bild_icons/Code.js +35 -31
  221. package/dist/components/icons/bild_icons/Community.js +5 -10
  222. package/dist/components/icons/bild_icons/Crown.js +14 -11
  223. package/dist/components/icons/bild_icons/Document.js +5 -10
  224. package/dist/components/icons/bild_icons/Downvote.js +5 -10
  225. package/dist/components/icons/bild_icons/Ellipsis.js +14 -11
  226. package/dist/components/icons/bild_icons/ExpertBadge.js +50 -32
  227. package/dist/components/icons/bild_icons/Facebook.js +5 -10
  228. package/dist/components/icons/bild_icons/Flag.js +5 -10
  229. package/dist/components/icons/bild_icons/Home.js +5 -10
  230. package/dist/components/icons/bild_icons/Italic.js +5 -10
  231. package/dist/components/icons/bild_icons/LightArrow.js +14 -11
  232. package/dist/components/icons/bild_icons/Link.js +8 -10
  233. package/dist/components/icons/bild_icons/Login.js +30 -18
  234. package/dist/components/icons/bild_icons/Logora.js +55 -24
  235. package/dist/components/icons/bild_icons/Mail.js +5 -10
  236. package/dist/components/icons/bild_icons/MinusCircle.js +20 -23
  237. package/dist/components/icons/bild_icons/MobileClose.js +23 -18
  238. package/dist/components/icons/bild_icons/MobileMenu.js +28 -28
  239. package/dist/components/icons/bild_icons/Next.js +22 -21
  240. package/dist/components/icons/bild_icons/OpenBlank.js +20 -14
  241. package/dist/components/icons/bild_icons/OrderedList.js +5 -10
  242. package/dist/components/icons/bild_icons/PauseCircle.js +22 -33
  243. package/dist/components/icons/bild_icons/Point.js +24 -20
  244. package/dist/components/icons/bild_icons/Question.js +14 -17
  245. package/dist/components/icons/bild_icons/Refresh.js +8 -10
  246. package/dist/components/icons/bild_icons/Reply.js +8 -10
  247. package/dist/components/icons/bild_icons/Search.js +5 -10
  248. package/dist/components/icons/bild_icons/Send.js +5 -10
  249. package/dist/components/icons/bild_icons/Share.js +14 -11
  250. package/dist/components/icons/bild_icons/SmallArrow.js +5 -10
  251. package/dist/components/icons/bild_icons/Source.js +5 -10
  252. package/dist/components/icons/bild_icons/Suggestion.js +24 -18
  253. package/dist/components/icons/bild_icons/Twitter.js +43 -28
  254. package/dist/components/icons/bild_icons/Underline.js +5 -10
  255. package/dist/components/icons/bild_icons/Upvote.js +5 -10
  256. package/dist/components/icons/bild_icons/User.js +5 -10
  257. package/dist/components/icons/bild_icons/Versus.js +11 -13
  258. package/dist/components/icons/bild_icons/Votebox.js +14 -11
  259. package/dist/components/icons/bild_icons/index.js +105 -109
  260. package/dist/components/icons/hero_icons/Alarm.js +23 -17
  261. package/dist/components/icons/hero_icons/Announcement.js +23 -17
  262. package/dist/components/icons/hero_icons/Arrow.js +23 -17
  263. package/dist/components/icons/hero_icons/Blockquote.js +25 -26
  264. package/dist/components/icons/hero_icons/Bold.js +22 -16
  265. package/dist/components/icons/hero_icons/Camera.js +33 -21
  266. package/dist/components/icons/hero_icons/Chat.js +23 -17
  267. package/dist/components/icons/hero_icons/Check.js +23 -17
  268. package/dist/components/icons/hero_icons/CheckCircle.js +21 -19
  269. package/dist/components/icons/hero_icons/Checkbox.js +23 -17
  270. package/dist/components/icons/hero_icons/Clap.js +23 -17
  271. package/dist/components/icons/hero_icons/Clock.js +23 -17
  272. package/dist/components/icons/hero_icons/Close.js +23 -17
  273. package/dist/components/icons/hero_icons/Code.js +23 -17
  274. package/dist/components/icons/hero_icons/Community.js +23 -17
  275. package/dist/components/icons/hero_icons/Crown.js +23 -17
  276. package/dist/components/icons/hero_icons/Downvote.js +23 -17
  277. package/dist/components/icons/hero_icons/Ellipsis.js +23 -17
  278. package/dist/components/icons/hero_icons/ExpertBadge.js +23 -17
  279. package/dist/components/icons/hero_icons/Facebook.js +5 -10
  280. package/dist/components/icons/hero_icons/Flag.js +5 -10
  281. package/dist/components/icons/hero_icons/Home.js +23 -17
  282. package/dist/components/icons/hero_icons/Italic.js +22 -16
  283. package/dist/components/icons/hero_icons/LightArrow.js +14 -11
  284. package/dist/components/icons/hero_icons/Link.js +23 -17
  285. package/dist/components/icons/hero_icons/Login.js +24 -18
  286. package/dist/components/icons/hero_icons/Logora.js +55 -24
  287. package/dist/components/icons/hero_icons/Mail.js +23 -17
  288. package/dist/components/icons/hero_icons/MinusCircle.js +20 -23
  289. package/dist/components/icons/hero_icons/MobileClose.js +23 -17
  290. package/dist/components/icons/hero_icons/MobileMenu.js +23 -17
  291. package/dist/components/icons/hero_icons/Next.js +23 -17
  292. package/dist/components/icons/hero_icons/OpenBlank.js +23 -17
  293. package/dist/components/icons/hero_icons/OrderedList.js +60 -46
  294. package/dist/components/icons/hero_icons/PauseCircle.js +22 -33
  295. package/dist/components/icons/hero_icons/Point.js +24 -20
  296. package/dist/components/icons/hero_icons/Question.js +23 -17
  297. package/dist/components/icons/hero_icons/Refresh.js +23 -17
  298. package/dist/components/icons/hero_icons/Reply.js +23 -17
  299. package/dist/components/icons/hero_icons/Search.js +23 -17
  300. package/dist/components/icons/hero_icons/Send.js +23 -17
  301. package/dist/components/icons/hero_icons/Share.js +23 -17
  302. package/dist/components/icons/hero_icons/SmallArrow.js +23 -17
  303. package/dist/components/icons/hero_icons/Source.js +23 -17
  304. package/dist/components/icons/hero_icons/Suggestion.js +23 -17
  305. package/dist/components/icons/hero_icons/Twitter.js +43 -28
  306. package/dist/components/icons/hero_icons/Underline.js +25 -26
  307. package/dist/components/icons/hero_icons/Upvote.js +23 -17
  308. package/dist/components/icons/hero_icons/User.js +23 -17
  309. package/dist/components/icons/hero_icons/Versus.js +23 -17
  310. package/dist/components/icons/hero_icons/Votebox.js +23 -17
  311. package/dist/components/icons/hero_icons/index.js +103 -107
  312. package/dist/components/icons/icon/Icon.js +23 -19
  313. package/dist/components/icons/icon_provider/IconProvider.js +6 -8
  314. package/dist/components/icons/krone_icons/Alarm.js +29 -27
  315. package/dist/components/icons/krone_icons/Announcement.js +21 -15
  316. package/dist/components/icons/krone_icons/Arrow.js +5 -10
  317. package/dist/components/icons/krone_icons/Blockquote.js +5 -10
  318. package/dist/components/icons/krone_icons/Bold.js +5 -10
  319. package/dist/components/icons/krone_icons/Camera.js +8 -10
  320. package/dist/components/icons/krone_icons/Chat.js +31 -29
  321. package/dist/components/icons/krone_icons/Check.js +5 -10
  322. package/dist/components/icons/krone_icons/CheckBox.js +22 -16
  323. package/dist/components/icons/krone_icons/CheckCircle.js +21 -19
  324. package/dist/components/icons/krone_icons/Clap.js +31 -29
  325. package/dist/components/icons/krone_icons/Clock.js +5 -10
  326. package/dist/components/icons/krone_icons/Close.js +5 -10
  327. package/dist/components/icons/krone_icons/Code.js +35 -31
  328. package/dist/components/icons/krone_icons/Community.js +5 -10
  329. package/dist/components/icons/krone_icons/Crown.js +5 -10
  330. package/dist/components/icons/krone_icons/Document.js +5 -10
  331. package/dist/components/icons/krone_icons/Downvote.js +5 -10
  332. package/dist/components/icons/krone_icons/Ellipsis.js +23 -17
  333. package/dist/components/icons/krone_icons/ExpertBadge.js +31 -29
  334. package/dist/components/icons/krone_icons/Facebook.js +5 -10
  335. package/dist/components/icons/krone_icons/Flag.js +5 -10
  336. package/dist/components/icons/krone_icons/Home.js +31 -29
  337. package/dist/components/icons/krone_icons/Italic.js +5 -10
  338. package/dist/components/icons/krone_icons/LightArrow.js +5 -10
  339. package/dist/components/icons/krone_icons/Link.js +8 -10
  340. package/dist/components/icons/krone_icons/Login.js +29 -17
  341. package/dist/components/icons/krone_icons/Logora.js +55 -24
  342. package/dist/components/icons/krone_icons/Mail.js +5 -10
  343. package/dist/components/icons/krone_icons/MinusCircle.js +20 -23
  344. package/dist/components/icons/krone_icons/MobileClose.js +14 -17
  345. package/dist/components/icons/krone_icons/MobileMenu.js +28 -28
  346. package/dist/components/icons/krone_icons/Next.js +22 -21
  347. package/dist/components/icons/krone_icons/OpenBlank.js +20 -14
  348. package/dist/components/icons/krone_icons/OrderedList.js +5 -10
  349. package/dist/components/icons/krone_icons/PauseCircle.js +21 -32
  350. package/dist/components/icons/krone_icons/Point.js +24 -20
  351. package/dist/components/icons/krone_icons/Question.js +31 -29
  352. package/dist/components/icons/krone_icons/Refresh.js +8 -10
  353. package/dist/components/icons/krone_icons/Reply.js +23 -17
  354. package/dist/components/icons/krone_icons/Search.js +5 -10
  355. package/dist/components/icons/krone_icons/Send.js +30 -25
  356. package/dist/components/icons/krone_icons/Share.js +16 -13
  357. package/dist/components/icons/krone_icons/SmallArrow.js +5 -10
  358. package/dist/components/icons/krone_icons/Source.js +5 -10
  359. package/dist/components/icons/krone_icons/Suggestion.js +31 -29
  360. package/dist/components/icons/krone_icons/Twitter.js +43 -28
  361. package/dist/components/icons/krone_icons/Underline.js +5 -10
  362. package/dist/components/icons/krone_icons/Upvote.js +31 -29
  363. package/dist/components/icons/krone_icons/User.js +37 -32
  364. package/dist/components/icons/krone_icons/Versus.js +5 -10
  365. package/dist/components/icons/krone_icons/Votebox.js +31 -29
  366. package/dist/components/icons/krone_icons/index.js +105 -109
  367. package/dist/components/icons/regular_icons/Alarm.js +12 -14
  368. package/dist/components/icons/regular_icons/Announcement.js +14 -19
  369. package/dist/components/icons/regular_icons/Arrow.js +5 -10
  370. package/dist/components/icons/regular_icons/Blockquote.js +5 -10
  371. package/dist/components/icons/regular_icons/Bold.js +5 -10
  372. package/dist/components/icons/regular_icons/Camera.js +8 -10
  373. package/dist/components/icons/regular_icons/Chat.js +10 -15
  374. package/dist/components/icons/regular_icons/Check.js +5 -10
  375. package/dist/components/icons/regular_icons/CheckCircle.js +21 -19
  376. package/dist/components/icons/regular_icons/Checkbox.js +8 -10
  377. package/dist/components/icons/regular_icons/Clap.js +12 -14
  378. package/dist/components/icons/regular_icons/Clock.js +5 -10
  379. package/dist/components/icons/regular_icons/Close.js +5 -10
  380. package/dist/components/icons/regular_icons/Code.js +35 -31
  381. package/dist/components/icons/regular_icons/Community.js +5 -10
  382. package/dist/components/icons/regular_icons/Crown.js +5 -10
  383. package/dist/components/icons/regular_icons/Document.js +5 -10
  384. package/dist/components/icons/regular_icons/Downvote.js +5 -10
  385. package/dist/components/icons/regular_icons/Ellipsis.js +5 -10
  386. package/dist/components/icons/regular_icons/ExpertBadge.js +41 -31
  387. package/dist/components/icons/regular_icons/Facebook.js +5 -10
  388. package/dist/components/icons/regular_icons/Flag.js +5 -10
  389. package/dist/components/icons/regular_icons/Home.js +5 -10
  390. package/dist/components/icons/regular_icons/Italic.js +5 -10
  391. package/dist/components/icons/regular_icons/LightArrow.js +5 -10
  392. package/dist/components/icons/regular_icons/Link.js +8 -10
  393. package/dist/components/icons/regular_icons/Login.js +29 -17
  394. package/dist/components/icons/regular_icons/Logora.js +55 -24
  395. package/dist/components/icons/regular_icons/Mail.js +5 -10
  396. package/dist/components/icons/regular_icons/MinusCircle.js +20 -23
  397. package/dist/components/icons/regular_icons/MobileClose.js +14 -17
  398. package/dist/components/icons/regular_icons/MobileMenu.js +28 -28
  399. package/dist/components/icons/regular_icons/Next.js +22 -21
  400. package/dist/components/icons/regular_icons/OpenBlank.js +20 -14
  401. package/dist/components/icons/regular_icons/OrderedList.js +5 -10
  402. package/dist/components/icons/regular_icons/PauseCircle.js +21 -32
  403. package/dist/components/icons/regular_icons/Point.js +24 -20
  404. package/dist/components/icons/regular_icons/Question.js +14 -17
  405. package/dist/components/icons/regular_icons/Refresh.js +8 -10
  406. package/dist/components/icons/regular_icons/Reply.js +8 -10
  407. package/dist/components/icons/regular_icons/Search.js +5 -10
  408. package/dist/components/icons/regular_icons/Send.js +5 -10
  409. package/dist/components/icons/regular_icons/Share.js +14 -11
  410. package/dist/components/icons/regular_icons/SmallArrow.js +5 -10
  411. package/dist/components/icons/regular_icons/Source.js +5 -10
  412. package/dist/components/icons/regular_icons/Suggestion.js +24 -18
  413. package/dist/components/icons/regular_icons/Twitter.js +43 -28
  414. package/dist/components/icons/regular_icons/Underline.js +5 -10
  415. package/dist/components/icons/regular_icons/Upvote.js +5 -10
  416. package/dist/components/icons/regular_icons/User.js +5 -10
  417. package/dist/components/icons/regular_icons/Versus.js +5 -10
  418. package/dist/components/icons/regular_icons/Votebox.js +14 -11
  419. package/dist/components/icons/regular_icons/index.js +105 -109
  420. package/dist/components/icons/spiegel_icons/Alarm.js +12 -14
  421. package/dist/components/icons/spiegel_icons/Announcement.js +14 -19
  422. package/dist/components/icons/spiegel_icons/Arrow.js +5 -10
  423. package/dist/components/icons/spiegel_icons/Blockquote.js +24 -25
  424. package/dist/components/icons/spiegel_icons/Bold.js +21 -15
  425. package/dist/components/icons/spiegel_icons/Camera.js +8 -10
  426. package/dist/components/icons/spiegel_icons/Chat.js +14 -11
  427. package/dist/components/icons/spiegel_icons/Check.js +5 -10
  428. package/dist/components/icons/spiegel_icons/CheckCircle.js +31 -19
  429. package/dist/components/icons/spiegel_icons/Checkbox.js +24 -25
  430. package/dist/components/icons/spiegel_icons/Clap.js +24 -25
  431. package/dist/components/icons/spiegel_icons/Clock.js +27 -25
  432. package/dist/components/icons/spiegel_icons/Close.js +12 -14
  433. package/dist/components/icons/spiegel_icons/Code.js +35 -31
  434. package/dist/components/icons/spiegel_icons/Community.js +5 -10
  435. package/dist/components/icons/spiegel_icons/Crown.js +14 -11
  436. package/dist/components/icons/spiegel_icons/Downvote.js +5 -10
  437. package/dist/components/icons/spiegel_icons/Ellipsis.js +14 -11
  438. package/dist/components/icons/spiegel_icons/ExpertBadge.js +32 -27
  439. package/dist/components/icons/spiegel_icons/Facebook.js +21 -15
  440. package/dist/components/icons/spiegel_icons/Flag.js +31 -19
  441. package/dist/components/icons/spiegel_icons/Home.js +5 -10
  442. package/dist/components/icons/spiegel_icons/Italic.js +21 -15
  443. package/dist/components/icons/spiegel_icons/LightArrow.js +14 -11
  444. package/dist/components/icons/spiegel_icons/Link.js +21 -25
  445. package/dist/components/icons/spiegel_icons/Login.js +24 -18
  446. package/dist/components/icons/spiegel_icons/Logora.js +55 -24
  447. package/dist/components/icons/spiegel_icons/Mail.js +21 -15
  448. package/dist/components/icons/spiegel_icons/MinusCircle.js +31 -19
  449. package/dist/components/icons/spiegel_icons/MobileClose.js +23 -18
  450. package/dist/components/icons/spiegel_icons/MobileMenu.js +28 -28
  451. package/dist/components/icons/spiegel_icons/Next.js +22 -21
  452. package/dist/components/icons/spiegel_icons/OpenBlank.js +20 -14
  453. package/dist/components/icons/spiegel_icons/OrderedList.js +24 -28
  454. package/dist/components/icons/spiegel_icons/PauseCircle.js +31 -19
  455. package/dist/components/icons/spiegel_icons/Point.js +24 -20
  456. package/dist/components/icons/spiegel_icons/Question.js +28 -29
  457. package/dist/components/icons/spiegel_icons/Refresh.js +8 -10
  458. package/dist/components/icons/spiegel_icons/Reply.js +14 -11
  459. package/dist/components/icons/spiegel_icons/Search.js +5 -10
  460. package/dist/components/icons/spiegel_icons/Send.js +5 -10
  461. package/dist/components/icons/spiegel_icons/Share.js +24 -25
  462. package/dist/components/icons/spiegel_icons/SmallArrow.js +14 -11
  463. package/dist/components/icons/spiegel_icons/Source.js +5 -10
  464. package/dist/components/icons/spiegel_icons/Suggestion.js +21 -15
  465. package/dist/components/icons/spiegel_icons/Twitter.js +43 -28
  466. package/dist/components/icons/spiegel_icons/Underline.js +24 -25
  467. package/dist/components/icons/spiegel_icons/Upvote.js +5 -10
  468. package/dist/components/icons/spiegel_icons/User.js +5 -10
  469. package/dist/components/icons/spiegel_icons/Versus.js +11 -13
  470. package/dist/components/icons/spiegel_icons/Votebox.js +24 -25
  471. package/dist/components/icons/spiegel_icons/index.js +103 -107
  472. package/dist/components/input/argument_input/ArgumentInput.js +387 -283
  473. package/dist/components/input/argument_input/ArgumentInput.module.scss.js +43 -0
  474. package/dist/components/input/argument_input/index.js +4 -2
  475. package/dist/components/input/checkbox/hidden/hidden-checkbox.js +15 -12
  476. package/dist/components/input/checkbox/hidden/hidden-checkbox.module.scss.js +7 -0
  477. package/dist/components/input/checkbox/indicator/checkbox-indicator.js +19 -15
  478. package/dist/components/input/checkbox/indicator/checkbox-indicator.module.scss.js +9 -0
  479. package/dist/components/input/checkbox/label/checkbox-label.js +38 -24
  480. package/dist/components/input/input_provider/InputProvider.js +24 -20
  481. package/dist/components/input/input_provider/useInput.js +5 -5
  482. package/dist/components/input/search_input/SearchInput.js +99 -73
  483. package/dist/components/input/search_input/SearchInput.module.scss.js +11 -0
  484. package/dist/components/input/select/Select.js +85 -74
  485. package/dist/components/input/select/Select.module.scss.js +19 -0
  486. package/dist/components/input/text_editor/EditorTheme.js +70 -68
  487. package/dist/components/input/text_editor/TextEditor.js +170 -145
  488. package/dist/components/input/text_editor/TextEditor.module.scss.js +45 -0
  489. package/dist/components/input/text_editor/lexicalToHtml.js +18 -20
  490. package/dist/components/input/text_editor/plugins/AutoSavePlugin.js +33 -24
  491. package/dist/components/input/text_editor/plugins/FocusPlugin.js +13 -13
  492. package/dist/components/input/text_editor/plugins/MaxLengthPlugin.js +24 -21
  493. package/dist/components/input/text_editor/plugins/ResetPlugin.js +20 -17
  494. package/dist/components/input/text_editor/plugins/SetContentPlugin.js +17 -17
  495. package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +14 -14
  496. package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +229 -168
  497. package/dist/components/input/text_editor/plugins/ToolbarPlugin.module.scss.js +25 -0
  498. package/dist/components/input/text_input/TextInput.js +61 -34
  499. package/dist/components/input/text_input/TextInput.module.scss.js +21 -0
  500. package/dist/components/input/text_input/color-accent.js +11 -10
  501. package/dist/components/input/text_input/message.js +8 -12
  502. package/dist/components/input/toggle/Toggle.js +23 -24
  503. package/dist/components/input/toggle/Toggle.module.scss.js +15 -0
  504. package/dist/components/input/toggle_position/TogglePosition.js +65 -46
  505. package/dist/components/input/toggle_position/TogglePosition.module.scss.js +15 -0
  506. package/dist/components/intl/intl_provider/IntlContext.js +5 -5
  507. package/dist/components/intl/intl_provider/IntlProvider.js +46 -37
  508. package/dist/components/intl/intl_provider/useLocale.js +8 -11
  509. package/dist/components/list/list_provider/ListProvider.js +45 -44
  510. package/dist/components/list/list_provider/useList.js +34 -21
  511. package/dist/components/list/paginated_list/PaginatedList.js +244 -176
  512. package/dist/components/list/paginated_list/PaginatedList.module.scss.js +33 -0
  513. package/dist/components/list/paginated_list/VotePaginatedList.js +22 -18
  514. package/dist/components/list/paginated_list/action_bar/ActionBar.js +109 -73
  515. package/dist/components/list/paginated_list/action_bar/ActionBar.module.scss.js +23 -0
  516. package/dist/components/list/pagination/Pagination.js +33 -26
  517. package/dist/components/list/pagination/Pagination.module.scss.js +7 -0
  518. package/dist/components/modal/side_modal/SideModal.js +72 -58
  519. package/dist/components/modal/side_modal/SideModal.module.scss.js +19 -0
  520. package/dist/components/modal/side_modal/index.js +3 -1
  521. package/dist/components/navbar/navbar_button/NavbarButton.js +32 -27
  522. package/dist/components/navbar/navbar_button/NavbarButton.module.scss.js +9 -0
  523. package/dist/components/navbar/navbar_modal/NavbarModal.js +182 -154
  524. package/dist/components/navbar/navbar_modal/NavbarModal.module.scss.js +25 -0
  525. package/dist/components/notification/notification_item/NotificationItem.js +77 -47
  526. package/dist/components/notification/notification_item/NotificationItem.module.scss.js +17 -0
  527. package/dist/components/notification/notification_menu/NotificationMenu.js +59 -52
  528. package/dist/components/notification/notification_menu/NotificationMenu.module.scss.js +13 -0
  529. package/dist/components/progress/loader/Loader.js +6 -12
  530. package/dist/components/progress/loader/Loader.module.scss.js +9 -0
  531. package/dist/components/progress/progress_bar/ProgressBar.js +48 -56
  532. package/dist/components/progress/progress_bar/ProgressBar.module.scss.js +23 -0
  533. package/dist/components/proposal/proposal_box/ProposalBox.js +139 -106
  534. package/dist/components/proposal/proposal_box/ProposalBox.module.scss.js +19 -0
  535. package/dist/components/report/report_box/ReportBox.js +103 -100
  536. package/dist/components/report/report_box/ReportBox.module.scss.js +19 -0
  537. package/dist/components/section/section_box/SectionBox.js +55 -37
  538. package/dist/components/section/section_box/SectionBox.module.scss.js +25 -0
  539. package/dist/components/share/share_box/ShareBox.js +182 -130
  540. package/dist/components/share/share_box/ShareBox.module.scss.js +17 -0
  541. package/dist/components/share/share_button/ShareButton.js +91 -71
  542. package/dist/components/share/share_button/ShareButton.module.scss.js +15 -0
  543. package/dist/components/share/share_modal/ShareModal.js +30 -26
  544. package/dist/components/share/share_modal/ShareModal.module.scss.js +7 -0
  545. package/dist/components/share/share_modal/index.js +4 -2
  546. package/dist/components/skeleton/box_skeleton/BoxSkeleton.js +83 -61
  547. package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.js +48 -54
  548. package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.module.scss.js +23 -0
  549. package/dist/components/source/context_source_box/ContextSourceBox.js +39 -42
  550. package/dist/components/source/context_source_box/ContextSourceBox.module.scss.js +17 -0
  551. package/dist/components/source/context_source_list/ContextSourceList.js +53 -40
  552. package/dist/components/source/context_source_list/ContextSourceList.module.scss.js +15 -0
  553. package/dist/components/source/source_box/SourceBox.js +31 -38
  554. package/dist/components/source/source_box/SourceBox.module.scss.js +19 -0
  555. package/dist/components/source/source_list_item/SourceListItem.js +33 -31
  556. package/dist/components/source/source_list_item/SourceListItem.module.scss.js +9 -0
  557. package/dist/components/source/source_modal/SourceModal.js +138 -108
  558. package/dist/components/source/source_modal/SourceModal.module.scss.js +19 -0
  559. package/dist/components/suggestion/suggestion_banner/SuggestionBanner.js +122 -96
  560. package/dist/components/suggestion/suggestion_banner/SuggestionBanner.module.scss.js +23 -0
  561. package/dist/components/suggestion/suggestion_box/SuggestionBox.js +117 -94
  562. package/dist/components/suggestion/suggestion_box/SuggestionBox.module.scss.js +23 -0
  563. package/dist/components/suggestion/suggestion_input/SuggestionInput.js +182 -154
  564. package/dist/components/suggestion/suggestion_input/SuggestionInput.module.scss.js +19 -0
  565. package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.js +64 -60
  566. package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.module.scss.js +23 -0
  567. package/dist/components/summary/keyword_box/KeywordBox.js +34 -36
  568. package/dist/components/summary/keyword_box/KeywordBox.module.scss.js +13 -0
  569. package/dist/components/summary/summary/Summary.js +87 -72
  570. package/dist/components/summary/summary/Summary.module.scss.js +9 -0
  571. package/dist/components/summary/summary_box/SummaryBox.js +17 -21
  572. package/dist/components/summary/summary_box/SummaryBox.module.scss.js +17 -0
  573. package/dist/components/tag/tag/Tag.js +34 -17
  574. package/dist/components/tag/tag/Tag.module.scss.js +9 -0
  575. package/dist/components/text/expandable_text/ArrowIcon.js +5 -10
  576. package/dist/components/text/expandable_text/ExpandableText.js +70 -50
  577. package/dist/components/text/expandable_text/ExpandableText.module.scss.js +17 -0
  578. package/dist/components/text/read_more/ReadMore.js +79 -61
  579. package/dist/components/text/read_more/ReadMore.module.scss.js +19 -0
  580. package/dist/components/tools/hash_scroll/HashScroll.js +17 -17
  581. package/dist/components/tools/scroll_to_top/ScrollToTop.js +16 -14
  582. package/dist/components/translation/translated_content/TranslatedContent.js +19 -6
  583. package/dist/components/translation/translated_content/useTranslatedContent.js +53 -25
  584. package/dist/components/translation/translation_button/TranslationButton.js +50 -32
  585. package/dist/components/translation/translation_button/TranslationButton.module.scss.js +7 -0
  586. package/dist/components/user/author_box/AuthorBox.js +116 -110
  587. package/dist/components/user/author_box/AuthorBox.module.scss.js +33 -0
  588. package/dist/components/user/avatar/Avatar.js +75 -52
  589. package/dist/components/user/avatar/Avatar.module.scss.js +13 -0
  590. package/dist/components/user/avatar/DefaultAvatar.js +11 -16
  591. package/dist/components/user/avatar_selector/AvatarSelector.js +127 -106
  592. package/dist/components/user/avatar_selector/AvatarSelector.module.scss.js +33 -0
  593. package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.js +290 -249
  594. package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.module.scss.js +29 -0
  595. package/dist/components/user/update_user_info_modal/useUpdateUserInfo.js +25 -24
  596. package/dist/components/user/user_box/UserBox.js +78 -78
  597. package/dist/components/user/user_box/UserBox.module.scss.js +17 -0
  598. package/dist/components/user/user_box_small/UserBoxSmall.js +40 -41
  599. package/dist/components/user/user_box_small/UserBoxSmall.module.scss.js +9 -0
  600. package/dist/components/user_content/content_footer/ContentFooter.js +245 -170
  601. package/dist/components/user_content/content_footer/ContentFooter.module.scss.js +19 -0
  602. package/dist/components/user_content/content_header/ContentHeader.js +126 -118
  603. package/dist/components/user_content/content_header/ContentHeader.module.scss.js +29 -0
  604. package/dist/components/user_content/summary_content_box/SummaryContentBox.js +102 -69
  605. package/dist/components/user_content/summary_content_box/SummaryContentBox.module.scss.js +17 -0
  606. package/dist/components/user_content/use_delete_content/useDeleteContent.js +52 -44
  607. package/dist/components/user_content/use_report_content/ReportModal.js +267 -264
  608. package/dist/components/user_content/use_report_content/ReportModal.module.scss.js +27 -0
  609. package/dist/components/user_content/use_report_content/useReportContent.js +25 -23
  610. package/dist/components/util/lang_emojis/langEmojis.js +59 -57
  611. package/dist/components/util/location/Location.js +49 -40
  612. package/dist/components/util/unique_by/uniqueBy.js +8 -6
  613. package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.js +93 -80
  614. package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.module.scss.js +9 -0
  615. package/dist/components/vote/up_down_vote_box/UpDownVoteBox.js +71 -53
  616. package/dist/components/vote/up_down_vote_box/UpDownVoteBox.module.scss.js +17 -0
  617. package/dist/components/vote/use_vote/useVote.js +74 -61
  618. package/dist/components/vote/vote_box/VoteBox.js +423 -294
  619. package/dist/components/vote/vote_box/VoteBox.module.scss.js +59 -0
  620. package/dist/components/vote/vote_button/VoteButton.js +55 -37
  621. package/dist/components/vote/vote_button/VoteButton.module.scss.js +11 -0
  622. package/dist/components/vote/vote_provider/VoteProvider.js +36 -39
  623. package/dist/index.js +310 -202
  624. package/package.json +17 -16
  625. package/dist/_virtual/_rolldown/runtime.js +0 -11
  626. package/dist/assets/debate-89_S7oMP.css +0 -2
  627. package/dist/components/action/back_link/BackLink.module.js +0 -6
  628. package/dist/components/action/button/Button.module.js +0 -10
  629. package/dist/components/action/icon_text_link/IconTextLink.module.js +0 -11
  630. package/dist/components/ad/ad_unit/AdUnit.module.js +0 -3
  631. package/dist/components/argument/argument/Argument.module.js +0 -34
  632. package/dist/components/argument/argument/ReplyFooter.module.js +0 -10
  633. package/dist/components/argument/top_arguments/TopArguments.module.js +0 -9
  634. package/dist/components/auth/auth_modal/AuthModal.module.js +0 -3
  635. package/dist/components/auth/facebook_login_button/FacebookLoginButton.module.js +0 -6
  636. package/dist/components/auth/google_login_button/GoogleLoginButton.module.js +0 -6
  637. package/dist/components/auth/login_form/LoginForm.module.js +0 -9
  638. package/dist/components/auth/oauth2_button/OAuth2Button.module.js +0 -6
  639. package/dist/components/auth/signup_form/SignupForm.module.js +0 -7
  640. package/dist/components/auth/social_auth_form/SocialAuthForm.module.js +0 -21
  641. package/dist/components/auth/sso_form/SSOForm.module.js +0 -17
  642. package/dist/components/chart/line_chart/LineChart.module.js +0 -9
  643. package/dist/components/chart/pie_chart/PieChart.module.js +0 -3
  644. package/dist/components/consultation/consultation_box/ConsultationBox.module.js +0 -21
  645. package/dist/components/debate/debate_box/DebateBox.module.js +0 -26
  646. package/dist/components/dialog/announcement_dialog/AnnouncementDialog.module.js +0 -8
  647. package/dist/components/dialog/confirm_modal/ConfirmModal.module.js +0 -8
  648. package/dist/components/dialog/dialog_box/DialogBox.module.js +0 -16
  649. package/dist/components/dialog/drawer/Drawer.module.js +0 -17
  650. package/dist/components/dialog/dropdown/Dropdown.module.js +0 -10
  651. package/dist/components/dialog/modal/Modal.module.js +0 -12
  652. package/dist/components/dialog/toast/Toast.module.js +0 -14
  653. package/dist/components/dialog/toast_provider/ToastProvider.module.js +0 -3
  654. package/dist/components/dialog/tooltip/Tooltip.module.js +0 -12
  655. package/dist/components/embed/embed_header/EmbedHeader.module.js +0 -18
  656. package/dist/components/error/standard_error_boundary/StandardErrorBoundary.module.js +0 -3
  657. package/dist/components/follow/follow_button/FollowButton.module.js +0 -6
  658. package/dist/components/gamification/badge_box/BadgeBox.module.js +0 -19
  659. package/dist/components/gamification/point_box/PointBox.module.js +0 -7
  660. package/dist/components/input/argument_input/ArgumentInput.module.js +0 -23
  661. package/dist/components/input/checkbox/hidden/hidden-checkbox.module.js +0 -3
  662. package/dist/components/input/checkbox/indicator/checkbox-indicator.module.js +0 -6
  663. package/dist/components/input/search_input/SearchInput.module.js +0 -8
  664. package/dist/components/input/select/Select.module.js +0 -12
  665. package/dist/components/input/text_editor/TextEditor.module.js +0 -24
  666. package/dist/components/input/text_editor/plugins/ToolbarPlugin.module.js +0 -17
  667. package/dist/components/input/text_input/TextInput.module.js +0 -12
  668. package/dist/components/input/toggle/Toggle.module.js +0 -9
  669. package/dist/components/input/toggle_position/TogglePosition.module.js +0 -10
  670. package/dist/components/list/paginated_list/PaginatedList.module.js +0 -18
  671. package/dist/components/list/paginated_list/action_bar/ActionBar.module.js +0 -13
  672. package/dist/components/list/pagination/Pagination.module.js +0 -3
  673. package/dist/components/modal/side_modal/SideModal.module.js +0 -11
  674. package/dist/components/navbar/navbar_button/NavbarButton.module.js +0 -6
  675. package/dist/components/navbar/navbar_modal/NavbarModal.module.js +0 -16
  676. package/dist/components/notification/notification_item/NotificationItem.module.js +0 -10
  677. package/dist/components/notification/notification_menu/NotificationMenu.module.js +0 -8
  678. package/dist/components/progress/loader/Loader.module.js +0 -7
  679. package/dist/components/progress/progress_bar/ProgressBar.module.js +0 -14
  680. package/dist/components/proposal/proposal_box/ProposalBox.module.js +0 -11
  681. package/dist/components/report/report_box/ReportBox.module.js +0 -11
  682. package/dist/components/section/section_box/SectionBox.module.js +0 -14
  683. package/dist/components/share/share_box/ShareBox.module.js +0 -10
  684. package/dist/components/share/share_button/ShareButton.module.js +0 -9
  685. package/dist/components/share/share_modal/ShareModal.module.js +0 -3
  686. package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.module.js +0 -13
  687. package/dist/components/source/context_source_box/ContextSourceBox.module.js +0 -10
  688. package/dist/components/source/context_source_list/ContextSourceList.module.js +0 -10
  689. package/dist/components/source/source_box/SourceBox.module.js +0 -11
  690. package/dist/components/source/source_list_item/SourceListItem.module.js +0 -6
  691. package/dist/components/source/source_modal/SourceModal.module.js +0 -11
  692. package/dist/components/suggestion/suggestion_banner/SuggestionBanner.module.js +0 -13
  693. package/dist/components/suggestion/suggestion_box/SuggestionBox.module.js +0 -13
  694. package/dist/components/suggestion/suggestion_input/SuggestionInput.module.js +0 -11
  695. package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.module.js +0 -13
  696. package/dist/components/summary/keyword_box/KeywordBox.module.js +0 -11
  697. package/dist/components/summary/summary/Summary.module.js +0 -6
  698. package/dist/components/summary/summary_box/SummaryBox.module.js +0 -10
  699. package/dist/components/tag/tag/Tag.module.js +0 -6
  700. package/dist/components/text/expandable_text/ExpandableText.module.js +0 -10
  701. package/dist/components/text/read_more/ReadMore.module.js +0 -11
  702. package/dist/components/translation/translation_button/TranslationButton.module.js +0 -3
  703. package/dist/components/user/author_box/AuthorBox.module.js +0 -18
  704. package/dist/components/user/avatar/Avatar.module.js +0 -8
  705. package/dist/components/user/avatar_selector/AvatarSelector.module.js +0 -18
  706. package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.module.js +0 -23
  707. package/dist/components/user/user_box/UserBox.module.js +0 -13
  708. package/dist/components/user/user_box_small/UserBoxSmall.module.js +0 -6
  709. package/dist/components/user_content/content_footer/ContentFooter.module.js +0 -11
  710. package/dist/components/user_content/content_header/ContentHeader.module.js +0 -16
  711. package/dist/components/user_content/summary_content_box/SummaryContentBox.module.js +0 -10
  712. package/dist/components/user_content/use_report_content/ReportModal.module.js +0 -15
  713. package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.module.js +0 -6
  714. package/dist/components/vote/up_down_vote_box/UpDownVoteBox.module.js +0 -10
  715. package/dist/components/vote/vote_box/VoteBox.module.js +0 -31
  716. package/dist/components/vote/vote_button/VoteButton.module.js +0 -7
@@ -1,265 +1,268 @@
1
- import { Button as e } from "../../action/button/Button.js";
2
- import { useAuth as t } from "../../auth/use_auth/useAuth.js";
3
- import { useDataProvider as n } from "../../data/data_provider/useDataProvider.js";
4
- import { Loader as r } from "../../progress/loader/Loader.js";
5
- import { Select as i } from "../../input/select/Select.js";
6
- import { useModal as a } from "../../dialog/modal/useModal.js";
7
- import { Modal as o } from "../../dialog/modal/Modal.js";
8
- import s from "./ReportModal.module.js";
9
- import { useState as c } from "react";
10
- import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
11
- import f from "classnames";
12
- import { useIntl as p } from "react-intl";
13
- //#region src/components/user_content/use_report_content/ReportModal.jsx
14
- var m = (m) => {
15
- let [h, g] = c("SUBMIT"), [_, v] = c(""), [y, b] = c(""), [x, S] = c(""), [C, w] = c(""), [T, E] = c(""), [D, O] = c(!1), { hideModal: k } = a(), { isLoggedIn: A, currentUser: j } = t(), M = p(), N = n();
16
- return /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(o, {
17
- "data-vid": "report_modal",
18
- title: m.title || M.formatMessage({
19
- id: "report.report_modal.title",
20
- defaultMessage: "Report content"
21
- }),
22
- showCloseButton: !0,
23
- children: /* @__PURE__ */ u("div", {
24
- className: f(s.reportModalBody),
25
- children: {
26
- SUBMIT: /* @__PURE__ */ d("form", {
27
- onSubmit: (e) => {
28
- e.preventDefault();
29
- let t = {
30
- reportable_id: m.reportableId,
31
- reportable_type: m.reportableType,
32
- classification: y,
33
- description: _,
34
- first_name: x,
35
- last_name: C,
36
- email: T
37
- };
38
- g("LOADING"), N.create("reports", t, {}, A).then((e) => {
39
- g("SUCCESS");
40
- }, (e) => {
41
- g("SUCCESS");
42
- });
43
- },
44
- className: s.reportForm,
45
- children: [
46
- /* @__PURE__ */ d("div", {
47
- className: s.formGroup,
48
- children: [/* @__PURE__ */ u("label", {
49
- htmlFor: "reportType",
50
- children: M.formatMessage({
51
- id: "report.report_modal.type_input_label",
52
- defaultMessage: "Report type"
53
- })
54
- }), /* @__PURE__ */ u(i, {
55
- onChange: (e) => b(e.value),
56
- options: [
57
- {
58
- name: "EMPTY",
59
- value: "",
60
- text: M.formatMessage({
61
- id: "report.report_modal.select_placeholder",
62
- defaultMessage: "Select a reason"
63
- })
64
- },
65
- {
66
- name: "TOXICITY",
67
- value: "TOXICITY",
68
- text: M.formatMessage({
69
- id: "report.report_modal.toxicity_option",
70
- defaultMessage: "Incivility"
71
- })
72
- },
73
- {
74
- name: "OBSCENE",
75
- value: "OBSCENE",
76
- text: M.formatMessage({
77
- id: "report.report_modal.obscene_option",
78
- defaultMessage: "Profanity, Sexually explicit, Flirtation, Obscene"
79
- })
80
- },
81
- {
82
- name: "HATE_SPEECH",
83
- value: "HATE_SPEECH",
84
- text: M.formatMessage({
85
- id: "report.report_modal.hate_speech_option",
86
- defaultMessage: "Hate speech or Identity attack"
87
- })
88
- },
89
- {
90
- name: "INCOHERENT",
91
- value: "INCOHERENT",
92
- text: M.formatMessage({
93
- id: "report.report_modal.incoherent_option",
94
- defaultMessage: "Incomprehensibility"
95
- })
96
- },
97
- {
98
- name: "SPAM",
99
- value: "SPAM",
100
- text: M.formatMessage({
101
- id: "report.report_modal.spam_option",
102
- defaultMessage: "Spam : Irrelevant or unsolicited commercial content / Off-topic"
103
- })
104
- },
105
- {
106
- name: "UNSUBSTANTIAL",
107
- value: "UNSUBSTANTIAL",
108
- text: M.formatMessage({
109
- id: "report.report_modal.unsubstantial_option",
110
- defaultMessage: "Unsubstantial : Trivial or short / Repetition"
111
- })
112
- }
113
- ],
114
- className: s.select
115
- })]
116
- }),
117
- /* @__PURE__ */ d("div", {
118
- className: s.formGroup,
119
- children: [
120
- /* @__PURE__ */ u("label", {
121
- htmlFor: "reportDescription",
122
- children: M.formatMessage({
123
- id: "report.report_modal.description_input_label",
124
- defaultMessage: "Tell us more about your report"
125
- })
126
- }),
127
- /* @__PURE__ */ u("textarea", {
128
- className: s.formControl,
129
- id: "reportDescription",
130
- role: "textbox",
131
- rows: 4,
132
- value: _,
133
- onChange: (e) => v(e.target.value),
134
- placeholder: M.formatMessage({
135
- id: "report.report_modal.description_input_placeholder",
136
- defaultMessage: "Tell us more"
137
- })
138
- }),
139
- j && Object.keys(j).length > 0 && /* @__PURE__ */ u("div", {
140
- className: s.formGroup,
141
- children: /* @__PURE__ */ d("label", {
142
- className: s.checkboxLabel,
143
- children: [/* @__PURE__ */ u("input", {
144
- type: "checkbox",
145
- className: s.checkboxInput,
146
- checked: D,
147
- onChange: (e) => O(e.target.checked),
148
- required: !0
149
- }), M.formatMessage({
150
- id: "report.report_modal.declaration",
151
- defaultMessage: "By submitting this report, I declare that the information provided is, to my knowledge, accurate and complete."
152
- })]
153
- })
154
- })
155
- ]
156
- }),
157
- m.allowAnonymousUser && !(j && Object.keys(j).length > 0) && /* @__PURE__ */ d(l, { children: [
158
- /* @__PURE__ */ d("div", {
159
- className: f(s.formGroup, s.nameGroup),
160
- children: [/* @__PURE__ */ d("div", {
161
- className: s.nameField,
162
- children: [/* @__PURE__ */ u("label", {
163
- htmlFor: "firstName",
164
- children: M.formatMessage({
165
- id: "report.report_modal.first_name_input_label",
166
- defaultMessage: "First Name"
167
- })
168
- }), /* @__PURE__ */ u("input", {
169
- type: "text",
170
- className: s.formControl,
171
- id: "firstName",
172
- value: x,
173
- onChange: (e) => S(e.target.value),
174
- required: !0
175
- })]
176
- }), /* @__PURE__ */ d("div", {
177
- className: s.nameField,
178
- children: [/* @__PURE__ */ u("label", {
179
- htmlFor: "lastName",
180
- children: M.formatMessage({
181
- id: "report.report_modal.last_name_input_label",
182
- defaultMessage: "Last Name"
183
- })
184
- }), /* @__PURE__ */ u("input", {
185
- type: "text",
186
- className: s.formControl,
187
- id: "lastName",
188
- value: C,
189
- onChange: (e) => w(e.target.value),
190
- required: !0
191
- })]
192
- })]
193
- }),
194
- /* @__PURE__ */ d("div", {
195
- className: s.formGroup,
196
- children: [/* @__PURE__ */ u("label", {
197
- htmlFor: "email",
198
- children: M.formatMessage({
199
- id: "report.report_modal.email_input_label",
200
- defaultMessage: "Email"
201
- })
202
- }), /* @__PURE__ */ u("input", {
203
- type: "email",
204
- className: s.formControl,
205
- id: "email",
206
- value: T,
207
- onChange: (e) => E(e.target.value),
208
- required: !0
209
- })]
210
- }),
211
- /* @__PURE__ */ u("div", {
212
- className: s.formGroup,
213
- children: /* @__PURE__ */ d("label", {
214
- className: s.checkboxLabel,
215
- children: [/* @__PURE__ */ u("input", {
216
- type: "checkbox",
217
- className: s.checkboxInput,
218
- checked: D,
219
- onChange: (e) => O(e.target.checked),
220
- required: !0
221
- }), M.formatMessage({
222
- id: "report.report_modal.declaration",
223
- defaultMessage: "By submitting this report, I declare that the information provided is, to my knowledge, accurate and complete."
224
- })]
225
- })
226
- })
227
- ] }),
228
- /* @__PURE__ */ u("div", {
229
- className: f(s.formGroup, s.reportFormSubmit),
230
- children: /* @__PURE__ */ u(e, {
231
- handleClick: () => null,
232
- "data-tid": "action_submit_report",
233
- type: "submit",
234
- disabled: !y,
235
- children: M.formatMessage({
236
- id: "report.report_modal.submit_label",
237
- defaultMessage: "Send"
238
- })
239
- })
240
- })
241
- ]
242
- }),
243
- LOADING: /* @__PURE__ */ u(r, {}),
244
- SUCCESS: /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("div", {
245
- className: s.successText,
246
- children: M.formatMessage({
247
- id: "report.report_modal.success",
248
- defaultMessage: "Thank you for your submission !"
249
- })
250
- }), /* @__PURE__ */ u("div", {
251
- className: s.successButtonBox,
252
- children: /* @__PURE__ */ u(e, {
253
- handleClick: k,
254
- children: M.formatMessage({
255
- id: "report.report_modal.close",
256
- defaultMessage: "Close"
257
- })
258
- })
259
- })] })
260
- }[h]
261
- })
262
- }) });
1
+ import { jsx as t, jsxs as o, Fragment as B } from "react/jsx-runtime";
2
+ import m from "classnames";
3
+ import { useState as s } from "react";
4
+ import { useIntl as F } from "react-intl";
5
+ import e from "./ReportModal.module.scss.js";
6
+ import { useModal as A } from "../../dialog/modal/useModal.js";
7
+ import { useAuth as O } from "../../auth/use_auth/useAuth.js";
8
+ import { useDataProvider as U } from "../../data/data_provider/useDataProvider.js";
9
+ import { Modal as G } from "../../dialog/modal/Modal.js";
10
+ import { Button as _ } from "../../action/button/Button.js";
11
+ import { Loader as L } from "../../progress/loader/Loader.js";
12
+ import { Select as R } from "../../input/select/Select.js";
13
+ const V = (l) => {
14
+ const [M, d] = s("SUBMIT"), [n, b] = s(""), [c, N] = s(""), [p, v] = s(""), [u, y] = s(""), [f, C] = s(""), [h, g] = s(!1), { hideModal: S } = A(), { isLoggedIn: x, currentUser: i } = O(), r = F(), I = U(), T = (a) => {
15
+ a.preventDefault();
16
+ const k = {
17
+ reportable_id: l.reportableId,
18
+ reportable_type: l.reportableType,
19
+ classification: c,
20
+ description: n,
21
+ first_name: p,
22
+ last_name: u,
23
+ email: f
24
+ };
25
+ d("LOADING"), I.create("reports", k, {}, x).then(
26
+ (E) => {
27
+ d("SUCCESS");
28
+ },
29
+ (E) => {
30
+ d("SUCCESS");
31
+ }
32
+ );
33
+ };
34
+ return /* @__PURE__ */ t("div", { children: /* @__PURE__ */ t(
35
+ G,
36
+ {
37
+ "data-vid": "report_modal",
38
+ title: l.title || r.formatMessage({
39
+ id: "report.report_modal.title",
40
+ defaultMessage: "Report content"
41
+ }),
42
+ showCloseButton: !0,
43
+ children: /* @__PURE__ */ t("div", { className: m(e.reportModalBody), children: {
44
+ SUBMIT: /* @__PURE__ */ o(
45
+ "form",
46
+ {
47
+ onSubmit: T,
48
+ className: e.reportForm,
49
+ children: [
50
+ /* @__PURE__ */ o("div", { className: e.formGroup, children: [
51
+ /* @__PURE__ */ t("label", { htmlFor: "reportType", children: r.formatMessage({
52
+ id: "report.report_modal.type_input_label",
53
+ defaultMessage: "Report type"
54
+ }) }),
55
+ /* @__PURE__ */ t(
56
+ R,
57
+ {
58
+ onChange: (a) => N(a.value),
59
+ options: [
60
+ {
61
+ name: "EMPTY",
62
+ value: "",
63
+ text: r.formatMessage({
64
+ id: "report.report_modal.select_placeholder",
65
+ defaultMessage: "Select a reason"
66
+ })
67
+ },
68
+ {
69
+ name: "TOXICITY",
70
+ value: "TOXICITY",
71
+ text: r.formatMessage({
72
+ id: "report.report_modal.toxicity_option",
73
+ defaultMessage: "Incivility"
74
+ })
75
+ },
76
+ {
77
+ name: "OBSCENE",
78
+ value: "OBSCENE",
79
+ text: r.formatMessage({
80
+ id: "report.report_modal.obscene_option",
81
+ defaultMessage: "Profanity, Sexually explicit, Flirtation, Obscene"
82
+ })
83
+ },
84
+ {
85
+ name: "HATE_SPEECH",
86
+ value: "HATE_SPEECH",
87
+ text: r.formatMessage({
88
+ id: "report.report_modal.hate_speech_option",
89
+ defaultMessage: "Hate speech or Identity attack"
90
+ })
91
+ },
92
+ {
93
+ name: "INCOHERENT",
94
+ value: "INCOHERENT",
95
+ text: r.formatMessage({
96
+ id: "report.report_modal.incoherent_option",
97
+ defaultMessage: "Incomprehensibility"
98
+ })
99
+ },
100
+ {
101
+ name: "SPAM",
102
+ value: "SPAM",
103
+ text: r.formatMessage({
104
+ id: "report.report_modal.spam_option",
105
+ defaultMessage: "Spam : Irrelevant or unsolicited commercial content / Off-topic"
106
+ })
107
+ },
108
+ {
109
+ name: "UNSUBSTANTIAL",
110
+ value: "UNSUBSTANTIAL",
111
+ text: r.formatMessage({
112
+ id: "report.report_modal.unsubstantial_option",
113
+ defaultMessage: "Unsubstantial : Trivial or short / Repetition"
114
+ })
115
+ }
116
+ ],
117
+ className: e.select
118
+ }
119
+ )
120
+ ] }),
121
+ /* @__PURE__ */ o("div", { className: e.formGroup, children: [
122
+ /* @__PURE__ */ t("label", { htmlFor: "reportDescription", children: r.formatMessage({
123
+ id: "report.report_modal.description_input_label",
124
+ defaultMessage: "Tell us more about your report"
125
+ }) }),
126
+ /* @__PURE__ */ t(
127
+ "textarea",
128
+ {
129
+ className: e.formControl,
130
+ id: "reportDescription",
131
+ role: "textbox",
132
+ rows: 4,
133
+ value: n,
134
+ onChange: (a) => b(a.target.value),
135
+ placeholder: r.formatMessage({
136
+ id: "report.report_modal.description_input_placeholder",
137
+ defaultMessage: "Tell us more"
138
+ })
139
+ }
140
+ ),
141
+ i && Object.keys(i).length > 0 && /* @__PURE__ */ t("div", { className: e.formGroup, children: /* @__PURE__ */ o("label", { className: e.checkboxLabel, children: [
142
+ /* @__PURE__ */ t(
143
+ "input",
144
+ {
145
+ type: "checkbox",
146
+ className: e.checkboxInput,
147
+ checked: h,
148
+ onChange: (a) => g(a.target.checked),
149
+ required: !0
150
+ }
151
+ ),
152
+ r.formatMessage({
153
+ id: "report.report_modal.declaration",
154
+ defaultMessage: "By submitting this report, I declare that the information provided is, to my knowledge, accurate and complete."
155
+ })
156
+ ] }) })
157
+ ] }),
158
+ l.allowAnonymousUser && !(i && Object.keys(i).length > 0) && /* @__PURE__ */ o(B, { children: [
159
+ /* @__PURE__ */ o("div", { className: m(e.formGroup, e.nameGroup), children: [
160
+ /* @__PURE__ */ o("div", { className: e.nameField, children: [
161
+ /* @__PURE__ */ t("label", { htmlFor: "firstName", children: r.formatMessage({
162
+ id: "report.report_modal.first_name_input_label",
163
+ defaultMessage: "First Name"
164
+ }) }),
165
+ /* @__PURE__ */ t(
166
+ "input",
167
+ {
168
+ type: "text",
169
+ className: e.formControl,
170
+ id: "firstName",
171
+ value: p,
172
+ onChange: (a) => v(a.target.value),
173
+ required: !0
174
+ }
175
+ )
176
+ ] }),
177
+ /* @__PURE__ */ o("div", { className: e.nameField, children: [
178
+ /* @__PURE__ */ t("label", { htmlFor: "lastName", children: r.formatMessage({
179
+ id: "report.report_modal.last_name_input_label",
180
+ defaultMessage: "Last Name"
181
+ }) }),
182
+ /* @__PURE__ */ t(
183
+ "input",
184
+ {
185
+ type: "text",
186
+ className: e.formControl,
187
+ id: "lastName",
188
+ value: u,
189
+ onChange: (a) => y(a.target.value),
190
+ required: !0
191
+ }
192
+ )
193
+ ] })
194
+ ] }),
195
+ /* @__PURE__ */ o("div", { className: e.formGroup, children: [
196
+ /* @__PURE__ */ t("label", { htmlFor: "email", children: r.formatMessage({
197
+ id: "report.report_modal.email_input_label",
198
+ defaultMessage: "Email"
199
+ }) }),
200
+ /* @__PURE__ */ t(
201
+ "input",
202
+ {
203
+ type: "email",
204
+ className: e.formControl,
205
+ id: "email",
206
+ value: f,
207
+ onChange: (a) => C(a.target.value),
208
+ required: !0
209
+ }
210
+ )
211
+ ] }),
212
+ /* @__PURE__ */ t("div", { className: e.formGroup, children: /* @__PURE__ */ o("label", { className: e.checkboxLabel, children: [
213
+ /* @__PURE__ */ t(
214
+ "input",
215
+ {
216
+ type: "checkbox",
217
+ className: e.checkboxInput,
218
+ checked: h,
219
+ onChange: (a) => g(a.target.checked),
220
+ required: !0
221
+ }
222
+ ),
223
+ r.formatMessage({
224
+ id: "report.report_modal.declaration",
225
+ defaultMessage: "By submitting this report, I declare that the information provided is, to my knowledge, accurate and complete."
226
+ })
227
+ ] }) })
228
+ ] }),
229
+ /* @__PURE__ */ t(
230
+ "div",
231
+ {
232
+ className: m(e.formGroup, e.reportFormSubmit),
233
+ children: /* @__PURE__ */ t(
234
+ _,
235
+ {
236
+ handleClick: () => null,
237
+ "data-tid": "action_submit_report",
238
+ type: "submit",
239
+ disabled: !c,
240
+ children: r.formatMessage({
241
+ id: "report.report_modal.submit_label",
242
+ defaultMessage: "Send"
243
+ })
244
+ }
245
+ )
246
+ }
247
+ )
248
+ ]
249
+ }
250
+ ),
251
+ LOADING: /* @__PURE__ */ t(L, {}),
252
+ SUCCESS: /* @__PURE__ */ o("div", { children: [
253
+ /* @__PURE__ */ t("div", { className: e.successText, children: r.formatMessage({
254
+ id: "report.report_modal.success",
255
+ defaultMessage: "Thank you for your submission !"
256
+ }) }),
257
+ /* @__PURE__ */ t("div", { className: e.successButtonBox, children: /* @__PURE__ */ t(_, { handleClick: S, children: r.formatMessage({
258
+ id: "report.report_modal.close",
259
+ defaultMessage: "Close"
260
+ }) }) })
261
+ ] })
262
+ }[M] })
263
+ }
264
+ ) });
265
+ };
266
+ export {
267
+ V as ReportModal
263
268
  };
264
- //#endregion
265
- export { m as ReportModal };
@@ -0,0 +1,27 @@
1
+ import '../../../assets/components/user_content/use_report_content/ReportModal.module-BxF-D5C5.css';const o = "_reportModalBody_1ih9a_3", t = "_reportForm_1ih9a_9", r = "_reportFormSubmit_1ih9a_19", e = "_successButtonBox_1ih9a_23", c = "_formGroup_1ih9a_27", _ = "_formControl_1ih9a_39", n = "_select_1ih9a_71", s = "_nameGroup_1ih9a_80", a = "_nameField_1ih9a_94", m = "_checkboxLabel_1ih9a_110", p = "_checkboxInput_1ih9a_116", u = {
2
+ reportModalBody: o,
3
+ reportForm: t,
4
+ reportFormSubmit: r,
5
+ successButtonBox: e,
6
+ formGroup: c,
7
+ formControl: _,
8
+ select: n,
9
+ nameGroup: s,
10
+ nameField: a,
11
+ checkboxLabel: m,
12
+ checkboxInput: p
13
+ };
14
+ export {
15
+ p as checkboxInput,
16
+ m as checkboxLabel,
17
+ u as default,
18
+ _ as formControl,
19
+ c as formGroup,
20
+ a as nameField,
21
+ s as nameGroup,
22
+ t as reportForm,
23
+ r as reportFormSubmit,
24
+ o as reportModalBody,
25
+ n as select,
26
+ e as successButtonBox
27
+ };
@@ -1,24 +1,26 @@
1
- import { useAuth as e } from "../../auth/use_auth/useAuth.js";
2
- import { useConfig as t } from "../../data/config_provider/useConfig.js";
3
- import { useModal as n } from "../../dialog/modal/useModal.js";
4
- import { useAuthRequired as r } from "../../hooks/use_auth_required/useAuthRequired.js";
5
- import { ReportModal as i } from "./ReportModal.js";
6
- import { Suspense as a } from "react";
7
- import { jsx as o } from "react/jsx-runtime";
8
- //#region src/components/user_content/use_report_content/useReportContent.jsx
9
- var s = (s, c, l) => {
10
- let { isLoggedIn: u, currentUser: d } = e(), { showModal: f } = n(), p = t(), m = r();
11
- return { reportContent: () => {
12
- u || p.actions?.allowAnonymousReport === !0 ? f(/* @__PURE__ */ o(a, {
13
- fallback: null,
14
- children: /* @__PURE__ */ o(i, {
15
- reportableType: s,
16
- reportableId: c,
17
- title: l,
18
- allowAnonymousUser: p.actions?.allowAnonymousReport
19
- })
20
- })) : m();
21
- } };
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { Suspense as m } from "react";
3
+ import { ReportModal as l } from "./ReportModal.js";
4
+ import { useAuth as p } from "../../auth/use_auth/useAuth.js";
5
+ import { useModal as c } from "../../dialog/modal/useModal.js";
6
+ import { useConfig as a } from "../../data/config_provider/useConfig.js";
7
+ import { useAuthRequired as f } from "../../hooks/use_auth_required/useAuthRequired.js";
8
+ const q = (r, e, n) => {
9
+ const { isLoggedIn: s, currentUser: d } = p(), { showModal: i } = c(), o = a(), u = f();
10
+ return { reportContent: () => {
11
+ s || o.actions?.allowAnonymousReport === !0 ? i(
12
+ /* @__PURE__ */ t(m, { fallback: null, children: /* @__PURE__ */ t(
13
+ l,
14
+ {
15
+ reportableType: r,
16
+ reportableId: e,
17
+ title: n,
18
+ allowAnonymousUser: o.actions?.allowAnonymousReport
19
+ }
20
+ ) })
21
+ ) : u();
22
+ } };
23
+ };
24
+ export {
25
+ q as useReportContent
22
26
  };
23
- //#endregion
24
- export { s as useReportContent };