@logora/debate 0.2.1 → 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/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 +5 -5
- package/dist/components/icons/bild_icons/Announcement.js +5 -5
- package/dist/components/icons/bild_icons/Arrow.js +5 -5
- package/dist/components/icons/bild_icons/Blockquote.js +5 -5
- package/dist/components/icons/bild_icons/Bold.js +5 -5
- package/dist/components/icons/bild_icons/Camera.js +4 -4
- package/dist/components/icons/bild_icons/Chat.js +9 -9
- package/dist/components/icons/bild_icons/Check.js +5 -5
- package/dist/components/icons/bild_icons/CheckCircle.js +5 -5
- package/dist/components/icons/bild_icons/Checkbox.js +4 -4
- package/dist/components/icons/bild_icons/Clap.js +5 -5
- package/dist/components/icons/bild_icons/Clock.js +5 -5
- package/dist/components/icons/bild_icons/Close.js +5 -5
- package/dist/components/icons/bild_icons/Code.js +6 -6
- package/dist/components/icons/bild_icons/Community.js +5 -5
- package/dist/components/icons/bild_icons/Crown.js +5 -5
- package/dist/components/icons/bild_icons/Document.js +5 -5
- package/dist/components/icons/bild_icons/Downvote.js +5 -5
- package/dist/components/icons/bild_icons/Ellipsis.js +5 -5
- package/dist/components/icons/bild_icons/ExpertBadge.js +8 -8
- package/dist/components/icons/bild_icons/Facebook.js +5 -5
- package/dist/components/icons/bild_icons/Flag.js +5 -5
- package/dist/components/icons/bild_icons/Home.js +5 -5
- package/dist/components/icons/bild_icons/Italic.js +5 -5
- package/dist/components/icons/bild_icons/LightArrow.js +5 -5
- package/dist/components/icons/bild_icons/Link.js +4 -4
- package/dist/components/icons/bild_icons/Login.js +5 -5
- package/dist/components/icons/bild_icons/Logora.js +10 -10
- package/dist/components/icons/bild_icons/Mail.js +5 -5
- package/dist/components/icons/bild_icons/MinusCircle.js +5 -5
- package/dist/components/icons/bild_icons/MobileClose.js +5 -5
- package/dist/components/icons/bild_icons/MobileMenu.js +7 -7
- package/dist/components/icons/bild_icons/Next.js +7 -7
- package/dist/components/icons/bild_icons/OpenBlank.js +5 -5
- package/dist/components/icons/bild_icons/OrderedList.js +5 -5
- package/dist/components/icons/bild_icons/PauseCircle.js +6 -6
- package/dist/components/icons/bild_icons/Point.js +5 -5
- package/dist/components/icons/bild_icons/Question.js +5 -5
- package/dist/components/icons/bild_icons/Refresh.js +4 -4
- package/dist/components/icons/bild_icons/Reply.js +4 -4
- package/dist/components/icons/bild_icons/Search.js +5 -5
- package/dist/components/icons/bild_icons/Send.js +5 -5
- package/dist/components/icons/bild_icons/Share.js +5 -5
- package/dist/components/icons/bild_icons/SmallArrow.js +5 -5
- package/dist/components/icons/bild_icons/Source.js +5 -5
- package/dist/components/icons/bild_icons/Suggestion.js +5 -5
- package/dist/components/icons/bild_icons/Twitter.js +7 -7
- package/dist/components/icons/bild_icons/Underline.js +5 -5
- package/dist/components/icons/bild_icons/Upvote.js +5 -5
- package/dist/components/icons/bild_icons/User.js +5 -5
- package/dist/components/icons/bild_icons/Versus.js +5 -5
- package/dist/components/icons/bild_icons/Votebox.js +5 -5
- package/dist/components/icons/hero_icons/Alarm.js +5 -5
- package/dist/components/icons/hero_icons/Announcement.js +5 -5
- package/dist/components/icons/hero_icons/Arrow.js +5 -5
- package/dist/components/icons/hero_icons/Blockquote.js +7 -7
- package/dist/components/icons/hero_icons/Bold.js +5 -5
- package/dist/components/icons/hero_icons/Camera.js +5 -5
- package/dist/components/icons/hero_icons/Chat.js +5 -5
- package/dist/components/icons/hero_icons/Check.js +5 -5
- package/dist/components/icons/hero_icons/CheckCircle.js +5 -5
- package/dist/components/icons/hero_icons/Checkbox.js +5 -5
- package/dist/components/icons/hero_icons/Clap.js +5 -5
- package/dist/components/icons/hero_icons/Clock.js +5 -5
- package/dist/components/icons/hero_icons/Close.js +5 -5
- package/dist/components/icons/hero_icons/Code.js +5 -5
- package/dist/components/icons/hero_icons/Community.js +5 -5
- package/dist/components/icons/hero_icons/Crown.js +5 -5
- package/dist/components/icons/hero_icons/Downvote.js +5 -5
- package/dist/components/icons/hero_icons/Ellipsis.js +5 -5
- package/dist/components/icons/hero_icons/ExpertBadge.js +5 -5
- package/dist/components/icons/hero_icons/Facebook.js +5 -5
- package/dist/components/icons/hero_icons/Flag.js +5 -5
- package/dist/components/icons/hero_icons/Home.js +5 -5
- package/dist/components/icons/hero_icons/Italic.js +5 -5
- package/dist/components/icons/hero_icons/LightArrow.js +5 -5
- package/dist/components/icons/hero_icons/Link.js +5 -5
- package/dist/components/icons/hero_icons/Login.js +5 -5
- package/dist/components/icons/hero_icons/Logora.js +10 -10
- package/dist/components/icons/hero_icons/Mail.js +5 -5
- package/dist/components/icons/hero_icons/MinusCircle.js +5 -5
- package/dist/components/icons/hero_icons/MobileClose.js +5 -5
- package/dist/components/icons/hero_icons/MobileMenu.js +5 -5
- package/dist/components/icons/hero_icons/Next.js +5 -5
- package/dist/components/icons/hero_icons/OpenBlank.js +5 -5
- package/dist/components/icons/hero_icons/OrderedList.js +12 -12
- package/dist/components/icons/hero_icons/PauseCircle.js +6 -6
- package/dist/components/icons/hero_icons/Point.js +5 -5
- package/dist/components/icons/hero_icons/Question.js +5 -5
- package/dist/components/icons/hero_icons/Refresh.js +5 -5
- package/dist/components/icons/hero_icons/Reply.js +5 -5
- package/dist/components/icons/hero_icons/Search.js +5 -5
- package/dist/components/icons/hero_icons/Send.js +5 -5
- package/dist/components/icons/hero_icons/Share.js +5 -5
- package/dist/components/icons/hero_icons/SmallArrow.js +5 -5
- package/dist/components/icons/hero_icons/Source.js +5 -5
- package/dist/components/icons/hero_icons/Suggestion.js +5 -5
- package/dist/components/icons/hero_icons/Twitter.js +7 -7
- package/dist/components/icons/hero_icons/Underline.js +7 -7
- package/dist/components/icons/hero_icons/Upvote.js +5 -5
- package/dist/components/icons/hero_icons/User.js +5 -5
- package/dist/components/icons/hero_icons/Versus.js +5 -5
- package/dist/components/icons/hero_icons/Votebox.js +5 -5
- 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 +7 -7
- package/dist/components/icons/krone_icons/Announcement.js +5 -5
- package/dist/components/icons/krone_icons/Arrow.js +5 -5
- package/dist/components/icons/krone_icons/Blockquote.js +5 -5
- package/dist/components/icons/krone_icons/Bold.js +5 -5
- package/dist/components/icons/krone_icons/Camera.js +4 -4
- package/dist/components/icons/krone_icons/Chat.js +7 -7
- package/dist/components/icons/krone_icons/Check.js +5 -5
- package/dist/components/icons/krone_icons/CheckBox.js +5 -5
- package/dist/components/icons/krone_icons/CheckCircle.js +5 -5
- package/dist/components/icons/krone_icons/Clap.js +7 -7
- package/dist/components/icons/krone_icons/Clock.js +5 -5
- package/dist/components/icons/krone_icons/Close.js +5 -5
- package/dist/components/icons/krone_icons/Code.js +6 -6
- package/dist/components/icons/krone_icons/Community.js +5 -5
- package/dist/components/icons/krone_icons/Crown.js +5 -5
- package/dist/components/icons/krone_icons/Document.js +5 -5
- package/dist/components/icons/krone_icons/Downvote.js +5 -5
- package/dist/components/icons/krone_icons/Ellipsis.js +5 -5
- package/dist/components/icons/krone_icons/ExpertBadge.js +7 -7
- package/dist/components/icons/krone_icons/Facebook.js +5 -5
- package/dist/components/icons/krone_icons/Flag.js +5 -5
- package/dist/components/icons/krone_icons/Home.js +7 -7
- package/dist/components/icons/krone_icons/Italic.js +5 -5
- package/dist/components/icons/krone_icons/LightArrow.js +5 -5
- package/dist/components/icons/krone_icons/Link.js +4 -4
- package/dist/components/icons/krone_icons/Login.js +5 -5
- package/dist/components/icons/krone_icons/Logora.js +10 -10
- package/dist/components/icons/krone_icons/Mail.js +5 -5
- package/dist/components/icons/krone_icons/MinusCircle.js +5 -5
- package/dist/components/icons/krone_icons/MobileClose.js +5 -5
- package/dist/components/icons/krone_icons/MobileMenu.js +7 -7
- package/dist/components/icons/krone_icons/Next.js +7 -7
- package/dist/components/icons/krone_icons/OpenBlank.js +5 -5
- package/dist/components/icons/krone_icons/OrderedList.js +5 -5
- package/dist/components/icons/krone_icons/PauseCircle.js +6 -6
- package/dist/components/icons/krone_icons/Point.js +5 -5
- package/dist/components/icons/krone_icons/Question.js +7 -7
- package/dist/components/icons/krone_icons/Refresh.js +4 -4
- package/dist/components/icons/krone_icons/Reply.js +5 -5
- package/dist/components/icons/krone_icons/Search.js +5 -5
- package/dist/components/icons/krone_icons/Send.js +8 -8
- package/dist/components/icons/krone_icons/Share.js +5 -5
- package/dist/components/icons/krone_icons/SmallArrow.js +5 -5
- package/dist/components/icons/krone_icons/Source.js +5 -5
- package/dist/components/icons/krone_icons/Suggestion.js +7 -7
- package/dist/components/icons/krone_icons/Twitter.js +7 -7
- package/dist/components/icons/krone_icons/Underline.js +5 -5
- package/dist/components/icons/krone_icons/Upvote.js +7 -7
- package/dist/components/icons/krone_icons/User.js +7 -7
- package/dist/components/icons/krone_icons/Versus.js +5 -5
- package/dist/components/icons/krone_icons/Votebox.js +7 -7
- package/dist/components/icons/regular_icons/Alarm.js +5 -5
- package/dist/components/icons/regular_icons/Announcement.js +5 -5
- package/dist/components/icons/regular_icons/Arrow.js +5 -5
- package/dist/components/icons/regular_icons/Blockquote.js +5 -5
- package/dist/components/icons/regular_icons/Bold.js +5 -5
- package/dist/components/icons/regular_icons/Camera.js +4 -4
- package/dist/components/icons/regular_icons/Chat.js +7 -7
- package/dist/components/icons/regular_icons/Check.js +5 -5
- package/dist/components/icons/regular_icons/CheckCircle.js +5 -5
- package/dist/components/icons/regular_icons/Checkbox.js +4 -4
- package/dist/components/icons/regular_icons/Clap.js +5 -5
- package/dist/components/icons/regular_icons/Clock.js +5 -5
- package/dist/components/icons/regular_icons/Close.js +5 -5
- package/dist/components/icons/regular_icons/Code.js +6 -6
- package/dist/components/icons/regular_icons/Community.js +5 -5
- package/dist/components/icons/regular_icons/Crown.js +5 -5
- package/dist/components/icons/regular_icons/Document.js +5 -5
- package/dist/components/icons/regular_icons/Downvote.js +5 -5
- package/dist/components/icons/regular_icons/Ellipsis.js +5 -5
- package/dist/components/icons/regular_icons/ExpertBadge.js +8 -8
- package/dist/components/icons/regular_icons/Facebook.js +5 -5
- package/dist/components/icons/regular_icons/Flag.js +5 -5
- package/dist/components/icons/regular_icons/Home.js +5 -5
- package/dist/components/icons/regular_icons/Italic.js +5 -5
- package/dist/components/icons/regular_icons/LightArrow.js +5 -5
- package/dist/components/icons/regular_icons/Link.js +4 -4
- package/dist/components/icons/regular_icons/Login.js +5 -5
- package/dist/components/icons/regular_icons/Logora.js +10 -10
- package/dist/components/icons/regular_icons/Mail.js +5 -5
- package/dist/components/icons/regular_icons/MinusCircle.js +5 -5
- package/dist/components/icons/regular_icons/MobileClose.js +5 -5
- package/dist/components/icons/regular_icons/MobileMenu.js +7 -7
- package/dist/components/icons/regular_icons/Next.js +7 -7
- package/dist/components/icons/regular_icons/OpenBlank.js +5 -5
- package/dist/components/icons/regular_icons/OrderedList.js +5 -5
- package/dist/components/icons/regular_icons/PauseCircle.js +6 -6
- package/dist/components/icons/regular_icons/Point.js +5 -5
- package/dist/components/icons/regular_icons/Question.js +5 -5
- package/dist/components/icons/regular_icons/Refresh.js +4 -4
- package/dist/components/icons/regular_icons/Reply.js +4 -4
- package/dist/components/icons/regular_icons/Search.js +5 -5
- package/dist/components/icons/regular_icons/Send.js +5 -5
- package/dist/components/icons/regular_icons/Share.js +5 -5
- package/dist/components/icons/regular_icons/SmallArrow.js +5 -5
- package/dist/components/icons/regular_icons/Source.js +5 -5
- package/dist/components/icons/regular_icons/Suggestion.js +5 -5
- package/dist/components/icons/regular_icons/Twitter.js +7 -7
- package/dist/components/icons/regular_icons/Underline.js +5 -5
- package/dist/components/icons/regular_icons/Upvote.js +5 -5
- package/dist/components/icons/regular_icons/User.js +5 -5
- package/dist/components/icons/regular_icons/Versus.js +5 -5
- package/dist/components/icons/regular_icons/Votebox.js +5 -5
- package/dist/components/icons/spiegel_icons/Alarm.js +5 -5
- package/dist/components/icons/spiegel_icons/Announcement.js +5 -5
- package/dist/components/icons/spiegel_icons/Arrow.js +5 -5
- package/dist/components/icons/spiegel_icons/Blockquote.js +7 -7
- package/dist/components/icons/spiegel_icons/Bold.js +5 -5
- package/dist/components/icons/spiegel_icons/Camera.js +4 -4
- package/dist/components/icons/spiegel_icons/Chat.js +5 -5
- package/dist/components/icons/spiegel_icons/Check.js +5 -5
- package/dist/components/icons/spiegel_icons/CheckCircle.js +5 -5
- package/dist/components/icons/spiegel_icons/Checkbox.js +7 -7
- package/dist/components/icons/spiegel_icons/Clap.js +7 -7
- package/dist/components/icons/spiegel_icons/Clock.js +7 -7
- package/dist/components/icons/spiegel_icons/Close.js +5 -5
- package/dist/components/icons/spiegel_icons/Code.js +6 -6
- package/dist/components/icons/spiegel_icons/Community.js +5 -5
- package/dist/components/icons/spiegel_icons/Crown.js +5 -5
- package/dist/components/icons/spiegel_icons/Downvote.js +5 -5
- package/dist/components/icons/spiegel_icons/Ellipsis.js +5 -5
- package/dist/components/icons/spiegel_icons/ExpertBadge.js +8 -8
- package/dist/components/icons/spiegel_icons/Facebook.js +5 -5
- package/dist/components/icons/spiegel_icons/Flag.js +5 -5
- package/dist/components/icons/spiegel_icons/Home.js +5 -5
- package/dist/components/icons/spiegel_icons/Italic.js +5 -5
- package/dist/components/icons/spiegel_icons/LightArrow.js +5 -5
- package/dist/components/icons/spiegel_icons/Link.js +9 -9
- package/dist/components/icons/spiegel_icons/Login.js +5 -5
- package/dist/components/icons/spiegel_icons/Logora.js +10 -10
- package/dist/components/icons/spiegel_icons/Mail.js +5 -5
- package/dist/components/icons/spiegel_icons/MinusCircle.js +5 -5
- package/dist/components/icons/spiegel_icons/MobileClose.js +5 -5
- package/dist/components/icons/spiegel_icons/MobileMenu.js +7 -7
- package/dist/components/icons/spiegel_icons/Next.js +7 -7
- package/dist/components/icons/spiegel_icons/OpenBlank.js +5 -5
- package/dist/components/icons/spiegel_icons/OrderedList.js +12 -12
- package/dist/components/icons/spiegel_icons/PauseCircle.js +5 -5
- package/dist/components/icons/spiegel_icons/Point.js +5 -5
- package/dist/components/icons/spiegel_icons/Question.js +9 -9
- package/dist/components/icons/spiegel_icons/Refresh.js +4 -4
- package/dist/components/icons/spiegel_icons/Reply.js +5 -5
- package/dist/components/icons/spiegel_icons/Search.js +5 -5
- package/dist/components/icons/spiegel_icons/Send.js +5 -5
- package/dist/components/icons/spiegel_icons/Share.js +7 -7
- package/dist/components/icons/spiegel_icons/SmallArrow.js +5 -5
- package/dist/components/icons/spiegel_icons/Source.js +5 -5
- package/dist/components/icons/spiegel_icons/Suggestion.js +5 -5
- package/dist/components/icons/spiegel_icons/Twitter.js +7 -7
- package/dist/components/icons/spiegel_icons/Underline.js +7 -7
- package/dist/components/icons/spiegel_icons/Upvote.js +5 -5
- package/dist/components/icons/spiegel_icons/User.js +5 -5
- package/dist/components/icons/spiegel_icons/Versus.js +5 -5
- package/dist/components/icons/spiegel_icons/Votebox.js +7 -7
- 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/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,26 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import n from "
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import { Icon as e } from "../../icons/icon/Icon.js";
|
|
2
|
+
import { TextInput as t } from "../text_input/TextInput.js";
|
|
3
|
+
import n from "./SearchInput.module.js";
|
|
4
|
+
import { useRef as r, useState as i } from "react";
|
|
5
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
6
|
+
import { useIntl as o } from "react-intl";
|
|
7
|
+
import s from "use-onclickoutside";
|
|
8
8
|
//#region src/components/input/search_input/SearchInput.jsx
|
|
9
|
-
var c =
|
|
10
|
-
let f =
|
|
11
|
-
|
|
12
|
-
let v = (
|
|
13
|
-
|
|
14
|
-
}, y = (
|
|
15
|
-
|
|
9
|
+
var c = ({ onSearchSubmit: c, placeholder: l, disabled: u, reducedByDefault: d }) => {
|
|
10
|
+
let f = o(), [p, m] = i(""), [h, g] = i(!1), _ = r(null);
|
|
11
|
+
s(_, d ? () => g(!1) : null);
|
|
12
|
+
let v = (e) => {
|
|
13
|
+
e.preventDefault(), c(p);
|
|
14
|
+
}, y = (e) => {
|
|
15
|
+
e.preventDefault(), m(""), c("");
|
|
16
16
|
};
|
|
17
|
-
return !d || h ? /* @__PURE__ */ (
|
|
17
|
+
return !d || h ? /* @__PURE__ */ a("form", {
|
|
18
18
|
"data-tid": "form_search",
|
|
19
19
|
onSubmit: v,
|
|
20
20
|
method: "get",
|
|
21
21
|
autoComplete: "off",
|
|
22
22
|
ref: _,
|
|
23
|
-
children: /* @__PURE__ */ (
|
|
23
|
+
children: /* @__PURE__ */ a(t, {
|
|
24
24
|
type: "text",
|
|
25
25
|
name: "q",
|
|
26
26
|
"aria-label": f.formatMessage({
|
|
@@ -33,9 +33,9 @@ var c = e(), l = ({ onSearchSubmit: e, placeholder: l, disabled: u, reducedByDef
|
|
|
33
33
|
onChange: (e) => m(e.target.value),
|
|
34
34
|
"data-testid": "input_search_query",
|
|
35
35
|
"data-tid": "input_search_query",
|
|
36
|
-
iconRight: p && /* @__PURE__ */ (
|
|
36
|
+
iconRight: p && /* @__PURE__ */ a(e, {
|
|
37
37
|
name: "close",
|
|
38
|
-
className:
|
|
38
|
+
className: n.searchReset,
|
|
39
39
|
"data-tid": "action_search_reset",
|
|
40
40
|
height: 16,
|
|
41
41
|
width: 16,
|
|
@@ -45,9 +45,9 @@ var c = e(), l = ({ onSearchSubmit: e, placeholder: l, disabled: u, reducedByDef
|
|
|
45
45
|
defaultMessage: "Reset search"
|
|
46
46
|
})
|
|
47
47
|
}),
|
|
48
|
-
iconLeft: /* @__PURE__ */ (
|
|
48
|
+
iconLeft: /* @__PURE__ */ a(e, {
|
|
49
49
|
name: "search",
|
|
50
|
-
className:
|
|
50
|
+
className: n.searchSubmit,
|
|
51
51
|
"data-tid": "action_search_submit",
|
|
52
52
|
height: 16,
|
|
53
53
|
width: 16,
|
|
@@ -58,12 +58,12 @@ var c = e(), l = ({ onSearchSubmit: e, placeholder: l, disabled: u, reducedByDef
|
|
|
58
58
|
})
|
|
59
59
|
})
|
|
60
60
|
})
|
|
61
|
-
}) : /* @__PURE__ */ (
|
|
62
|
-
className:
|
|
61
|
+
}) : /* @__PURE__ */ a("div", {
|
|
62
|
+
className: n.searchReducedButton,
|
|
63
63
|
onClick: () => g(!0),
|
|
64
|
-
children: /* @__PURE__ */ (
|
|
64
|
+
children: /* @__PURE__ */ a(e, {
|
|
65
65
|
name: "search",
|
|
66
|
-
className:
|
|
66
|
+
className: n.searchSubmit,
|
|
67
67
|
"data-tid": "action_search_submit",
|
|
68
68
|
height: 20.8,
|
|
69
69
|
width: 16
|
|
@@ -71,4 +71,4 @@ var c = e(), l = ({ onSearchSubmit: e, placeholder: l, disabled: u, reducedByDef
|
|
|
71
71
|
});
|
|
72
72
|
};
|
|
73
73
|
//#endregion
|
|
74
|
-
export {
|
|
74
|
+
export { c as SearchInput };
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import { useEffect as o, useState as s } from "react";
|
|
1
|
+
import { Icon as e } from "../../icons/icon/Icon.js";
|
|
2
|
+
import { Dropdown as t } from "../../dialog/dropdown/Dropdown.js";
|
|
3
|
+
import n from "./Select.module.js";
|
|
4
|
+
import { useEffect as r, useState as i } from "react";
|
|
5
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
6
|
+
import s from "classnames";
|
|
8
7
|
//#region src/components/input/select/Select.jsx
|
|
9
|
-
var c =
|
|
10
|
-
let
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
}, [
|
|
14
|
-
|
|
15
|
-
}, [
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
},
|
|
8
|
+
var c = ({ options: c, defaultOption: l, onChange: u, resetSelect: d = !1, disabled: f = !1, className: p, horizontalPosition: m = "left" }) => {
|
|
9
|
+
let h = l ? c.filter((e) => e.name === l)[0] : c[0], [g, _] = i(h);
|
|
10
|
+
r(() => {
|
|
11
|
+
d === !0 && _(h);
|
|
12
|
+
}, [d]), r(() => {
|
|
13
|
+
l && _(c.filter((e) => e.name === l)[0]);
|
|
14
|
+
}, [l]);
|
|
15
|
+
let v = (e) => {
|
|
16
|
+
_(e), u && u(e);
|
|
17
|
+
}, y = (e) => {
|
|
19
18
|
let t = e.currentTarget;
|
|
20
19
|
switch (e.key) {
|
|
21
20
|
case "Enter":
|
|
@@ -29,48 +28,48 @@ var c = /* @__PURE__ */ e(r()), l = t(), u = ({ options: e, defaultOption: t, on
|
|
|
29
28
|
e.preventDefault(), t.previousElementSibling?.focus();
|
|
30
29
|
break;
|
|
31
30
|
}
|
|
32
|
-
},
|
|
33
|
-
let t =
|
|
34
|
-
return e.name !== "" && /* @__PURE__ */ (
|
|
31
|
+
}, b = (e) => {
|
|
32
|
+
let t = g?.name === e.name;
|
|
33
|
+
return e.name !== "" && /* @__PURE__ */ a("div", {
|
|
35
34
|
role: "option",
|
|
36
35
|
"aria-selected": t,
|
|
37
36
|
tabIndex: 0,
|
|
38
|
-
className: (
|
|
37
|
+
className: s(n.selectOption, { [n.selectOptionActive]: t }),
|
|
39
38
|
value: e.value,
|
|
40
39
|
"data-tid": e.dataTid,
|
|
41
|
-
onClick: () =>
|
|
42
|
-
onKeyDown:
|
|
40
|
+
onClick: () => v(e),
|
|
41
|
+
onKeyDown: y,
|
|
43
42
|
children: e.text
|
|
44
43
|
}, e.value);
|
|
45
44
|
};
|
|
46
|
-
return /* @__PURE__ */ (
|
|
47
|
-
className:
|
|
48
|
-
children: /* @__PURE__ */ (
|
|
49
|
-
horizontalPosition:
|
|
50
|
-
children: [/* @__PURE__ */ (
|
|
51
|
-
className: (
|
|
52
|
-
[
|
|
53
|
-
[
|
|
45
|
+
return /* @__PURE__ */ a("div", {
|
|
46
|
+
className: n.selectContainer,
|
|
47
|
+
children: /* @__PURE__ */ o(t, {
|
|
48
|
+
horizontalPosition: m,
|
|
49
|
+
children: [/* @__PURE__ */ o("div", {
|
|
50
|
+
className: s(n.selectInput, {
|
|
51
|
+
[p]: p,
|
|
52
|
+
[n.disabled]: f
|
|
54
53
|
}),
|
|
55
54
|
children: [
|
|
56
|
-
/* @__PURE__ */ (
|
|
57
|
-
className:
|
|
58
|
-
children:
|
|
55
|
+
/* @__PURE__ */ a("span", {
|
|
56
|
+
className: n.currentOptionText,
|
|
57
|
+
children: g?.text
|
|
59
58
|
}),
|
|
60
59
|
" ",
|
|
61
|
-
/* @__PURE__ */ (
|
|
60
|
+
/* @__PURE__ */ a(e, {
|
|
62
61
|
name: "lightArrow",
|
|
63
|
-
className:
|
|
62
|
+
className: n.arrowDown,
|
|
64
63
|
height: 10,
|
|
65
64
|
width: 10
|
|
66
65
|
})
|
|
67
66
|
]
|
|
68
|
-
}), !
|
|
67
|
+
}), !f && /* @__PURE__ */ a("div", {
|
|
69
68
|
role: "listbox",
|
|
70
|
-
children:
|
|
69
|
+
children: c.map(b)
|
|
71
70
|
})]
|
|
72
71
|
})
|
|
73
72
|
});
|
|
74
73
|
};
|
|
75
74
|
//#endregion
|
|
76
|
-
export {
|
|
75
|
+
export { c as Select };
|
|
@@ -1,114 +1,113 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import r from "
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import { useEffect as T, useId as E, useState as D } from "react";
|
|
1
|
+
import { SourceListItem as e } from "../../source/source_list_item/SourceListItem.js";
|
|
2
|
+
import { useModal as t } from "../../dialog/modal/useModal.js";
|
|
3
|
+
import { SourceModal as n } from "../../source/source_modal/SourceModal.js";
|
|
4
|
+
import r from "./TextEditor.module.js";
|
|
5
|
+
import i from "./EditorTheme.js";
|
|
6
|
+
import { AutoSavePlugin as a } from "./plugins/AutoSavePlugin.js";
|
|
7
|
+
import { FocusPlugin as o } from "./plugins/FocusPlugin.js";
|
|
8
|
+
import { MaxLengthPlugin as s } from "./plugins/MaxLengthPlugin.js";
|
|
9
|
+
import { ResetPlugin as c } from "./plugins/ResetPlugin.js";
|
|
10
|
+
import { SetContentPlugin as l } from "./plugins/SetContentPlugin.js";
|
|
11
|
+
import { SetRichContentPlugin as u } from "./plugins/SetRichContentPlugin.js";
|
|
12
|
+
import { ToolbarPlugin as d } from "./plugins/ToolbarPlugin.js";
|
|
13
|
+
import { useEffect as f, useId as p, useState as m } from "react";
|
|
14
|
+
import { Fragment as h, jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
15
|
+
import v from "classnames";
|
|
16
|
+
import { useIntl as y } from "react-intl";
|
|
17
|
+
import { ListItemNode as b, ListNode as ee } from "@lexical/list";
|
|
18
|
+
import { OverflowNode as te } from "@lexical/overflow";
|
|
19
|
+
import { CharacterLimitPlugin as ne } from "@lexical/react/LexicalCharacterLimitPlugin";
|
|
20
|
+
import { LexicalComposer as re } from "@lexical/react/LexicalComposer";
|
|
21
|
+
import { ContentEditable as ie } from "@lexical/react/LexicalContentEditable";
|
|
22
|
+
import { EditorRefPlugin as x } from "@lexical/react/LexicalEditorRefPlugin";
|
|
23
|
+
import { LexicalErrorBoundary as S } from "@lexical/react/LexicalErrorBoundary";
|
|
24
|
+
import { HistoryPlugin as C } from "@lexical/react/LexicalHistoryPlugin";
|
|
25
|
+
import { ListPlugin as w } from "@lexical/react/LexicalListPlugin";
|
|
26
|
+
import { OnChangePlugin as T } from "@lexical/react/LexicalOnChangePlugin";
|
|
27
|
+
import { RichTextPlugin as E } from "@lexical/react/LexicalRichTextPlugin";
|
|
28
|
+
import { QuoteNode as D } from "@lexical/rich-text";
|
|
29
|
+
import { $getRoot as O } from "lexical";
|
|
31
30
|
//#region src/components/input/text_editor/TextEditor.jsx
|
|
32
|
-
var
|
|
33
|
-
let [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}, [
|
|
37
|
-
|
|
31
|
+
var k = ({ placeholder: k, onSubmit: A, sources: j, hideSubmit: M = !1, hideSourceAction: N = !1, onActivation: P, disabled: F = !1, handleChange: I, handleSourcesChange: L, shortBar: R = !1, active: z = !1, maxLength: B, disableRichText: ae = !1, editorRef: V, uid: H, allowedDomains: U = [], hideCharCount: W = !1, disableAutoActivate: G = !1, ...K }) => {
|
|
32
|
+
let [q, J] = m(!1), [oe, se] = m(""), [ce, le] = m(""), [Y, X] = m([]), { showModal: ue } = t(), Z = y(), Q = p();
|
|
33
|
+
f(() => {
|
|
34
|
+
j && j.length > 0 && X(j);
|
|
35
|
+
}, [j]), f(() => {
|
|
36
|
+
L && Y.length > 0 && L(Y);
|
|
38
37
|
}, [Y]);
|
|
39
38
|
let $ = () => {
|
|
40
|
-
|
|
41
|
-
},
|
|
42
|
-
editable: !
|
|
43
|
-
theme:
|
|
39
|
+
q || (J(!0), P && P());
|
|
40
|
+
}, de = {
|
|
41
|
+
editable: !F,
|
|
42
|
+
theme: i,
|
|
44
43
|
onError(e) {
|
|
45
44
|
console.error("TextEditor error:", e);
|
|
46
45
|
},
|
|
47
46
|
nodes: [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
ee,
|
|
48
|
+
b,
|
|
49
|
+
D,
|
|
50
|
+
te
|
|
52
51
|
]
|
|
53
|
-
},
|
|
52
|
+
}, fe = () => {
|
|
54
53
|
$();
|
|
55
|
-
},
|
|
54
|
+
}, pe = (e) => {
|
|
56
55
|
e.read(() => {
|
|
57
|
-
let t =
|
|
58
|
-
|
|
56
|
+
let t = O().getTextContent(), n = JSON.stringify(e);
|
|
57
|
+
se(t), le(n), I && I(t, n);
|
|
59
58
|
});
|
|
60
|
-
}, fe = (e) => {
|
|
61
|
-
let n = q, r = oe, i = Y;
|
|
62
|
-
t && (e.preventDefault(), t(n, r, i)), X([]);
|
|
63
|
-
}, pe = () => {
|
|
64
|
-
ce(/* @__PURE__ */ (0, k.jsx)(v, {
|
|
65
|
-
onAddSource: me,
|
|
66
|
-
allowedSources: V
|
|
67
|
-
}));
|
|
68
59
|
}, me = (e) => {
|
|
60
|
+
let t = oe, n = ce, r = Y;
|
|
61
|
+
A && (e.preventDefault(), A(t, n, r)), X([]);
|
|
62
|
+
}, he = () => {
|
|
63
|
+
ue(/* @__PURE__ */ g(n, {
|
|
64
|
+
onAddSource: ge,
|
|
65
|
+
allowedSources: U
|
|
66
|
+
}));
|
|
67
|
+
}, ge = (e) => {
|
|
69
68
|
X([...Y, e]);
|
|
70
|
-
},
|
|
71
|
-
publisher:
|
|
72
|
-
url:
|
|
73
|
-
title:
|
|
74
|
-
index:
|
|
75
|
-
},
|
|
76
|
-
className:
|
|
77
|
-
children:
|
|
69
|
+
}, _e = (t, n) => /* @__PURE__ */ g(e, {
|
|
70
|
+
publisher: t.publisher,
|
|
71
|
+
url: t.source_url,
|
|
72
|
+
title: t.title,
|
|
73
|
+
index: n
|
|
74
|
+
}, n), ve = () => /* @__PURE__ */ g("div", {
|
|
75
|
+
className: r.editorPlaceholder,
|
|
76
|
+
children: k
|
|
78
77
|
});
|
|
79
|
-
return /* @__PURE__ */ (
|
|
80
|
-
initialConfig:
|
|
81
|
-
children: /* @__PURE__ */ (
|
|
82
|
-
className:
|
|
83
|
-
onClick:
|
|
84
|
-
children: /* @__PURE__ */ (
|
|
85
|
-
className: (
|
|
78
|
+
return /* @__PURE__ */ _(h, { children: [/* @__PURE__ */ g(re, {
|
|
79
|
+
initialConfig: de,
|
|
80
|
+
children: /* @__PURE__ */ g("div", {
|
|
81
|
+
className: r.editorContainer,
|
|
82
|
+
onClick: fe,
|
|
83
|
+
children: /* @__PURE__ */ _("div", {
|
|
84
|
+
className: v(r.editorInner, { [r.editorInnerInactive]: !q && !z }),
|
|
86
85
|
children: [
|
|
87
|
-
/* @__PURE__ */ (
|
|
88
|
-
contentEditable: /* @__PURE__ */ (
|
|
89
|
-
className: (
|
|
90
|
-
...
|
|
86
|
+
/* @__PURE__ */ g(E, {
|
|
87
|
+
contentEditable: /* @__PURE__ */ g(ie, {
|
|
88
|
+
className: v(r.editorInput, { [r.editorInputInactive]: !q }),
|
|
89
|
+
...K
|
|
91
90
|
}),
|
|
92
|
-
placeholder:
|
|
93
|
-
ErrorBoundary:
|
|
91
|
+
placeholder: k && /* @__PURE__ */ g(ve, {}),
|
|
92
|
+
ErrorBoundary: S
|
|
94
93
|
}),
|
|
95
|
-
/* @__PURE__ */ (
|
|
96
|
-
hideSourceAction:
|
|
97
|
-
hideSubmit:
|
|
98
|
-
disableRichText:
|
|
99
|
-
shortBar:
|
|
100
|
-
onSubmit:
|
|
101
|
-
onAddSource:
|
|
102
|
-
isActive:
|
|
103
|
-
sourceTooltip:
|
|
94
|
+
/* @__PURE__ */ g(d, {
|
|
95
|
+
hideSourceAction: N,
|
|
96
|
+
hideSubmit: M,
|
|
97
|
+
disableRichText: ae,
|
|
98
|
+
shortBar: R,
|
|
99
|
+
onSubmit: me,
|
|
100
|
+
onAddSource: he,
|
|
101
|
+
isActive: q || z,
|
|
102
|
+
sourceTooltip: U?.length > 0 && Z.formatMessage({
|
|
104
103
|
id: "input.allowed_domains_tooltip",
|
|
105
104
|
defaultMessage: "With the new source function, you can add links to your article."
|
|
106
105
|
})
|
|
107
106
|
}),
|
|
108
|
-
|
|
109
|
-
className:
|
|
107
|
+
q && B && !W && /* @__PURE__ */ _("div", {
|
|
108
|
+
className: r.charactersCount,
|
|
110
109
|
children: [
|
|
111
|
-
/* @__PURE__ */ (
|
|
110
|
+
/* @__PURE__ */ g(ne, { maxLength: B }),
|
|
112
111
|
" ",
|
|
113
112
|
Z.formatMessage({
|
|
114
113
|
id: "input.remaining_chars",
|
|
@@ -116,32 +115,32 @@ var O = /* @__PURE__ */ e(n()), k = t(), A = ({ placeholder: e, onSubmit: t, sou
|
|
|
116
115
|
})
|
|
117
116
|
]
|
|
118
117
|
}),
|
|
119
|
-
/* @__PURE__ */ (
|
|
120
|
-
/* @__PURE__ */ (
|
|
121
|
-
/* @__PURE__ */ (
|
|
122
|
-
onChange:
|
|
118
|
+
/* @__PURE__ */ g(w, {}),
|
|
119
|
+
/* @__PURE__ */ g(C, {}),
|
|
120
|
+
/* @__PURE__ */ g(T, {
|
|
121
|
+
onChange: pe,
|
|
123
122
|
ignoreSelectionChange: !0
|
|
124
123
|
}),
|
|
125
|
-
/* @__PURE__ */ (
|
|
126
|
-
onSetContent:
|
|
127
|
-
storageUid:
|
|
124
|
+
/* @__PURE__ */ g(a, {
|
|
125
|
+
onSetContent: G ? () => {} : $,
|
|
126
|
+
storageUid: H || Q
|
|
128
127
|
}),
|
|
129
|
-
/* @__PURE__ */ (
|
|
130
|
-
/* @__PURE__ */ (
|
|
131
|
-
/* @__PURE__ */ (
|
|
132
|
-
|
|
133
|
-
/* @__PURE__ */ (
|
|
134
|
-
/* @__PURE__ */ (
|
|
128
|
+
/* @__PURE__ */ g(l, {}),
|
|
129
|
+
/* @__PURE__ */ g(u, {}),
|
|
130
|
+
/* @__PURE__ */ g(o, {}),
|
|
131
|
+
B && /* @__PURE__ */ g(s, { maxLength: B }),
|
|
132
|
+
/* @__PURE__ */ g(c, { storageUid: H || Q }),
|
|
133
|
+
/* @__PURE__ */ g(x, { editorRef: V })
|
|
135
134
|
]
|
|
136
135
|
})
|
|
137
136
|
})
|
|
138
|
-
}),
|
|
139
|
-
className:
|
|
140
|
-
children: /* @__PURE__ */ (
|
|
141
|
-
className:
|
|
142
|
-
children:
|
|
137
|
+
}), j && j.length !== 0 ? /* @__PURE__ */ g("div", {
|
|
138
|
+
className: r.sourcesBox,
|
|
139
|
+
children: /* @__PURE__ */ g("div", {
|
|
140
|
+
className: r.sourceList,
|
|
141
|
+
children: j.map(_e)
|
|
143
142
|
})
|
|
144
143
|
}) : null] });
|
|
145
144
|
};
|
|
146
145
|
//#endregion
|
|
147
|
-
export {
|
|
146
|
+
export { k as TextEditor };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import
|
|
1
|
+
import { ListItemNode as e, ListNode as t } from "@lexical/list";
|
|
2
|
+
import { QuoteNode as n } from "@lexical/rich-text";
|
|
3
|
+
import { createHeadlessEditor as r } from "@lexical/headless";
|
|
4
|
+
import { $generateHtmlFromNodes as i } from "@lexical/html";
|
|
5
|
+
import a from "dompurify";
|
|
6
6
|
//#region src/components/input/text_editor/lexicalToHtml.js
|
|
7
7
|
var o = (o) => {
|
|
8
|
-
let s = null, c =
|
|
8
|
+
let s = null, c = r({
|
|
9
9
|
nodes: [
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
n,
|
|
11
|
+
e,
|
|
12
|
+
t
|
|
13
13
|
],
|
|
14
14
|
onError: () => {}
|
|
15
15
|
}), l = c.parseEditorState(o);
|
|
16
16
|
return c.setEditorState(l), c.update(() => {
|
|
17
|
-
let e =
|
|
17
|
+
let e = i(c, null);
|
|
18
18
|
s = a.sanitize(e);
|
|
19
19
|
}), s;
|
|
20
20
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import i from "
|
|
6
|
-
import
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
3
|
+
import { useDebouncedCallback as n } from "use-debounce";
|
|
4
|
+
import { OnChangePlugin as r } from "@lexical/react/LexicalOnChangePlugin";
|
|
5
|
+
import { useLexicalComposerContext as i } from "@lexical/react/LexicalComposerContext";
|
|
6
|
+
import a from "@rooks/use-localstorage-state";
|
|
7
7
|
//#region src/components/input/text_editor/plugins/AutoSavePlugin.jsx
|
|
8
|
-
var o =
|
|
9
|
-
let [c] =
|
|
10
|
-
return
|
|
8
|
+
var o = ({ storageUid: o, onSetContent: s }) => {
|
|
9
|
+
let [c] = i(), [l, u, d] = a(`TextEditor:content_${o}`, {});
|
|
10
|
+
return e(() => {
|
|
11
11
|
if (l && Object.keys(l).length !== 0) {
|
|
12
12
|
let e = c.parseEditorState(l.editorState);
|
|
13
13
|
c.setEditorState(e), s?.();
|
|
14
14
|
}
|
|
15
|
-
}, []), /* @__PURE__ */ (
|
|
16
|
-
onChange:
|
|
15
|
+
}, []), /* @__PURE__ */ t(r, {
|
|
16
|
+
onChange: n((e, t) => {
|
|
17
17
|
e.read(() => {
|
|
18
18
|
u({ editorState: JSON.stringify(t.getEditorState()) });
|
|
19
19
|
});
|
|
@@ -22,4 +22,4 @@ var o = e(), s = ({ storageUid: e, onSetContent: s }) => {
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
//#endregion
|
|
25
|
-
export {
|
|
25
|
+
export { o as AutoSavePlugin };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useInput as e } from "../../input_provider/useInput.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { useEffect as t } from "react";
|
|
3
|
+
import { useLexicalComposerContext as n } from "@lexical/react/LexicalComposerContext";
|
|
4
4
|
//#region src/components/input/text_editor/plugins/FocusPlugin.jsx
|
|
5
5
|
var r = () => {
|
|
6
|
-
let [r] =
|
|
7
|
-
return
|
|
6
|
+
let [r] = n(), { focus: i } = e();
|
|
7
|
+
return t(() => {
|
|
8
8
|
i && r.focus(() => {
|
|
9
9
|
r.getRootElement().focus();
|
|
10
10
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { useEffect as e } from "react";
|
|
2
|
+
import { $getSelection as t, $isRangeSelection as n, RootNode as r } from "lexical";
|
|
3
|
+
import { useLexicalComposerContext as i } from "@lexical/react/LexicalComposerContext";
|
|
4
|
+
import { $trimTextContentFromAnchor as a } from "@lexical/selection";
|
|
5
|
+
import { $restoreEditorState as o } from "@lexical/utils";
|
|
6
6
|
//#region src/components/input/text_editor/plugins/MaxLengthPlugin.jsx
|
|
7
7
|
var s = ({ maxLength: s = 5e4 }) => {
|
|
8
|
-
let [c] =
|
|
9
|
-
return
|
|
10
|
-
let
|
|
11
|
-
return c.registerNodeTransform(
|
|
12
|
-
let
|
|
13
|
-
if (!n(
|
|
14
|
-
let l = c.getEditorState(), u = l.read(() =>
|
|
8
|
+
let [c] = i();
|
|
9
|
+
return e(() => {
|
|
10
|
+
let e = null;
|
|
11
|
+
return c.registerNodeTransform(r, (r) => {
|
|
12
|
+
let i = t();
|
|
13
|
+
if (!n(i) || !i.isCollapsed()) return;
|
|
14
|
+
let l = c.getEditorState(), u = l.read(() => r.getTextContent()), d = r.getTextContent();
|
|
15
15
|
if (u !== d) {
|
|
16
|
-
let
|
|
17
|
-
|
|
16
|
+
let t = d.length - s, n = i.anchor;
|
|
17
|
+
t > 0 && (u.length === s && e !== l ? (e = l, o(c, l)) : a(c, n, t));
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
}, [c, s]), null;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { useInput as e } from "../../input_provider/useInput.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import a from "
|
|
5
|
-
import
|
|
2
|
+
import { useEffect as t } from "react";
|
|
3
|
+
import { $addUpdateTag as n, $createParagraphNode as r, $getRoot as i } from "lexical";
|
|
4
|
+
import { useLexicalComposerContext as a } from "@lexical/react/LexicalComposerContext";
|
|
5
|
+
import o from "@rooks/use-localstorage-state";
|
|
6
6
|
//#region src/components/input/text_editor/plugins/ResetPlugin.jsx
|
|
7
7
|
var s = ({ storageUid: s }) => {
|
|
8
|
-
let [c] =
|
|
9
|
-
return
|
|
8
|
+
let [c] = a(), { reset: l, setReset: u } = e(), [d, f, p] = o(`TextEditor:content_${s}`, {});
|
|
9
|
+
return t(() => {
|
|
10
10
|
l && c.update(() => {
|
|
11
|
-
|
|
12
|
-
let e =
|
|
13
|
-
e.clear(), e.append(
|
|
11
|
+
n("skip-dom-selection");
|
|
12
|
+
let e = i(), t = r();
|
|
13
|
+
e.clear(), e.append(t), p(), u(!1);
|
|
14
14
|
});
|
|
15
15
|
}, [l]), null;
|
|
16
16
|
};
|