@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,67 +1,67 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import t from "
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
1
|
+
import { SectionBox as e } from "../../section/section_box/SectionBox.js";
|
|
2
|
+
import { BoxSkeleton as t } from "../../skeleton/box_skeleton/BoxSkeleton.js";
|
|
3
|
+
import { SummaryBox as n } from "../summary_box/SummaryBox.js";
|
|
4
|
+
import r from "./Summary.module.js";
|
|
5
|
+
import { useEffect as i, useState as a } from "react";
|
|
6
|
+
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
7
|
+
import { useIntl as c } from "react-intl";
|
|
8
8
|
//#region src/components/summary/summary/Summary.jsx
|
|
9
|
-
var
|
|
10
|
-
let [
|
|
9
|
+
var l = ({ apiUrl: l, summaryId: u, tags: d = [], tagClassNames: f = [], title: p, subtitle: m }) => {
|
|
10
|
+
let [h, g] = a({}), _ = c(), v = async (e, t = "") => {
|
|
11
11
|
try {
|
|
12
|
-
let
|
|
13
|
-
if (!
|
|
14
|
-
return (await
|
|
12
|
+
let n = `${l}/${e}${t ? `-${t}` : ""}`, r = await fetch(n);
|
|
13
|
+
if (!r.ok) throw Error(`HTTP error! Status: ${r.status}`);
|
|
14
|
+
return (await r.json()).data?.content?.arguments || [];
|
|
15
15
|
} catch (e) {
|
|
16
16
|
console.error(e);
|
|
17
17
|
}
|
|
18
18
|
};
|
|
19
|
-
return
|
|
19
|
+
return i(() => {
|
|
20
20
|
(async () => {
|
|
21
21
|
try {
|
|
22
22
|
let e = {};
|
|
23
|
-
if (
|
|
23
|
+
if (d.length === 0) e["no-position"] = await v(u);
|
|
24
24
|
else {
|
|
25
|
-
let t = await Promise.all(
|
|
26
|
-
|
|
25
|
+
let t = await Promise.all(d.map((e) => v(u, e.id)));
|
|
26
|
+
d.forEach((n, r) => {
|
|
27
27
|
e[n.id] = t[r];
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
|
|
30
|
+
g(e);
|
|
31
31
|
} catch (e) {
|
|
32
32
|
console.error(e);
|
|
33
33
|
}
|
|
34
34
|
})();
|
|
35
|
-
}, [
|
|
35
|
+
}, [u, d]), /* @__PURE__ */ s(e, {
|
|
36
36
|
isCollapsible: !0,
|
|
37
37
|
isCollapsedByDefault: !0,
|
|
38
|
-
title:
|
|
39
|
-
subtitle:
|
|
40
|
-
children: [/* @__PURE__ */ (
|
|
41
|
-
className:
|
|
42
|
-
children:
|
|
38
|
+
title: p,
|
|
39
|
+
subtitle: m,
|
|
40
|
+
children: [/* @__PURE__ */ o("div", {
|
|
41
|
+
className: r.description,
|
|
42
|
+
children: _.formatMessage({
|
|
43
43
|
id: "summary.description.argument_summary",
|
|
44
44
|
defaultMessage: "Our algorithm produces comprehensive, well-structured summaries of the most recurrent arguments. Each published argument influences the content of this summary. The better structured the argument, the more weight it carries."
|
|
45
45
|
})
|
|
46
|
-
}), /* @__PURE__ */ (
|
|
47
|
-
className:
|
|
48
|
-
children: Object.keys(
|
|
46
|
+
}), /* @__PURE__ */ o("div", {
|
|
47
|
+
className: r.summaryContainer,
|
|
48
|
+
children: Object.keys(h).length === 0 ? d.length === 0 ? /* @__PURE__ */ o(t, {
|
|
49
49
|
onlyEdgeBox: !0,
|
|
50
50
|
boxHeight: 120
|
|
51
|
-
}) :
|
|
51
|
+
}) : d.map((e) => /* @__PURE__ */ o(t, {
|
|
52
52
|
onlyEdgeBox: !0,
|
|
53
53
|
boxHeight: 120
|
|
54
|
-
}, e.id)) :
|
|
55
|
-
summaryItems: (
|
|
56
|
-
emptySummaryText:
|
|
54
|
+
}, e.id)) : d.length === 0 ? /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(n, {
|
|
55
|
+
summaryItems: (h["no-position"] || []).map((e) => e.argument),
|
|
56
|
+
emptySummaryText: _.formatMessage({
|
|
57
57
|
id: "info.emptysummary",
|
|
58
58
|
defaultMessage: "No resume found."
|
|
59
59
|
})
|
|
60
|
-
}) }) :
|
|
61
|
-
summaryItems: (
|
|
60
|
+
}) }) : d.map((e, t) => /* @__PURE__ */ o("div", { children: /* @__PURE__ */ o(n, {
|
|
61
|
+
summaryItems: (h[e.id] || []).map((e) => e.argument),
|
|
62
62
|
tag: e.name,
|
|
63
|
-
tagClassName:
|
|
64
|
-
emptySummaryText:
|
|
63
|
+
tagClassName: f[t],
|
|
64
|
+
emptySummaryText: _.formatMessage({
|
|
65
65
|
id: "info.emptysummary",
|
|
66
66
|
defaultMessage: "No resume found."
|
|
67
67
|
})
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import t from "./SummaryBox.module.js";
|
|
1
|
+
import e from "./SummaryBox.module.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/summary/summary_box/SummaryBox.jsx
|
|
5
|
-
var
|
|
6
|
-
className:
|
|
7
|
-
children: [/* @__PURE__ */ (
|
|
8
|
-
className: `${
|
|
9
|
-
children:
|
|
10
|
-
className: `${
|
|
11
|
-
children:
|
|
5
|
+
var r = ({ summaryItems: r = [], tagClassName: i, tag: a, emptySummaryText: o = "" }) => /* @__PURE__ */ n("div", {
|
|
6
|
+
className: e.box,
|
|
7
|
+
children: [/* @__PURE__ */ t("div", {
|
|
8
|
+
className: `${e.stats} ${a ? e.withTag : ""}`,
|
|
9
|
+
children: a && /* @__PURE__ */ t("div", {
|
|
10
|
+
className: `${e.tag} ${i}`,
|
|
11
|
+
children: a
|
|
12
12
|
})
|
|
13
|
-
}),
|
|
14
|
-
className:
|
|
15
|
-
children:
|
|
16
|
-
}) :
|
|
17
|
-
className:
|
|
18
|
-
children: [
|
|
19
|
-
},
|
|
13
|
+
}), r.length === 0 ? /* @__PURE__ */ t("span", {
|
|
14
|
+
className: e.emptySummaryText,
|
|
15
|
+
children: o
|
|
16
|
+
}) : r.map((r, i) => /* @__PURE__ */ n("li", {
|
|
17
|
+
className: e.summaryItem,
|
|
18
|
+
children: [r && /* @__PURE__ */ t("span", { children: "•" }), r]
|
|
19
|
+
}, i))]
|
|
20
20
|
});
|
|
21
21
|
//#endregion
|
|
22
22
|
export { r as SummaryBox };
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { require_jsx_runtime as t } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
3
|
-
import { require_classnames as n } from "../../../node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js";
|
|
4
|
-
import r from "./Tag.module.js";
|
|
1
|
+
import e from "./Tag.module.js";
|
|
5
2
|
import "react";
|
|
3
|
+
import { jsxs as t } from "react/jsx-runtime";
|
|
4
|
+
import n from "classnames";
|
|
6
5
|
//#region src/components/tag/tag/Tag.jsx
|
|
7
|
-
var
|
|
6
|
+
var r = ({ text: r, active: i = !1, leftIcon: a, rightIcon: o, className: s, ...c }) => /* @__PURE__ */ t("div", {
|
|
8
7
|
"data-testid": "tag",
|
|
9
|
-
className: (
|
|
8
|
+
className: n(e.tag, s, (a || o) && e.withIcon, a && e.withLeftIcon, o && e.withRightIcon, i && e.active),
|
|
10
9
|
...c,
|
|
11
10
|
children: [
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
a,
|
|
12
|
+
r,
|
|
13
|
+
i,
|
|
15
14
|
o
|
|
16
15
|
]
|
|
17
16
|
});
|
|
18
17
|
//#endregion
|
|
19
|
-
export {
|
|
18
|
+
export { r as Tag };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { require_jsx_runtime as e } from "../../../node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js";
|
|
2
1
|
import "react";
|
|
2
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
3
3
|
//#region src/components/text/expandable_text/ArrowIcon.jsx
|
|
4
|
-
var t =
|
|
4
|
+
var t = (t) => /* @__PURE__ */ e("svg", {
|
|
5
5
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6
6
|
viewBox: "0 0 24 24",
|
|
7
|
-
...
|
|
8
|
-
children: /* @__PURE__ */ (
|
|
7
|
+
...t,
|
|
8
|
+
children: /* @__PURE__ */ e("path", { d: "M19,11H9l3.29-3.29a1,1,0,0,0,0-1.42,1,1,0,0,0-1.41,0l-4.29,4.3A2,2,0,0,0,6,12H6a2,2,0,0,0,.59,1.4l4.29,4.3a1,1,0,1,0,1.41-1.42L9,13H19a1,1,0,0,0,0-2Z" })
|
|
9
9
|
});
|
|
10
10
|
//#endregion
|
|
11
|
-
export {
|
|
11
|
+
export { t as ArrowIcon };
|
|
@@ -1,47 +1,46 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
1
|
+
import { ArrowIcon as e } from "./ArrowIcon.js";
|
|
2
|
+
import t from "./ExpandableText.module.js";
|
|
3
|
+
import { useEffect as n, useRef as r, useState as i } from "react";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
import s from "classnames";
|
|
7
6
|
//#region src/components/text/expandable_text/ExpandableText.jsx
|
|
8
|
-
var c =
|
|
9
|
-
let [
|
|
10
|
-
|
|
11
|
-
|
|
7
|
+
var c = ({ children: c, expandable: l = !0, expandText: u = "Read more", collapseText: d = "Read less", className: f, maxHeight: p = "100", showIcon: m = !0, backgroundColor: h = "var(--background-color-primary)", onCollapse: g = () => {}, onExpand: _ = () => {}, isReply: v = !1 }) => {
|
|
8
|
+
let [y, b] = i(!1), [x, S] = i(0), C = r(null);
|
|
9
|
+
n(() => {
|
|
10
|
+
l && S(w());
|
|
12
11
|
}, []);
|
|
13
|
-
let
|
|
14
|
-
let e =
|
|
12
|
+
let w = () => {
|
|
13
|
+
let e = C.current.clientHeight;
|
|
15
14
|
return Math.round(e);
|
|
16
|
-
}, w = () => {
|
|
17
|
-
y(!1), h();
|
|
18
15
|
}, T = () => {
|
|
19
|
-
|
|
20
|
-
}, E =
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
16
|
+
b(!1), g();
|
|
17
|
+
}, E = () => {
|
|
18
|
+
b(!0), _();
|
|
19
|
+
}, D = l && x > p, O = { maxHeight: p + "px" }, k = { background: v ? "linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--text-tertiary) 90%)" : `linear-gradient(to bottom, rgba(255, 255, 255, 0), ${h} 90%)` };
|
|
20
|
+
return /* @__PURE__ */ o("div", {
|
|
21
|
+
className: t.container,
|
|
22
|
+
ref: C,
|
|
23
|
+
children: [/* @__PURE__ */ a("div", {
|
|
24
|
+
style: D && !y ? O : {},
|
|
25
|
+
className: s({ [t.contentMask]: D && !y }),
|
|
26
|
+
children: c
|
|
27
|
+
}), D && (y ? /* @__PURE__ */ a("div", {
|
|
28
|
+
className: t.linkContainerExpanded,
|
|
29
|
+
onClick: () => T(),
|
|
30
|
+
children: /* @__PURE__ */ o("div", {
|
|
31
|
+
className: s(t.linkExpanded, f),
|
|
32
|
+
children: [/* @__PURE__ */ a("span", { children: d }), m && /* @__PURE__ */ a(e, {
|
|
34
33
|
height: 16,
|
|
35
34
|
width: 16
|
|
36
35
|
})]
|
|
37
36
|
})
|
|
38
|
-
}) : /* @__PURE__ */ (
|
|
39
|
-
style:
|
|
40
|
-
className:
|
|
41
|
-
onClick: () =>
|
|
42
|
-
children: /* @__PURE__ */ (
|
|
43
|
-
className: (
|
|
44
|
-
children: [/* @__PURE__ */ (
|
|
37
|
+
}) : /* @__PURE__ */ a("div", {
|
|
38
|
+
style: D && !y ? k : {},
|
|
39
|
+
className: t.linkContainer,
|
|
40
|
+
onClick: () => E(),
|
|
41
|
+
children: /* @__PURE__ */ o("div", {
|
|
42
|
+
className: s(t.link, f),
|
|
43
|
+
children: [/* @__PURE__ */ a("span", { children: u }), m && /* @__PURE__ */ a(e, {
|
|
45
44
|
height: 16,
|
|
46
45
|
width: 16
|
|
47
46
|
})]
|
|
@@ -50,4 +49,4 @@ var c = /* @__PURE__ */ e(n()), l = t(), u = ({ children: e, expandable: t = !0,
|
|
|
50
49
|
});
|
|
51
50
|
};
|
|
52
51
|
//#endregion
|
|
53
|
-
export {
|
|
52
|
+
export { c as ExpandableText };
|
|
@@ -1,63 +1,62 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
6
|
-
import { useEffect as a, useRef as o, useState as s } from "react";
|
|
1
|
+
import { Link as e } from "../../action/link/Link.js";
|
|
2
|
+
import t from "./ReadMore.module.js";
|
|
3
|
+
import { useEffect as n, useRef as r, useState as i } from "react";
|
|
4
|
+
import { Fragment as a, jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
5
|
+
import c from "classnames";
|
|
7
6
|
//#region src/components/text/read_more/ReadMore.jsx
|
|
8
|
-
var
|
|
9
|
-
let [
|
|
10
|
-
|
|
11
|
-
},
|
|
7
|
+
var l = ({ content: l, charCount: u, lineCount: d, to: f, className: p, readMoreText: m, readLessText: h, expandable: g = !0, readMoreClassName: _, ...v }) => {
|
|
8
|
+
let [y, b] = i(!1), [x, S] = i(g && l && u ? l.length > u : !1), C = r(null), w = (e) => y ? e.toString() : e.length > u ? `${e.replace(/[\n\r]/g, " ").slice(0, u)}` : e, T = () => {
|
|
9
|
+
b((e) => !e);
|
|
10
|
+
}, E = {
|
|
12
11
|
display: "-webkit-box",
|
|
13
|
-
WebkitLineClamp:
|
|
12
|
+
WebkitLineClamp: d,
|
|
14
13
|
WebkitBoxOrient: "vertical",
|
|
15
14
|
overflow: "hidden",
|
|
16
15
|
textOverflow: "clip",
|
|
17
16
|
width: "100%"
|
|
18
17
|
};
|
|
19
|
-
return
|
|
20
|
-
if (
|
|
21
|
-
let { clientHeight: e, scrollHeight: t } =
|
|
22
|
-
|
|
18
|
+
return n(() => {
|
|
19
|
+
if (g && l && d && C.current) {
|
|
20
|
+
let { clientHeight: e, scrollHeight: t } = C.current;
|
|
21
|
+
S(e !== t);
|
|
23
22
|
}
|
|
24
23
|
}, [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
]), /* @__PURE__ */ (
|
|
29
|
-
className:
|
|
30
|
-
children: [/* @__PURE__ */ (
|
|
31
|
-
ref:
|
|
32
|
-
style:
|
|
33
|
-
onClick:
|
|
34
|
-
children: !
|
|
35
|
-
}),
|
|
36
|
-
className:
|
|
37
|
-
children: [!
|
|
38
|
-
className:
|
|
24
|
+
d,
|
|
25
|
+
l,
|
|
26
|
+
C
|
|
27
|
+
]), /* @__PURE__ */ s("div", {
|
|
28
|
+
className: c(t.readMore, { [t.pointer]: x }),
|
|
29
|
+
children: [/* @__PURE__ */ o("div", {
|
|
30
|
+
ref: C,
|
|
31
|
+
style: d && !y ? E : { width: "100%" },
|
|
32
|
+
onClick: g ? T : void 0,
|
|
33
|
+
children: !g || d ? l : w(l)
|
|
34
|
+
}), x && /* @__PURE__ */ s(a, { children: [/* @__PURE__ */ s("div", {
|
|
35
|
+
className: c(t.readMoreWrapper, _),
|
|
36
|
+
children: [!y && /* @__PURE__ */ o("span", {
|
|
37
|
+
className: t.ellipsis,
|
|
39
38
|
children: "..."
|
|
40
|
-
}),
|
|
41
|
-
to:
|
|
42
|
-
className:
|
|
43
|
-
...
|
|
44
|
-
children:
|
|
45
|
-
}) : !
|
|
46
|
-
className:
|
|
47
|
-
onClick:
|
|
48
|
-
...
|
|
49
|
-
children:
|
|
39
|
+
}), f ? /* @__PURE__ */ o(e, {
|
|
40
|
+
to: f,
|
|
41
|
+
className: c(t.readMoreElement, p),
|
|
42
|
+
...v,
|
|
43
|
+
children: m
|
|
44
|
+
}) : !y && /* @__PURE__ */ o("span", {
|
|
45
|
+
className: c(t.readMoreElement, p),
|
|
46
|
+
onClick: T,
|
|
47
|
+
...v,
|
|
48
|
+
children: m
|
|
50
49
|
})]
|
|
51
|
-
}),
|
|
52
|
-
className:
|
|
53
|
-
children: /* @__PURE__ */ (
|
|
54
|
-
className:
|
|
55
|
-
onClick:
|
|
56
|
-
...
|
|
57
|
-
children:
|
|
50
|
+
}), y && /* @__PURE__ */ o("div", {
|
|
51
|
+
className: t.readLessWrapper,
|
|
52
|
+
children: /* @__PURE__ */ o("span", {
|
|
53
|
+
className: c(t.readLessElement, p),
|
|
54
|
+
onClick: T,
|
|
55
|
+
...v,
|
|
56
|
+
children: h
|
|
58
57
|
})
|
|
59
58
|
})] })]
|
|
60
59
|
});
|
|
61
60
|
};
|
|
62
61
|
//#endregion
|
|
63
|
-
export {
|
|
62
|
+
export { l as ReadMore };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { useLocation as
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
import { Fragment as t, jsx as n } from "react/jsx-runtime";
|
|
3
|
+
import { useLocation as r } from "react-router";
|
|
4
4
|
//#region src/components/tools/hash_scroll/HashScroll.jsx
|
|
5
|
-
var
|
|
6
|
-
let
|
|
7
|
-
return
|
|
8
|
-
if (
|
|
9
|
-
let
|
|
10
|
-
if (
|
|
11
|
-
let
|
|
12
|
-
|
|
5
|
+
var i = ({ elementId: i, onScroll: a, children: o }) => {
|
|
6
|
+
let s = r();
|
|
7
|
+
return e(() => {
|
|
8
|
+
if (i && typeof window < "u") {
|
|
9
|
+
let e = s.hash.slice(1), t = new RegExp(i);
|
|
10
|
+
if (e.match(t)) {
|
|
11
|
+
let e = document.getElementById(i);
|
|
12
|
+
e && (a && a(), e.scrollIntoView({ behavior: "smooth" }));
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
-
}, [
|
|
15
|
+
}, [s.hash]), /* @__PURE__ */ n(t, { children: o });
|
|
16
16
|
};
|
|
17
17
|
//#endregion
|
|
18
18
|
export { i as HashScroll };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { useTranslatedContent as t } from "./useTranslatedContent.js";
|
|
1
|
+
import { useTranslatedContent as e } from "./useTranslatedContent.js";
|
|
3
2
|
import "react";
|
|
3
|
+
import { Fragment as t, jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/translation/translated_content/TranslatedContent.jsx
|
|
5
|
-
var
|
|
5
|
+
var r = ({ originalContent: r, originalLanguage: i, targetField: a, translations: o }) => /* @__PURE__ */ n(t, { children: e(r, i, a, o).translatedContent });
|
|
6
6
|
//#endregion
|
|
7
7
|
export { r as TranslatedContent };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import e from "
|
|
2
|
-
import {
|
|
1
|
+
import { useEffect as e, useState as t } from "react";
|
|
2
|
+
import { useIntl as n } from "react-intl";
|
|
3
3
|
//#region src/components/translation/translated_content/useTranslatedContent.jsx
|
|
4
4
|
var r = (e, t, n, r, i) => {
|
|
5
5
|
let a = (e) => e.target_language?.substring(0, 2) === i?.substring(0, 2) && e.is_approved && e.origin_field === n;
|
|
@@ -9,10 +9,10 @@ var r = (e, t, n, r, i) => {
|
|
|
9
9
|
}
|
|
10
10
|
return e;
|
|
11
11
|
}, i = (i, a, o, s) => {
|
|
12
|
-
let c =
|
|
13
|
-
return
|
|
12
|
+
let c = n(), [l, u] = t(!1), [d, f] = t(r(i, a, o, s, c.locale));
|
|
13
|
+
return e(() => {
|
|
14
14
|
i && f(r(i, a, o, s, c.locale));
|
|
15
|
-
}, [i]),
|
|
15
|
+
}, [i]), e(() => {
|
|
16
16
|
d !== i && u(!0);
|
|
17
17
|
}, [d]), {
|
|
18
18
|
translatedContent: d,
|
|
@@ -1,30 +1,28 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "
|
|
6
|
-
import a from "./TranslationButton.module.js";
|
|
7
|
-
import { useState as o } from "react";
|
|
1
|
+
import e from "./TranslationButton.module.js";
|
|
2
|
+
import { useState as t } from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
import r from "classnames";
|
|
5
|
+
import { FormattedMessage as i, useIntl as a } from "react-intl";
|
|
8
6
|
//#region src/components/translation/translation_button/TranslationButton.jsx
|
|
9
|
-
var
|
|
10
|
-
let [u, d] =
|
|
11
|
-
return /* @__PURE__ */ (
|
|
7
|
+
var o = ({ className: o, language: s, callback: c, ...l }) => {
|
|
8
|
+
let [u, d] = t(!1), f = a();
|
|
9
|
+
return /* @__PURE__ */ n("div", {
|
|
12
10
|
onClick: () => {
|
|
13
|
-
d(!u),
|
|
11
|
+
d(!u), c();
|
|
14
12
|
},
|
|
15
|
-
className: (
|
|
13
|
+
className: r(e.translationButton, o),
|
|
16
14
|
...l,
|
|
17
|
-
children: u ? /* @__PURE__ */ (
|
|
15
|
+
children: u ? /* @__PURE__ */ n(i, {
|
|
18
16
|
id: "translations.translate_to",
|
|
19
17
|
values: { variable: f.formatMessage({
|
|
20
18
|
id: "translations." + f.locale,
|
|
21
19
|
defaultMessage: "English"
|
|
22
20
|
}) },
|
|
23
21
|
defaultMessage: "Translate to English"
|
|
24
|
-
}) : /* @__PURE__ */ (
|
|
22
|
+
}) : /* @__PURE__ */ n(i, {
|
|
25
23
|
id: "translations.translated_from",
|
|
26
24
|
values: { variable: f.formatMessage({
|
|
27
|
-
id: "translations." +
|
|
25
|
+
id: "translations." + s,
|
|
28
26
|
defaultMessage: "French"
|
|
29
27
|
}) },
|
|
30
28
|
defaultMessage: "Translated from French - Show original"
|
|
@@ -32,4 +30,4 @@ var s = /* @__PURE__ */ e(n()), c = t(), l = ({ className: e, language: t, callb
|
|
|
32
30
|
});
|
|
33
31
|
};
|
|
34
32
|
//#endregion
|
|
35
|
-
export {
|
|
33
|
+
export { o as TranslationButton };
|