@logora/debate 0.2.0 → 0.2.2
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.
- package/README.md +1 -0
- package/dist/_virtual/_rolldown/runtime.js +6 -18
- package/dist/assets/debate-89_S7oMP.css +2 -0
- package/dist/components/action/back_link/BackLink.js +15 -16
- package/dist/components/action/button/Button.js +21 -22
- package/dist/components/action/icon_text_link/IconTextLink.js +26 -27
- package/dist/components/action/link/Link.js +7 -7
- package/dist/components/ad/ad_unit/AdUnit.js +17 -17
- package/dist/components/ad/with_ad/WithAd.js +10 -10
- package/dist/components/argument/argument/Argument.js +123 -124
- package/dist/components/argument/argument/ReplyFooter.js +22 -23
- package/dist/components/argument/top_arguments/TopArguments.js +43 -43
- package/dist/components/auth/auth_modal/AuthModal.js +55 -55
- package/dist/components/auth/facebook_login_button/FacebookIcon.js +5 -5
- package/dist/components/auth/facebook_login_button/FacebookLoginButton.js +14 -14
- package/dist/components/auth/google_login_button/GoogleIcon.js +7 -7
- package/dist/components/auth/google_login_button/GoogleLoginButton.js +15 -15
- package/dist/components/auth/login_form/LoginForm.js +37 -38
- package/dist/components/auth/oauth2_button/OAuth2Button.js +18 -19
- package/dist/components/auth/signup_form/SignupForm.js +68 -69
- package/dist/components/auth/social_auth_form/SocialAuthForm.js +109 -110
- package/dist/components/auth/sso_form/SSOForm.js +68 -70
- package/dist/components/auth/use_auth/AuthProvider.js +11 -11
- package/dist/components/chart/line_chart/LineChart.js +53 -54
- package/dist/components/chart/pie_chart/PieChart.js +20 -20
- package/dist/components/consultation/consultation_box/ConsultationBox.js +70 -72
- package/dist/components/data/axios_client/httpClient.js +1 -1
- package/dist/components/data/config_provider/ConfigProvider.js +5 -5
- package/dist/components/data/config_provider/withConfig.js +5 -5
- package/dist/components/debate/debate_box/DebateBox.js +95 -97
- package/dist/components/dialog/announcement_dialog/AnnouncementDialog.js +14 -15
- package/dist/components/dialog/confirm_modal/ConfirmModal.js +26 -27
- package/dist/components/dialog/countdown/Countdown.js +12 -12
- package/dist/components/dialog/dialog_box/DialogBox.js +33 -34
- package/dist/components/dialog/drawer/Drawer.js +85 -85
- package/dist/components/dialog/dropdown/Dropdown.js +21 -22
- package/dist/components/dialog/modal/Modal.js +37 -38
- package/dist/components/dialog/modal/ModalProvider.js +14 -14
- package/dist/components/dialog/toast/Toast.js +26 -27
- package/dist/components/dialog/toast_provider/ToastProvider.js +18 -18
- package/dist/components/dialog/tooltip/Tooltip.js +23 -24
- package/dist/components/embed/embed_header/EmbedHeader.js +38 -39
- package/dist/components/error/standard_error_boundary/StandardErrorBoundary.js +7 -7
- package/dist/components/follow/follow_button/FollowButton.js +25 -26
- package/dist/components/forms/form/form.js +9 -10
- package/dist/components/forms/use_form_validation/useFormValidation.js +3 -3
- package/dist/components/gamification/badge_box/BadgeBox.js +50 -52
- package/dist/components/gamification/point_box/PointBox.js +12 -12
- package/dist/components/hooks/use_auth_required/useAuthRequired.js +10 -10
- package/dist/components/hooks/use_font_loader/useFontLoader.js +5 -5
- package/dist/components/hooks/use_relative_time/useRelativeTime.js +1 -1
- package/dist/components/hooks/use_responsive/ResponsiveProvider.js +17 -17
- package/dist/components/icons/bild_icons/Alarm.js +15 -0
- package/dist/components/icons/bild_icons/Announcement.js +20 -0
- package/dist/components/icons/bild_icons/Arrow.js +11 -0
- package/dist/components/icons/bild_icons/Blockquote.js +11 -0
- package/dist/components/icons/bild_icons/Bold.js +11 -0
- package/dist/components/icons/bild_icons/Camera.js +11 -0
- package/dist/components/icons/bild_icons/Chat.js +44 -0
- package/dist/components/icons/bild_icons/Check.js +12 -0
- package/dist/components/icons/bild_icons/CheckCircle.js +20 -0
- package/dist/components/icons/bild_icons/Checkbox.js +11 -0
- package/dist/components/icons/bild_icons/Clap.js +21 -0
- package/dist/components/icons/bild_icons/Clock.js +11 -0
- package/dist/components/icons/bild_icons/Close.js +11 -0
- package/dist/components/icons/bild_icons/Code.js +32 -0
- package/dist/components/icons/bild_icons/Community.js +11 -0
- package/dist/components/icons/bild_icons/Crown.js +12 -0
- package/dist/components/icons/bild_icons/Document.js +11 -0
- package/dist/components/icons/bild_icons/Downvote.js +11 -0
- package/dist/components/icons/bild_icons/Ellipsis.js +12 -0
- package/dist/components/icons/bild_icons/ExpertBadge.js +33 -0
- package/dist/components/icons/bild_icons/Facebook.js +11 -0
- package/dist/components/icons/bild_icons/Flag.js +11 -0
- package/dist/components/icons/bild_icons/Home.js +11 -0
- package/dist/components/icons/bild_icons/Italic.js +11 -0
- package/dist/components/icons/bild_icons/LightArrow.js +12 -0
- package/dist/components/icons/bild_icons/Link.js +11 -0
- package/dist/components/icons/bild_icons/Login.js +19 -0
- package/dist/components/icons/bild_icons/Logora.js +25 -0
- package/dist/components/icons/bild_icons/Mail.js +11 -0
- package/dist/components/icons/bild_icons/MinusCircle.js +24 -0
- package/dist/components/icons/bild_icons/MobileClose.js +19 -0
- package/dist/components/icons/bild_icons/MobileMenu.js +29 -0
- package/dist/components/icons/bild_icons/Next.js +22 -0
- package/dist/components/icons/bild_icons/OpenBlank.js +15 -0
- package/dist/components/icons/bild_icons/OrderedList.js +11 -0
- package/dist/components/icons/bild_icons/PauseCircle.js +34 -0
- package/dist/components/icons/bild_icons/Point.js +21 -0
- package/dist/components/icons/bild_icons/Question.js +18 -0
- package/dist/components/icons/bild_icons/Refresh.js +11 -0
- package/dist/components/icons/bild_icons/Reply.js +11 -0
- package/dist/components/icons/bild_icons/Search.js +11 -0
- package/dist/components/icons/bild_icons/Send.js +11 -0
- package/dist/components/icons/bild_icons/Share.js +12 -0
- package/dist/components/icons/bild_icons/SmallArrow.js +11 -0
- package/dist/components/icons/bild_icons/Source.js +11 -0
- package/dist/components/icons/bild_icons/Suggestion.js +19 -0
- package/dist/components/icons/bild_icons/Twitter.js +29 -0
- package/dist/components/icons/bild_icons/Underline.js +11 -0
- package/dist/components/icons/bild_icons/Upvote.js +11 -0
- package/dist/components/icons/bild_icons/User.js +11 -0
- package/dist/components/icons/bild_icons/Versus.js +14 -0
- package/dist/components/icons/bild_icons/Votebox.js +12 -0
- package/dist/components/icons/bild_icons/index.js +110 -0
- package/dist/components/icons/hero_icons/Alarm.js +18 -0
- package/dist/components/icons/hero_icons/Announcement.js +18 -0
- package/dist/components/icons/hero_icons/Arrow.js +18 -0
- package/dist/components/icons/hero_icons/Blockquote.js +27 -0
- package/dist/components/icons/hero_icons/Bold.js +17 -0
- package/dist/components/icons/hero_icons/Camera.js +22 -0
- package/dist/components/icons/hero_icons/Chat.js +18 -0
- package/dist/components/icons/hero_icons/Check.js +18 -0
- package/dist/components/icons/hero_icons/CheckCircle.js +20 -0
- package/dist/components/icons/hero_icons/Checkbox.js +18 -0
- package/dist/components/icons/hero_icons/Clap.js +18 -0
- package/dist/components/icons/hero_icons/Clock.js +18 -0
- package/dist/components/icons/hero_icons/Close.js +18 -0
- package/dist/components/icons/hero_icons/Code.js +18 -0
- package/dist/components/icons/hero_icons/Community.js +18 -0
- package/dist/components/icons/hero_icons/Crown.js +18 -0
- package/dist/components/icons/hero_icons/Downvote.js +18 -0
- package/dist/components/icons/hero_icons/Ellipsis.js +18 -0
- package/dist/components/icons/hero_icons/ExpertBadge.js +18 -0
- package/dist/components/icons/hero_icons/Facebook.js +11 -0
- package/dist/components/icons/hero_icons/Flag.js +11 -0
- package/dist/components/icons/hero_icons/Home.js +18 -0
- package/dist/components/icons/hero_icons/Italic.js +17 -0
- package/dist/components/icons/hero_icons/LightArrow.js +12 -0
- package/dist/components/icons/hero_icons/Link.js +18 -0
- package/dist/components/icons/hero_icons/Login.js +19 -0
- package/dist/components/icons/hero_icons/Logora.js +25 -0
- package/dist/components/icons/hero_icons/Mail.js +18 -0
- package/dist/components/icons/hero_icons/MinusCircle.js +24 -0
- package/dist/components/icons/hero_icons/MobileClose.js +18 -0
- package/dist/components/icons/hero_icons/MobileMenu.js +18 -0
- package/dist/components/icons/hero_icons/Next.js +18 -0
- package/dist/components/icons/hero_icons/OpenBlank.js +18 -0
- package/dist/components/icons/hero_icons/OrderedList.js +47 -0
- package/dist/components/icons/hero_icons/PauseCircle.js +34 -0
- package/dist/components/icons/hero_icons/Point.js +21 -0
- package/dist/components/icons/hero_icons/Question.js +18 -0
- package/dist/components/icons/hero_icons/Refresh.js +18 -0
- package/dist/components/icons/hero_icons/Reply.js +18 -0
- package/dist/components/icons/hero_icons/Search.js +18 -0
- package/dist/components/icons/hero_icons/Send.js +18 -0
- package/dist/components/icons/hero_icons/Share.js +18 -0
- package/dist/components/icons/hero_icons/SmallArrow.js +18 -0
- package/dist/components/icons/hero_icons/Source.js +18 -0
- package/dist/components/icons/hero_icons/Suggestion.js +18 -0
- package/dist/components/icons/hero_icons/Twitter.js +29 -0
- package/dist/components/icons/hero_icons/Underline.js +27 -0
- package/dist/components/icons/hero_icons/Upvote.js +18 -0
- package/dist/components/icons/hero_icons/User.js +18 -0
- package/dist/components/icons/hero_icons/Versus.js +18 -0
- package/dist/components/icons/hero_icons/Votebox.js +18 -0
- package/dist/components/icons/hero_icons/index.js +108 -0
- package/dist/components/icons/icon/Icon.js +9 -9
- package/dist/components/icons/icon_provider/IconProvider.js +5 -5
- package/dist/components/icons/krone_icons/Alarm.js +28 -0
- package/dist/components/icons/krone_icons/Announcement.js +16 -0
- package/dist/components/icons/krone_icons/Arrow.js +11 -0
- package/dist/components/icons/krone_icons/Blockquote.js +11 -0
- package/dist/components/icons/krone_icons/Bold.js +11 -0
- package/dist/components/icons/krone_icons/Camera.js +11 -0
- package/dist/components/icons/krone_icons/Chat.js +30 -0
- package/dist/components/icons/krone_icons/Check.js +11 -0
- package/dist/components/icons/krone_icons/CheckBox.js +5 -5
- package/dist/components/icons/krone_icons/CheckCircle.js +20 -0
- package/dist/components/icons/krone_icons/Clap.js +30 -0
- package/dist/components/icons/krone_icons/Clock.js +11 -0
- package/dist/components/icons/krone_icons/Close.js +11 -0
- package/dist/components/icons/krone_icons/Code.js +32 -0
- package/dist/components/icons/krone_icons/Community.js +11 -0
- package/dist/components/icons/krone_icons/Crown.js +11 -0
- package/dist/components/icons/krone_icons/Document.js +11 -0
- package/dist/components/icons/krone_icons/Downvote.js +11 -0
- package/dist/components/icons/krone_icons/Ellipsis.js +18 -0
- package/dist/components/icons/krone_icons/ExpertBadge.js +30 -0
- package/dist/components/icons/krone_icons/Facebook.js +11 -0
- package/dist/components/icons/krone_icons/Flag.js +11 -0
- package/dist/components/icons/krone_icons/Home.js +30 -0
- package/dist/components/icons/krone_icons/Italic.js +11 -0
- package/dist/components/icons/krone_icons/LightArrow.js +11 -0
- package/dist/components/icons/krone_icons/Link.js +11 -0
- package/dist/components/icons/krone_icons/Login.js +18 -0
- package/dist/components/icons/krone_icons/Logora.js +25 -0
- package/dist/components/icons/krone_icons/Mail.js +11 -0
- package/dist/components/icons/krone_icons/MinusCircle.js +24 -0
- package/dist/components/icons/krone_icons/MobileClose.js +18 -0
- package/dist/components/icons/krone_icons/MobileMenu.js +29 -0
- package/dist/components/icons/krone_icons/Next.js +22 -0
- package/dist/components/icons/krone_icons/OpenBlank.js +15 -0
- package/dist/components/icons/krone_icons/OrderedList.js +11 -0
- package/dist/components/icons/krone_icons/PauseCircle.js +33 -0
- package/dist/components/icons/krone_icons/Point.js +21 -0
- package/dist/components/icons/krone_icons/Question.js +30 -0
- package/dist/components/icons/krone_icons/Refresh.js +11 -0
- package/dist/components/icons/krone_icons/Reply.js +18 -0
- package/dist/components/icons/krone_icons/Search.js +11 -0
- package/dist/components/icons/krone_icons/Send.js +26 -0
- package/dist/components/icons/krone_icons/Share.js +14 -0
- package/dist/components/icons/krone_icons/SmallArrow.js +11 -0
- package/dist/components/icons/krone_icons/Source.js +11 -0
- package/dist/components/icons/krone_icons/Suggestion.js +30 -0
- package/dist/components/icons/krone_icons/Twitter.js +29 -0
- package/dist/components/icons/krone_icons/Underline.js +11 -0
- package/dist/components/icons/krone_icons/Upvote.js +30 -0
- package/dist/components/icons/krone_icons/User.js +33 -0
- package/dist/components/icons/krone_icons/Versus.js +11 -0
- package/dist/components/icons/krone_icons/Votebox.js +30 -0
- package/dist/components/icons/krone_icons/index.js +110 -0
- package/dist/components/icons/regular_icons/Alarm.js +15 -0
- package/dist/components/icons/regular_icons/Announcement.js +20 -0
- package/dist/components/icons/regular_icons/Arrow.js +11 -0
- package/dist/components/icons/regular_icons/Blockquote.js +11 -0
- package/dist/components/icons/regular_icons/Bold.js +11 -0
- package/dist/components/icons/regular_icons/Camera.js +11 -0
- package/dist/components/icons/regular_icons/Chat.js +16 -0
- package/dist/components/icons/regular_icons/Check.js +11 -0
- package/dist/components/icons/regular_icons/CheckCircle.js +20 -0
- package/dist/components/icons/regular_icons/Checkbox.js +11 -0
- package/dist/components/icons/regular_icons/Clap.js +15 -0
- package/dist/components/icons/regular_icons/Clock.js +11 -0
- package/dist/components/icons/regular_icons/Close.js +11 -0
- package/dist/components/icons/regular_icons/Code.js +32 -0
- package/dist/components/icons/regular_icons/Community.js +11 -0
- package/dist/components/icons/regular_icons/Crown.js +11 -0
- package/dist/components/icons/regular_icons/Document.js +11 -0
- package/dist/components/icons/regular_icons/Downvote.js +11 -0
- package/dist/components/icons/regular_icons/Ellipsis.js +11 -0
- package/dist/components/icons/regular_icons/ExpertBadge.js +32 -0
- package/dist/components/icons/regular_icons/Facebook.js +11 -0
- package/dist/components/icons/regular_icons/Flag.js +11 -0
- package/dist/components/icons/regular_icons/Home.js +11 -0
- package/dist/components/icons/regular_icons/Italic.js +11 -0
- package/dist/components/icons/regular_icons/LightArrow.js +11 -0
- package/dist/components/icons/regular_icons/Link.js +11 -0
- package/dist/components/icons/regular_icons/Login.js +18 -0
- package/dist/components/icons/regular_icons/Logora.js +25 -0
- package/dist/components/icons/regular_icons/Mail.js +11 -0
- package/dist/components/icons/regular_icons/MinusCircle.js +24 -0
- package/dist/components/icons/regular_icons/MobileClose.js +18 -0
- package/dist/components/icons/regular_icons/MobileMenu.js +29 -0
- package/dist/components/icons/regular_icons/Next.js +22 -0
- package/dist/components/icons/regular_icons/OpenBlank.js +15 -0
- package/dist/components/icons/regular_icons/OrderedList.js +11 -0
- package/dist/components/icons/regular_icons/PauseCircle.js +33 -0
- package/dist/components/icons/regular_icons/Point.js +21 -0
- package/dist/components/icons/regular_icons/Question.js +18 -0
- package/dist/components/icons/regular_icons/Refresh.js +11 -0
- package/dist/components/icons/regular_icons/Reply.js +11 -0
- package/dist/components/icons/regular_icons/Search.js +11 -0
- package/dist/components/icons/regular_icons/Send.js +11 -0
- package/dist/components/icons/regular_icons/Share.js +12 -0
- package/dist/components/icons/regular_icons/SmallArrow.js +11 -0
- package/dist/components/icons/regular_icons/Source.js +11 -0
- package/dist/components/icons/regular_icons/Suggestion.js +19 -0
- package/dist/components/icons/regular_icons/Twitter.js +29 -0
- package/dist/components/icons/regular_icons/Underline.js +11 -0
- package/dist/components/icons/regular_icons/Upvote.js +11 -0
- package/dist/components/icons/regular_icons/User.js +11 -0
- package/dist/components/icons/regular_icons/Versus.js +11 -0
- package/dist/components/icons/regular_icons/Votebox.js +12 -0
- package/dist/components/icons/regular_icons/index.js +110 -0
- package/dist/components/icons/spiegel_icons/Alarm.js +15 -0
- package/dist/components/icons/spiegel_icons/Announcement.js +20 -0
- package/dist/components/icons/spiegel_icons/Arrow.js +11 -0
- package/dist/components/icons/spiegel_icons/Blockquote.js +26 -0
- package/dist/components/icons/spiegel_icons/Bold.js +16 -0
- package/dist/components/icons/spiegel_icons/Camera.js +11 -0
- package/dist/components/icons/spiegel_icons/Chat.js +12 -0
- package/dist/components/icons/spiegel_icons/Check.js +11 -0
- package/dist/components/icons/spiegel_icons/CheckCircle.js +20 -0
- package/dist/components/icons/spiegel_icons/Checkbox.js +26 -0
- package/dist/components/icons/spiegel_icons/Clap.js +26 -0
- package/dist/components/icons/spiegel_icons/Clock.js +26 -0
- package/dist/components/icons/spiegel_icons/Close.js +15 -0
- package/dist/components/icons/spiegel_icons/Code.js +32 -0
- package/dist/components/icons/spiegel_icons/Community.js +11 -0
- package/dist/components/icons/spiegel_icons/Crown.js +12 -0
- package/dist/components/icons/spiegel_icons/Downvote.js +11 -0
- package/dist/components/icons/spiegel_icons/Ellipsis.js +12 -0
- package/dist/components/icons/spiegel_icons/ExpertBadge.js +28 -0
- package/dist/components/icons/spiegel_icons/Facebook.js +16 -0
- package/dist/components/icons/spiegel_icons/Flag.js +20 -0
- package/dist/components/icons/spiegel_icons/Home.js +11 -0
- package/dist/components/icons/spiegel_icons/Italic.js +16 -0
- package/dist/components/icons/spiegel_icons/LightArrow.js +12 -0
- package/dist/components/icons/spiegel_icons/Link.js +26 -0
- package/dist/components/icons/spiegel_icons/Login.js +19 -0
- package/dist/components/icons/spiegel_icons/Logora.js +25 -0
- package/dist/components/icons/spiegel_icons/Mail.js +16 -0
- package/dist/components/icons/spiegel_icons/MinusCircle.js +20 -0
- package/dist/components/icons/spiegel_icons/MobileClose.js +19 -0
- package/dist/components/icons/spiegel_icons/MobileMenu.js +29 -0
- package/dist/components/icons/spiegel_icons/Next.js +22 -0
- package/dist/components/icons/spiegel_icons/OpenBlank.js +15 -0
- package/dist/components/icons/spiegel_icons/OrderedList.js +29 -0
- package/dist/components/icons/spiegel_icons/PauseCircle.js +20 -0
- package/dist/components/icons/spiegel_icons/Point.js +21 -0
- package/dist/components/icons/spiegel_icons/Question.js +30 -0
- package/dist/components/icons/spiegel_icons/Refresh.js +11 -0
- package/dist/components/icons/spiegel_icons/Reply.js +12 -0
- package/dist/components/icons/spiegel_icons/Search.js +11 -0
- package/dist/components/icons/spiegel_icons/Send.js +11 -0
- package/dist/components/icons/spiegel_icons/Share.js +26 -0
- package/dist/components/icons/spiegel_icons/SmallArrow.js +12 -0
- package/dist/components/icons/spiegel_icons/Source.js +11 -0
- package/dist/components/icons/spiegel_icons/Suggestion.js +16 -0
- package/dist/components/icons/spiegel_icons/Twitter.js +29 -0
- package/dist/components/icons/spiegel_icons/Underline.js +26 -0
- package/dist/components/icons/spiegel_icons/Upvote.js +11 -0
- package/dist/components/icons/spiegel_icons/User.js +11 -0
- package/dist/components/icons/spiegel_icons/Versus.js +14 -0
- package/dist/components/icons/spiegel_icons/Votebox.js +26 -0
- package/dist/components/icons/spiegel_icons/index.js +108 -0
- package/dist/components/input/argument_input/ArgumentInput.js +167 -169
- package/dist/components/input/checkbox/hidden/hidden-checkbox.js +9 -11
- package/dist/components/input/checkbox/indicator/checkbox-indicator.js +11 -12
- package/dist/components/input/checkbox/label/checkbox-label.js +17 -18
- package/dist/components/input/input_provider/InputProvider.js +7 -7
- package/dist/components/input/search_input/SearchInput.js +25 -25
- package/dist/components/input/select/Select.js +38 -39
- package/dist/components/input/text_editor/TextEditor.js +107 -108
- package/dist/components/input/text_editor/lexicalToHtml.js +10 -10
- package/dist/components/input/text_editor/plugins/AutoSavePlugin.js +12 -12
- package/dist/components/input/text_editor/plugins/FocusPlugin.js +4 -4
- package/dist/components/input/text_editor/plugins/MaxLengthPlugin.js +14 -14
- package/dist/components/input/text_editor/plugins/ResetPlugin.js +9 -9
- package/dist/components/input/text_editor/plugins/SetContentPlugin.js +8 -8
- package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +4 -4
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +84 -85
- package/dist/components/input/text_input/TextInput.js +28 -29
- package/dist/components/input/text_input/color-accent.js +8 -9
- package/dist/components/input/text_input/message.js +9 -11
- package/dist/components/input/toggle/Toggle.js +19 -21
- package/dist/components/input/toggle_position/TogglePosition.js +33 -34
- package/dist/components/intl/intl_provider/IntlProvider.js +28 -28
- package/dist/components/list/list_provider/ListProvider.js +7 -7
- package/dist/components/list/paginated_list/PaginatedList.js +133 -134
- package/dist/components/list/paginated_list/VotePaginatedList.js +13 -13
- package/dist/components/list/paginated_list/action_bar/ActionBar.js +53 -54
- package/dist/components/list/pagination/Pagination.js +17 -17
- package/dist/components/modal/side_modal/SideModal.js +36 -36
- package/dist/components/navbar/navbar_button/NavbarButton.js +16 -17
- package/dist/components/navbar/navbar_modal/NavbarModal.js +85 -86
- package/dist/components/notification/notification_item/NotificationItem.js +31 -32
- package/dist/components/notification/notification_menu/NotificationMenu.js +27 -27
- package/dist/components/progress/loader/Loader.js +7 -7
- package/dist/components/progress/progress_bar/ProgressBar.js +37 -38
- package/dist/components/proposal/proposal_box/ProposalBox.js +72 -73
- package/dist/components/report/report_box/ReportBox.js +59 -60
- package/dist/components/section/section_box/SectionBox.js +27 -28
- package/dist/components/share/share_box/ShareBox.js +53 -53
- package/dist/components/share/share_button/ShareButton.js +43 -44
- package/dist/components/share/share_modal/ShareModal.js +12 -12
- package/dist/components/skeleton/box_skeleton/BoxSkeleton.js +22 -22
- package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.js +31 -32
- package/dist/components/source/context_source_box/ContextSourceBox.js +28 -29
- package/dist/components/source/context_source_list/ContextSourceList.js +27 -28
- package/dist/components/source/source_box/SourceBox.js +23 -23
- package/dist/components/source/source_list_item/SourceListItem.js +15 -15
- package/dist/components/source/source_modal/SourceModal.js +59 -60
- package/dist/components/suggestion/suggestion_banner/SuggestionBanner.js +46 -48
- package/dist/components/suggestion/suggestion_box/SuggestionBox.js +57 -59
- package/dist/components/suggestion/suggestion_input/SuggestionInput.js +86 -88
- package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.js +40 -41
- package/dist/components/summary/keyword_box/KeywordBox.js +21 -21
- package/dist/components/summary/summary/Summary.js +34 -34
- package/dist/components/summary/summary_box/SummaryBox.js +16 -16
- package/dist/components/tag/tag/Tag.js +9 -10
- package/dist/components/text/expandable_text/ArrowIcon.js +5 -5
- package/dist/components/text/expandable_text/ExpandableText.js +36 -37
- package/dist/components/text/read_more/ReadMore.js +46 -47
- package/dist/components/tools/hash_scroll/HashScroll.js +12 -12
- package/dist/components/translation/translated_content/TranslatedContent.js +3 -3
- package/dist/components/translation/translated_content/useTranslatedContent.js +5 -5
- package/dist/components/translation/translation_button/TranslationButton.js +14 -16
- package/dist/components/user/author_box/AuthorBox.js +69 -71
- package/dist/components/user/avatar/Avatar.js +37 -38
- package/dist/components/user/avatar/DefaultAvatar.js +6 -6
- package/dist/components/user/avatar_selector/AvatarSelector.js +55 -56
- package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.js +123 -124
- package/dist/components/user/update_user_info_modal/useUpdateUserInfo.js +12 -12
- package/dist/components/user/user_box/UserBox.js +47 -49
- package/dist/components/user/user_box_small/UserBoxSmall.js +26 -27
- package/dist/components/user_content/content_footer/ContentFooter.js +84 -85
- package/dist/components/user_content/content_header/ContentHeader.js +68 -69
- package/dist/components/user_content/summary_content_box/SummaryContentBox.js +42 -43
- package/dist/components/user_content/use_delete_content/useDeleteContent.js +16 -16
- package/dist/components/user_content/use_report_content/ReportModal.js +117 -118
- package/dist/components/user_content/use_report_content/useReportContent.js +13 -13
- package/dist/components/util/location/Location.js +1 -1
- package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.js +37 -37
- package/dist/components/vote/up_down_vote_box/UpDownVoteBox.js +31 -32
- package/dist/components/vote/vote_box/VoteBox.js +165 -167
- package/dist/components/vote/vote_button/VoteButton.js +21 -22
- package/dist/components/vote/vote_provider/VoteProvider.js +17 -17
- package/dist/index.js +85 -29
- package/package.json +7 -2
- package/dist/assets/debate-Bv79XlHp.css +0 -2
- package/dist/node_modules/.pnpm/@formatjs_fast-memoize@2.2.7/node_modules/@formatjs/fast-memoize/lib/index.js +0 -51
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js +0 -28
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/error.js +0 -7
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/index.js +0 -26
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/manipulator.js +0 -1
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js +0 -499
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js +0 -4
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js +0 -1159
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/types.js +0 -44
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js +0 -101
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/number.js +0 -182
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js +0 -4
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/create-intl.js +0 -39
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/dateTime.js +0 -80
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/displayName.js +0 -22
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/error.js +0 -66
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/list.js +0 -39
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/message.js +0 -59
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/number.js +0 -53
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/plural.js +0 -18
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/relativeTime.js +0 -22
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/utils.js +0 -115
- package/dist/node_modules/.pnpm/@kurkle_color@0.3.4/node_modules/@kurkle/color/dist/color.esm.js +0 -470
- package/dist/node_modules/.pnpm/@lexical_clipboard@0.38.2/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +0 -163
- package/dist/node_modules/.pnpm/@lexical_dragon@0.38.2/node_modules/@lexical/dragon/LexicalDragon.prod.js +0 -51
- package/dist/node_modules/.pnpm/@lexical_extension@0.38.2/node_modules/@lexical/extension/LexicalExtension.prod.js +0 -796
- package/dist/node_modules/.pnpm/@lexical_headless@0.38.2/node_modules/@lexical/headless/LexicalHeadless.prod.js +0 -21
- package/dist/node_modules/.pnpm/@lexical_history@0.38.2/node_modules/@lexical/history/LexicalHistory.prod.js +0 -132
- package/dist/node_modules/.pnpm/@lexical_html@0.38.2/node_modules/@lexical/html/LexicalHtml.prod.js +0 -88
- package/dist/node_modules/.pnpm/@lexical_list@0.38.2/node_modules/@lexical/list/LexicalList.prod.js +0 -737
- package/dist/node_modules/.pnpm/@lexical_overflow@0.38.2/node_modules/@lexical/overflow/LexicalOverflow.prod.js +0 -37
- 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 +0 -136
- 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 +0 -53
- 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/LexicalComposerContext.prod.js +0 -20
- 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 +0 -85
- 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/LexicalEditorRefPlugin.prod.js +0 -11
- 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/LexicalErrorBoundary.prod.js +0 -20
- 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/LexicalHistoryPlugin.prod.js +0 -17
- 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 +0 -16
- 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 +0 -20
- 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/LexicalReactProviderExtension.prod.js +0 -5
- 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 +0 -96
- 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/useLexicalEditable.prod.js +0 -23
- package/dist/node_modules/.pnpm/@lexical_rich-text@0.38.2/node_modules/@lexical/rich-text/LexicalRichText.prod.js +0 -418
- package/dist/node_modules/.pnpm/@lexical_selection@0.38.2/node_modules/@lexical/selection/LexicalSelection.prod.js +0 -170
- package/dist/node_modules/.pnpm/@lexical_text@0.38.2/node_modules/@lexical/text/LexicalText.prod.js +0 -33
- package/dist/node_modules/.pnpm/@lexical_utils@0.38.2/node_modules/@lexical/utils/LexicalUtils.prod.js +0 -112
- package/dist/node_modules/.pnpm/@rooks_use-localstorage-state@4.11.2_react@18.3.1/node_modules/@rooks/use-localstorage-state/lib/index.esm.js +0 -50
- package/dist/node_modules/.pnpm/@rooks_use-previous@4.11.2/node_modules/@rooks/use-previous/lib/index.esm.js +0 -10
- package/dist/node_modules/.pnpm/@rooks_use-sessionstorage-state@4.11.2_react@18.3.1/node_modules/@rooks/use-sessionstorage-state/lib/index.esm.js +0 -50
- package/dist/node_modules/.pnpm/are-passive-events-supported@1.1.1/node_modules/are-passive-events-supported/dist/are-passive-events-supported.esm.browser.js +0 -11
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/adapters.js +0 -41
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/fetch.js +0 -128
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/xhr.js +0 -59
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/axios.js +0 -30
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CancelToken.js +0 -59
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CanceledError.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/isCancel.js +0 -6
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/Axios.js +0 -131
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/AxiosError.js +0 -34
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/AxiosHeaders.js +0 -171
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/InterceptorManager.js +0 -28
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/buildFullPath.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/dispatchRequest.js +0 -23
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/mergeConfig.js +0 -67
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/settle.js +0 -8
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/transformData.js +0 -12
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/index.js +0 -81
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/transitional.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/env/data.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +0 -32
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/HttpStatusCode.js +0 -77
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/bind.js +0 -8
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/buildURL.js +0 -17
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/combineURLs.js +0 -6
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/composeSignals.js +0 -27
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/cookies.js +0 -26
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/formDataToJSON.js +0 -27
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +0 -6
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAxiosError.js +0 -7
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +0 -5
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseHeaders.js +0 -28
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseProtocol.js +0 -7
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/progressEventReducer.js +0 -30
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/resolveConfig.js +0 -28
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/speedometer.js +0 -16
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/spread.js +0 -8
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/throttle.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toFormData.js +0 -67
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +0 -14
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/trackStream.js +0 -51
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/validator.js +0 -47
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/Blob.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/FormData.js +0 -4
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +0 -5
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/index.js +0 -22
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/common/utils.js +0 -15
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/index.js +0 -9
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/utils.js +0 -235
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/auto/auto.js +0 -5
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chart.js +0 -6301
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chunks/helpers.dataset.js +0 -1381
- package/dist/node_modules/.pnpm/chartjs-plugin-datalabels@2.2.0_chart.js@4.5.1/node_modules/chartjs-plugin-datalabels/dist/chartjs-plugin-datalabels.esm.js +0 -354
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +0 -32
- package/dist/node_modules/.pnpm/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.js +0 -43
- package/dist/node_modules/.pnpm/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.js +0 -549
- package/dist/node_modules/.pnpm/flat@5.0.2/node_modules/flat/index.js +0 -59
- package/dist/node_modules/.pnpm/goober@2.1.18_csstype@3.2.3/node_modules/goober/dist/goober.modern.js +0 -75
- package/dist/node_modules/.pnpm/hoist-non-react-statics@3.3.2/node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js +0 -68
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/core.js +0 -154
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/error.js +0 -36
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/formatters.js +0 -107
- package/dist/node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js +0 -5093
- package/dist/node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist.es2015/index.js +0 -198
- package/dist/node_modules/.pnpm/react-chartjs-2@5.3.1_chart.js@4.5.1_react@18.3.1/node_modules/react-chartjs-2/dist/index.js +0 -76
- package/dist/node_modules/.pnpm/react-copy-to-clipboard@5.1.1_react@18.3.1/node_modules/react-copy-to-clipboard/lib/Component.js +0 -160
- package/dist/node_modules/.pnpm/react-copy-to-clipboard@5.1.1_react@18.3.1/node_modules/react-copy-to-clipboard/lib/index.js +0 -10
- package/dist/node_modules/.pnpm/react-error-boundary@6.1.1_react@18.3.1/node_modules/react-error-boundary/dist/react-error-boundary.js +0 -58
- package/dist/node_modules/.pnpm/react-hot-toast@2.6.0_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-hot-toast/dist/index.js +0 -494
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/index.js +0 -13
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/createFormattedComponent.js +0 -35
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/createIntl.js +0 -39
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/components/injectIntl.js +0 -9
- package/dist/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 +0 -22
- package/dist/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 +0 -45
- package/dist/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 +0 -10
- package/dist/node_modules/.pnpm/react-intl@7.1.14_react@18.3.1_typescript@5.9.3/node_modules/react-intl/lib/src/utils.js +0 -33
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +0 -82
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +0 -62
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/.pnpm/react-loading-skeleton@3.5.0_react@18.3.1/node_modules/react-loading-skeleton/dist/index.js +0 -49
- package/dist/node_modules/.pnpm/react-modern-drawer@1.4.0_react@18.3.1/node_modules/react-modern-drawer/dist/index.modern.js +0 -84
- package/dist/node_modules/.pnpm/react-oauth-popup@1.0.5_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/react-oauth-popup/dist/index.js +0 -106
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +0 -453
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +0 -27
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +0 -10
- package/dist/node_modules/.pnpm/toggle-selection@1.0.6/node_modules/toggle-selection/index.js +0 -26
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +0 -34
- package/dist/node_modules/.pnpm/use-debounce@10.1.1_react@18.3.1/node_modules/use-debounce/dist/index.module.js +0 -70
- package/dist/node_modules/.pnpm/use-isomorphic-layout-effect@1.2.1_@types_react@19.2.14_react@18.3.1/node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.browser.esm.js +0 -5
- package/dist/node_modules/.pnpm/use-latest@1.3.0_@types_react@19.2.14_react@18.3.1/node_modules/use-latest/dist/use-latest.esm.js +0 -11
- package/dist/node_modules/.pnpm/use-onclickoutside@0.4.1_@types_react@19.2.14_react@18.3.1/node_modules/use-onclickoutside/dist/use-onclickoutside.browser.esm.js +0 -26
- package/dist/node_modules/.pnpm/webfontloader@1.6.28/node_modules/webfontloader/webfontloader.js +0 -482
|
@@ -1,64 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import s from "
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { useState as f } from "react";
|
|
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";
|
|
14
13
|
//#region src/components/user_content/use_report_content/ReportModal.jsx
|
|
15
|
-
var
|
|
16
|
-
let [
|
|
17
|
-
return /* @__PURE__ */ (
|
|
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, {
|
|
18
17
|
"data-vid": "report_modal",
|
|
19
|
-
title:
|
|
18
|
+
title: m.title || M.formatMessage({
|
|
20
19
|
id: "report.report_modal.title",
|
|
21
20
|
defaultMessage: "Report content"
|
|
22
21
|
}),
|
|
23
22
|
showCloseButton: !0,
|
|
24
|
-
children: /* @__PURE__ */ (
|
|
25
|
-
className: (
|
|
23
|
+
children: /* @__PURE__ */ u("div", {
|
|
24
|
+
className: f(s.reportModalBody),
|
|
26
25
|
children: {
|
|
27
|
-
SUBMIT: /* @__PURE__ */ (
|
|
28
|
-
onSubmit: (
|
|
29
|
-
|
|
30
|
-
let
|
|
31
|
-
reportable_id:
|
|
32
|
-
reportable_type:
|
|
33
|
-
classification:
|
|
34
|
-
description:
|
|
35
|
-
first_name:
|
|
36
|
-
last_name:
|
|
37
|
-
email:
|
|
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
|
|
38
37
|
};
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
g("LOADING"), N.create("reports", t, {}, A).then((e) => {
|
|
39
|
+
g("SUCCESS");
|
|
41
40
|
}, (e) => {
|
|
42
|
-
|
|
41
|
+
g("SUCCESS");
|
|
43
42
|
});
|
|
44
43
|
},
|
|
45
|
-
className:
|
|
44
|
+
className: s.reportForm,
|
|
46
45
|
children: [
|
|
47
|
-
/* @__PURE__ */ (
|
|
48
|
-
className:
|
|
49
|
-
children: [/* @__PURE__ */ (
|
|
46
|
+
/* @__PURE__ */ d("div", {
|
|
47
|
+
className: s.formGroup,
|
|
48
|
+
children: [/* @__PURE__ */ u("label", {
|
|
50
49
|
htmlFor: "reportType",
|
|
51
|
-
children:
|
|
50
|
+
children: M.formatMessage({
|
|
52
51
|
id: "report.report_modal.type_input_label",
|
|
53
52
|
defaultMessage: "Report type"
|
|
54
53
|
})
|
|
55
|
-
}), /* @__PURE__ */ (
|
|
56
|
-
onChange: (e) =>
|
|
54
|
+
}), /* @__PURE__ */ u(i, {
|
|
55
|
+
onChange: (e) => b(e.value),
|
|
57
56
|
options: [
|
|
58
57
|
{
|
|
59
58
|
name: "EMPTY",
|
|
60
59
|
value: "",
|
|
61
|
-
text:
|
|
60
|
+
text: M.formatMessage({
|
|
62
61
|
id: "report.report_modal.select_placeholder",
|
|
63
62
|
defaultMessage: "Select a reason"
|
|
64
63
|
})
|
|
@@ -66,7 +65,7 @@ var p = /* @__PURE__ */ e(n()), m = t(), h = (e) => {
|
|
|
66
65
|
{
|
|
67
66
|
name: "TOXICITY",
|
|
68
67
|
value: "TOXICITY",
|
|
69
|
-
text:
|
|
68
|
+
text: M.formatMessage({
|
|
70
69
|
id: "report.report_modal.toxicity_option",
|
|
71
70
|
defaultMessage: "Incivility"
|
|
72
71
|
})
|
|
@@ -74,7 +73,7 @@ var p = /* @__PURE__ */ e(n()), m = t(), h = (e) => {
|
|
|
74
73
|
{
|
|
75
74
|
name: "OBSCENE",
|
|
76
75
|
value: "OBSCENE",
|
|
77
|
-
text:
|
|
76
|
+
text: M.formatMessage({
|
|
78
77
|
id: "report.report_modal.obscene_option",
|
|
79
78
|
defaultMessage: "Profanity, Sexually explicit, Flirtation, Obscene"
|
|
80
79
|
})
|
|
@@ -82,7 +81,7 @@ var p = /* @__PURE__ */ e(n()), m = t(), h = (e) => {
|
|
|
82
81
|
{
|
|
83
82
|
name: "HATE_SPEECH",
|
|
84
83
|
value: "HATE_SPEECH",
|
|
85
|
-
text:
|
|
84
|
+
text: M.formatMessage({
|
|
86
85
|
id: "report.report_modal.hate_speech_option",
|
|
87
86
|
defaultMessage: "Hate speech or Identity attack"
|
|
88
87
|
})
|
|
@@ -90,7 +89,7 @@ var p = /* @__PURE__ */ e(n()), m = t(), h = (e) => {
|
|
|
90
89
|
{
|
|
91
90
|
name: "INCOHERENT",
|
|
92
91
|
value: "INCOHERENT",
|
|
93
|
-
text:
|
|
92
|
+
text: M.formatMessage({
|
|
94
93
|
id: "report.report_modal.incoherent_option",
|
|
95
94
|
defaultMessage: "Incomprehensibility"
|
|
96
95
|
})
|
|
@@ -98,7 +97,7 @@ var p = /* @__PURE__ */ e(n()), m = t(), h = (e) => {
|
|
|
98
97
|
{
|
|
99
98
|
name: "SPAM",
|
|
100
99
|
value: "SPAM",
|
|
101
|
-
text:
|
|
100
|
+
text: M.formatMessage({
|
|
102
101
|
id: "report.report_modal.spam_option",
|
|
103
102
|
defaultMessage: "Spam : Irrelevant or unsolicited commercial content / Off-topic"
|
|
104
103
|
})
|
|
@@ -106,48 +105,48 @@ var p = /* @__PURE__ */ e(n()), m = t(), h = (e) => {
|
|
|
106
105
|
{
|
|
107
106
|
name: "UNSUBSTANTIAL",
|
|
108
107
|
value: "UNSUBSTANTIAL",
|
|
109
|
-
text:
|
|
108
|
+
text: M.formatMessage({
|
|
110
109
|
id: "report.report_modal.unsubstantial_option",
|
|
111
110
|
defaultMessage: "Unsubstantial : Trivial or short / Repetition"
|
|
112
111
|
})
|
|
113
112
|
}
|
|
114
113
|
],
|
|
115
|
-
className:
|
|
114
|
+
className: s.select
|
|
116
115
|
})]
|
|
117
116
|
}),
|
|
118
|
-
/* @__PURE__ */ (
|
|
119
|
-
className:
|
|
117
|
+
/* @__PURE__ */ d("div", {
|
|
118
|
+
className: s.formGroup,
|
|
120
119
|
children: [
|
|
121
|
-
/* @__PURE__ */ (
|
|
120
|
+
/* @__PURE__ */ u("label", {
|
|
122
121
|
htmlFor: "reportDescription",
|
|
123
|
-
children:
|
|
122
|
+
children: M.formatMessage({
|
|
124
123
|
id: "report.report_modal.description_input_label",
|
|
125
124
|
defaultMessage: "Tell us more about your report"
|
|
126
125
|
})
|
|
127
126
|
}),
|
|
128
|
-
/* @__PURE__ */ (
|
|
129
|
-
className:
|
|
127
|
+
/* @__PURE__ */ u("textarea", {
|
|
128
|
+
className: s.formControl,
|
|
130
129
|
id: "reportDescription",
|
|
131
130
|
role: "textbox",
|
|
132
131
|
rows: 4,
|
|
133
|
-
value:
|
|
134
|
-
onChange: (e) =>
|
|
135
|
-
placeholder:
|
|
132
|
+
value: _,
|
|
133
|
+
onChange: (e) => v(e.target.value),
|
|
134
|
+
placeholder: M.formatMessage({
|
|
136
135
|
id: "report.report_modal.description_input_placeholder",
|
|
137
136
|
defaultMessage: "Tell us more"
|
|
138
137
|
})
|
|
139
138
|
}),
|
|
140
|
-
|
|
141
|
-
className:
|
|
142
|
-
children: /* @__PURE__ */ (
|
|
143
|
-
className:
|
|
144
|
-
children: [/* @__PURE__ */ (
|
|
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", {
|
|
145
144
|
type: "checkbox",
|
|
146
|
-
className:
|
|
147
|
-
checked:
|
|
148
|
-
onChange: (e) =>
|
|
145
|
+
className: s.checkboxInput,
|
|
146
|
+
checked: D,
|
|
147
|
+
onChange: (e) => O(e.target.checked),
|
|
149
148
|
required: !0
|
|
150
|
-
}),
|
|
149
|
+
}), M.formatMessage({
|
|
151
150
|
id: "report.report_modal.declaration",
|
|
152
151
|
defaultMessage: "By submitting this report, I declare that the information provided is, to my knowledge, accurate and complete."
|
|
153
152
|
})]
|
|
@@ -155,85 +154,85 @@ var p = /* @__PURE__ */ e(n()), m = t(), h = (e) => {
|
|
|
155
154
|
})
|
|
156
155
|
]
|
|
157
156
|
}),
|
|
158
|
-
|
|
159
|
-
/* @__PURE__ */ (
|
|
160
|
-
className: (
|
|
161
|
-
children: [/* @__PURE__ */ (
|
|
162
|
-
className:
|
|
163
|
-
children: [/* @__PURE__ */ (
|
|
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", {
|
|
164
163
|
htmlFor: "firstName",
|
|
165
|
-
children:
|
|
164
|
+
children: M.formatMessage({
|
|
166
165
|
id: "report.report_modal.first_name_input_label",
|
|
167
166
|
defaultMessage: "First Name"
|
|
168
167
|
})
|
|
169
|
-
}), /* @__PURE__ */ (
|
|
168
|
+
}), /* @__PURE__ */ u("input", {
|
|
170
169
|
type: "text",
|
|
171
|
-
className:
|
|
170
|
+
className: s.formControl,
|
|
172
171
|
id: "firstName",
|
|
173
|
-
value:
|
|
174
|
-
onChange: (e) =>
|
|
172
|
+
value: x,
|
|
173
|
+
onChange: (e) => S(e.target.value),
|
|
175
174
|
required: !0
|
|
176
175
|
})]
|
|
177
|
-
}), /* @__PURE__ */ (
|
|
178
|
-
className:
|
|
179
|
-
children: [/* @__PURE__ */ (
|
|
176
|
+
}), /* @__PURE__ */ d("div", {
|
|
177
|
+
className: s.nameField,
|
|
178
|
+
children: [/* @__PURE__ */ u("label", {
|
|
180
179
|
htmlFor: "lastName",
|
|
181
|
-
children:
|
|
180
|
+
children: M.formatMessage({
|
|
182
181
|
id: "report.report_modal.last_name_input_label",
|
|
183
182
|
defaultMessage: "Last Name"
|
|
184
183
|
})
|
|
185
|
-
}), /* @__PURE__ */ (
|
|
184
|
+
}), /* @__PURE__ */ u("input", {
|
|
186
185
|
type: "text",
|
|
187
|
-
className:
|
|
186
|
+
className: s.formControl,
|
|
188
187
|
id: "lastName",
|
|
189
|
-
value:
|
|
190
|
-
onChange: (e) =>
|
|
188
|
+
value: C,
|
|
189
|
+
onChange: (e) => w(e.target.value),
|
|
191
190
|
required: !0
|
|
192
191
|
})]
|
|
193
192
|
})]
|
|
194
193
|
}),
|
|
195
|
-
/* @__PURE__ */ (
|
|
196
|
-
className:
|
|
197
|
-
children: [/* @__PURE__ */ (
|
|
194
|
+
/* @__PURE__ */ d("div", {
|
|
195
|
+
className: s.formGroup,
|
|
196
|
+
children: [/* @__PURE__ */ u("label", {
|
|
198
197
|
htmlFor: "email",
|
|
199
|
-
children:
|
|
198
|
+
children: M.formatMessage({
|
|
200
199
|
id: "report.report_modal.email_input_label",
|
|
201
200
|
defaultMessage: "Email"
|
|
202
201
|
})
|
|
203
|
-
}), /* @__PURE__ */ (
|
|
202
|
+
}), /* @__PURE__ */ u("input", {
|
|
204
203
|
type: "email",
|
|
205
|
-
className:
|
|
204
|
+
className: s.formControl,
|
|
206
205
|
id: "email",
|
|
207
|
-
value:
|
|
208
|
-
onChange: (e) =>
|
|
206
|
+
value: T,
|
|
207
|
+
onChange: (e) => E(e.target.value),
|
|
209
208
|
required: !0
|
|
210
209
|
})]
|
|
211
210
|
}),
|
|
212
|
-
/* @__PURE__ */ (
|
|
213
|
-
className:
|
|
214
|
-
children: /* @__PURE__ */ (
|
|
215
|
-
className:
|
|
216
|
-
children: [/* @__PURE__ */ (
|
|
211
|
+
/* @__PURE__ */ u("div", {
|
|
212
|
+
className: s.formGroup,
|
|
213
|
+
children: /* @__PURE__ */ d("label", {
|
|
214
|
+
className: s.checkboxLabel,
|
|
215
|
+
children: [/* @__PURE__ */ u("input", {
|
|
217
216
|
type: "checkbox",
|
|
218
|
-
className:
|
|
219
|
-
checked:
|
|
220
|
-
onChange: (e) =>
|
|
217
|
+
className: s.checkboxInput,
|
|
218
|
+
checked: D,
|
|
219
|
+
onChange: (e) => O(e.target.checked),
|
|
221
220
|
required: !0
|
|
222
|
-
}),
|
|
221
|
+
}), M.formatMessage({
|
|
223
222
|
id: "report.report_modal.declaration",
|
|
224
223
|
defaultMessage: "By submitting this report, I declare that the information provided is, to my knowledge, accurate and complete."
|
|
225
224
|
})]
|
|
226
225
|
})
|
|
227
226
|
})
|
|
228
227
|
] }),
|
|
229
|
-
/* @__PURE__ */ (
|
|
230
|
-
className: (
|
|
231
|
-
children: /* @__PURE__ */ (
|
|
228
|
+
/* @__PURE__ */ u("div", {
|
|
229
|
+
className: f(s.formGroup, s.reportFormSubmit),
|
|
230
|
+
children: /* @__PURE__ */ u(e, {
|
|
232
231
|
handleClick: () => null,
|
|
233
232
|
"data-tid": "action_submit_report",
|
|
234
233
|
type: "submit",
|
|
235
|
-
disabled: !
|
|
236
|
-
children:
|
|
234
|
+
disabled: !y,
|
|
235
|
+
children: M.formatMessage({
|
|
237
236
|
id: "report.report_modal.submit_label",
|
|
238
237
|
defaultMessage: "Send"
|
|
239
238
|
})
|
|
@@ -241,26 +240,26 @@ var p = /* @__PURE__ */ e(n()), m = t(), h = (e) => {
|
|
|
241
240
|
})
|
|
242
241
|
]
|
|
243
242
|
}),
|
|
244
|
-
LOADING: /* @__PURE__ */ (
|
|
245
|
-
SUCCESS: /* @__PURE__ */ (
|
|
246
|
-
className:
|
|
247
|
-
children:
|
|
243
|
+
LOADING: /* @__PURE__ */ u(r, {}),
|
|
244
|
+
SUCCESS: /* @__PURE__ */ d("div", { children: [/* @__PURE__ */ u("div", {
|
|
245
|
+
className: s.successText,
|
|
246
|
+
children: M.formatMessage({
|
|
248
247
|
id: "report.report_modal.success",
|
|
249
248
|
defaultMessage: "Thank you for your submission !"
|
|
250
249
|
})
|
|
251
|
-
}), /* @__PURE__ */ (
|
|
252
|
-
className:
|
|
253
|
-
children: /* @__PURE__ */ (
|
|
254
|
-
handleClick:
|
|
255
|
-
children:
|
|
250
|
+
}), /* @__PURE__ */ u("div", {
|
|
251
|
+
className: s.successButtonBox,
|
|
252
|
+
children: /* @__PURE__ */ u(e, {
|
|
253
|
+
handleClick: k,
|
|
254
|
+
children: M.formatMessage({
|
|
256
255
|
id: "report.report_modal.close",
|
|
257
256
|
defaultMessage: "Close"
|
|
258
257
|
})
|
|
259
258
|
})
|
|
260
259
|
})] })
|
|
261
|
-
}[
|
|
260
|
+
}[h]
|
|
262
261
|
})
|
|
263
262
|
}) });
|
|
264
263
|
};
|
|
265
264
|
//#endregion
|
|
266
|
-
export {
|
|
265
|
+
export { m as ReportModal };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
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
8
|
//#region src/components/user_content/use_report_content/useReportContent.jsx
|
|
9
|
-
var s =
|
|
10
|
-
let { isLoggedIn: u, currentUser: d } =
|
|
9
|
+
var s = (s, c, l) => {
|
|
10
|
+
let { isLoggedIn: u, currentUser: d } = e(), { showModal: f } = n(), p = t(), m = r();
|
|
11
11
|
return { reportContent: () => {
|
|
12
|
-
u || p.actions?.allowAnonymousReport === !0 ? f(/* @__PURE__ */ (
|
|
12
|
+
u || p.actions?.allowAnonymousReport === !0 ? f(/* @__PURE__ */ o(a, {
|
|
13
13
|
fallback: null,
|
|
14
|
-
children: /* @__PURE__ */ (
|
|
15
|
-
reportableType:
|
|
14
|
+
children: /* @__PURE__ */ o(i, {
|
|
15
|
+
reportableType: s,
|
|
16
16
|
reportableId: c,
|
|
17
17
|
title: l,
|
|
18
18
|
allowAnonymousUser: p.actions?.allowAnonymousReport
|
|
@@ -21,4 +21,4 @@ var s = e(), c = (e, c, l) => {
|
|
|
21
21
|
} };
|
|
22
22
|
};
|
|
23
23
|
//#endregion
|
|
24
|
-
export {
|
|
24
|
+
export { s as useReportContent };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { compile as e } from "
|
|
1
|
+
import { compile as e } from "path-to-regexp";
|
|
2
2
|
//#region src/components/util/location/Location.js
|
|
3
3
|
var t = {}, n = 1e4, r = 0, i = class {
|
|
4
4
|
constructor(e, t, n) {
|
|
@@ -1,75 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import i from "
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
import c from "
|
|
10
|
-
import {
|
|
1
|
+
import { Icon as e } from "../../icons/icon/Icon.js";
|
|
2
|
+
import { Button as t } from "../../action/button/Button.js";
|
|
3
|
+
import { useAuth as n } from "../../auth/use_auth/useAuth.js";
|
|
4
|
+
import { useModal as r } from "../../dialog/modal/useModal.js";
|
|
5
|
+
import { ConfirmModal as i } from "../../dialog/confirm_modal/ConfirmModal.js";
|
|
6
|
+
import { useVote as a } from "../use_vote/useVote.js";
|
|
7
|
+
import o from "./SuggestionVoteBox.module.js";
|
|
8
|
+
import { Suspense as s } from "react";
|
|
9
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
import { useIntl as u } from "react-intl";
|
|
11
11
|
//#region src/components/vote/suggestion_vote_box/SuggestionVoteBox.jsx
|
|
12
|
-
var
|
|
13
|
-
let
|
|
14
|
-
|
|
12
|
+
var d = ({ voteableType: d, voteableId: f, totalUpvote: p = 0, totalDownvote: m = 0, onVote: h, disabled: g = !1 }) => {
|
|
13
|
+
let _ = u(), { isLoggedIn: v } = n(), { activeVote: y, voteSide: b, handleVote: x } = a(d, f, p, m, h), { showModal: S } = r(), C = () => {
|
|
14
|
+
v && (y && !b ? x(!1) : S(/* @__PURE__ */ c(s, {
|
|
15
15
|
fallback: null,
|
|
16
|
-
children: /* @__PURE__ */ (
|
|
17
|
-
title:
|
|
16
|
+
children: /* @__PURE__ */ c(i, {
|
|
17
|
+
title: _.formatMessage({
|
|
18
18
|
id: "vote.suggestion_vote_box.downvote",
|
|
19
19
|
defaultMessage: "Not interested"
|
|
20
20
|
}),
|
|
21
|
-
question:
|
|
21
|
+
question: _.formatMessage({
|
|
22
22
|
id: "vote.suggestion_vote_box.confirm_suggestion_downvote",
|
|
23
23
|
defaultMessage: "Your vote should judge the quality of the question. Are you sure you want to continue ?"
|
|
24
24
|
}),
|
|
25
|
-
confirmLabel:
|
|
25
|
+
confirmLabel: _.formatMessage({
|
|
26
26
|
id: "info.yes",
|
|
27
27
|
defaultMessage: "Yes"
|
|
28
28
|
}),
|
|
29
|
-
cancelLabel:
|
|
29
|
+
cancelLabel: _.formatMessage({
|
|
30
30
|
id: "info.no",
|
|
31
31
|
defaultMessage: "No"
|
|
32
32
|
}),
|
|
33
|
-
onConfirmCallback: () =>
|
|
33
|
+
onConfirmCallback: () => x(!1)
|
|
34
34
|
})
|
|
35
35
|
})));
|
|
36
36
|
};
|
|
37
|
-
return /* @__PURE__ */ (
|
|
38
|
-
className:
|
|
39
|
-
children: [/* @__PURE__ */ (
|
|
37
|
+
return /* @__PURE__ */ l("div", {
|
|
38
|
+
className: o.voteButtonsContainer,
|
|
39
|
+
children: [/* @__PURE__ */ c(t, {
|
|
40
40
|
type: "button",
|
|
41
|
-
onClick:
|
|
41
|
+
onClick: g ? null : () => x(!0),
|
|
42
42
|
"data-testid": "upvote-button",
|
|
43
|
-
disabled:
|
|
44
|
-
rightIcon: /* @__PURE__ */ (
|
|
43
|
+
disabled: g,
|
|
44
|
+
rightIcon: /* @__PURE__ */ c(e, {
|
|
45
45
|
name: "check",
|
|
46
46
|
width: 20,
|
|
47
47
|
height: 20,
|
|
48
48
|
"data-testid": "upvote-icon",
|
|
49
49
|
"aria-hidden": "true"
|
|
50
50
|
}),
|
|
51
|
-
active: !(
|
|
52
|
-
children: /* @__PURE__ */ (
|
|
53
|
-
className:
|
|
54
|
-
children:
|
|
51
|
+
active: !(y && b),
|
|
52
|
+
children: /* @__PURE__ */ c("span", {
|
|
53
|
+
className: o.text,
|
|
54
|
+
children: _.formatMessage({
|
|
55
55
|
id: "vote.suggestion_vote_box.upvote",
|
|
56
56
|
defaultMessage: "I'm interested"
|
|
57
57
|
})
|
|
58
58
|
})
|
|
59
|
-
}), /* @__PURE__ */ (
|
|
59
|
+
}), /* @__PURE__ */ c(t, {
|
|
60
60
|
type: "button",
|
|
61
|
-
onClick:
|
|
62
|
-
disabled:
|
|
63
|
-
rightIcon: /* @__PURE__ */ (
|
|
61
|
+
onClick: g ? null : () => C(),
|
|
62
|
+
disabled: g,
|
|
63
|
+
rightIcon: /* @__PURE__ */ c(e, {
|
|
64
64
|
name: "close",
|
|
65
65
|
width: 10,
|
|
66
66
|
height: 10,
|
|
67
67
|
"aria-hidden": "true"
|
|
68
68
|
}),
|
|
69
|
-
active: !(
|
|
70
|
-
children: /* @__PURE__ */ (
|
|
71
|
-
className:
|
|
72
|
-
children:
|
|
69
|
+
active: !(y && !b),
|
|
70
|
+
children: /* @__PURE__ */ c("span", {
|
|
71
|
+
className: o.text,
|
|
72
|
+
children: _.formatMessage({
|
|
73
73
|
id: "vote.suggestion_vote_box.downvote",
|
|
74
74
|
defaultMessage: "Not interested"
|
|
75
75
|
})
|
|
@@ -1,56 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
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 { useVote as a } from "../use_vote/useVote.js";
|
|
7
|
-
import o from "./UpDownVoteBox.module.js";
|
|
1
|
+
import { Icon as e } from "../../icons/icon/Icon.js";
|
|
2
|
+
import { useVote as t } from "../use_vote/useVote.js";
|
|
3
|
+
import n from "./UpDownVoteBox.module.js";
|
|
8
4
|
import "react";
|
|
5
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
6
|
+
import a from "classnames";
|
|
7
|
+
import { useIntl as o } from "react-intl";
|
|
9
8
|
//#region src/components/vote/up_down_vote_box/UpDownVoteBox.jsx
|
|
10
|
-
var s =
|
|
11
|
-
let { totalUpvotes:
|
|
12
|
-
return /* @__PURE__ */ (
|
|
13
|
-
className:
|
|
14
|
-
children: [/* @__PURE__ */ (
|
|
15
|
-
className: (
|
|
16
|
-
[
|
|
17
|
-
[
|
|
9
|
+
var s = ({ voteableType: s, voteableId: c, totalUpvote: l = 0, totalDownvote: u = 0, disabled: d = !1 }) => {
|
|
10
|
+
let { totalUpvotes: f, totalDownvotes: p, activeVote: m, voteSide: h, handleVote: g } = t(s, c, l, u), _ = o();
|
|
11
|
+
return /* @__PURE__ */ i("div", {
|
|
12
|
+
className: n.container,
|
|
13
|
+
children: [/* @__PURE__ */ i("div", {
|
|
14
|
+
className: a(n.upvoteContainer, {
|
|
15
|
+
[n.disabled]: d,
|
|
16
|
+
[n.active]: m && h
|
|
18
17
|
}),
|
|
19
|
-
onClick:
|
|
18
|
+
onClick: d ? null : () => g(!0),
|
|
20
19
|
"data-testid": "upvote-button",
|
|
21
|
-
children: [/* @__PURE__ */ (
|
|
20
|
+
children: [/* @__PURE__ */ r(e, {
|
|
22
21
|
name: "upvote",
|
|
23
22
|
width: 27,
|
|
24
23
|
height: 25,
|
|
25
|
-
"aria-label":
|
|
24
|
+
"aria-label": _.formatMessage({
|
|
26
25
|
id: "vote.up_down_vote_box.supporters",
|
|
27
26
|
defaultMessage: "supporters"
|
|
28
27
|
})
|
|
29
|
-
}), /* @__PURE__ */ (
|
|
30
|
-
className:
|
|
31
|
-
children:
|
|
28
|
+
}), /* @__PURE__ */ r("div", {
|
|
29
|
+
className: n.voteText,
|
|
30
|
+
children: f
|
|
32
31
|
})]
|
|
33
|
-
}), /* @__PURE__ */ (
|
|
34
|
-
className: (
|
|
35
|
-
[
|
|
36
|
-
[
|
|
32
|
+
}), /* @__PURE__ */ i("div", {
|
|
33
|
+
className: a(n.downvoteContainer, {
|
|
34
|
+
[n.disabled]: d,
|
|
35
|
+
[n.active]: m && !h
|
|
37
36
|
}),
|
|
38
|
-
onClick:
|
|
37
|
+
onClick: d ? null : () => g(!1),
|
|
39
38
|
"data-testid": "downvote-button",
|
|
40
|
-
children: [/* @__PURE__ */ (
|
|
39
|
+
children: [/* @__PURE__ */ r(e, {
|
|
41
40
|
name: "downvote",
|
|
42
41
|
width: 27,
|
|
43
42
|
height: 25,
|
|
44
|
-
"aria-label":
|
|
43
|
+
"aria-label": _.formatMessage({
|
|
45
44
|
id: "vote.up_down_vote_box.opponents",
|
|
46
45
|
defaultMessage: "opponents"
|
|
47
46
|
})
|
|
48
|
-
}), /* @__PURE__ */ (
|
|
49
|
-
className:
|
|
50
|
-
children:
|
|
47
|
+
}), /* @__PURE__ */ r("div", {
|
|
48
|
+
className: n.voteText,
|
|
49
|
+
children: p
|
|
51
50
|
})]
|
|
52
51
|
})]
|
|
53
52
|
});
|
|
54
53
|
};
|
|
55
54
|
//#endregion
|
|
56
|
-
export {
|
|
55
|
+
export { s as UpDownVoteBox };
|