@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,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "
|
|
3
|
-
import {
|
|
1
|
+
import e from "./AdUnit.module.js";
|
|
2
|
+
import { useEffect as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/ad/ad_unit/AdUnit.jsx
|
|
5
|
-
var r =
|
|
6
|
-
if (!
|
|
7
|
-
let c = `div-gpt-ad-${
|
|
8
|
-
return
|
|
5
|
+
var r = ({ id: r, adPath: i, sizes: a = [], targeting: o, enableDidomi: s = !1 }) => {
|
|
6
|
+
if (!r || !i) return null;
|
|
7
|
+
let c = `div-gpt-ad-${r}`;
|
|
8
|
+
return t(() => {
|
|
9
9
|
if (typeof window < "u" && c && i) {
|
|
10
10
|
let e = window.googletag || (window.googletag = { cmd: [] }), t;
|
|
11
11
|
return e.cmd.push(() => {
|
|
@@ -19,24 +19,24 @@ var r = e(), i = ({ id: e, adPath: i, sizes: a = [], targeting: o, enableDidomi:
|
|
|
19
19
|
});
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
}, []), s === !0 ? /* @__PURE__ */ (
|
|
22
|
+
}, []), s === !0 ? /* @__PURE__ */ n("script", {
|
|
23
23
|
type: "didomi/html",
|
|
24
24
|
"data-vendor": "didomi:google",
|
|
25
25
|
"data-purposes": "cookies",
|
|
26
|
-
children: /* @__PURE__ */ (
|
|
27
|
-
className:
|
|
28
|
-
children: /* @__PURE__ */ (
|
|
29
|
-
className:
|
|
26
|
+
children: /* @__PURE__ */ n("div", {
|
|
27
|
+
className: e.adContainer,
|
|
28
|
+
children: /* @__PURE__ */ n("div", {
|
|
29
|
+
className: e.adUnit,
|
|
30
30
|
id: c
|
|
31
31
|
})
|
|
32
32
|
})
|
|
33
|
-
}) : /* @__PURE__ */ (
|
|
34
|
-
className:
|
|
35
|
-
children: /* @__PURE__ */ (
|
|
36
|
-
className:
|
|
33
|
+
}) : /* @__PURE__ */ n("div", {
|
|
34
|
+
className: e.adContainer,
|
|
35
|
+
children: /* @__PURE__ */ n("div", {
|
|
36
|
+
className: e.adUnit,
|
|
37
37
|
id: c
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
};
|
|
41
41
|
//#endregion
|
|
42
|
-
export {
|
|
42
|
+
export { r as AdUnit };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import n from "react";
|
|
1
|
+
import { AdUnit as e } from "../ad_unit/AdUnit.js";
|
|
2
|
+
import t from "react";
|
|
3
|
+
import { Fragment as n, jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/ad/with_ad/WithAd.jsx
|
|
5
|
-
var
|
|
6
|
-
id:
|
|
7
|
-
adPath:
|
|
8
|
-
targeting:
|
|
9
|
-
sizes:
|
|
10
|
-
enableDidomi:
|
|
5
|
+
var a = ({ id: a, adPath: o, targeting: s, sizes: c, index: l, frequency: u = 3, enableDidomi: d = !1, children: f, ...p }) => /* @__PURE__ */ i(n, { children: [t.cloneElement(f, p), a && o && (l + 1) % u === 1 && /* @__PURE__ */ r(e, {
|
|
6
|
+
id: l ? `${a}-${l}` : a,
|
|
7
|
+
adPath: o,
|
|
8
|
+
targeting: s,
|
|
9
|
+
sizes: c,
|
|
10
|
+
enableDidomi: d
|
|
11
11
|
})] });
|
|
12
12
|
//#endregion
|
|
13
|
-
export {
|
|
13
|
+
export { a as WithAd };
|
|
@@ -1,134 +1,133 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { useAuth as a } from "../../auth/use_auth/useAuth.js";
|
|
7
|
-
import { useConfig as o } from "../../data/config_provider/useConfig.js";
|
|
8
|
-
import ee 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";
|
|
9
|
-
import { VotePaginatedList as te } from "../../list/paginated_list/VotePaginatedList.js";
|
|
1
|
+
import { Icon as e } from "../../icons/icon/Icon.js";
|
|
2
|
+
import { Button as t } from "../../action/button/Button.js";
|
|
3
|
+
import { useAuth as ee } from "../../auth/use_auth/useAuth.js";
|
|
4
|
+
import { useConfig as te } from "../../data/config_provider/useConfig.js";
|
|
5
|
+
import { VotePaginatedList as n } from "../../list/paginated_list/VotePaginatedList.js";
|
|
10
6
|
import { UserContentSkeleton as ne } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
|
|
11
|
-
import { SourceListItem as
|
|
12
|
-
import { ReadMore as
|
|
13
|
-
import { HashScroll as
|
|
14
|
-
import { useTranslatedContent as
|
|
15
|
-
import { TranslationButton as
|
|
16
|
-
import { ContentFooter as
|
|
17
|
-
import { ContentHeader as
|
|
18
|
-
import { VoteButton as
|
|
19
|
-
import
|
|
20
|
-
import { ReplyFooter as
|
|
21
|
-
import { useRichContent as
|
|
22
|
-
import { Suspense as
|
|
7
|
+
import { SourceListItem as r } from "../../source/source_list_item/SourceListItem.js";
|
|
8
|
+
import { ReadMore as i } from "../../text/read_more/ReadMore.js";
|
|
9
|
+
import { HashScroll as re } from "../../tools/hash_scroll/HashScroll.js";
|
|
10
|
+
import { useTranslatedContent as a } from "../../translation/translated_content/useTranslatedContent.js";
|
|
11
|
+
import { TranslationButton as ie } from "../../translation/translation_button/TranslationButton.js";
|
|
12
|
+
import { ContentFooter as ae } from "../../user_content/content_footer/ContentFooter.js";
|
|
13
|
+
import { ContentHeader as oe } from "../../user_content/content_header/ContentHeader.js";
|
|
14
|
+
import { VoteButton as se } from "../../vote/vote_button/VoteButton.js";
|
|
15
|
+
import o from "./Argument.module.js";
|
|
16
|
+
import { ReplyFooter as ce } from "./ReplyFooter.js";
|
|
17
|
+
import { useRichContent as s } from "./useRichContent.js";
|
|
18
|
+
import { Suspense as c, lazy as l, useCallback as u, useEffect as d, useState as f } from "react";
|
|
19
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
20
|
+
import g from "classnames";
|
|
21
|
+
import { useIntl as le } from "react-intl";
|
|
23
22
|
//#region src/components/argument/argument/Argument.jsx
|
|
24
|
-
var
|
|
25
|
-
let L =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}, [
|
|
29
|
-
let
|
|
23
|
+
var ue = l(() => import("../../input/argument_input/index.js")), _ = ({ argument: l, argumentReplies: _, nestingLevel: v = 0, groupType: y, groupName: b, positions: x = [], disableLinks: fe = !1, parentArgument: S, flashParent: C, expandable: w, disabled: T = !1, hideFooter: E = !1, hideReplies: D, vote: O, fixedContentHeight: k = !1, enableEdition: A = !0, enableDeletion: j = !0, deleteListId: M, showModerationFeedback: N, lineCount: P = 5, replyRedirectUrl: F, hideContent: I = !1 }) => {
|
|
24
|
+
let L = le(), { isLoggedIn: R, currentUser: z } = ee(), B = z?.moderation_status === "banned", V = te(), [H, U] = f(!1), [pe, W] = f(!1), [me, he] = f(!1), G = s(l), [K, q] = f(), J = a(l.content, l.language, "content", l.translation_entries), ge = a(l.position?.name, l.position?.language, "name", l.position?.translation_entries), Y = `argument_${l.id}`, X = l.position && x?.map((e) => e.id).indexOf(l.position.id) + 1;
|
|
25
|
+
d(() => {
|
|
26
|
+
_ !== void 0 && be();
|
|
27
|
+
}, [_]);
|
|
28
|
+
let _e = (e) => {
|
|
30
29
|
if (Y === e) {
|
|
31
30
|
let t = document.getElementById(e);
|
|
32
31
|
t && t.scrollIntoView({ behavior: "smooth" }), W(!0);
|
|
33
32
|
}
|
|
34
33
|
}, Z = () => {
|
|
35
|
-
|
|
34
|
+
he((e) => !e);
|
|
36
35
|
}, Q = () => {
|
|
37
36
|
U((e) => !e), q([]);
|
|
38
|
-
},
|
|
37
|
+
}, ve = (e) => {
|
|
39
38
|
if (!K?.find((t) => t.id === e.id)) return e;
|
|
40
|
-
},
|
|
39
|
+
}, ye = u((e, t) => /* @__PURE__ */ m(r, {
|
|
41
40
|
publisher: e.publisher,
|
|
42
41
|
url: e.source_url,
|
|
43
42
|
title: e.title,
|
|
44
43
|
index: t
|
|
45
|
-
}, t), []),
|
|
46
|
-
if (
|
|
47
|
-
let
|
|
48
|
-
|
|
44
|
+
}, t), []), be = () => {
|
|
45
|
+
if (_ && Array.isArray(_)) {
|
|
46
|
+
let e = _.filter((e) => e.reply_to_id === l.id);
|
|
47
|
+
e.length > 0 && (q(e), U(!0));
|
|
49
48
|
}
|
|
50
|
-
}, $ = (
|
|
51
|
-
...
|
|
52
|
-
nestingLevel:
|
|
49
|
+
}, $ = (e = null) => /* @__PURE__ */ m(de, {
|
|
50
|
+
...e ? { argument: e } : {},
|
|
51
|
+
nestingLevel: v + 1,
|
|
53
52
|
disabled: T,
|
|
54
53
|
groupName: b,
|
|
55
|
-
groupType:
|
|
54
|
+
groupType: y,
|
|
56
55
|
positions: x,
|
|
57
|
-
argumentReplies:
|
|
58
|
-
parentArgument:
|
|
59
|
-
flashParent: (e) =>
|
|
56
|
+
argumentReplies: _,
|
|
57
|
+
parentArgument: l,
|
|
58
|
+
flashParent: (e) => _e(`argument_${e}`)
|
|
60
59
|
});
|
|
61
|
-
return /* @__PURE__ */ (
|
|
60
|
+
return /* @__PURE__ */ h(re, {
|
|
62
61
|
elementId: Y,
|
|
63
62
|
onScroll: () => W(!0),
|
|
64
|
-
children: [/* @__PURE__ */ (
|
|
65
|
-
className: (
|
|
66
|
-
[
|
|
67
|
-
[
|
|
68
|
-
},
|
|
63
|
+
children: [/* @__PURE__ */ h("div", {
|
|
64
|
+
className: g(o.argument, {
|
|
65
|
+
[o.flash]: pe,
|
|
66
|
+
[o.argumentReply]: l.is_reply === !0
|
|
67
|
+
}, o[`level-${v}`], o[`position-${!(l.author.role === "editor" || l.author.role === "moderator") && X}`]),
|
|
69
68
|
id: Y,
|
|
70
69
|
children: [
|
|
71
|
-
/* @__PURE__ */ (
|
|
72
|
-
selectedContent:
|
|
73
|
-
author:
|
|
74
|
-
tag: (
|
|
75
|
-
date:
|
|
76
|
-
tagClassName:
|
|
77
|
-
disableLinks:
|
|
78
|
-
isDeleted:
|
|
79
|
-
showModerationFeedback: N ?? (
|
|
80
|
-
moderationReason:
|
|
81
|
-
moderationNotes:
|
|
70
|
+
/* @__PURE__ */ m(oe, {
|
|
71
|
+
selectedContent: l.score === 99,
|
|
72
|
+
author: l.author,
|
|
73
|
+
tag: (l.author.role === "editor" || l.author.role === "moderator") && l.is_reply ? null : ge.translatedContent,
|
|
74
|
+
date: l.created_at,
|
|
75
|
+
tagClassName: o[`headerPosition-${X}`],
|
|
76
|
+
disableLinks: fe,
|
|
77
|
+
isDeleted: l.is_deleted,
|
|
78
|
+
showModerationFeedback: N ?? (l.status === "rejected" && V.moderation?.showFeedback === !0),
|
|
79
|
+
moderationReason: l.moderation_entry?.moderation_reason,
|
|
80
|
+
moderationNotes: l.moderation_entry?.moderator_notes,
|
|
82
81
|
moderationPolicyUrl: V.provider?.userGuideUrl
|
|
83
82
|
}),
|
|
84
|
-
|
|
85
|
-
className:
|
|
83
|
+
l.is_deleted ? /* @__PURE__ */ m("div", {
|
|
84
|
+
className: o.argumentDeletedBody,
|
|
86
85
|
children: L.formatMessage({
|
|
87
86
|
id: "info.deleted_by_user",
|
|
88
87
|
defaultMessage: "Content deleted by the user"
|
|
89
88
|
})
|
|
90
|
-
}) : I ? /* @__PURE__ */ (
|
|
91
|
-
className:
|
|
89
|
+
}) : I ? /* @__PURE__ */ m("div", {
|
|
90
|
+
className: o.argumentDeletedBody,
|
|
92
91
|
children: L.formatMessage({
|
|
93
92
|
id: "argument.argument.content_deleted",
|
|
94
93
|
defaultMessage: "This content has been removed."
|
|
95
94
|
})
|
|
96
|
-
}) : /* @__PURE__ */ (
|
|
97
|
-
className: (
|
|
98
|
-
children: [
|
|
99
|
-
className:
|
|
95
|
+
}) : /* @__PURE__ */ h(p, { children: [/* @__PURE__ */ h("div", {
|
|
96
|
+
className: g(o.argumentBody, { [o.fixedHeight]: V?.layout?.showAllArgumentInEmbed === !0 ? !1 : k }),
|
|
97
|
+
children: [l.is_reply && S && /* @__PURE__ */ h("div", {
|
|
98
|
+
className: o.replyTo,
|
|
100
99
|
onClick: () => C(S.id),
|
|
101
100
|
children: [L.formatMessage({
|
|
102
101
|
id: "info.replying_to",
|
|
103
102
|
defaultMessage: "Replying to"
|
|
104
|
-
}), /* @__PURE__ */ (
|
|
105
|
-
className:
|
|
103
|
+
}), /* @__PURE__ */ h("span", {
|
|
104
|
+
className: o.replyingTo,
|
|
106
105
|
children: [S.is_deleted ? L.formatMessage({
|
|
107
106
|
id: "info.deleted",
|
|
108
107
|
defaultMessage: "Deleted"
|
|
109
|
-
}) : S.author.full_name, /* @__PURE__ */ (
|
|
108
|
+
}) : S.author.full_name, /* @__PURE__ */ m(e, {
|
|
110
109
|
name: "chat",
|
|
111
110
|
height: 16
|
|
112
111
|
})]
|
|
113
112
|
})]
|
|
114
|
-
}), /* @__PURE__ */ (
|
|
115
|
-
content: /* @__PURE__ */ (
|
|
116
|
-
|
|
117
|
-
className:
|
|
113
|
+
}), /* @__PURE__ */ m(i, {
|
|
114
|
+
content: /* @__PURE__ */ h(p, { children: [
|
|
115
|
+
l.is_edited && /* @__PURE__ */ m("div", {
|
|
116
|
+
className: o.edited,
|
|
118
117
|
children: L.formatMessage({
|
|
119
118
|
id: "argument.argument.updated",
|
|
120
119
|
defaultMessage: "Updated argument"
|
|
121
120
|
})
|
|
122
121
|
}),
|
|
123
|
-
G && !J.isTranslated ? /* @__PURE__ */ (
|
|
124
|
-
className:
|
|
122
|
+
G && !J.isTranslated ? /* @__PURE__ */ m("div", {
|
|
123
|
+
className: o.argumentContent,
|
|
125
124
|
dangerouslySetInnerHTML: { __html: G }
|
|
126
|
-
}) : /* @__PURE__ */ (
|
|
127
|
-
className:
|
|
125
|
+
}) : /* @__PURE__ */ m("div", {
|
|
126
|
+
className: o.argumentContent,
|
|
128
127
|
children: J.translatedContent
|
|
129
128
|
}),
|
|
130
|
-
J.isTranslated && /* @__PURE__ */ (
|
|
131
|
-
language:
|
|
129
|
+
J.isTranslated && /* @__PURE__ */ m(ie, {
|
|
130
|
+
language: l.language,
|
|
132
131
|
callback: () => J.toggleContent()
|
|
133
132
|
})
|
|
134
133
|
] }),
|
|
@@ -142,23 +141,23 @@ var v = /* @__PURE__ */ e(r()), y = t(), ce = g(() => import("../../input/argume
|
|
|
142
141
|
defaultMessage: "Read less"
|
|
143
142
|
}),
|
|
144
143
|
expandable: V?.layout?.showAllArgumentInEmbed === !0 ? !1 : w,
|
|
145
|
-
readMoreClassName:
|
|
144
|
+
readMoreClassName: l.is_reply ? o.replyStyle : o.argumentStyle
|
|
146
145
|
})]
|
|
147
|
-
}),
|
|
148
|
-
className:
|
|
149
|
-
children:
|
|
146
|
+
}), l.sources?.length > 0 && /* @__PURE__ */ m("div", {
|
|
147
|
+
className: o.argumentSourcesList,
|
|
148
|
+
children: l.sources.map(ye)
|
|
150
149
|
})] }),
|
|
151
|
-
!E && !
|
|
152
|
-
resource:
|
|
153
|
-
disabled: T ||
|
|
150
|
+
!E && !l.is_deleted && /* @__PURE__ */ m(ae, {
|
|
151
|
+
resource: l,
|
|
152
|
+
disabled: T || l.status === "rejected" || !R && V?.actions?.disableInputForVisitor === !0 || B,
|
|
154
153
|
reportType: "Message",
|
|
155
154
|
softDelete: V.actions?.softDelete,
|
|
156
155
|
deleteType: "messages",
|
|
157
156
|
deleteListId: M,
|
|
158
|
-
enableReply:
|
|
157
|
+
enableReply: v <= 2 || z.role === "editor" || z.role === "moderator",
|
|
159
158
|
handleReplyTo: Z,
|
|
160
159
|
replyRedirectUrl: F,
|
|
161
|
-
shareUrl: `https://app.logora.fr/share/a/${
|
|
160
|
+
shareUrl: `https://app.logora.fr/share/a/${l.id}`,
|
|
162
161
|
shareTitle: L.formatMessage({
|
|
163
162
|
id: "share.argument.title",
|
|
164
163
|
defaultMessage: "Share a debate"
|
|
@@ -167,38 +166,38 @@ var v = /* @__PURE__ */ e(r()), y = t(), ce = g(() => import("../../input/argume
|
|
|
167
166
|
id: "share.argument.text",
|
|
168
167
|
defaultMessage: "This argument may interest you"
|
|
169
168
|
}),
|
|
170
|
-
shareCode: `<iframe src="https://cdn.logora.com/embed.html?shortname=${V.shortname}&id=${
|
|
169
|
+
shareCode: `<iframe src="https://cdn.logora.com/embed.html?shortname=${V.shortname}&id=${l.id}&resource=argument" frameborder="0" width="100%" height="275px" scrolling="no"></iframe>`,
|
|
171
170
|
showShareCode: V?.actions?.hideCodeShare !== !0,
|
|
172
171
|
showShareText: !0,
|
|
173
172
|
showShareButton: V?.actions?.hideShareButton !== !0,
|
|
174
|
-
enableReport: !(
|
|
173
|
+
enableReport: !(l.score === 100 && l.manual_score),
|
|
175
174
|
enableEdition: A,
|
|
176
175
|
enableDeletion: j,
|
|
177
|
-
children: /* @__PURE__ */ (
|
|
176
|
+
children: /* @__PURE__ */ m(se, {
|
|
178
177
|
voteableType: "Message",
|
|
179
|
-
voteableId:
|
|
180
|
-
totalUpvote:
|
|
178
|
+
voteableId: l.id,
|
|
179
|
+
totalUpvote: l.upvotes,
|
|
181
180
|
totalDownvote: 0,
|
|
182
|
-
activeClassName:
|
|
183
|
-
disabled:
|
|
181
|
+
activeClassName: o[`voteButtonPosition-${X}`],
|
|
182
|
+
disabled: l.status === "rejected" || z?.id === l?.author?.id || B
|
|
184
183
|
})
|
|
185
184
|
}),
|
|
186
|
-
!E && !D && /* @__PURE__ */ (
|
|
187
|
-
numberReplies:
|
|
188
|
-
repliesAuthors:
|
|
185
|
+
!E && !D && /* @__PURE__ */ m(ce, {
|
|
186
|
+
numberReplies: l.number_replies,
|
|
187
|
+
repliesAuthors: l.replies_authors,
|
|
189
188
|
expandReplies: H,
|
|
190
189
|
onToggleReplies: Q
|
|
191
190
|
})
|
|
192
191
|
]
|
|
193
|
-
}), !D && /* @__PURE__ */ (
|
|
194
|
-
|
|
192
|
+
}), !D && /* @__PURE__ */ h(p, { children: [
|
|
193
|
+
me && /* @__PURE__ */ m(c, {
|
|
195
194
|
fallback: null,
|
|
196
|
-
children: /* @__PURE__ */ (
|
|
197
|
-
groupId:
|
|
198
|
-
groupType:
|
|
195
|
+
children: /* @__PURE__ */ m(ue, {
|
|
196
|
+
groupId: l.group_id,
|
|
197
|
+
groupType: y,
|
|
199
198
|
groupName: b,
|
|
200
199
|
positions: x,
|
|
201
|
-
parentId:
|
|
200
|
+
parentId: l.id,
|
|
202
201
|
positionId: O?.position_id,
|
|
203
202
|
disabled: T,
|
|
204
203
|
hideSourceAction: V?.actions?.disableUserSources || !1,
|
|
@@ -213,40 +212,40 @@ var v = /* @__PURE__ */ e(r()), y = t(), ce = g(() => import("../../input/argume
|
|
|
213
212
|
}),
|
|
214
213
|
userGuideUrl: V?.provider?.userGuideUrl,
|
|
215
214
|
hideUserGuideLink: V?.provider?.hideUserGuideLink
|
|
216
|
-
}, `Reply${
|
|
215
|
+
}, `Reply${l.id}`)
|
|
217
216
|
}),
|
|
218
|
-
K?.length > 0 && H && /* @__PURE__ */ (
|
|
219
|
-
className:
|
|
217
|
+
K?.length > 0 && H && /* @__PURE__ */ m("div", {
|
|
218
|
+
className: o.repliesList,
|
|
220
219
|
children: K.map((e) => $(e))
|
|
221
220
|
}),
|
|
222
|
-
H && /* @__PURE__ */ (
|
|
223
|
-
className:
|
|
224
|
-
children: /* @__PURE__ */ (
|
|
221
|
+
H && /* @__PURE__ */ m("div", {
|
|
222
|
+
className: o.repliesList,
|
|
223
|
+
children: /* @__PURE__ */ m(n, {
|
|
225
224
|
voteableType: "Message",
|
|
226
|
-
currentListId: `argument_${
|
|
227
|
-
loadingComponent: /* @__PURE__ */ (
|
|
225
|
+
currentListId: `argument_${l.id}_reply_list`,
|
|
226
|
+
loadingComponent: /* @__PURE__ */ m(ne, {}),
|
|
228
227
|
resource: "messages",
|
|
229
228
|
sort: "+created_at",
|
|
230
229
|
filters: {
|
|
231
|
-
message_id:
|
|
230
|
+
message_id: l.id,
|
|
232
231
|
is_reply: !0,
|
|
233
232
|
status: "accepted"
|
|
234
233
|
},
|
|
235
234
|
perPage: 5,
|
|
236
235
|
display: "column",
|
|
237
236
|
resourcePropName: "argument",
|
|
238
|
-
emptyListComponent: /* @__PURE__ */ (
|
|
239
|
-
transformData: (e) =>
|
|
240
|
-
children: $(
|
|
237
|
+
emptyListComponent: /* @__PURE__ */ m(p, {}),
|
|
238
|
+
transformData: (e) => ve(e),
|
|
239
|
+
children: $(l)
|
|
241
240
|
})
|
|
242
241
|
}),
|
|
243
|
-
K?.length > 0 && !H && /* @__PURE__ */ (
|
|
244
|
-
className:
|
|
245
|
-
children:
|
|
246
|
-
className:
|
|
247
|
-
children: /* @__PURE__ */ (
|
|
242
|
+
K?.length > 0 && !H && /* @__PURE__ */ m("div", {
|
|
243
|
+
className: o.repliesList,
|
|
244
|
+
children: l.number_replies > 1 && /* @__PURE__ */ m("div", {
|
|
245
|
+
className: o.readMoreLink,
|
|
246
|
+
children: /* @__PURE__ */ m(t, {
|
|
248
247
|
role: "link",
|
|
249
|
-
rightIcon: /* @__PURE__ */ (
|
|
248
|
+
rightIcon: /* @__PURE__ */ m(e, {
|
|
250
249
|
name: "lightArrow",
|
|
251
250
|
height: 10,
|
|
252
251
|
width: 10
|
|
@@ -261,6 +260,6 @@ var v = /* @__PURE__ */ e(r()), y = t(), ce = g(() => import("../../input/argume
|
|
|
261
260
|
})
|
|
262
261
|
] })]
|
|
263
262
|
});
|
|
264
|
-
},
|
|
263
|
+
}, de = _;
|
|
265
264
|
//#endregion
|
|
266
|
-
export {
|
|
265
|
+
export { _ as Argument };
|
|
@@ -1,33 +1,32 @@
|
|
|
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/message.js";
|
|
6
|
-
import { Avatar as a } from "../../user/avatar/Avatar.js";
|
|
7
|
-
import o from "./ReplyFooter.module.js";
|
|
1
|
+
import { Icon as e } from "../../icons/icon/Icon.js";
|
|
2
|
+
import { Avatar as t } from "../../user/avatar/Avatar.js";
|
|
3
|
+
import n from "./ReplyFooter.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 { FormattedMessage as o } from "react-intl";
|
|
9
8
|
//#region src/components/argument/argument/ReplyFooter.jsx
|
|
10
|
-
var s =
|
|
11
|
-
className:
|
|
12
|
-
onClick:
|
|
13
|
-
children: [
|
|
14
|
-
className: e.role === "editor" ?
|
|
15
|
-
children: /* @__PURE__ */ (
|
|
9
|
+
var s = ({ numberReplies: s, repliesAuthors: c = [], onToggleReplies: l, expandReplies: u }) => s <= 0 ? null : /* @__PURE__ */ i("div", {
|
|
10
|
+
className: n.replyFooter,
|
|
11
|
+
onClick: l,
|
|
12
|
+
children: [c.map((e, i) => /* @__PURE__ */ r("span", {
|
|
13
|
+
className: e.role === "editor" ? n.replyAvatarRing : n.replyAvatarNormal,
|
|
14
|
+
children: /* @__PURE__ */ r(t, {
|
|
16
15
|
avatarUrl: e.image_url,
|
|
17
16
|
userName: e.full_name,
|
|
18
17
|
size: 32,
|
|
19
18
|
showTooltip: !0
|
|
20
19
|
})
|
|
21
|
-
},
|
|
22
|
-
className:
|
|
23
|
-
children: /* @__PURE__ */ (
|
|
20
|
+
}, i)), /* @__PURE__ */ r("div", {
|
|
21
|
+
className: n.expandRepliesContainer,
|
|
22
|
+
children: /* @__PURE__ */ i("button", {
|
|
24
23
|
tabIndex: "0",
|
|
25
|
-
className: (
|
|
26
|
-
children: [/* @__PURE__ */ (
|
|
27
|
-
id:
|
|
28
|
-
values: { number_replies:
|
|
29
|
-
defaultMessage:
|
|
30
|
-
}), /* @__PURE__ */ (
|
|
24
|
+
className: a(n.expandRepliesButton, { [n.repliesExpanded]: u }),
|
|
25
|
+
children: [/* @__PURE__ */ r(o, {
|
|
26
|
+
id: u ? "alt.hide_answers" : "alt.view_answers",
|
|
27
|
+
values: { number_replies: s },
|
|
28
|
+
defaultMessage: u ? "Hide answers" : "View answers"
|
|
29
|
+
}), /* @__PURE__ */ r(e, {
|
|
31
30
|
name: "lightArrow",
|
|
32
31
|
width: 10,
|
|
33
32
|
height: 10
|
|
@@ -36,4 +35,4 @@ var s = /* @__PURE__ */ e(r()), c = t(), l = ({ numberReplies: e, repliesAuthors
|
|
|
36
35
|
})]
|
|
37
36
|
});
|
|
38
37
|
//#endregion
|
|
39
|
-
export {
|
|
38
|
+
export { s as ReplyFooter };
|
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import i from "
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import { SummaryContentBox as s } from "../../user_content/summary_content_box/SummaryContentBox.js";
|
|
9
|
-
import c from "./TopArguments.module.js";
|
|
1
|
+
import { Button as e } from "../../action/button/Button.js";
|
|
2
|
+
import { useConfig as t } from "../../data/config_provider/useConfig.js";
|
|
3
|
+
import { useResponsive as n } from "../../hooks/use_responsive/useResponsive.js";
|
|
4
|
+
import { UserContentSkeleton as r } from "../../skeleton/user_content_skeleton/UserContentSkeleton.js";
|
|
5
|
+
import { useTranslatedContent as i } from "../../translation/translated_content/useTranslatedContent.js";
|
|
6
|
+
import { SummaryContentBox as a } from "../../user_content/summary_content_box/SummaryContentBox.js";
|
|
7
|
+
import o from "./TopArguments.module.js";
|
|
10
8
|
import "react";
|
|
9
|
+
import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
10
|
+
import { FormattedMessage as u } from "react-intl";
|
|
11
11
|
//#region src/components/argument/top_arguments/TopArguments.jsx
|
|
12
|
-
var
|
|
13
|
-
let
|
|
14
|
-
author:
|
|
15
|
-
tag: n === 0 ?
|
|
16
|
-
date: new Date(
|
|
17
|
-
link: `${
|
|
18
|
-
content:
|
|
19
|
-
tagClassName:
|
|
20
|
-
contentCount:
|
|
21
|
-
headerOneLine:
|
|
22
|
-
showFooter: !
|
|
23
|
-
language:
|
|
24
|
-
translationEntries:
|
|
25
|
-
lineCount:
|
|
26
|
-
}) : /* @__PURE__ */ (
|
|
12
|
+
var d = ({ argumentFor: d, argumentAgainst: f, debateUrl: p, argumentCount: m, debate: h }) => {
|
|
13
|
+
let g = t(), { isMobile: _ } = n(), v = i(d?.position.name, d?.position.language, "name", d?.position.translation_entries), y = i(f?.position.name, f?.position.language, "name", f?.position.translation_entries), b = d && f ? d.score > f.score ? d : f : d || f || !1, x = (t, n, i) => /* @__PURE__ */ c(s, { children: t ? /* @__PURE__ */ c(a, {
|
|
14
|
+
author: t.author,
|
|
15
|
+
tag: n === 0 ? v.translatedContent : y.translatedContent,
|
|
16
|
+
date: new Date(t.created_at),
|
|
17
|
+
link: `${p}#argument_${t.id}`,
|
|
18
|
+
content: t.content,
|
|
19
|
+
tagClassName: o[`positionBackground-${n}`],
|
|
20
|
+
contentCount: m[n],
|
|
21
|
+
headerOneLine: i,
|
|
22
|
+
showFooter: !i,
|
|
23
|
+
language: t.language,
|
|
24
|
+
translationEntries: t.translation_entries,
|
|
25
|
+
lineCount: g?.actions?.argumentLineCount ?? void 0
|
|
26
|
+
}) : /* @__PURE__ */ c(r, {
|
|
27
27
|
enableAnimation: !1,
|
|
28
28
|
border: !0,
|
|
29
|
-
tag: n === 0 ?
|
|
30
|
-
tagClassName:
|
|
31
|
-
children: /* @__PURE__ */ (
|
|
32
|
-
to:
|
|
29
|
+
tag: n === 0 ? v.translatedContent : y.translatedContent,
|
|
30
|
+
tagClassName: o[`positionBackground-${n}`],
|
|
31
|
+
children: /* @__PURE__ */ c(e, {
|
|
32
|
+
to: p,
|
|
33
33
|
external: !0,
|
|
34
34
|
"data-tid": "action_add_argument",
|
|
35
35
|
target: "_top",
|
|
36
36
|
rel: "nofollow",
|
|
37
|
-
children: /* @__PURE__ */ (
|
|
37
|
+
children: /* @__PURE__ */ c(u, {
|
|
38
38
|
id: "argument.top_arguments.call_to_action",
|
|
39
39
|
defaultMessage: "Add an argument"
|
|
40
40
|
})
|
|
41
41
|
})
|
|
42
42
|
}) });
|
|
43
|
-
return /* @__PURE__ */ (
|
|
44
|
-
className:
|
|
43
|
+
return /* @__PURE__ */ c(s, { children: g.synthesis.newDesign !== !1 || _ && g.synthesis.onlyShowTopArgument === !0 ? /* @__PURE__ */ c("div", {
|
|
44
|
+
className: o.topArgumentsUnique,
|
|
45
45
|
"data-testid": "topArgumentsContainerUnique",
|
|
46
|
-
children: /* @__PURE__ */ (
|
|
47
|
-
className:
|
|
48
|
-
children:
|
|
46
|
+
children: /* @__PURE__ */ c("div", {
|
|
47
|
+
className: o.topArgument,
|
|
48
|
+
children: x(b, +(b === f), !0)
|
|
49
49
|
})
|
|
50
|
-
}) : /* @__PURE__ */
|
|
51
|
-
className:
|
|
50
|
+
}) : /* @__PURE__ */ l("div", {
|
|
51
|
+
className: o.topArguments,
|
|
52
52
|
"data-testid": "topArgumentsContainer",
|
|
53
|
-
children: [/* @__PURE__ */ (
|
|
54
|
-
className:
|
|
55
|
-
children:
|
|
56
|
-
}), /* @__PURE__ */ (
|
|
57
|
-
className:
|
|
58
|
-
children:
|
|
53
|
+
children: [/* @__PURE__ */ c("div", {
|
|
54
|
+
className: o.topArgument,
|
|
55
|
+
children: x(d, 0, !1)
|
|
56
|
+
}), /* @__PURE__ */ c("div", {
|
|
57
|
+
className: o.topArgument,
|
|
58
|
+
children: x(f, 1, !1)
|
|
59
59
|
})]
|
|
60
60
|
}) });
|
|
61
61
|
};
|
|
62
62
|
//#endregion
|
|
63
|
-
export {
|
|
63
|
+
export { d as TopArguments };
|