@logora/debate 0.1.0 → 0.2.0
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 +14 -23
- package/dist/_virtual/_rolldown/runtime.js +23 -0
- package/dist/assets/debate-Bv79XlHp.css +2 -0
- package/dist/components/action/back_link/BackLink.js +24 -0
- package/dist/components/action/back_link/BackLink.module.js +6 -0
- package/dist/components/action/button/Button.js +34 -0
- package/dist/components/action/button/Button.module.js +10 -0
- package/dist/components/action/icon_text_link/IconTextLink.js +37 -0
- package/dist/components/action/icon_text_link/IconTextLink.module.js +11 -0
- package/dist/components/action/link/Link.js +23 -0
- package/dist/components/ad/ad_unit/AdUnit.js +42 -0
- package/dist/components/ad/ad_unit/AdUnit.module.js +3 -0
- package/dist/components/ad/use_google_ad_manager/useGoogleAdManager.js +22 -0
- package/dist/components/ad/with_ad/WithAd.js +13 -0
- package/dist/components/argument/argument/Argument.js +266 -0
- package/dist/components/argument/argument/Argument.module.js +34 -0
- package/dist/components/argument/argument/ReplyFooter.js +39 -0
- package/dist/components/argument/argument/ReplyFooter.module.js +10 -0
- package/dist/components/argument/argument/useRichContent.js +14 -0
- package/dist/components/argument/top_arguments/TopArguments.js +63 -0
- package/dist/components/argument/top_arguments/TopArguments.module.js +9 -0
- package/dist/components/auth/auth_initializer/AuthInitializer.js +35 -0
- package/dist/components/auth/auth_modal/AuthModal.js +68 -0
- package/dist/components/auth/auth_modal/AuthModal.module.js +3 -0
- package/dist/components/auth/auth_modal/index.js +2 -0
- package/dist/components/auth/facebook_login_button/FacebookIcon.js +14 -0
- package/dist/components/auth/facebook_login_button/FacebookLoginButton.js +29 -0
- package/dist/components/auth/facebook_login_button/FacebookLoginButton.module.js +6 -0
- package/dist/components/auth/google_login_button/GoogleIcon.js +29 -0
- package/dist/components/auth/google_login_button/GoogleLoginButton.js +31 -0
- package/dist/components/auth/google_login_button/GoogleLoginButton.module.js +6 -0
- package/dist/components/auth/login_form/LoginForm.js +84 -0
- package/dist/components/auth/login_form/LoginForm.module.js +9 -0
- package/dist/components/auth/oauth2_button/OAuth2Button.js +37 -0
- package/dist/components/auth/oauth2_button/OAuth2Button.module.js +6 -0
- package/dist/components/auth/providers/AuthProvider.js +20 -0
- package/dist/components/auth/providers/AuthProviderFactory.js +10 -0
- package/dist/components/auth/providers/FormAuth.js +29 -0
- package/dist/components/auth/providers/JWTAuth.js +27 -0
- package/dist/components/auth/providers/OAuth2ServerAuth.js +35 -0
- package/dist/components/auth/providers/PasswordAuth.js +25 -0
- package/dist/components/auth/signup_form/SignupForm.js +155 -0
- package/dist/components/auth/signup_form/SignupForm.module.js +7 -0
- package/dist/components/auth/social_auth_form/SocialAuthForm.js +199 -0
- package/dist/components/auth/social_auth_form/SocialAuthForm.module.js +21 -0
- package/dist/components/auth/sso_form/SSOForm.js +147 -0
- package/dist/components/auth/sso_form/SSOForm.module.js +17 -0
- package/dist/components/auth/use_auth/AuthContext.js +5 -0
- package/dist/components/auth/use_auth/AuthProvider.js +25 -0
- package/dist/components/auth/use_auth/AuthStorage.js +29 -0
- package/dist/components/auth/use_auth/authTokenHandler.js +45 -0
- package/dist/components/auth/use_auth/useAuth.js +6 -0
- package/dist/components/auth/use_auth/useAuthActions.js +35 -0
- package/dist/components/auth/use_auth/useAuthInterceptor.js +27 -0
- package/dist/components/chart/line_chart/LineChart.js +101 -0
- package/dist/components/chart/line_chart/LineChart.module.js +9 -0
- package/dist/components/chart/pie_chart/PieChart.js +69 -0
- package/dist/components/chart/pie_chart/PieChart.module.js +3 -0
- package/dist/components/consultation/consultation_box/ConsultationBox.js +123 -0
- package/dist/components/consultation/consultation_box/ConsultationBox.module.js +21 -0
- package/dist/components/data/axios_client/httpClient.js +8 -0
- package/dist/components/data/config_provider/ConfigProvider.js +12 -0
- package/dist/components/data/config_provider/useConfig.js +9 -0
- package/dist/components/data/config_provider/useRoutes.js +9 -0
- package/dist/components/data/config_provider/withConfig.js +10 -0
- package/dist/components/data/data_provider/DataProvider.js +101 -0
- package/dist/components/data/data_provider/DataProviderContext.js +5 -0
- package/dist/components/data/data_provider/useData.js +9 -0
- package/dist/components/data/data_provider/useDataProvider.js +9 -0
- package/dist/components/debate/debate_box/DebateBox.js +156 -0
- package/dist/components/debate/debate_box/DebateBox.module.js +26 -0
- package/dist/components/dialog/announcement_dialog/AnnouncementDialog.js +30 -0
- package/dist/components/dialog/announcement_dialog/AnnouncementDialog.module.js +8 -0
- package/dist/components/dialog/confirm_modal/ConfirmModal.js +38 -0
- package/dist/components/dialog/confirm_modal/ConfirmModal.module.js +8 -0
- package/dist/components/dialog/countdown/Countdown.js +23 -0
- package/dist/components/dialog/dialog_box/DialogBox.js +51 -0
- package/dist/components/dialog/dialog_box/DialogBox.module.js +16 -0
- package/dist/components/dialog/drawer/Drawer.js +127 -0
- package/dist/components/dialog/drawer/Drawer.module.js +17 -0
- package/dist/components/dialog/dropdown/Dropdown.js +29 -0
- package/dist/components/dialog/dropdown/Dropdown.module.js +10 -0
- package/dist/components/dialog/modal/Modal.js +65 -0
- package/dist/components/dialog/modal/Modal.module.js +12 -0
- package/dist/components/dialog/modal/ModalProvider.js +20 -0
- package/dist/components/dialog/modal/useModal.js +6 -0
- package/dist/components/dialog/toast/Toast.js +41 -0
- package/dist/components/dialog/toast/Toast.module.js +14 -0
- package/dist/components/dialog/toast_provider/ToastContext.js +5 -0
- package/dist/components/dialog/toast_provider/ToastProvider.js +29 -0
- package/dist/components/dialog/toast_provider/ToastProvider.module.js +3 -0
- package/dist/components/dialog/toast_provider/useToast.js +12 -0
- package/dist/components/dialog/tooltip/Tooltip.js +32 -0
- package/dist/components/dialog/tooltip/Tooltip.module.js +12 -0
- package/dist/components/embed/embed_header/EmbedHeader.js +72 -0
- package/dist/components/embed/embed_header/EmbedHeader.module.js +18 -0
- package/dist/components/error/standard_error_boundary/StandardErrorBoundary.js +18 -0
- package/dist/components/error/standard_error_boundary/StandardErrorBoundary.module.js +3 -0
- package/dist/components/follow/follow_button/FollowButton.js +49 -0
- package/dist/components/follow/follow_button/FollowButton.module.js +6 -0
- package/dist/components/follow/use_follow/useFollow.js +36 -0
- package/dist/components/forms/form/extract-form-data.js +12 -0
- package/dist/components/forms/form/form-context.js +5 -0
- package/dist/components/forms/form/form.js +28 -0
- package/dist/components/forms/form/use-form-context.js +32 -0
- package/dist/components/forms/form/use-form.js +6 -0
- package/dist/components/forms/use_form_validation/useFormValidation.js +45 -0
- package/dist/components/gamification/badge_box/BadgeBox.js +94 -0
- package/dist/components/gamification/badge_box/BadgeBox.module.js +19 -0
- package/dist/components/gamification/point_box/PointBox.js +19 -0
- package/dist/components/gamification/point_box/PointBox.module.js +7 -0
- package/dist/components/hooks/use_auth_required/useAuthRequired.js +16 -0
- package/dist/components/hooks/use_css_theme/useCssTheme.js +16 -0
- package/dist/components/hooks/use_font_loader/useFontLoader.js +8 -0
- package/dist/components/hooks/use_matomo/useMatomo.js +10 -0
- package/dist/components/hooks/use_relative_time/useRelativeTime.js +53 -0
- package/dist/components/hooks/use_responsive/ResponsiveContext.js +5 -0
- package/dist/components/hooks/use_responsive/ResponsiveProvider.js +33 -0
- package/dist/components/hooks/use_responsive/useResponsive.js +14 -0
- package/dist/components/icons/icon/Icon.js +20 -0
- package/dist/components/icons/icon_provider/IconProvider.js +9 -0
- package/dist/components/icons/krone_icons/CheckBox.js +17 -0
- package/dist/components/input/argument_input/ArgumentInput.js +286 -0
- package/dist/components/input/argument_input/ArgumentInput.module.js +23 -0
- package/dist/components/input/argument_input/index.js +2 -0
- package/dist/components/input/checkbox/hidden/hidden-checkbox.js +16 -0
- package/dist/components/input/checkbox/hidden/hidden-checkbox.module.js +3 -0
- package/dist/components/input/checkbox/indicator/checkbox-indicator.js +19 -0
- package/dist/components/input/checkbox/indicator/checkbox-indicator.module.js +6 -0
- package/dist/components/input/checkbox/label/checkbox-label.js +27 -0
- package/dist/components/input/input_provider/InputProvider.js +21 -0
- package/dist/components/input/input_provider/useInput.js +6 -0
- package/dist/components/input/search_input/SearchInput.js +74 -0
- package/dist/components/input/search_input/SearchInput.module.js +8 -0
- package/dist/components/input/select/Select.js +76 -0
- package/dist/components/input/select/Select.module.js +12 -0
- package/dist/components/input/text_editor/EditorTheme.js +69 -0
- package/dist/components/input/text_editor/TextEditor.js +147 -0
- package/dist/components/input/text_editor/TextEditor.module.js +24 -0
- package/dist/components/input/text_editor/lexicalToHtml.js +22 -0
- package/dist/components/input/text_editor/plugins/AutoSavePlugin.js +25 -0
- package/dist/components/input/text_editor/plugins/FocusPlugin.js +14 -0
- package/dist/components/input/text_editor/plugins/MaxLengthPlugin.js +23 -0
- package/dist/components/input/text_editor/plugins/ResetPlugin.js +18 -0
- package/dist/components/input/text_editor/plugins/SetContentPlugin.js +18 -0
- package/dist/components/input/text_editor/plugins/SetRichContentPlugin.js +15 -0
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.js +170 -0
- package/dist/components/input/text_editor/plugins/ToolbarPlugin.module.js +17 -0
- package/dist/components/input/text_input/TextInput.js +36 -0
- package/dist/components/input/text_input/TextInput.module.js +12 -0
- package/dist/components/input/text_input/color-accent.js +12 -0
- package/dist/components/input/text_input/message.js +16 -0
- package/dist/components/input/toggle/Toggle.js +28 -0
- package/dist/components/input/toggle/Toggle.module.js +9 -0
- package/dist/components/input/toggle_position/TogglePosition.js +48 -0
- package/dist/components/input/toggle_position/TogglePosition.module.js +10 -0
- package/dist/components/intl/intl_provider/IntlContext.js +5 -0
- package/dist/components/intl/intl_provider/IntlProvider.js +38 -0
- package/dist/components/intl/intl_provider/useLocale.js +12 -0
- package/dist/components/list/list_provider/ListProvider.js +45 -0
- package/dist/components/list/list_provider/useList.js +22 -0
- package/dist/components/list/paginated_list/PaginatedList.js +178 -0
- package/dist/components/list/paginated_list/PaginatedList.module.js +18 -0
- package/dist/components/list/paginated_list/VotePaginatedList.js +20 -0
- package/dist/components/list/paginated_list/action_bar/ActionBar.js +75 -0
- package/dist/components/list/paginated_list/action_bar/ActionBar.module.js +13 -0
- package/dist/components/list/pagination/Pagination.js +27 -0
- package/dist/components/list/pagination/Pagination.module.js +3 -0
- package/dist/components/modal/side_modal/SideModal.js +60 -0
- package/dist/components/modal/side_modal/SideModal.module.js +11 -0
- package/dist/components/modal/side_modal/index.js +2 -0
- package/dist/components/navbar/navbar_button/NavbarButton.js +29 -0
- package/dist/components/navbar/navbar_button/NavbarButton.module.js +6 -0
- package/dist/components/navbar/navbar_modal/NavbarModal.js +157 -0
- package/dist/components/navbar/navbar_modal/NavbarModal.module.js +16 -0
- package/dist/components/notification/notification_item/NotificationItem.js +50 -0
- package/dist/components/notification/notification_item/NotificationItem.module.js +10 -0
- package/dist/components/notification/notification_menu/NotificationMenu.js +53 -0
- package/dist/components/notification/notification_menu/NotificationMenu.module.js +8 -0
- package/dist/components/progress/loader/Loader.js +13 -0
- package/dist/components/progress/loader/Loader.module.js +7 -0
- package/dist/components/progress/progress_bar/ProgressBar.js +59 -0
- package/dist/components/progress/progress_bar/ProgressBar.module.js +14 -0
- package/dist/components/proposal/proposal_box/ProposalBox.js +108 -0
- package/dist/components/proposal/proposal_box/ProposalBox.module.js +11 -0
- package/dist/components/report/report_box/ReportBox.js +102 -0
- package/dist/components/report/report_box/ReportBox.module.js +11 -0
- package/dist/components/section/section_box/SectionBox.js +40 -0
- package/dist/components/section/section_box/SectionBox.module.js +14 -0
- package/dist/components/share/share_box/ShareBox.js +132 -0
- package/dist/components/share/share_box/ShareBox.module.js +10 -0
- package/dist/components/share/share_button/ShareButton.js +73 -0
- package/dist/components/share/share_button/ShareButton.module.js +9 -0
- package/dist/components/share/share_modal/ShareModal.js +28 -0
- package/dist/components/share/share_modal/ShareModal.module.js +3 -0
- package/dist/components/share/share_modal/index.js +2 -0
- package/dist/components/skeleton/box_skeleton/BoxSkeleton.js +63 -0
- package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.js +57 -0
- package/dist/components/skeleton/user_content_skeleton/UserContentSkeleton.module.js +13 -0
- package/dist/components/source/context_source_box/ContextSourceBox.js +45 -0
- package/dist/components/source/context_source_box/ContextSourceBox.module.js +10 -0
- package/dist/components/source/context_source_list/ContextSourceList.js +43 -0
- package/dist/components/source/context_source_list/ContextSourceList.module.js +10 -0
- package/dist/components/source/source_box/SourceBox.js +39 -0
- package/dist/components/source/source_box/SourceBox.module.js +11 -0
- package/dist/components/source/source_list_item/SourceListItem.js +32 -0
- package/dist/components/source/source_list_item/SourceListItem.module.js +6 -0
- package/dist/components/source/source_modal/SourceModal.js +110 -0
- package/dist/components/source/source_modal/SourceModal.module.js +11 -0
- package/dist/components/suggestion/suggestion_banner/SuggestionBanner.js +99 -0
- package/dist/components/suggestion/suggestion_banner/SuggestionBanner.module.js +13 -0
- package/dist/components/suggestion/suggestion_box/SuggestionBox.js +97 -0
- package/dist/components/suggestion/suggestion_box/SuggestionBox.module.js +13 -0
- package/dist/components/suggestion/suggestion_input/SuggestionInput.js +157 -0
- package/dist/components/suggestion/suggestion_input/SuggestionInput.module.js +11 -0
- package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.js +62 -0
- package/dist/components/summary/argument_summary_box/ArgumentSummaryBox.module.js +13 -0
- package/dist/components/summary/keyword_box/KeywordBox.js +38 -0
- package/dist/components/summary/keyword_box/KeywordBox.module.js +11 -0
- package/dist/components/summary/summary/Summary.js +73 -0
- package/dist/components/summary/summary/Summary.module.js +6 -0
- package/dist/components/summary/summary_box/SummaryBox.js +22 -0
- package/dist/components/summary/summary_box/SummaryBox.module.js +10 -0
- package/dist/components/tag/tag/Tag.js +19 -0
- package/dist/components/tag/tag/Tag.module.js +6 -0
- package/dist/components/text/expandable_text/ArrowIcon.js +11 -0
- package/dist/components/text/expandable_text/ExpandableText.js +53 -0
- package/dist/components/text/expandable_text/ExpandableText.module.js +10 -0
- package/dist/components/text/read_more/ReadMore.js +63 -0
- package/dist/components/text/read_more/ReadMore.module.js +11 -0
- package/dist/components/tools/hash_scroll/HashScroll.js +18 -0
- package/dist/components/tools/scroll_to_top/ScrollToTop.js +15 -0
- package/dist/components/translation/translated_content/TranslatedContent.js +7 -0
- package/dist/components/translation/translated_content/useTranslatedContent.js +26 -0
- package/dist/components/translation/translation_button/TranslationButton.js +35 -0
- package/dist/components/translation/translation_button/TranslationButton.module.js +3 -0
- package/dist/components/user/author_box/AuthorBox.js +114 -0
- package/dist/components/user/author_box/AuthorBox.module.js +18 -0
- package/dist/components/user/avatar/Avatar.js +54 -0
- package/dist/components/user/avatar/Avatar.module.js +8 -0
- package/dist/components/user/avatar/DefaultAvatar.js +17 -0
- package/dist/components/user/avatar_selector/AvatarSelector.js +108 -0
- package/dist/components/user/avatar_selector/AvatarSelector.module.js +18 -0
- package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.js +251 -0
- package/dist/components/user/update_user_info_modal/UpdateUserInfoModal.module.js +23 -0
- package/dist/components/user/update_user_info_modal/useUpdateUserInfo.js +26 -0
- package/dist/components/user/user_box/UserBox.js +82 -0
- package/dist/components/user/user_box/UserBox.module.js +13 -0
- package/dist/components/user/user_box_small/UserBoxSmall.js +44 -0
- package/dist/components/user/user_box_small/UserBoxSmall.module.js +6 -0
- package/dist/components/user_content/content_footer/ContentFooter.js +172 -0
- package/dist/components/user_content/content_footer/ContentFooter.module.js +11 -0
- package/dist/components/user_content/content_header/ContentHeader.js +121 -0
- package/dist/components/user_content/content_header/ContentHeader.module.js +16 -0
- package/dist/components/user_content/summary_content_box/SummaryContentBox.js +72 -0
- package/dist/components/user_content/summary_content_box/SummaryContentBox.module.js +10 -0
- package/dist/components/user_content/use_delete_content/useDeleteContent.js +46 -0
- package/dist/components/user_content/use_report_content/ReportModal.js +266 -0
- package/dist/components/user_content/use_report_content/ReportModal.module.js +15 -0
- package/dist/components/user_content/use_report_content/useReportContent.js +24 -0
- package/dist/components/util/lang_emojis/langEmojis.js +57 -0
- package/dist/components/util/location/Location.js +41 -0
- package/dist/components/util/unique_by/uniqueBy.js +7 -0
- package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.js +81 -0
- package/dist/components/vote/suggestion_vote_box/SuggestionVoteBox.module.js +6 -0
- package/dist/components/vote/up_down_vote_box/UpDownVoteBox.js +56 -0
- package/dist/components/vote/up_down_vote_box/UpDownVoteBox.module.js +10 -0
- package/dist/components/vote/use_vote/useVote.js +62 -0
- package/dist/components/vote/vote_box/VoteBox.js +297 -0
- package/dist/components/vote/vote_box/VoteBox.module.js +31 -0
- package/dist/components/vote/vote_button/VoteButton.js +40 -0
- package/dist/components/vote/vote_button/VoteButton.module.js +7 -0
- package/dist/components/vote/vote_provider/VoteProvider.js +40 -0
- package/dist/index.js +146 -0
- package/dist/node_modules/.pnpm/@formatjs_fast-memoize@2.2.7/node_modules/@formatjs/fast-memoize/lib/index.js +51 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/date-time-pattern-generator.js +28 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/error.js +7 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/index.js +26 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/manipulator.js +1 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/parser.js +499 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/regex.generated.js +4 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/time-data.generated.js +1159 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-messageformat-parser@2.11.4/node_modules/@formatjs/icu-messageformat-parser/lib/types.js +44 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/date-time.js +101 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/number.js +182 -0
- package/dist/node_modules/.pnpm/@formatjs_icu-skeleton-parser@1.8.16/node_modules/@formatjs/icu-skeleton-parser/lib/regex.generated.js +4 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/create-intl.js +39 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/dateTime.js +80 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/displayName.js +22 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/error.js +66 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/list.js +39 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/message.js +59 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/number.js +53 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/plural.js +18 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/relativeTime.js +22 -0
- package/dist/node_modules/.pnpm/@formatjs_intl@3.1.8_typescript@5.9.3/node_modules/@formatjs/intl/lib/src/utils.js +115 -0
- package/dist/node_modules/.pnpm/@kurkle_color@0.3.4/node_modules/@kurkle/color/dist/color.esm.js +470 -0
- package/dist/node_modules/.pnpm/@lexical_clipboard@0.38.2/node_modules/@lexical/clipboard/LexicalClipboard.prod.js +163 -0
- package/dist/node_modules/.pnpm/@lexical_dragon@0.38.2/node_modules/@lexical/dragon/LexicalDragon.prod.js +51 -0
- package/dist/node_modules/.pnpm/@lexical_extension@0.38.2/node_modules/@lexical/extension/LexicalExtension.prod.js +796 -0
- package/dist/node_modules/.pnpm/@lexical_headless@0.38.2/node_modules/@lexical/headless/LexicalHeadless.prod.js +21 -0
- package/dist/node_modules/.pnpm/@lexical_history@0.38.2/node_modules/@lexical/history/LexicalHistory.prod.js +132 -0
- package/dist/node_modules/.pnpm/@lexical_html@0.38.2/node_modules/@lexical/html/LexicalHtml.prod.js +88 -0
- package/dist/node_modules/.pnpm/@lexical_list@0.38.2/node_modules/@lexical/list/LexicalList.prod.js +737 -0
- package/dist/node_modules/.pnpm/@lexical_overflow@0.38.2/node_modules/@lexical/overflow/LexicalOverflow.prod.js +37 -0
- 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 +136 -0
- 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 +53 -0
- 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 +20 -0
- 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 +85 -0
- 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 +11 -0
- 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 +20 -0
- 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 +17 -0
- 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 +16 -0
- 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 +20 -0
- 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 +5 -0
- 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 +96 -0
- 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 +23 -0
- package/dist/node_modules/.pnpm/@lexical_rich-text@0.38.2/node_modules/@lexical/rich-text/LexicalRichText.prod.js +418 -0
- package/dist/node_modules/.pnpm/@lexical_selection@0.38.2/node_modules/@lexical/selection/LexicalSelection.prod.js +170 -0
- package/dist/node_modules/.pnpm/@lexical_text@0.38.2/node_modules/@lexical/text/LexicalText.prod.js +33 -0
- package/dist/node_modules/.pnpm/@lexical_utils@0.38.2/node_modules/@lexical/utils/LexicalUtils.prod.js +112 -0
- 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 +50 -0
- package/dist/node_modules/.pnpm/@rooks_use-previous@4.11.2/node_modules/@rooks/use-previous/lib/index.esm.js +10 -0
- 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 +50 -0
- 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 +11 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/adapters.js +41 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/fetch.js +128 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/adapters/xhr.js +59 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/axios.js +30 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CancelToken.js +59 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/CanceledError.js +9 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/cancel/isCancel.js +6 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/Axios.js +131 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/AxiosError.js +34 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/AxiosHeaders.js +171 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/InterceptorManager.js +28 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/buildFullPath.js +9 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/dispatchRequest.js +23 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/mergeConfig.js +67 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/settle.js +8 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/core/transformData.js +12 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/index.js +81 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/defaults/transitional.js +9 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/env/data.js +4 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +32 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/HttpStatusCode.js +77 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/bind.js +8 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/buildURL.js +17 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/combineURLs.js +6 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/composeSignals.js +27 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/cookies.js +26 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/formDataToJSON.js +27 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAbsoluteURL.js +6 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isAxiosError.js +7 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/isURLSameOrigin.js +5 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseHeaders.js +28 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/parseProtocol.js +7 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/progressEventReducer.js +30 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/resolveConfig.js +28 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/speedometer.js +16 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/spread.js +8 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/throttle.js +14 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toFormData.js +67 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/toURLEncodedForm.js +14 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/trackStream.js +51 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/helpers/validator.js +47 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/Blob.js +4 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/FormData.js +4 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/classes/URLSearchParams.js +5 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/browser/index.js +22 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/common/utils.js +15 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/platform/index.js +9 -0
- package/dist/node_modules/.pnpm/axios@1.14.0/node_modules/axios/lib/utils.js +235 -0
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/auto/auto.js +5 -0
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chart.js +6301 -0
- package/dist/node_modules/.pnpm/chart.js@4.5.1/node_modules/chart.js/dist/chunks/helpers.dataset.js +1381 -0
- 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 +354 -0
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +32 -0
- package/dist/node_modules/.pnpm/copy-to-clipboard@3.3.3/node_modules/copy-to-clipboard/index.js +43 -0
- package/dist/node_modules/.pnpm/dompurify@3.3.3/node_modules/dompurify/dist/purify.es.js +549 -0
- package/dist/node_modules/.pnpm/flat@5.0.2/node_modules/flat/index.js +59 -0
- package/dist/node_modules/.pnpm/goober@2.1.18_csstype@3.2.3/node_modules/goober/dist/goober.modern.js +75 -0
- 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 +68 -0
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/core.js +154 -0
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/error.js +36 -0
- package/dist/node_modules/.pnpm/intl-messageformat@10.7.18/node_modules/intl-messageformat/lib/src/formatters.js +107 -0
- package/dist/node_modules/.pnpm/lexical@0.38.2/node_modules/lexical/Lexical.prod.js +5093 -0
- package/dist/node_modules/.pnpm/path-to-regexp@6.3.0/node_modules/path-to-regexp/dist.es2015/index.js +198 -0
- 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 +76 -0
- 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 +160 -0
- 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 +10 -0
- 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 +58 -0
- 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 +494 -0
- 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 +13 -0
- 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 +35 -0
- 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 +39 -0
- 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 +9 -0
- 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 +22 -0
- 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 +45 -0
- 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 +10 -0
- 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 +33 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.development.js +82 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/cjs/react-is.production.min.js +62 -0
- package/dist/node_modules/.pnpm/react-is@16.13.1/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/.pnpm/react-loading-skeleton@3.5.0_react@18.3.1/node_modules/react-loading-skeleton/dist/index.js +49 -0
- package/dist/node_modules/.pnpm/react-modern-drawer@1.4.0_react@18.3.1/node_modules/react-modern-drawer/dist/index.modern.js +84 -0
- 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 +106 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.development.js +453 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/cjs/react-jsx-runtime.production.min.js +27 -0
- package/dist/node_modules/.pnpm/react@18.3.1/node_modules/react/jsx-runtime.js +10 -0
- package/dist/node_modules/.pnpm/toggle-selection@1.0.6/node_modules/toggle-selection/index.js +26 -0
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.js +34 -0
- package/dist/node_modules/.pnpm/use-debounce@10.1.1_react@18.3.1/node_modules/use-debounce/dist/index.module.js +70 -0
- 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 +5 -0
- 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 +11 -0
- 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 +26 -0
- package/dist/node_modules/.pnpm/webfontloader@1.6.28/node_modules/webfontloader/webfontloader.js +482 -0
- package/package.json +13 -7
- package/.changeset/config.json +0 -11
- package/.eslintrc.js +0 -12
- package/.github/dependabot.yml +0 -7
- package/.github/workflows/master.yml +0 -121
- package/.storybook/main.mjs +0 -47
- package/.storybook/preview.js +0 -11
- package/src/components/action/back_link/BackLink.docs.mdx +0 -25
- package/src/components/action/back_link/BackLink.jsx +0 -30
- package/src/components/action/back_link/BackLink.module.scss +0 -34
- package/src/components/action/back_link/BackLink.stories.jsx +0 -28
- package/src/components/action/back_link/BackLink.test.jsx +0 -105
- package/src/components/action/back_link/index.js +0 -1
- package/src/components/action/button/Button.docs.mdx +0 -43
- package/src/components/action/button/Button.examples.jsx +0 -60
- package/src/components/action/button/Button.jsx +0 -88
- package/src/components/action/button/Button.module.scss +0 -133
- package/src/components/action/button/Button.stories.jsx +0 -54
- package/src/components/action/button/Button.test.jsx +0 -54
- package/src/components/action/button/index.js +0 -1
- package/src/components/action/icon_text_link/HomeIcon.dev.jsx +0 -9
- package/src/components/action/icon_text_link/IconTextLink.docs.mdx +0 -37
- package/src/components/action/icon_text_link/IconTextLink.jsx +0 -57
- package/src/components/action/icon_text_link/IconTextLink.module.scss +0 -67
- package/src/components/action/icon_text_link/IconTextLink.stories.jsx +0 -44
- package/src/components/action/icon_text_link/IconTextLink.test.jsx +0 -134
- package/src/components/action/icon_text_link/index.js +0 -1
- package/src/components/action/link/Link.docs.mdx +0 -23
- package/src/components/action/link/Link.jsx +0 -50
- package/src/components/action/link/Link.stories.jsx +0 -43
- package/src/components/action/link/Link.test.jsx +0 -91
- package/src/components/action/link/index.js +0 -1
- package/src/components/ad/ad_unit/AdUnit.docs.mdx +0 -23
- package/src/components/ad/ad_unit/AdUnit.jsx +0 -75
- package/src/components/ad/ad_unit/AdUnit.module.scss +0 -9
- package/src/components/ad/ad_unit/AdUnit.stories.jsx +0 -30
- package/src/components/ad/ad_unit/AdUnit.test.jsx +0 -63
- package/src/components/ad/ad_unit/index.js +0 -1
- package/src/components/ad/use_google_ad_manager/index.js +0 -1
- package/src/components/ad/use_google_ad_manager/useGoogleAdManager.docs.mdx +0 -27
- package/src/components/ad/use_google_ad_manager/useGoogleAdManager.jsx +0 -37
- package/src/components/ad/use_google_ad_manager/useGoogleAdManager.test.jsx +0 -47
- package/src/components/ad/with_ad/WithAd.docs.mdx +0 -30
- package/src/components/ad/with_ad/WithAd.jsx +0 -51
- package/src/components/ad/with_ad/WithAd.test.jsx +0 -104
- package/src/components/ad/with_ad/index.js +0 -1
- package/src/components/argument/argument/Argument.docs.mdx +0 -60
- package/src/components/argument/argument/Argument.jsx +0 -358
- package/src/components/argument/argument/Argument.module.scss +0 -233
- package/src/components/argument/argument/Argument.stories.jsx +0 -232
- package/src/components/argument/argument/Argument.test.jsx +0 -303
- package/src/components/argument/argument/ReplyFooter.jsx +0 -47
- package/src/components/argument/argument/ReplyFooter.module.scss +0 -77
- package/src/components/argument/argument/index.js +0 -2
- package/src/components/argument/argument/useRichContent.jsx +0 -18
- package/src/components/argument/top_arguments/TopArguments.docs.mdx +0 -22
- package/src/components/argument/top_arguments/TopArguments.jsx +0 -90
- package/src/components/argument/top_arguments/TopArguments.module.scss +0 -37
- package/src/components/argument/top_arguments/TopArguments.stories.jsx +0 -156
- package/src/components/argument/top_arguments/TopArguments.test.jsx +0 -67
- package/src/components/argument/top_arguments/index.js +0 -1
- package/src/components/auth/auth_initializer/AuthInitializer.alltest.js +0 -21
- package/src/components/auth/auth_initializer/AuthInitializer.docs.mdx +0 -34
- package/src/components/auth/auth_initializer/AuthInitializer.jsx +0 -61
- package/src/components/auth/auth_initializer/index.js +0 -1
- package/src/components/auth/auth_modal/AuthModal.alltest.js +0 -30
- package/src/components/auth/auth_modal/AuthModal.docs.mdx +0 -26
- package/src/components/auth/auth_modal/AuthModal.jsx +0 -99
- package/src/components/auth/auth_modal/AuthModal.module.scss +0 -9
- package/src/components/auth/auth_modal/AuthModal.stories.jsx +0 -90
- package/src/components/auth/auth_modal/index.js +0 -1
- package/src/components/auth/facebook_login_button/FacebookIcon.jsx +0 -7
- package/src/components/auth/facebook_login_button/FacebookLoginButton.docs.mdx +0 -34
- package/src/components/auth/facebook_login_button/FacebookLoginButton.jsx +0 -25
- package/src/components/auth/facebook_login_button/FacebookLoginButton.module.scss +0 -32
- package/src/components/auth/facebook_login_button/FacebookLoginButton.stories.jsx +0 -35
- package/src/components/auth/facebook_login_button/FacebookLoginButton.test.jsx +0 -68
- package/src/components/auth/facebook_login_button/index.js +0 -1
- package/src/components/auth/google_login_button/GoogleIcon.jsx +0 -10
- package/src/components/auth/google_login_button/GoogleLoginButton.docs.mdx +0 -43
- package/src/components/auth/google_login_button/GoogleLoginButton.jsx +0 -27
- package/src/components/auth/google_login_button/GoogleLoginButton.module.scss +0 -28
- package/src/components/auth/google_login_button/GoogleLoginButton.stories.jsx +0 -35
- package/src/components/auth/google_login_button/GoogleLoginButton.test.jsx +0 -69
- package/src/components/auth/google_login_button/index.js +0 -1
- package/src/components/auth/login_form/LoginForm.docs.mdx +0 -24
- package/src/components/auth/login_form/LoginForm.jsx +0 -65
- package/src/components/auth/login_form/LoginForm.module.scss +0 -36
- package/src/components/auth/login_form/LoginForm.stories.jsx +0 -42
- package/src/components/auth/login_form/LoginForm.test.jsx +0 -94
- package/src/components/auth/login_form/index.js +0 -1
- package/src/components/auth/oauth2_button/OAuth2Button.docs.mdx +0 -32
- package/src/components/auth/oauth2_button/OAuth2Button.jsx +0 -79
- package/src/components/auth/oauth2_button/OAuth2Button.module.scss +0 -10
- package/src/components/auth/oauth2_button/OAuth2Button.stories.jsx +0 -48
- package/src/components/auth/oauth2_button/OAuth2Button.test.jsx +0 -306
- package/src/components/auth/oauth2_button/index.js +0 -1
- package/src/components/auth/providers/AuthProvider.docs.mdx +0 -35
- package/src/components/auth/providers/AuthProvider.js +0 -23
- package/src/components/auth/providers/AuthProviderFactory.js +0 -20
- package/src/components/auth/providers/FormAuth.js +0 -36
- package/src/components/auth/providers/JWTAuth.js +0 -35
- package/src/components/auth/providers/OAuth2ServerAuth.js +0 -47
- package/src/components/auth/providers/PasswordAuth.js +0 -31
- package/src/components/auth/providers/index.js +0 -1
- package/src/components/auth/providers/tests/AuthProviderFactory.test.jsx +0 -53
- package/src/components/auth/providers/tests/FormAuth.test.jsx +0 -45
- package/src/components/auth/providers/tests/JWTAuth.test.jsx +0 -57
- package/src/components/auth/providers/tests/OAuth2ServerAuth.test.jsx +0 -78
- package/src/components/auth/providers/tests/PasswordAuth.test.jsx +0 -43
- package/src/components/auth/signup_form/SignupForm.docs.mdx +0 -29
- package/src/components/auth/signup_form/SignupForm.jsx +0 -125
- package/src/components/auth/signup_form/SignupForm.module.scss +0 -21
- package/src/components/auth/signup_form/SignupForm.stories.jsx +0 -40
- package/src/components/auth/signup_form/SignupForm.test.jsx +0 -144
- package/src/components/auth/signup_form/index.js +0 -1
- package/src/components/auth/social_auth_form/SocialAuthForm.docs.mdx +0 -33
- package/src/components/auth/social_auth_form/SocialAuthForm.jsx +0 -170
- package/src/components/auth/social_auth_form/SocialAuthForm.module.scss +0 -141
- package/src/components/auth/social_auth_form/SocialAuthForm.stories.jsx +0 -82
- package/src/components/auth/social_auth_form/SocialAuthForm.test.jsx +0 -201
- package/src/components/auth/social_auth_form/index.js +0 -1
- package/src/components/auth/sso_form/SSOForm.docs.mdx +0 -39
- package/src/components/auth/sso_form/SSOForm.jsx +0 -243
- package/src/components/auth/sso_form/SSOForm.module.scss +0 -99
- package/src/components/auth/sso_form/SSOForm.stories.jsx +0 -117
- package/src/components/auth/sso_form/SSOForm.test.jsx +0 -83
- package/src/components/auth/sso_form/index.js +0 -1
- package/src/components/auth/use_auth/AuthContext.js +0 -3
- package/src/components/auth/use_auth/AuthProvider.jsx +0 -21
- package/src/components/auth/use_auth/AuthProvider.test.jsx +0 -26
- package/src/components/auth/use_auth/AuthStorage.js +0 -33
- package/src/components/auth/use_auth/AuthStorage.test.jsx +0 -165
- package/src/components/auth/use_auth/authTokenHandler.js +0 -67
- package/src/components/auth/use_auth/authTokenHandler.test.jsx +0 -117
- package/src/components/auth/use_auth/index.js +0 -7
- package/src/components/auth/use_auth/useAuth.docs.mdx +0 -34
- package/src/components/auth/use_auth/useAuth.js +0 -8
- package/src/components/auth/use_auth/useAuthActions.js +0 -77
- package/src/components/auth/use_auth/useAuthInterceptor.jsx +0 -42
- package/src/components/chart/line_chart/LineChart.docs.mdx +0 -34
- package/src/components/chart/line_chart/LineChart.jsx +0 -107
- package/src/components/chart/line_chart/LineChart.module.scss +0 -54
- package/src/components/chart/line_chart/LineChart.stories.jsx +0 -49
- package/src/components/chart/line_chart/LineChart.test.jsx +0 -12
- package/src/components/chart/line_chart/index.js +0 -1
- package/src/components/chart/pie_chart/PieChart.docs.mdx +0 -26
- package/src/components/chart/pie_chart/PieChart.jsx +0 -102
- package/src/components/chart/pie_chart/PieChart.module.scss +0 -17
- package/src/components/chart/pie_chart/PieChart.stories.jsx +0 -36
- package/src/components/chart/pie_chart/PieChart.test.jsx +0 -12
- package/src/components/chart/pie_chart/index.js +0 -1
- package/src/components/consultation/consultation_box/ConsultationBox.docs.mdx +0 -21
- package/src/components/consultation/consultation_box/ConsultationBox.jsx +0 -101
- package/src/components/consultation/consultation_box/ConsultationBox.module.scss +0 -105
- package/src/components/consultation/consultation_box/ConsultationBox.stories.jsx +0 -96
- package/src/components/consultation/consultation_box/ConsultationBox.test.jsx +0 -58
- package/src/components/consultation/consultation_box/index.js +0 -1
- package/src/components/data/axios_client/httpClient.docs.mdx +0 -4
- package/src/components/data/axios_client/httpClient.js +0 -11
- package/src/components/data/axios_client/index.js +0 -1
- package/src/components/data/config_provider/ConfigProvider.docs.mdx +0 -26
- package/src/components/data/config_provider/ConfigProvider.jsx +0 -21
- package/src/components/data/config_provider/ConfigProvider.test.jsx +0 -39
- package/src/components/data/config_provider/index.js +0 -4
- package/src/components/data/config_provider/useConfig.jsx +0 -8
- package/src/components/data/config_provider/useRoutes.jsx +0 -8
- package/src/components/data/config_provider/withConfig.jsx +0 -8
- package/src/components/data/data_provider/DataProvider.docs.mdx +0 -52
- package/src/components/data/data_provider/DataProvider.jsx +0 -165
- package/src/components/data/data_provider/DataProvider.test.jsx +0 -419
- package/src/components/data/data_provider/DataProviderContext.jsx +0 -3
- package/src/components/data/data_provider/index.js +0 -4
- package/src/components/data/data_provider/useData.jsx +0 -9
- package/src/components/data/data_provider/useDataProvider.jsx +0 -8
- package/src/components/data/data_provider/useDataProvider.test.jsx +0 -38
- package/src/components/debate/debate_box/DebateBox.docs.mdx +0 -23
- package/src/components/debate/debate_box/DebateBox.jsx +0 -136
- package/src/components/debate/debate_box/DebateBox.module.scss +0 -209
- package/src/components/debate/debate_box/DebateBox.stories.jsx +0 -157
- package/src/components/debate/debate_box/DebateBox.test.jsx +0 -117
- package/src/components/debate/debate_box/index.js +0 -1
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.docs.mdx +0 -24
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.jsx +0 -37
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.module.scss +0 -35
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.stories.jsx +0 -44
- package/src/components/dialog/announcement_dialog/AnnouncementDialog.test.jsx +0 -35
- package/src/components/dialog/announcement_dialog/HomeIcon.dev.jsx +0 -9
- package/src/components/dialog/announcement_dialog/index.js +0 -1
- package/src/components/dialog/confirm_modal/ConfirmModal.docs.mdx +0 -25
- package/src/components/dialog/confirm_modal/ConfirmModal.jsx +0 -53
- package/src/components/dialog/confirm_modal/ConfirmModal.module.scss +0 -30
- package/src/components/dialog/confirm_modal/ConfirmModal.stories.jsx +0 -36
- package/src/components/dialog/confirm_modal/ConfirmModal.test.jsx +0 -176
- package/src/components/dialog/confirm_modal/index.js +0 -1
- package/src/components/dialog/countdown/Countdown.docs.mdx +0 -23
- package/src/components/dialog/countdown/Countdown.jsx +0 -36
- package/src/components/dialog/countdown/Countdown.stories.jsx +0 -33
- package/src/components/dialog/countdown/Countdown.test.jsx +0 -51
- package/src/components/dialog/countdown/index.js +0 -1
- package/src/components/dialog/dialog_box/DialogBox.docs.mdx +0 -25
- package/src/components/dialog/dialog_box/DialogBox.jsx +0 -53
- package/src/components/dialog/dialog_box/DialogBox.module.scss +0 -145
- package/src/components/dialog/dialog_box/DialogBox.stories.jsx +0 -45
- package/src/components/dialog/dialog_box/DialogBox.test.jsx +0 -40
- package/src/components/dialog/dialog_box/index.js +0 -1
- package/src/components/dialog/drawer/Drawer.docs.mdx +0 -31
- package/src/components/dialog/drawer/Drawer.jsx +0 -159
- package/src/components/dialog/drawer/Drawer.module.scss +0 -136
- package/src/components/dialog/drawer/Drawer.stories.jsx +0 -194
- package/src/components/dialog/drawer/Drawer.test.jsx +0 -15
- package/src/components/dialog/drawer/index.js +0 -1
- package/src/components/dialog/dropdown/Dropdown.docs.mdx +0 -28
- package/src/components/dialog/dropdown/Dropdown.jsx +0 -59
- package/src/components/dialog/dropdown/Dropdown.module.scss +0 -41
- package/src/components/dialog/dropdown/Dropdown.stories.jsx +0 -42
- package/src/components/dialog/dropdown/Dropdown.test.jsx +0 -126
- package/src/components/dialog/dropdown/index.js +0 -1
- package/src/components/dialog/modal/Modal.docs.mdx +0 -39
- package/src/components/dialog/modal/Modal.jsx +0 -101
- package/src/components/dialog/modal/Modal.module.scss +0 -99
- package/src/components/dialog/modal/Modal.stories.jsx +0 -53
- package/src/components/dialog/modal/Modal.test.jsx +0 -115
- package/src/components/dialog/modal/ModalProvider.jsx +0 -26
- package/src/components/dialog/modal/ModalProvider.test.jsx +0 -39
- package/src/components/dialog/modal/index.js +0 -3
- package/src/components/dialog/modal/useModal.jsx +0 -6
- package/src/components/dialog/toast/Toast.docs.mdx +0 -21
- package/src/components/dialog/toast/Toast.jsx +0 -44
- package/src/components/dialog/toast/Toast.module.scss +0 -66
- package/src/components/dialog/toast/Toast.stories.jsx +0 -42
- package/src/components/dialog/toast/Toast.test.jsx +0 -21
- package/src/components/dialog/toast/index.js +0 -1
- package/src/components/dialog/toast_provider/ToastContext.js +0 -3
- package/src/components/dialog/toast_provider/ToastProvider.docs.mdx +0 -36
- package/src/components/dialog/toast_provider/ToastProvider.jsx +0 -35
- package/src/components/dialog/toast_provider/ToastProvider.module.scss +0 -14
- package/src/components/dialog/toast_provider/ToastProvider.test.jsx +0 -64
- package/src/components/dialog/toast_provider/index.js +0 -2
- package/src/components/dialog/toast_provider/useToast.jsx +0 -8
- package/src/components/dialog/tooltip/Tooltip.docs.mdx +0 -20
- package/src/components/dialog/tooltip/Tooltip.jsx +0 -53
- package/src/components/dialog/tooltip/Tooltip.module.scss +0 -92
- package/src/components/dialog/tooltip/Tooltip.stories.jsx +0 -76
- package/src/components/dialog/tooltip/Tooltip.test.jsx +0 -67
- package/src/components/dialog/tooltip/index.js +0 -3
- package/src/components/embed/embed_header/EmbedHeader.docs.mdx +0 -25
- package/src/components/embed/embed_header/EmbedHeader.jsx +0 -61
- package/src/components/embed/embed_header/EmbedHeader.module.scss +0 -148
- package/src/components/embed/embed_header/EmbedHeader.stories.jsx +0 -54
- package/src/components/embed/embed_header/EmbedHeader.test.jsx +0 -70
- package/src/components/embed/embed_header/index.js +0 -1
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.docs.mdx +0 -26
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.jsx +0 -27
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.module.scss +0 -8
- package/src/components/error/standard_error_boundary/StandardErrorBoundary.test.jsx +0 -56
- package/src/components/error/standard_error_boundary/index.js +0 -1
- package/src/components/follow/follow_button/FollowButton.docs.mdx +0 -41
- package/src/components/follow/follow_button/FollowButton.jsx +0 -40
- package/src/components/follow/follow_button/FollowButton.module.scss +0 -17
- package/src/components/follow/follow_button/FollowButton.stories.jsx +0 -58
- package/src/components/follow/follow_button/FollowButton.test.jsx +0 -45
- package/src/components/follow/follow_button/index.js +0 -1
- package/src/components/follow/use_follow/index.js +0 -1
- package/src/components/follow/use_follow/useFollow.docs.mdx +0 -24
- package/src/components/follow/use_follow/useFollow.jsx +0 -60
- package/src/components/follow/use_follow/useFollow.test.jsx +0 -94
- package/src/components/forms/form/extract-form-data.js +0 -14
- package/src/components/forms/form/form-context.js +0 -3
- package/src/components/forms/form/form.docs.mdx +0 -232
- package/src/components/forms/form/form.jsx +0 -26
- package/src/components/forms/form/form.stories.jsx +0 -119
- package/src/components/forms/form/form.test.jsx +0 -3
- package/src/components/forms/form/index.js +0 -6
- package/src/components/forms/form/use-form-context.js +0 -43
- package/src/components/forms/form/use-form.js +0 -4
- package/src/components/forms/use_form_validation/index.js +0 -1
- package/src/components/forms/use_form_validation/useFormValidation.docs.mdx +0 -40
- package/src/components/forms/use_form_validation/useFormValidation.jsx +0 -114
- package/src/components/forms/use_form_validation/useFormValidation.test.jsx +0 -91
- package/src/components/gamification/badge_box/BadgeBox.docs.mdx +0 -25
- package/src/components/gamification/badge_box/BadgeBox.jsx +0 -74
- package/src/components/gamification/badge_box/BadgeBox.module.scss +0 -103
- package/src/components/gamification/badge_box/BadgeBox.stories.jsx +0 -64
- package/src/components/gamification/badge_box/BadgeBox.test.jsx +0 -113
- package/src/components/gamification/badge_box/index.js +0 -1
- package/src/components/gamification/point_box/PointBox.docs.mdx +0 -19
- package/src/components/gamification/point_box/PointBox.jsx +0 -28
- package/src/components/gamification/point_box/PointBox.module.scss +0 -38
- package/src/components/gamification/point_box/PointBox.stories.jsx +0 -32
- package/src/components/gamification/point_box/PointBox.test.jsx +0 -21
- package/src/components/gamification/point_box/index.js +0 -1
- package/src/components/hooks/use_auth_required/index.js +0 -1
- package/src/components/hooks/use_auth_required/useAuthRequired.docs.mdx +0 -22
- package/src/components/hooks/use_auth_required/useAuthRequired.jsx +0 -28
- package/src/components/hooks/use_auth_required/useAuthRequired.test.jsx +0 -85
- package/src/components/hooks/use_css_theme/index.js +0 -1
- package/src/components/hooks/use_css_theme/useCssTheme.docs.mdx +0 -34
- package/src/components/hooks/use_css_theme/useCssTheme.js +0 -27
- package/src/components/hooks/use_css_theme/useCssTheme.stories.jsx +0 -41
- package/src/components/hooks/use_css_theme/useCssTheme.test.jsx +0 -31
- package/src/components/hooks/use_font_loader/index.js +0 -1
- package/src/components/hooks/use_font_loader/useFontLoader.docs.mdx +0 -24
- package/src/components/hooks/use_font_loader/useFontLoader.js +0 -16
- package/src/components/hooks/use_font_loader/useFontLoader.test.jsx +0 -64
- package/src/components/hooks/use_matomo/index.js +0 -1
- package/src/components/hooks/use_matomo/useMatomo.docs.mdx +0 -28
- package/src/components/hooks/use_matomo/useMatomo.js +0 -17
- package/src/components/hooks/use_matomo/useMatomo.test.jsx +0 -24
- package/src/components/hooks/use_relative_time/index.js +0 -1
- package/src/components/hooks/use_relative_time/useRelativeTime.docs.mdx +0 -35
- package/src/components/hooks/use_relative_time/useRelativeTime.jsx +0 -40
- package/src/components/hooks/use_relative_time/useRelativeTime.test.jsx +0 -82
- package/src/components/hooks/use_responsive/ResponsiveContext.jsx +0 -3
- package/src/components/hooks/use_responsive/ResponsiveProvider.jsx +0 -52
- package/src/components/hooks/use_responsive/index.js +0 -2
- package/src/components/hooks/use_responsive/useResponsive.docs.mdx +0 -46
- package/src/components/hooks/use_responsive/useResponsive.jsx +0 -8
- package/src/components/hooks/use_responsive/useResponsive.stories.jsx +0 -49
- package/src/components/hooks/use_responsive/useResponsive.test.jsx +0 -54
- package/src/components/icons/bild_icons/Alarm.jsx +0 -7
- package/src/components/icons/bild_icons/Announcement.jsx +0 -16
- package/src/components/icons/bild_icons/Arrow.jsx +0 -7
- package/src/components/icons/bild_icons/BildIcons.docs.mdx +0 -21
- package/src/components/icons/bild_icons/BildIcons.stories.jsx +0 -123
- package/src/components/icons/bild_icons/BildIcons.test.jsx +0 -15
- package/src/components/icons/bild_icons/Blockquote.jsx +0 -7
- package/src/components/icons/bild_icons/Bold.jsx +0 -7
- package/src/components/icons/bild_icons/Camera.jsx +0 -8
- package/src/components/icons/bild_icons/Chat.jsx +0 -16
- package/src/components/icons/bild_icons/Check.jsx +0 -7
- package/src/components/icons/bild_icons/CheckCircle.jsx +0 -17
- package/src/components/icons/bild_icons/Checkbox.jsx +0 -8
- package/src/components/icons/bild_icons/Clap.jsx +0 -9
- package/src/components/icons/bild_icons/Clock.jsx +0 -7
- package/src/components/icons/bild_icons/Close.jsx +0 -7
- package/src/components/icons/bild_icons/Code.jsx +0 -18
- package/src/components/icons/bild_icons/Community.jsx +0 -7
- package/src/components/icons/bild_icons/Crown.jsx +0 -7
- package/src/components/icons/bild_icons/Document.jsx +0 -7
- package/src/components/icons/bild_icons/Downvote.jsx +0 -7
- package/src/components/icons/bild_icons/Ellipsis.jsx +0 -8
- package/src/components/icons/bild_icons/ExpertBadge.jsx +0 -11
- package/src/components/icons/bild_icons/Facebook.jsx +0 -7
- package/src/components/icons/bild_icons/Flag.jsx +0 -7
- package/src/components/icons/bild_icons/Home.jsx +0 -7
- package/src/components/icons/bild_icons/Italic.jsx +0 -7
- package/src/components/icons/bild_icons/LightArrow.jsx +0 -7
- package/src/components/icons/bild_icons/Link.jsx +0 -8
- package/src/components/icons/bild_icons/Login.jsx +0 -11
- package/src/components/icons/bild_icons/Logora.jsx +0 -24
- package/src/components/icons/bild_icons/Mail.jsx +0 -7
- package/src/components/icons/bild_icons/MinusCircle.jsx +0 -16
- package/src/components/icons/bild_icons/MobileClose.jsx +0 -8
- package/src/components/icons/bild_icons/MobileMenu.jsx +0 -10
- package/src/components/icons/bild_icons/Next.jsx +0 -10
- package/src/components/icons/bild_icons/OpenBlank.jsx +0 -15
- package/src/components/icons/bild_icons/OrderedList.jsx +0 -7
- package/src/components/icons/bild_icons/PauseCircle.jsx +0 -10
- package/src/components/icons/bild_icons/Point.jsx +0 -8
- package/src/components/icons/bild_icons/Question.jsx +0 -8
- package/src/components/icons/bild_icons/Refresh.jsx +0 -7
- package/src/components/icons/bild_icons/Reply.jsx +0 -7
- package/src/components/icons/bild_icons/Search.jsx +0 -7
- package/src/components/icons/bild_icons/Send.jsx +0 -7
- package/src/components/icons/bild_icons/Share.jsx +0 -14
- package/src/components/icons/bild_icons/SmallArrow.jsx +0 -11
- package/src/components/icons/bild_icons/Source.jsx +0 -7
- package/src/components/icons/bild_icons/Suggestion.jsx +0 -7
- package/src/components/icons/bild_icons/Twitter.jsx +0 -10
- package/src/components/icons/bild_icons/Underline.jsx +0 -7
- package/src/components/icons/bild_icons/Upvote.jsx +0 -7
- package/src/components/icons/bild_icons/User.jsx +0 -7
- package/src/components/icons/bild_icons/Versus.jsx +0 -11
- package/src/components/icons/bild_icons/Votebox.jsx +0 -7
- package/src/components/icons/bild_icons/index.js +0 -52
- package/src/components/icons/hero_icons/Alarm.jsx +0 -7
- package/src/components/icons/hero_icons/Announcement.jsx +0 -7
- package/src/components/icons/hero_icons/Arrow.jsx +0 -7
- package/src/components/icons/hero_icons/Blockquote.jsx +0 -14
- package/src/components/icons/hero_icons/Bold.jsx +0 -7
- package/src/components/icons/hero_icons/Camera.jsx +0 -8
- package/src/components/icons/hero_icons/Chat.jsx +0 -7
- package/src/components/icons/hero_icons/Check.jsx +0 -8
- package/src/components/icons/hero_icons/CheckCircle.jsx +0 -17
- package/src/components/icons/hero_icons/Checkbox.jsx +0 -7
- package/src/components/icons/hero_icons/Clap.jsx +0 -7
- package/src/components/icons/hero_icons/Clock.jsx +0 -7
- package/src/components/icons/hero_icons/Close.jsx +0 -8
- package/src/components/icons/hero_icons/Code.jsx +0 -7
- package/src/components/icons/hero_icons/Community.jsx +0 -7
- package/src/components/icons/hero_icons/Crown.jsx +0 -7
- package/src/components/icons/hero_icons/Downvote.jsx +0 -8
- package/src/components/icons/hero_icons/Ellipsis.jsx +0 -7
- package/src/components/icons/hero_icons/ExpertBadge.jsx +0 -7
- package/src/components/icons/hero_icons/Facebook.jsx +0 -7
- package/src/components/icons/hero_icons/Flag.jsx +0 -7
- package/src/components/icons/hero_icons/HeroIcons.docs.mdx +0 -19
- package/src/components/icons/hero_icons/HeroIcons.stories.jsx +0 -121
- package/src/components/icons/hero_icons/HeroIcons.test.jsx +0 -15
- package/src/components/icons/hero_icons/Home.jsx +0 -7
- package/src/components/icons/hero_icons/Italic.jsx +0 -7
- package/src/components/icons/hero_icons/LightArrow.jsx +0 -7
- package/src/components/icons/hero_icons/Link.jsx +0 -7
- package/src/components/icons/hero_icons/Login.jsx +0 -7
- package/src/components/icons/hero_icons/Logora.jsx +0 -24
- package/src/components/icons/hero_icons/Mail.jsx +0 -7
- package/src/components/icons/hero_icons/MinusCircle.jsx +0 -16
- package/src/components/icons/hero_icons/MobileClose.jsx +0 -7
- package/src/components/icons/hero_icons/MobileMenu.jsx +0 -7
- package/src/components/icons/hero_icons/Next.jsx +0 -8
- package/src/components/icons/hero_icons/OpenBlank.jsx +0 -7
- package/src/components/icons/hero_icons/OrderedList.jsx +0 -19
- package/src/components/icons/hero_icons/PauseCircle.jsx +0 -10
- package/src/components/icons/hero_icons/Point.jsx +0 -8
- package/src/components/icons/hero_icons/Question.jsx +0 -7
- package/src/components/icons/hero_icons/Refresh.jsx +0 -7
- package/src/components/icons/hero_icons/Reply.jsx +0 -7
- package/src/components/icons/hero_icons/Search.jsx +0 -7
- package/src/components/icons/hero_icons/Send.jsx +0 -7
- package/src/components/icons/hero_icons/Share.jsx +0 -8
- package/src/components/icons/hero_icons/SmallArrow.jsx +0 -7
- package/src/components/icons/hero_icons/Source.jsx +0 -8
- package/src/components/icons/hero_icons/Suggestion.jsx +0 -9
- package/src/components/icons/hero_icons/Twitter.jsx +0 -10
- package/src/components/icons/hero_icons/Underline.jsx +0 -14
- package/src/components/icons/hero_icons/Upvote.jsx +0 -7
- package/src/components/icons/hero_icons/User.jsx +0 -7
- package/src/components/icons/hero_icons/Versus.jsx +0 -7
- package/src/components/icons/hero_icons/Votebox.jsx +0 -7
- package/src/components/icons/hero_icons/index.js +0 -51
- package/src/components/icons/icon/Icon.docs.mdx +0 -20
- package/src/components/icons/icon/Icon.jsx +0 -32
- package/src/components/icons/icon/Icon.test.jsx +0 -33
- package/src/components/icons/icon/index.js +0 -1
- package/src/components/icons/icon_provider/IconProvider.docs.mdx +0 -28
- package/src/components/icons/icon_provider/IconProvider.jsx +0 -19
- package/src/components/icons/icon_provider/IconProvider.test.jsx +0 -24
- package/src/components/icons/icon_provider/index.js +0 -1
- package/src/components/icons/krone_icons/Alarm.jsx +0 -27
- package/src/components/icons/krone_icons/Announcement.jsx +0 -16
- package/src/components/icons/krone_icons/Arrow.jsx +0 -7
- package/src/components/icons/krone_icons/Blockquote.jsx +0 -7
- package/src/components/icons/krone_icons/Bold.jsx +0 -7
- package/src/components/icons/krone_icons/Camera.jsx +0 -8
- package/src/components/icons/krone_icons/Chat.jsx +0 -29
- package/src/components/icons/krone_icons/Check.jsx +0 -7
- package/src/components/icons/krone_icons/CheckBox.jsx +0 -7
- package/src/components/icons/krone_icons/CheckCircle.jsx +0 -17
- package/src/components/icons/krone_icons/Clap.jsx +0 -29
- package/src/components/icons/krone_icons/Clock.jsx +0 -7
- package/src/components/icons/krone_icons/Close.jsx +0 -7
- package/src/components/icons/krone_icons/Code.jsx +0 -18
- package/src/components/icons/krone_icons/Community.jsx +0 -7
- package/src/components/icons/krone_icons/Crown.jsx +0 -7
- package/src/components/icons/krone_icons/Document.jsx +0 -7
- package/src/components/icons/krone_icons/Downvote.jsx +0 -7
- package/src/components/icons/krone_icons/Ellipsis.jsx +0 -18
- package/src/components/icons/krone_icons/ExpertBadge.jsx +0 -29
- package/src/components/icons/krone_icons/Facebook.jsx +0 -7
- package/src/components/icons/krone_icons/Flag.jsx +0 -7
- package/src/components/icons/krone_icons/Home.jsx +0 -29
- package/src/components/icons/krone_icons/Italic.jsx +0 -7
- package/src/components/icons/krone_icons/KroneIcons.docs.mdx +0 -21
- package/src/components/icons/krone_icons/KroneIcons.stories.jsx +0 -124
- package/src/components/icons/krone_icons/KroneIcons.test.jsx +0 -15
- package/src/components/icons/krone_icons/LightArrow.jsx +0 -7
- package/src/components/icons/krone_icons/Link.jsx +0 -8
- package/src/components/icons/krone_icons/Login.jsx +0 -11
- package/src/components/icons/krone_icons/Logora.jsx +0 -24
- package/src/components/icons/krone_icons/Mail.jsx +0 -7
- package/src/components/icons/krone_icons/MinusCircle.jsx +0 -16
- package/src/components/icons/krone_icons/MobileClose.jsx +0 -8
- package/src/components/icons/krone_icons/MobileMenu.jsx +0 -10
- package/src/components/icons/krone_icons/Next.jsx +0 -10
- package/src/components/icons/krone_icons/OpenBlank.jsx +0 -15
- package/src/components/icons/krone_icons/OrderedList.jsx +0 -7
- package/src/components/icons/krone_icons/PauseCircle.jsx +0 -10
- package/src/components/icons/krone_icons/Point.jsx +0 -8
- package/src/components/icons/krone_icons/Question.jsx +0 -29
- package/src/components/icons/krone_icons/Refresh.jsx +0 -7
- package/src/components/icons/krone_icons/Reply.jsx +0 -18
- package/src/components/icons/krone_icons/Search.jsx +0 -7
- package/src/components/icons/krone_icons/Send.jsx +0 -19
- package/src/components/icons/krone_icons/Share.jsx +0 -16
- package/src/components/icons/krone_icons/SmallArrow.jsx +0 -11
- package/src/components/icons/krone_icons/Source.jsx +0 -7
- package/src/components/icons/krone_icons/Suggestion.jsx +0 -29
- package/src/components/icons/krone_icons/Twitter.jsx +0 -10
- package/src/components/icons/krone_icons/Underline.jsx +0 -7
- package/src/components/icons/krone_icons/Upvote.jsx +0 -29
- package/src/components/icons/krone_icons/User.jsx +0 -30
- package/src/components/icons/krone_icons/Versus.jsx +0 -9
- package/src/components/icons/krone_icons/Votebox.jsx +0 -29
- package/src/components/icons/krone_icons/index.js +0 -52
- package/src/components/icons/regular_icons/Alarm.jsx +0 -7
- package/src/components/icons/regular_icons/Announcement.jsx +0 -16
- package/src/components/icons/regular_icons/Arrow.jsx +0 -7
- package/src/components/icons/regular_icons/Blockquote.jsx +0 -7
- package/src/components/icons/regular_icons/Bold.jsx +0 -7
- package/src/components/icons/regular_icons/Camera.jsx +0 -8
- package/src/components/icons/regular_icons/Chat.jsx +0 -10
- package/src/components/icons/regular_icons/Check.jsx +0 -7
- package/src/components/icons/regular_icons/CheckCircle.jsx +0 -17
- package/src/components/icons/regular_icons/Checkbox.jsx +0 -8
- package/src/components/icons/regular_icons/Clap.jsx +0 -7
- package/src/components/icons/regular_icons/Clock.jsx +0 -7
- package/src/components/icons/regular_icons/Close.jsx +0 -7
- package/src/components/icons/regular_icons/Code.jsx +0 -18
- package/src/components/icons/regular_icons/Community.jsx +0 -7
- package/src/components/icons/regular_icons/Crown.jsx +0 -7
- package/src/components/icons/regular_icons/Document.jsx +0 -7
- package/src/components/icons/regular_icons/Downvote.jsx +0 -7
- package/src/components/icons/regular_icons/Ellipsis.jsx +0 -8
- package/src/components/icons/regular_icons/ExpertBadge.jsx +0 -11
- package/src/components/icons/regular_icons/Facebook.jsx +0 -7
- package/src/components/icons/regular_icons/Flag.jsx +0 -7
- package/src/components/icons/regular_icons/Home.jsx +0 -7
- package/src/components/icons/regular_icons/Italic.jsx +0 -7
- package/src/components/icons/regular_icons/LightArrow.jsx +0 -7
- package/src/components/icons/regular_icons/Link.jsx +0 -8
- package/src/components/icons/regular_icons/Login.jsx +0 -11
- package/src/components/icons/regular_icons/Logora.jsx +0 -24
- package/src/components/icons/regular_icons/Mail.jsx +0 -7
- package/src/components/icons/regular_icons/MinusCircle.jsx +0 -16
- package/src/components/icons/regular_icons/MobileClose.jsx +0 -8
- package/src/components/icons/regular_icons/MobileMenu.jsx +0 -10
- package/src/components/icons/regular_icons/Next.jsx +0 -10
- package/src/components/icons/regular_icons/OpenBlank.jsx +0 -15
- package/src/components/icons/regular_icons/OrderedList.jsx +0 -7
- package/src/components/icons/regular_icons/PauseCircle.jsx +0 -10
- package/src/components/icons/regular_icons/Point.jsx +0 -8
- package/src/components/icons/regular_icons/Question.jsx +0 -8
- package/src/components/icons/regular_icons/Refresh.jsx +0 -7
- package/src/components/icons/regular_icons/RegularIcons.docs.mdx +0 -21
- package/src/components/icons/regular_icons/RegularIcons.stories.jsx +0 -123
- package/src/components/icons/regular_icons/RegularIcons.test.jsx +0 -15
- package/src/components/icons/regular_icons/Reply.jsx +0 -7
- package/src/components/icons/regular_icons/Search.jsx +0 -7
- package/src/components/icons/regular_icons/Send.jsx +0 -7
- package/src/components/icons/regular_icons/Share.jsx +0 -14
- package/src/components/icons/regular_icons/SmallArrow.jsx +0 -11
- package/src/components/icons/regular_icons/Source.jsx +0 -7
- package/src/components/icons/regular_icons/Suggestion.jsx +0 -7
- package/src/components/icons/regular_icons/Twitter.jsx +0 -10
- package/src/components/icons/regular_icons/Underline.jsx +0 -7
- package/src/components/icons/regular_icons/Upvote.jsx +0 -7
- package/src/components/icons/regular_icons/User.jsx +0 -7
- package/src/components/icons/regular_icons/Versus.jsx +0 -9
- package/src/components/icons/regular_icons/Votebox.jsx +0 -7
- package/src/components/icons/regular_icons/index.js +0 -52
- package/src/components/icons/spiegel_icons/Alarm.jsx +0 -7
- package/src/components/icons/spiegel_icons/Announcement.jsx +0 -16
- package/src/components/icons/spiegel_icons/Arrow.jsx +0 -7
- package/src/components/icons/spiegel_icons/Blockquote.jsx +0 -14
- package/src/components/icons/spiegel_icons/Bold.jsx +0 -7
- package/src/components/icons/spiegel_icons/Camera.jsx +0 -8
- package/src/components/icons/spiegel_icons/Chat.jsx +0 -7
- package/src/components/icons/spiegel_icons/Check.jsx +0 -11
- package/src/components/icons/spiegel_icons/CheckCircle.jsx +0 -8
- package/src/components/icons/spiegel_icons/Checkbox.jsx +0 -14
- package/src/components/icons/spiegel_icons/Clap.jsx +0 -15
- package/src/components/icons/spiegel_icons/Clock.jsx +0 -15
- package/src/components/icons/spiegel_icons/Close.jsx +0 -7
- package/src/components/icons/spiegel_icons/Code.jsx +0 -18
- package/src/components/icons/spiegel_icons/Community.jsx +0 -7
- package/src/components/icons/spiegel_icons/Crown.jsx +0 -7
- package/src/components/icons/spiegel_icons/Downvote.jsx +0 -7
- package/src/components/icons/spiegel_icons/Ellipsis.jsx +0 -8
- package/src/components/icons/spiegel_icons/ExpertBadge.jsx +0 -16
- package/src/components/icons/spiegel_icons/Facebook.jsx +0 -7
- package/src/components/icons/spiegel_icons/Flag.jsx +0 -8
- package/src/components/icons/spiegel_icons/Home.jsx +0 -7
- package/src/components/icons/spiegel_icons/Italic.jsx +0 -7
- package/src/components/icons/spiegel_icons/LightArrow.jsx +0 -7
- package/src/components/icons/spiegel_icons/Link.jsx +0 -17
- package/src/components/icons/spiegel_icons/Login.jsx +0 -7
- package/src/components/icons/spiegel_icons/Logora.jsx +0 -24
- package/src/components/icons/spiegel_icons/Mail.jsx +0 -7
- package/src/components/icons/spiegel_icons/MinusCircle.jsx +0 -8
- package/src/components/icons/spiegel_icons/MobileClose.jsx +0 -8
- package/src/components/icons/spiegel_icons/MobileMenu.jsx +0 -10
- package/src/components/icons/spiegel_icons/Next.jsx +0 -10
- package/src/components/icons/spiegel_icons/OpenBlank.jsx +0 -15
- package/src/components/icons/spiegel_icons/OrderedList.jsx +0 -20
- package/src/components/icons/spiegel_icons/PauseCircle.jsx +0 -8
- package/src/components/icons/spiegel_icons/Point.jsx +0 -8
- package/src/components/icons/spiegel_icons/Question.jsx +0 -17
- package/src/components/icons/spiegel_icons/Refresh.jsx +0 -7
- package/src/components/icons/spiegel_icons/Reply.jsx +0 -7
- package/src/components/icons/spiegel_icons/Search.jsx +0 -7
- package/src/components/icons/spiegel_icons/Send.jsx +0 -7
- package/src/components/icons/spiegel_icons/Share.jsx +0 -14
- package/src/components/icons/spiegel_icons/SmallArrow.jsx +0 -7
- package/src/components/icons/spiegel_icons/Source.jsx +0 -7
- package/src/components/icons/spiegel_icons/SpiegelIcons.docs.mdx +0 -21
- package/src/components/icons/spiegel_icons/SpiegelIcons.stories.jsx +0 -121
- package/src/components/icons/spiegel_icons/SpiegelIcons.test.jsx +0 -15
- package/src/components/icons/spiegel_icons/Suggestion.jsx +0 -7
- package/src/components/icons/spiegel_icons/Twitter.jsx +0 -10
- package/src/components/icons/spiegel_icons/Underline.jsx +0 -14
- package/src/components/icons/spiegel_icons/Upvote.jsx +0 -7
- package/src/components/icons/spiegel_icons/User.jsx +0 -7
- package/src/components/icons/spiegel_icons/Versus.jsx +0 -11
- package/src/components/icons/spiegel_icons/Votebox.jsx +0 -14
- package/src/components/icons/spiegel_icons/index.js +0 -51
- package/src/components/information/information_box/InformationBox.docs.mdx +0 -28
- package/src/components/information/information_box/InformationBox.jsx +0 -54
- package/src/components/information/information_box/InformationBox.module.scss +0 -92
- package/src/components/information/information_box/InformationBox.stories.jsx +0 -50
- package/src/components/information/information_box/InformationBox.test.jsx +0 -94
- package/src/components/information/information_box/index.js +0 -1
- package/src/components/input/argument_input/ArgumentInput.docs.mdx +0 -29
- package/src/components/input/argument_input/ArgumentInput.jsx +0 -420
- package/src/components/input/argument_input/ArgumentInput.module.scss +0 -166
- package/src/components/input/argument_input/ArgumentInput.stories.jsx +0 -181
- package/src/components/input/argument_input/ArgumentInput.test.jsx +0 -482
- package/src/components/input/argument_input/index.js +0 -1
- package/src/components/input/checkbox/hidden/hidden-checkbox.docs.mdx +0 -4
- package/src/components/input/checkbox/hidden/hidden-checkbox.jsx +0 -8
- package/src/components/input/checkbox/hidden/hidden-checkbox.module.scss +0 -28
- package/src/components/input/checkbox/hidden/hidden-checkbox.stories.jsx +0 -73
- package/src/components/input/checkbox/hidden/index.js +0 -1
- package/src/components/input/checkbox/indicator/checkbox-indicator.docs.mdx +0 -9
- package/src/components/input/checkbox/indicator/checkbox-indicator.jsx +0 -17
- package/src/components/input/checkbox/indicator/checkbox-indicator.module.scss +0 -26
- package/src/components/input/checkbox/indicator/checkbox-indicator.stories.jsx +0 -51
- package/src/components/input/checkbox/indicator/index.js +0 -1
- package/src/components/input/checkbox/label/checkbox-label.docs.mdx +0 -39
- package/src/components/input/checkbox/label/checkbox-label.jsx +0 -40
- package/src/components/input/checkbox/label/checkbox.stories.jsx +0 -57
- package/src/components/input/checkbox/label/index.js +0 -1
- package/src/components/input/input_provider/InputProvider.docs.mdx +0 -38
- package/src/components/input/input_provider/InputProvider.jsx +0 -16
- package/src/components/input/input_provider/InputProvider.test.jsx +0 -102
- package/src/components/input/input_provider/index.js +0 -2
- package/src/components/input/input_provider/useInput.jsx +0 -8
- package/src/components/input/search_input/SearchInput.docs.mdx +0 -25
- package/src/components/input/search_input/SearchInput.jsx +0 -71
- package/src/components/input/search_input/SearchInput.module.scss +0 -18
- package/src/components/input/search_input/SearchInput.stories.jsx +0 -45
- package/src/components/input/search_input/SearchInput.test.jsx +0 -95
- package/src/components/input/search_input/index.js +0 -1
- package/src/components/input/select/Select.docs.mdx +0 -37
- package/src/components/input/select/Select.jsx +0 -102
- package/src/components/input/select/Select.module.scss +0 -72
- package/src/components/input/select/Select.stories.jsx +0 -75
- package/src/components/input/select/Select.test.jsx +0 -136
- package/src/components/input/select/index.js +0 -1
- package/src/components/input/text_editor/EditorTheme.js +0 -71
- package/src/components/input/text_editor/TextEditor.docs.mdx +0 -31
- package/src/components/input/text_editor/TextEditor.jsx +0 -205
- package/src/components/input/text_editor/TextEditor.module.scss +0 -140
- package/src/components/input/text_editor/TextEditor.stories.jsx +0 -227
- package/src/components/input/text_editor/TextEditor.test.jsx +0 -654
- package/src/components/input/text_editor/index.js +0 -2
- package/src/components/input/text_editor/lexicalToHtml.js +0 -23
- package/src/components/input/text_editor/plugins/AutoSavePlugin.jsx +0 -37
- package/src/components/input/text_editor/plugins/FocusPlugin.jsx +0 -19
- package/src/components/input/text_editor/plugins/MaxLengthPlugin.jsx +0 -44
- package/src/components/input/text_editor/plugins/ResetPlugin.jsx +0 -35
- package/src/components/input/text_editor/plugins/SetContentPlugin.jsx +0 -24
- package/src/components/input/text_editor/plugins/SetRichContentPlugin.jsx +0 -20
- package/src/components/input/text_editor/plugins/ToolbarPlugin.jsx +0 -233
- package/src/components/input/text_editor/plugins/ToolbarPlugin.module.scss +0 -77
- package/src/components/input/text_input/TextInput.docs.mdx +0 -73
- package/src/components/input/text_input/TextInput.jsx +0 -46
- package/src/components/input/text_input/TextInput.module.scss +0 -146
- package/src/components/input/text_input/TextInput.stories.jsx +0 -101
- package/src/components/input/text_input/TextInput.test.jsx +0 -64
- package/src/components/input/text_input/color-accent.js +0 -16
- package/src/components/input/text_input/index.js +0 -3
- package/src/components/input/text_input/message.jsx +0 -12
- package/src/components/input/toggle/Toggle.docs.mdx +0 -23
- package/src/components/input/toggle/Toggle.jsx +0 -25
- package/src/components/input/toggle/Toggle.module.scss +0 -73
- package/src/components/input/toggle/Toggle.stories.jsx +0 -42
- package/src/components/input/toggle/Toggle.test.jsx +0 -39
- package/src/components/input/toggle/index.js +0 -1
- package/src/components/input/toggle_position/TogglePosition.docs.mdx +0 -20
- package/src/components/input/toggle_position/TogglePosition.jsx +0 -55
- package/src/components/input/toggle_position/TogglePosition.module.scss +0 -46
- package/src/components/input/toggle_position/TogglePosition.stories.jsx +0 -96
- package/src/components/input/toggle_position/TogglePosition.test.jsx +0 -66
- package/src/components/input/toggle_position/index.js +0 -1
- package/src/components/intl/intl_provider/IntlContext.jsx +0 -3
- package/src/components/intl/intl_provider/IntlProvider.docs.mdx +0 -37
- package/src/components/intl/intl_provider/IntlProvider.jsx +0 -92
- package/src/components/intl/intl_provider/IntlProvider.test.jsx +0 -153
- package/src/components/intl/intl_provider/index.js +0 -3
- package/src/components/intl/intl_provider/locales/en.json +0 -4
- package/src/components/intl/intl_provider/locales/es.json +0 -4
- package/src/components/intl/intl_provider/locales/fr.json +0 -6
- package/src/components/intl/intl_provider/locales/index.js +0 -11
- package/src/components/intl/intl_provider/useLocale.jsx +0 -8
- package/src/components/list/list_provider/ListProvider.docs.mdx +0 -51
- package/src/components/list/list_provider/ListProvider.jsx +0 -32
- package/src/components/list/list_provider/ListProvider.stories.jsx +0 -92
- package/src/components/list/list_provider/ListProvider.test.jsx +0 -137
- package/src/components/list/list_provider/index.js +0 -2
- package/src/components/list/list_provider/useList.jsx +0 -8
- package/src/components/list/paginated_list/PaginatedList.docs.mdx +0 -68
- package/src/components/list/paginated_list/PaginatedList.jsx +0 -397
- package/src/components/list/paginated_list/PaginatedList.module.scss +0 -88
- package/src/components/list/paginated_list/PaginatedList.stories.jsx +0 -301
- package/src/components/list/paginated_list/PaginatedList.test.jsx +0 -1335
- package/src/components/list/paginated_list/VotePaginatedList.jsx +0 -26
- package/src/components/list/paginated_list/VotePaginatedList.test.jsx +0 -1518
- package/src/components/list/paginated_list/action_bar/ActionBar.jsx +0 -132
- package/src/components/list/paginated_list/action_bar/ActionBar.module.scss +0 -81
- package/src/components/list/paginated_list/index.js +0 -3
- package/src/components/list/pagination/Pagination.docs.mdx +0 -32
- package/src/components/list/pagination/Pagination.jsx +0 -58
- package/src/components/list/pagination/Pagination.module.scss +0 -10
- package/src/components/list/pagination/Pagination.stories.jsx +0 -44
- package/src/components/list/pagination/Pagination.test.jsx +0 -80
- package/src/components/list/pagination/index.js +0 -1
- package/src/components/modal/side_modal/SideModal.docs.mdx +0 -31
- package/src/components/modal/side_modal/SideModal.jsx +0 -85
- package/src/components/modal/side_modal/SideModal.module.scss +0 -83
- package/src/components/modal/side_modal/SideModal.stories.jsx +0 -112
- package/src/components/modal/side_modal/SideModal.test.jsx +0 -36
- package/src/components/modal/side_modal/index.js +0 -1
- package/src/components/navbar/navbar_button/NavbarButton.docs.mdx +0 -37
- package/src/components/navbar/navbar_button/NavbarButton.jsx +0 -43
- package/src/components/navbar/navbar_button/NavbarButton.module.scss +0 -45
- package/src/components/navbar/navbar_button/NavbarButton.stories.jsx +0 -93
- package/src/components/navbar/navbar_button/NavbarButton.test.jsx +0 -67
- package/src/components/navbar/navbar_button/index.js +0 -1
- package/src/components/navbar/navbar_modal/NavbarModal.docs.mdx +0 -24
- package/src/components/navbar/navbar_modal/NavbarModal.jsx +0 -175
- package/src/components/navbar/navbar_modal/NavbarModal.module.scss +0 -132
- package/src/components/navbar/navbar_modal/NavbarModal.stories.jsx +0 -96
- package/src/components/navbar/navbar_modal/NavbarModal.test.jsx +0 -155
- package/src/components/navbar/navbar_modal/index.js +0 -1
- package/src/components/notification/notification_item/NotificationItem.docs.mdx +0 -35
- package/src/components/notification/notification_item/NotificationItem.jsx +0 -71
- package/src/components/notification/notification_item/NotificationItem.module.scss +0 -56
- package/src/components/notification/notification_item/NotificationItem.stories.jsx +0 -121
- package/src/components/notification/notification_item/NotificationItem.test.jsx +0 -97
- package/src/components/notification/notification_item/index.js +0 -1
- package/src/components/notification/notification_menu/NotificationMenu.docs.mdx +0 -25
- package/src/components/notification/notification_menu/NotificationMenu.jsx +0 -61
- package/src/components/notification/notification_menu/NotificationMenu.module.scss +0 -49
- package/src/components/notification/notification_menu/NotificationMenu.stories.jsx +0 -94
- package/src/components/notification/notification_menu/NotificationMenu.test.jsx +0 -131
- package/src/components/notification/notification_menu/index.js +0 -1
- package/src/components/progress/loader/Loader.docs.mdx +0 -13
- package/src/components/progress/loader/Loader.jsx +0 -9
- package/src/components/progress/loader/Loader.module.scss +0 -26
- package/src/components/progress/loader/Loader.stories.jsx +0 -11
- package/src/components/progress/loader/Loader.test.jsx +0 -11
- package/src/components/progress/loader/index.js +0 -3
- package/src/components/progress/progress_bar/ProgressBar.docs.mdx +0 -29
- package/src/components/progress/progress_bar/ProgressBar.jsx +0 -75
- package/src/components/progress/progress_bar/ProgressBar.module.scss +0 -87
- package/src/components/progress/progress_bar/ProgressBar.stories.jsx +0 -43
- package/src/components/progress/progress_bar/ProgressBar.test.jsx +0 -126
- package/src/components/progress/progress_bar/index.js +0 -1
- package/src/components/proposal/proposal_box/ProposalBox.docs.mdx +0 -39
- package/src/components/proposal/proposal_box/ProposalBox.jsx +0 -108
- package/src/components/proposal/proposal_box/ProposalBox.module.scss +0 -80
- package/src/components/proposal/proposal_box/ProposalBox.stories.jsx +0 -161
- package/src/components/proposal/proposal_box/ProposalBox.test.jsx +0 -137
- package/src/components/proposal/proposal_box/index.js +0 -1
- package/src/components/report/report_box/ReportBox.docs.mdx +0 -35
- package/src/components/report/report_box/ReportBox.jsx +0 -120
- package/src/components/report/report_box/ReportBox.module.scss +0 -54
- package/src/components/report/report_box/ReportBox.stories.jsx +0 -247
- package/src/components/report/report_box/ReportBox.test.jsx +0 -232
- package/src/components/report/report_box/index.js +0 -1
- package/src/components/section/section_box/SectionBox.docs.mdx +0 -19
- package/src/components/section/section_box/SectionBox.jsx +0 -32
- package/src/components/section/section_box/SectionBox.module.scss +0 -57
- package/src/components/section/section_box/SectionBox.stories.jsx +0 -39
- package/src/components/section/section_box/SectionBox.test.jsx +0 -44
- package/src/components/section/section_box/index.js +0 -1
- package/src/components/share/share_box/ShareBox.docs.mdx +0 -27
- package/src/components/share/share_box/ShareBox.jsx +0 -71
- package/src/components/share/share_box/ShareBox.module.scss +0 -38
- package/src/components/share/share_box/ShareBox.stories.jsx +0 -42
- package/src/components/share/share_box/ShareBox.test.jsx +0 -142
- package/src/components/share/share_box/index.js +0 -1
- package/src/components/share/share_button/ShareButton.docs.mdx +0 -26
- package/src/components/share/share_button/ShareButton.jsx +0 -102
- package/src/components/share/share_button/ShareButton.module.scss +0 -68
- package/src/components/share/share_button/ShareButton.stories.jsx +0 -51
- package/src/components/share/share_button/ShareButton.test.jsx +0 -117
- package/src/components/share/share_button/index.js +0 -1
- package/src/components/share/share_modal/ShareModal.docs.mdx +0 -29
- package/src/components/share/share_modal/ShareModal.jsx +0 -49
- package/src/components/share/share_modal/ShareModal.module.scss +0 -21
- package/src/components/share/share_modal/ShareModal.stories.jsx +0 -48
- package/src/components/share/share_modal/ShareModal.test.jsx +0 -70
- package/src/components/share/share_modal/index.js +0 -1
- package/src/components/skeleton/box_skeleton/BoxSkeleton.docs.mdx +0 -14
- package/src/components/skeleton/box_skeleton/BoxSkeleton.jsx +0 -38
- package/src/components/skeleton/box_skeleton/BoxSkeleton.stories.jsx +0 -46
- package/src/components/skeleton/box_skeleton/BoxSkeleton.test.jsx +0 -39
- package/src/components/skeleton/box_skeleton/index.js +0 -1
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.docs.mdx +0 -15
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.jsx +0 -56
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.module.scss +0 -78
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.stories.jsx +0 -44
- package/src/components/skeleton/user_content_skeleton/UserContentSkeleton.test.jsx +0 -55
- package/src/components/skeleton/user_content_skeleton/index.js +0 -1
- package/src/components/source/context_source_box/ContextSourceBox.docs.mdx +0 -27
- package/src/components/source/context_source_box/ContextSourceBox.jsx +0 -38
- package/src/components/source/context_source_box/ContextSourceBox.module.scss +0 -50
- package/src/components/source/context_source_box/ContextSourceBox.stories.jsx +0 -36
- package/src/components/source/context_source_box/ContextSourceBox.test.jsx +0 -46
- package/src/components/source/context_source_box/index.js +0 -1
- package/src/components/source/context_source_list/ContextSourceList.docs.mdx +0 -37
- package/src/components/source/context_source_list/ContextSourceList.jsx +0 -42
- package/src/components/source/context_source_list/ContextSourceList.module.scss +0 -38
- package/src/components/source/context_source_list/ContextSourceList.stories.jsx +0 -39
- package/src/components/source/context_source_list/ContextSourceList.test.jsx +0 -47
- package/src/components/source/context_source_list/index.js +0 -1
- package/src/components/source/source_box/SourceBox.docs.mdx +0 -23
- package/src/components/source/source_box/SourceBox.jsx +0 -43
- package/src/components/source/source_box/SourceBox.module.scss +0 -43
- package/src/components/source/source_box/SourceBox.stories.jsx +0 -26
- package/src/components/source/source_box/SourceBox.test.jsx +0 -30
- package/src/components/source/source_box/index.js +0 -1
- package/src/components/source/source_list_item/SourceListItem.docs.mdx +0 -23
- package/src/components/source/source_list_item/SourceListItem.jsx +0 -28
- package/src/components/source/source_list_item/SourceListItem.module.scss +0 -33
- package/src/components/source/source_list_item/SourceListItem.stories.jsx +0 -40
- package/src/components/source/source_list_item/SourceListItem.test.jsx +0 -41
- package/src/components/source/source_list_item/index.js +0 -1
- package/src/components/source/source_modal/SourceModal.docs.mdx +0 -29
- package/src/components/source/source_modal/SourceModal.jsx +0 -157
- package/src/components/source/source_modal/SourceModal.module.scss +0 -45
- package/src/components/source/source_modal/SourceModal.stories.jsx +0 -82
- package/src/components/source/source_modal/SourceModal.test.jsx +0 -180
- package/src/components/source/source_modal/index.js +0 -1
- package/src/components/styles/display/_display.scss +0 -127
- package/src/components/styles/display/display.docs.mdx +0 -8
- package/src/components/styles/display/index.scss +0 -1
- package/src/components/styles/flex/_flex.scss +0 -55
- package/src/components/styles/flex/flex.docs.mdx +0 -8
- package/src/components/styles/flex/index.scss +0 -1
- package/src/components/styles/spacing/_spacing.scss +0 -107
- package/src/components/styles/spacing/index.scss +0 -1
- package/src/components/styles/spacing/spacing.docs.mdx +0 -8
- package/src/components/styles/tabs/_tabs.scss +0 -159
- package/src/components/styles/tabs/index.scss +0 -1
- package/src/components/styles/tabs/tabs.docs.mdx +0 -8
- package/src/components/styles/theme/_theme.scss +0 -51
- package/src/components/styles/theme/index.scss +0 -1
- package/src/components/styles/theme/theme.docs.mdx +0 -89
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.docs.mdx +0 -35
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.jsx +0 -86
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.module.scss +0 -93
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.stories.jsx +0 -128
- package/src/components/suggestion/suggestion_banner/SuggestionBanner.test.jsx +0 -237
- package/src/components/suggestion/suggestion_banner/index.js +0 -1
- package/src/components/suggestion/suggestion_box/SuggestionBox.docs.mdx +0 -39
- package/src/components/suggestion/suggestion_box/SuggestionBox.jsx +0 -112
- package/src/components/suggestion/suggestion_box/SuggestionBox.module.scss +0 -55
- package/src/components/suggestion/suggestion_box/SuggestionBox.stories.jsx +0 -147
- package/src/components/suggestion/suggestion_box/SuggestionBox.test.jsx +0 -184
- package/src/components/suggestion/suggestion_box/index.js +0 -1
- package/src/components/suggestion/suggestion_input/SuggestionInput.docs.mdx +0 -19
- package/src/components/suggestion/suggestion_input/SuggestionInput.jsx +0 -212
- package/src/components/suggestion/suggestion_input/SuggestionInput.module.scss +0 -50
- package/src/components/suggestion/suggestion_input/SuggestionInput.stories.jsx +0 -87
- package/src/components/suggestion/suggestion_input/SuggestionInput.test.jsx +0 -77
- package/src/components/suggestion/suggestion_input/index.js +0 -1
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.docs.mdx +0 -19
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.jsx +0 -40
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.module.scss +0 -67
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.stories.jsx +0 -57
- package/src/components/summary/argument_summary_box/ArgumentSummaryBox.test.jsx +0 -18
- package/src/components/summary/argument_summary_box/index.js +0 -1
- package/src/components/summary/keyword_box/KeywordBox.docs.mdx +0 -21
- package/src/components/summary/keyword_box/KeywordBox.jsx +0 -43
- package/src/components/summary/keyword_box/KeywordBox.module.scss +0 -54
- package/src/components/summary/keyword_box/KeywordBox.stories.jsx +0 -49
- package/src/components/summary/keyword_box/KeywordBox.test.jsx +0 -47
- package/src/components/summary/keyword_box/index.js +0 -1
- package/src/components/summary/summary/Summary.docs.mdx +0 -23
- package/src/components/summary/summary/Summary.jsx +0 -93
- package/src/components/summary/summary/Summary.module.scss +0 -26
- package/src/components/summary/summary/Summary.stories.jsx +0 -95
- package/src/components/summary/summary/Summary.test.jsx +0 -116
- package/src/components/summary/summary/index.js +0 -1
- package/src/components/summary/summary_box/SummaryBox.docs.mdx +0 -19
- package/src/components/summary/summary_box/SummaryBox.jsx +0 -39
- package/src/components/summary/summary_box/SummaryBox.module.scss +0 -56
- package/src/components/summary/summary_box/SummaryBox.stories.jsx +0 -83
- package/src/components/summary/summary_box/SummaryBox.test.jsx +0 -47
- package/src/components/summary/summary_box/SummaryBoxComposition.module.scss +0 -3
- package/src/components/summary/summary_box/index.js +0 -1
- package/src/components/tag/tag/Tag.docs.mdx +0 -19
- package/src/components/tag/tag/Tag.jsx +0 -35
- package/src/components/tag/tag/Tag.module.scss +0 -34
- package/src/components/tag/tag/Tag.stories.jsx +0 -70
- package/src/components/tag/tag/Tag.test.jsx +0 -29
- package/src/components/tag/tag/index.js +0 -1
- package/src/components/text/expandable_text/ArrowIcon.jsx +0 -7
- package/src/components/text/expandable_text/ExpandableText.docs.mdx +0 -42
- package/src/components/text/expandable_text/ExpandableText.jsx +0 -81
- package/src/components/text/expandable_text/ExpandableText.module.scss +0 -76
- package/src/components/text/expandable_text/ExpandableText.stories.jsx +0 -63
- package/src/components/text/expandable_text/ExpandableText.test.jsx +0 -23
- package/src/components/text/expandable_text/index.js +0 -1
- package/src/components/text/read_more/ReadMore.docs.mdx +0 -23
- package/src/components/text/read_more/ReadMore.jsx +0 -104
- package/src/components/text/read_more/ReadMore.module.scss +0 -51
- package/src/components/text/read_more/ReadMore.stories.jsx +0 -141
- package/src/components/text/read_more/ReadMore.test.jsx +0 -87
- package/src/components/text/read_more/index.js +0 -1
- package/src/components/tools/hash_scroll/HashScroll.docs.mdx +0 -27
- package/src/components/tools/hash_scroll/HashScroll.jsx +0 -36
- package/src/components/tools/hash_scroll/HashScroll.test.jsx +0 -66
- package/src/components/tools/hash_scroll/index.js +0 -1
- package/src/components/tools/scroll_to_top/ScrollToTop.docs.mdx +0 -28
- package/src/components/tools/scroll_to_top/ScrollToTop.jsx +0 -22
- package/src/components/tools/scroll_to_top/ScrollToTop.stories.jsx +0 -40
- package/src/components/tools/scroll_to_top/ScrollToTop.test.jsx +0 -36
- package/src/components/tools/scroll_to_top/index.js +0 -1
- package/src/components/translation/translated_content/TranslatedContent.jsx +0 -24
- package/src/components/translation/translated_content/TranslatedContent.test.jsx +0 -30
- package/src/components/translation/translated_content/index.js +0 -3
- package/src/components/translation/translated_content/useTranslatedContent.docs.mdx +0 -80
- package/src/components/translation/translated_content/useTranslatedContent.jsx +0 -57
- package/src/components/translation/translated_content/useTranslatedContent.test.jsx +0 -118
- package/src/components/translation/translation_button/TranslationButton.docs.mdx +0 -18
- package/src/components/translation/translation_button/TranslationButton.jsx +0 -46
- package/src/components/translation/translation_button/TranslationButton.module.scss +0 -10
- package/src/components/translation/translation_button/TranslationButton.stories.jsx +0 -30
- package/src/components/translation/translation_button/TranslationButton.test.jsx +0 -35
- package/src/components/translation/translation_button/index.js +0 -1
- package/src/components/user/author_box/AuthorBox.docs.mdx +0 -35
- package/src/components/user/author_box/AuthorBox.jsx +0 -128
- package/src/components/user/author_box/AuthorBox.module.scss +0 -110
- package/src/components/user/author_box/AuthorBox.stories.jsx +0 -193
- package/src/components/user/author_box/AuthorBox.test.jsx +0 -171
- package/src/components/user/author_box/index.js +0 -1
- package/src/components/user/avatar/Avatar.docs.mdx +0 -31
- package/src/components/user/avatar/Avatar.jsx +0 -63
- package/src/components/user/avatar/Avatar.module.scss +0 -30
- package/src/components/user/avatar/Avatar.stories.jsx +0 -79
- package/src/components/user/avatar/Avatar.test.jsx +0 -114
- package/src/components/user/avatar/DefaultAvatar.jsx +0 -13
- package/src/components/user/avatar/index.js +0 -1
- package/src/components/user/avatar_selector/AvatarSelector.docs.mdx +0 -25
- package/src/components/user/avatar_selector/AvatarSelector.jsx +0 -65
- package/src/components/user/avatar_selector/AvatarSelector.module.scss +0 -105
- package/src/components/user/avatar_selector/AvatarSelector.stories.jsx +0 -46
- package/src/components/user/avatar_selector/AvatarSelector.test.jsx +0 -98
- package/src/components/user/avatar_selector/index.js +0 -1
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.docs.mdx +0 -22
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.jsx +0 -254
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.module.scss +0 -176
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.stories.jsx +0 -113
- package/src/components/user/update_user_info_modal/UpdateUserInfoModal.test.jsx +0 -213
- package/src/components/user/update_user_info_modal/index.js +0 -2
- package/src/components/user/update_user_info_modal/useUpdateUserInfo.jsx +0 -40
- package/src/components/user/user_box/UserBox.docs.mdx +0 -21
- package/src/components/user/user_box/UserBox.jsx +0 -59
- package/src/components/user/user_box/UserBox.module.scss +0 -86
- package/src/components/user/user_box/UserBox.stories.jsx +0 -82
- package/src/components/user/user_box/UserBox.test.jsx +0 -95
- package/src/components/user/user_box/index.js +0 -1
- package/src/components/user/user_box_small/UserBoxSmall.docs.mdx +0 -20
- package/src/components/user/user_box_small/UserBoxSmall.jsx +0 -36
- package/src/components/user/user_box_small/UserBoxSmall.module.scss +0 -21
- package/src/components/user/user_box_small/UserBoxSmall.stories.jsx +0 -38
- package/src/components/user/user_box_small/UserBoxSmall.test.jsx +0 -49
- package/src/components/user/user_box_small/index.js +0 -1
- package/src/components/user_content/content_footer/ContentFooter.docs.mdx +0 -36
- package/src/components/user_content/content_footer/ContentFooter.jsx +0 -234
- package/src/components/user_content/content_footer/ContentFooter.module.scss +0 -79
- package/src/components/user_content/content_footer/ContentFooter.stories.jsx +0 -438
- package/src/components/user_content/content_footer/ContentFooter.test.jsx +0 -246
- package/src/components/user_content/content_footer/index.js +0 -1
- package/src/components/user_content/content_header/ContentHeader.docs.mdx +0 -27
- package/src/components/user_content/content_header/ContentHeader.jsx +0 -131
- package/src/components/user_content/content_header/ContentHeader.module.scss +0 -111
- package/src/components/user_content/content_header/ContentHeader.stories.jsx +0 -221
- package/src/components/user_content/content_header/ContentHeader.test.jsx +0 -98
- package/src/components/user_content/content_header/index.js +0 -1
- package/src/components/user_content/summary_content_box/SummaryContentBox.docs.mdx +0 -25
- package/src/components/user_content/summary_content_box/SummaryContentBox.jsx +0 -89
- package/src/components/user_content/summary_content_box/SummaryContentBox.module.scss +0 -65
- package/src/components/user_content/summary_content_box/SummaryContentBox.stories.jsx +0 -130
- package/src/components/user_content/summary_content_box/SummaryContentBox.test.jsx +0 -169
- package/src/components/user_content/summary_content_box/index.js +0 -1
- package/src/components/user_content/use_delete_content/index.js +0 -1
- package/src/components/user_content/use_delete_content/useDeleteContent.docs.mdx +0 -34
- package/src/components/user_content/use_delete_content/useDeleteContent.jsx +0 -55
- package/src/components/user_content/use_delete_content/useDeleteContent.test.jsx +0 -78
- package/src/components/user_content/use_report_content/ReportModal.docs.mdx +0 -54
- package/src/components/user_content/use_report_content/ReportModal.jsx +0 -187
- package/src/components/user_content/use_report_content/ReportModal.module.scss +0 -121
- package/src/components/user_content/use_report_content/ReportModal.stories.jsx +0 -61
- package/src/components/user_content/use_report_content/ReportModal.test.jsx +0 -51
- package/src/components/user_content/use_report_content/index.js +0 -2
- package/src/components/user_content/use_report_content/useReportContent.docs.mdx +0 -24
- package/src/components/user_content/use_report_content/useReportContent.jsx +0 -32
- package/src/components/user_content/use_report_content/useReportContent.test.jsx +0 -138
- package/src/components/util/lang_emojis/index.js +0 -1
- package/src/components/util/lang_emojis/langEmojis.docs.mdx +0 -10
- package/src/components/util/lang_emojis/langEmojis.js +0 -72
- package/src/components/util/lang_emojis/langEmojis.test.jsx +0 -63
- package/src/components/util/location/Location.docs.mdx +0 -18
- package/src/components/util/location/Location.js +0 -84
- package/src/components/util/location/Location.test.jsx +0 -24
- package/src/components/util/location/index.js +0 -1
- package/src/components/util/unique_by/index.js +0 -1
- package/src/components/util/unique_by/uniqueBy.docs.mdx +0 -24
- package/src/components/util/unique_by/uniqueBy.js +0 -9
- package/src/components/util/unique_by/uniqueBy.test.jsx +0 -29
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.docs.mdx +0 -24
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.jsx +0 -87
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.module.scss +0 -17
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.stories.jsx +0 -97
- package/src/components/vote/suggestion_vote_box/SuggestionVoteBox.test.jsx +0 -182
- package/src/components/vote/suggestion_vote_box/index.js +0 -1
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.docs.mdx +0 -24
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.jsx +0 -64
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.module.scss +0 -35
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.stories.jsx +0 -97
- package/src/components/vote/up_down_vote_box/UpDownVoteBox.test.jsx +0 -173
- package/src/components/vote/up_down_vote_box/index.js +0 -1
- package/src/components/vote/use_vote/index.js +0 -1
- package/src/components/vote/use_vote/useVote.docs.mdx +0 -42
- package/src/components/vote/use_vote/useVote.jsx +0 -165
- package/src/components/vote/use_vote/useVote.test.jsx +0 -294
- package/src/components/vote/vote_box/VoteBox.docs.mdx +0 -45
- package/src/components/vote/vote_box/VoteBox.jsx +0 -420
- package/src/components/vote/vote_box/VoteBox.module.scss +0 -254
- package/src/components/vote/vote_box/VoteBox.stories.jsx +0 -319
- package/src/components/vote/vote_box/VoteBox.test.jsx +0 -256
- package/src/components/vote/vote_box/index.js +0 -1
- package/src/components/vote/vote_button/VoteButton.docs.mdx +0 -24
- package/src/components/vote/vote_button/VoteButton.jsx +0 -59
- package/src/components/vote/vote_button/VoteButton.module.scss +0 -35
- package/src/components/vote/vote_button/VoteButton.stories.jsx +0 -97
- package/src/components/vote/vote_button/VoteButton.test.jsx +0 -167
- package/src/components/vote/vote_button/index.js +0 -1
- package/src/components/vote/vote_provider/VoteProvider.docs.mdx +0 -68
- package/src/components/vote/vote_provider/VoteProvider.jsx +0 -63
- package/src/components/vote/vote_provider/VoteProvider.stories.jsx +0 -99
- package/src/components/vote/vote_provider/VoteProvider.test.jsx +0 -137
- package/src/components/vote/vote_provider/index.js +0 -2
- package/src/index.js +0 -127
- package/vitest.config.mjs +0 -52
- package/vitest.setup.js +0 -4
|
@@ -1,654 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { render, screen, waitFor, act } from '@testing-library/react';
|
|
3
|
-
import userEvent from '@testing-library/user-event';
|
|
4
|
-
import { DefaultTextEditor, TextEditorWithSource } from './TextEditor.stories';
|
|
5
|
-
import { TextEditor } from './TextEditor';
|
|
6
|
-
import { ModalProvider } from '@logora/debate/dialog/modal';
|
|
7
|
-
import { InputProvider, useInput } from '@logora/debate/input/input_provider';
|
|
8
|
-
import { $getRoot, $createParagraphNode, $createTextNode, createEditor } from "lexical";
|
|
9
|
-
import { QuoteNode, $createQuoteNode } from '@lexical/rich-text';
|
|
10
|
-
import { ListItemNode, ListNode, $createListItemNode, $createListNode } from "@lexical/list";
|
|
11
|
-
import { IconProvider } from '@logora/debate/icons/icon_provider';
|
|
12
|
-
import * as regularIcons from '@logora/debate/icons/regular_icons';
|
|
13
|
-
import { IntlProvider } from 'react-intl';
|
|
14
|
-
|
|
15
|
-
vi.mock('@lexical/react/LexicalErrorBoundary', () => ({
|
|
16
|
-
LexicalErrorBoundary: ({ children }) => children,
|
|
17
|
-
}));
|
|
18
|
-
|
|
19
|
-
const callback = vi.fn();
|
|
20
|
-
|
|
21
|
-
describe('TextEditor', () => {
|
|
22
|
-
it('should render with placeholder', () => {
|
|
23
|
-
const editor = render(
|
|
24
|
-
<DefaultTextEditor />
|
|
25
|
-
);
|
|
26
|
-
const renderedEditor = editor.getByText(/Add an argument/i);
|
|
27
|
-
expect(renderedEditor).toBeTruthy();
|
|
28
|
-
});
|
|
29
|
-
|
|
30
|
-
it('should call callback function on submit', async () => {
|
|
31
|
-
const editor = render(
|
|
32
|
-
<IntlProvider locale="en">
|
|
33
|
-
<InputProvider>
|
|
34
|
-
<IconProvider library={regularIcons}>
|
|
35
|
-
<ModalProvider>
|
|
36
|
-
<TextEditor
|
|
37
|
-
handleChange={() => null}
|
|
38
|
-
onSubmit={callback}
|
|
39
|
-
onActivation={() => null}
|
|
40
|
-
shortBar={true}
|
|
41
|
-
uid={"34"}
|
|
42
|
-
placeholder={"Add an argument"}
|
|
43
|
-
sources={[{ publisher: "test.com", source_url: "http://test.com", title: "Source Test" }]}
|
|
44
|
-
/>
|
|
45
|
-
</ModalProvider>
|
|
46
|
-
</IconProvider>
|
|
47
|
-
</InputProvider>
|
|
48
|
-
</IntlProvider>
|
|
49
|
-
);
|
|
50
|
-
|
|
51
|
-
const onSubmit = document.querySelector('.inputSubmitActionButton');
|
|
52
|
-
await act(async () => { await userEvent.click(onSubmit) });
|
|
53
|
-
|
|
54
|
-
expect(callback).toHaveBeenCalled();
|
|
55
|
-
});
|
|
56
|
-
|
|
57
|
-
it('should call callback function and button on activation', async () => {
|
|
58
|
-
const editor = render(
|
|
59
|
-
<IntlProvider locale="en">
|
|
60
|
-
<InputProvider>
|
|
61
|
-
<IconProvider library={regularIcons}>
|
|
62
|
-
<ModalProvider>
|
|
63
|
-
<TextEditor
|
|
64
|
-
handleChange={() => null}
|
|
65
|
-
onSubmit={() => null}
|
|
66
|
-
onActivation={callback}
|
|
67
|
-
shortBar={true}
|
|
68
|
-
uid={"34"}
|
|
69
|
-
placeholder={"Add an argument"}
|
|
70
|
-
sources={[{ publisher: "test.com", source_url: "http://test.com", title: "Source Test" }]}
|
|
71
|
-
/>
|
|
72
|
-
</ModalProvider>
|
|
73
|
-
</IconProvider>
|
|
74
|
-
</InputProvider>
|
|
75
|
-
</IntlProvider>
|
|
76
|
-
);
|
|
77
|
-
|
|
78
|
-
const input = screen.getByRole("textbox");
|
|
79
|
-
let bold = screen.queryByTestId('format-bold');
|
|
80
|
-
expect(bold).toBeNull();
|
|
81
|
-
|
|
82
|
-
await act(async () => { await userEvent.click(input) });
|
|
83
|
-
|
|
84
|
-
bold = screen.queryByTestId('format-bold');
|
|
85
|
-
expect(callback).toHaveBeenCalled();
|
|
86
|
-
expect(bold).toBeTruthy();
|
|
87
|
-
});
|
|
88
|
-
|
|
89
|
-
it('should focus editor on click', async () => {
|
|
90
|
-
const container = render(
|
|
91
|
-
<DefaultTextEditor />
|
|
92
|
-
);
|
|
93
|
-
|
|
94
|
-
expect(document.activeElement.tagName).toBe("BODY");
|
|
95
|
-
|
|
96
|
-
const editor = screen.getByRole('textbox');
|
|
97
|
-
await act(async () => { await userEvent.click(editor) });
|
|
98
|
-
|
|
99
|
-
expect(document.activeElement).toBe(editor);
|
|
100
|
-
expect(document.activeElement.tagName).toBe("DIV");
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
it('should render with source', () => {
|
|
104
|
-
const editor = render(
|
|
105
|
-
<TextEditorWithSource />
|
|
106
|
-
);
|
|
107
|
-
expect(screen.getByText(/test.com – Source Test/)).toBeTruthy();
|
|
108
|
-
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
it('should render with text', () => {
|
|
112
|
-
let container = document.body;
|
|
113
|
-
const rootElement = document.createElement('div');
|
|
114
|
-
container.appendChild(rootElement);
|
|
115
|
-
|
|
116
|
-
const editor = createEditor({
|
|
117
|
-
namespace: 'MyEditor',
|
|
118
|
-
theme: {
|
|
119
|
-
text: {
|
|
120
|
-
bold: 'editor-text-bold',
|
|
121
|
-
italic: 'editor-text-italic',
|
|
122
|
-
underline: 'editor-text-underline',
|
|
123
|
-
},
|
|
124
|
-
},
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
editor.update(() => {
|
|
128
|
-
const root = $getRoot();
|
|
129
|
-
const paragraph = $createParagraphNode();
|
|
130
|
-
const text = $createTextNode('Some text');
|
|
131
|
-
root.append(paragraph);
|
|
132
|
-
paragraph.append(text);
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
editor.setRootElement(rootElement);
|
|
136
|
-
|
|
137
|
-
expect(container.innerHTML).toBe(
|
|
138
|
-
'<div style="user-select: text; white-space: pre-wrap; word-break: break-word;" data-lexical-editor="true"><p dir="auto"><span data-lexical-text="true">Some text</span></p></div>',
|
|
139
|
-
);
|
|
140
|
-
|
|
141
|
-
container.removeChild(rootElement);
|
|
142
|
-
container = null;
|
|
143
|
-
});
|
|
144
|
-
|
|
145
|
-
it('should render bold', () => {
|
|
146
|
-
let container = document.body;
|
|
147
|
-
const rootElement = document.createElement('div');
|
|
148
|
-
container.appendChild(rootElement);
|
|
149
|
-
|
|
150
|
-
const editor = createEditor({
|
|
151
|
-
namespace: 'MyEditor',
|
|
152
|
-
theme: {
|
|
153
|
-
text: {
|
|
154
|
-
bold: 'editor-text-bold',
|
|
155
|
-
italic: 'editor-text-italic',
|
|
156
|
-
underline: 'editor-text-underline',
|
|
157
|
-
},
|
|
158
|
-
},
|
|
159
|
-
});
|
|
160
|
-
|
|
161
|
-
editor.update(() => {
|
|
162
|
-
const root = $getRoot();
|
|
163
|
-
const paragraph = $createParagraphNode();
|
|
164
|
-
const text = $createTextNode('Bold').toggleFormat('bold');
|
|
165
|
-
root.append(paragraph);
|
|
166
|
-
paragraph.append(text);
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
editor.setRootElement(rootElement);
|
|
170
|
-
|
|
171
|
-
expect(container.innerHTML).toBe(
|
|
172
|
-
'<div style="user-select: text; white-space: pre-wrap; word-break: break-word;" data-lexical-editor="true"><p dir="auto"><strong class="editor-text-bold" data-lexical-text="true">Bold</strong></p></div>',
|
|
173
|
-
);
|
|
174
|
-
|
|
175
|
-
container.removeChild(rootElement);
|
|
176
|
-
container = null;
|
|
177
|
-
});
|
|
178
|
-
|
|
179
|
-
it('should render italic', () => {
|
|
180
|
-
let container = document.body;
|
|
181
|
-
const rootElement = document.createElement('div');
|
|
182
|
-
container.appendChild(rootElement);
|
|
183
|
-
|
|
184
|
-
const editor = createEditor({
|
|
185
|
-
namespace: 'MyEditor',
|
|
186
|
-
theme: {
|
|
187
|
-
text: {
|
|
188
|
-
bold: 'editor-text-bold',
|
|
189
|
-
italic: 'editor-text-italic',
|
|
190
|
-
underline: 'editor-text-underline',
|
|
191
|
-
},
|
|
192
|
-
},
|
|
193
|
-
});
|
|
194
|
-
|
|
195
|
-
editor.update(() => {
|
|
196
|
-
const root = $getRoot();
|
|
197
|
-
const paragraph = $createParagraphNode();
|
|
198
|
-
const text = $createTextNode('Italic').toggleFormat('italic');
|
|
199
|
-
root.append(paragraph);
|
|
200
|
-
paragraph.append(text);
|
|
201
|
-
});
|
|
202
|
-
|
|
203
|
-
editor.setRootElement(rootElement);
|
|
204
|
-
|
|
205
|
-
expect(container.innerHTML).toBe(
|
|
206
|
-
'<div style="user-select: text; white-space: pre-wrap; word-break: break-word;" data-lexical-editor="true"><p dir="auto"><em class="editor-text-italic" data-lexical-text="true">Italic</em></p></div>',
|
|
207
|
-
);
|
|
208
|
-
|
|
209
|
-
container.removeChild(rootElement);
|
|
210
|
-
container = null;
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
it('should render underline', () => {
|
|
214
|
-
let container = document.body;
|
|
215
|
-
const rootElement = document.createElement('div');
|
|
216
|
-
container.appendChild(rootElement);
|
|
217
|
-
|
|
218
|
-
const editor = createEditor({
|
|
219
|
-
namespace: 'MyEditor',
|
|
220
|
-
theme: {
|
|
221
|
-
text: {
|
|
222
|
-
bold: 'editor-text-bold',
|
|
223
|
-
italic: 'editor-text-italic',
|
|
224
|
-
underline: 'editor-text-underline',
|
|
225
|
-
},
|
|
226
|
-
},
|
|
227
|
-
});
|
|
228
|
-
|
|
229
|
-
editor.update(() => {
|
|
230
|
-
const root = $getRoot();
|
|
231
|
-
const paragraph = $createParagraphNode();
|
|
232
|
-
const text = $createTextNode('Underline').toggleFormat('underline');
|
|
233
|
-
root.append(paragraph);
|
|
234
|
-
paragraph.append(text);
|
|
235
|
-
});
|
|
236
|
-
|
|
237
|
-
editor.setRootElement(rootElement);
|
|
238
|
-
|
|
239
|
-
expect(container.innerHTML).toBe(
|
|
240
|
-
'<div style="user-select: text; white-space: pre-wrap; word-break: break-word;" data-lexical-editor="true"><p dir="auto"><span class="editor-text-underline" data-lexical-text="true">Underline</span></p></div>',
|
|
241
|
-
);
|
|
242
|
-
|
|
243
|
-
container.removeChild(rootElement);
|
|
244
|
-
container = null;
|
|
245
|
-
});
|
|
246
|
-
|
|
247
|
-
it('should render bold, italic and underline', () => {
|
|
248
|
-
let container = document.body;
|
|
249
|
-
const rootElement = document.createElement('div');
|
|
250
|
-
container.appendChild(rootElement);
|
|
251
|
-
|
|
252
|
-
const editor = createEditor({
|
|
253
|
-
namespace: 'MyEditor',
|
|
254
|
-
theme: {
|
|
255
|
-
text: {
|
|
256
|
-
bold: 'editor-text-bold',
|
|
257
|
-
italic: 'editor-text-italic',
|
|
258
|
-
underline: 'editor-text-underline',
|
|
259
|
-
},
|
|
260
|
-
},
|
|
261
|
-
});
|
|
262
|
-
|
|
263
|
-
editor.update(() => {
|
|
264
|
-
const root = $getRoot();
|
|
265
|
-
const paragraph = $createParagraphNode();
|
|
266
|
-
const text = $createTextNode('Some text').toggleFormat('bold').toggleFormat('italic').toggleFormat('underline');
|
|
267
|
-
root.append(paragraph);
|
|
268
|
-
paragraph.append(text);
|
|
269
|
-
});
|
|
270
|
-
|
|
271
|
-
editor.setRootElement(rootElement);
|
|
272
|
-
|
|
273
|
-
expect(container.innerHTML).toBe(
|
|
274
|
-
'<div style="user-select: text; white-space: pre-wrap; word-break: break-word;" data-lexical-editor="true"><p dir="auto"><strong class="editor-text-bold editor-text-italic editor-text-underline" data-lexical-text="true">Some text</strong></p></div>',
|
|
275
|
-
);
|
|
276
|
-
|
|
277
|
-
container.removeChild(rootElement);
|
|
278
|
-
container = null;
|
|
279
|
-
});
|
|
280
|
-
|
|
281
|
-
it('should render quote', () => {
|
|
282
|
-
let container = document.body;
|
|
283
|
-
const rootElement = document.createElement('div');
|
|
284
|
-
container.appendChild(rootElement);
|
|
285
|
-
|
|
286
|
-
const editor = createEditor({
|
|
287
|
-
namespace: 'MyEditor',
|
|
288
|
-
nodes: [QuoteNode],
|
|
289
|
-
});
|
|
290
|
-
|
|
291
|
-
editor.update(() => {
|
|
292
|
-
const root = $getRoot();
|
|
293
|
-
const quote = $createQuoteNode();
|
|
294
|
-
quote.append($createTextNode("My quote"));
|
|
295
|
-
root.append(quote);
|
|
296
|
-
});
|
|
297
|
-
|
|
298
|
-
editor.setRootElement(rootElement);
|
|
299
|
-
|
|
300
|
-
expect(container.innerHTML).toBe(
|
|
301
|
-
'<div style=\"user-select: text; white-space: pre-wrap; word-break: break-word;\" data-lexical-editor=\"true\"><blockquote dir=\"auto\"><span data-lexical-text=\"true\">My quote</span></blockquote></div>',
|
|
302
|
-
);
|
|
303
|
-
|
|
304
|
-
container.removeChild(rootElement);
|
|
305
|
-
container = null;
|
|
306
|
-
});
|
|
307
|
-
|
|
308
|
-
it('should render list items', () => {
|
|
309
|
-
let container = document.body;
|
|
310
|
-
const rootElement = document.createElement('div');
|
|
311
|
-
container.appendChild(rootElement);
|
|
312
|
-
|
|
313
|
-
const editor = createEditor({
|
|
314
|
-
namespace: 'MyEditor',
|
|
315
|
-
nodes: [ListNode, ListItemNode],
|
|
316
|
-
});
|
|
317
|
-
|
|
318
|
-
editor.update(() => {
|
|
319
|
-
const root = $getRoot();
|
|
320
|
-
const list = $createListNode('number');
|
|
321
|
-
list.append(
|
|
322
|
-
$createListItemNode().append($createTextNode("First item"),),
|
|
323
|
-
$createListItemNode().append($createTextNode("Second item"),),
|
|
324
|
-
$createListItemNode().append($createTextNode("Third item"),),
|
|
325
|
-
$createListItemNode().append($createTextNode("Fourth item"),),
|
|
326
|
-
);
|
|
327
|
-
root.append(list);
|
|
328
|
-
});
|
|
329
|
-
|
|
330
|
-
editor.setRootElement(rootElement);
|
|
331
|
-
|
|
332
|
-
expect(container.innerHTML).toBe(
|
|
333
|
-
'<div style=\"user-select: text; white-space: pre-wrap; word-break: break-word;\" data-lexical-editor=\"true\"><ol dir=\"auto\"><li value=\"1\"><span data-lexical-text=\"true\">First item</span></li><li value=\"2\"><span data-lexical-text=\"true\">Second item</span></li><li value=\"3\"><span data-lexical-text=\"true\">Third item</span></li><li value=\"4\"><span data-lexical-text=\"true\">Fourth item</span></li></ol></div>',
|
|
334
|
-
);
|
|
335
|
-
|
|
336
|
-
container.removeChild(rootElement);
|
|
337
|
-
container = null;
|
|
338
|
-
});
|
|
339
|
-
|
|
340
|
-
it('should focus editor when setFocus called from outside', async () => {
|
|
341
|
-
const FocusInputComponent = (props) => {
|
|
342
|
-
const { setFocus } = useInput();
|
|
343
|
-
|
|
344
|
-
const focusInput = (event) => {
|
|
345
|
-
setFocus(true);
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
return (
|
|
349
|
-
<div onClick={focusInput}>Click to focus</div>
|
|
350
|
-
)
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
const container = render(
|
|
354
|
-
<IntlProvider locale="en">
|
|
355
|
-
<InputProvider>
|
|
356
|
-
|
|
357
|
-
<ModalProvider>
|
|
358
|
-
<IconProvider library={regularIcons}>
|
|
359
|
-
<FocusInputComponent />
|
|
360
|
-
<TextEditor
|
|
361
|
-
handleChange={() => null}
|
|
362
|
-
onSubmit={() => null}
|
|
363
|
-
onActivation={() => null}
|
|
364
|
-
shortBar={true}
|
|
365
|
-
uid={"34"}
|
|
366
|
-
placeholder={"Add something"}
|
|
367
|
-
/>
|
|
368
|
-
</IconProvider>
|
|
369
|
-
</ModalProvider>
|
|
370
|
-
|
|
371
|
-
</InputProvider>
|
|
372
|
-
</IntlProvider>
|
|
373
|
-
);
|
|
374
|
-
|
|
375
|
-
expect(screen.getByText("Add something")).toBeTruthy();
|
|
376
|
-
|
|
377
|
-
const focusButton = screen.getByText("Click to focus");
|
|
378
|
-
expect(document.activeElement.tagName).toBe("BODY");
|
|
379
|
-
|
|
380
|
-
await act(async () => { await userEvent.click(focusButton) });
|
|
381
|
-
|
|
382
|
-
const editor = screen.getByRole('textbox');
|
|
383
|
-
expect(document.activeElement).toBe(editor);
|
|
384
|
-
});
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
it('should set content in editor when setContent called from outside', async () => {
|
|
388
|
-
const targetContent = { "root": { "children": [{ "children": [{ "detail": 0, "format": 1, "mode": "normal", "style": "", "text": "Integer pretium varius odio ac eleifend.", "type": "text", "version": 1 }], "direction": "auto", "format": "", "indent": 0, "type": "paragraph", "version": 1 }], "direction": "auto", "format": "", "indent": 0, "type": "root", "version": 1 } };
|
|
389
|
-
|
|
390
|
-
const SetInputContentComponent = (props) => {
|
|
391
|
-
const { setInputRichContent } = useInput();
|
|
392
|
-
|
|
393
|
-
const setRichContent = (event) => {
|
|
394
|
-
setInputRichContent(targetContent);
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
return (
|
|
398
|
-
<div onClick={setRichContent}>Click to set content</div>
|
|
399
|
-
)
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
const container = render(
|
|
403
|
-
<IntlProvider locale="en">
|
|
404
|
-
<InputProvider>
|
|
405
|
-
|
|
406
|
-
<ModalProvider>
|
|
407
|
-
<IconProvider library={regularIcons}>
|
|
408
|
-
<SetInputContentComponent />
|
|
409
|
-
<TextEditor
|
|
410
|
-
handleChange={() => null}
|
|
411
|
-
onSubmit={() => null}
|
|
412
|
-
onActivation={() => null}
|
|
413
|
-
shortBar={true}
|
|
414
|
-
uid={"34"}
|
|
415
|
-
placeholder={"Add something"}
|
|
416
|
-
/>
|
|
417
|
-
</IconProvider>
|
|
418
|
-
</ModalProvider>
|
|
419
|
-
|
|
420
|
-
</InputProvider>
|
|
421
|
-
</IntlProvider>
|
|
422
|
-
);
|
|
423
|
-
|
|
424
|
-
expect(screen.getByText("Add something")).toBeTruthy();
|
|
425
|
-
|
|
426
|
-
const setContentButton = screen.getByText("Click to set content");
|
|
427
|
-
expect(document.activeElement.tagName).toBe("BODY");
|
|
428
|
-
|
|
429
|
-
await act(async () => { await userEvent.click(setContentButton) });
|
|
430
|
-
|
|
431
|
-
expect(container.getByText("Integer pretium varius odio ac eleifend.")).toBeTruthy();
|
|
432
|
-
});
|
|
433
|
-
|
|
434
|
-
it('should display max length and update it', async () => {
|
|
435
|
-
const targetContent = { "root": { "children": [{ "children": [{ "detail": 0, "format": 1, "mode": "normal", "style": "", "text": "Integer pretium varius odio ac eleifend.", "type": "text", "version": 1 }], "direction": "auto", "format": "", "indent": 0, "type": "paragraph", "version": 1 }], "direction": "auto", "format": "", "indent": 0, "type": "root", "version": 1 } };
|
|
436
|
-
|
|
437
|
-
const SetInputContentComponent = (props) => {
|
|
438
|
-
const { setInputRichContent } = useInput();
|
|
439
|
-
|
|
440
|
-
const setRichContent = (event) => {
|
|
441
|
-
setInputRichContent(targetContent);
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
return (
|
|
445
|
-
<div onClick={setRichContent}>Click to set content</div>
|
|
446
|
-
)
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
const { getByText } = render(
|
|
450
|
-
<IntlProvider locale="en">
|
|
451
|
-
<InputProvider>
|
|
452
|
-
|
|
453
|
-
<IconProvider library={regularIcons}>
|
|
454
|
-
<ModalProvider>
|
|
455
|
-
<SetInputContentComponent />
|
|
456
|
-
<TextEditor
|
|
457
|
-
handleChange={() => null}
|
|
458
|
-
onSubmit={() => null}
|
|
459
|
-
onActivation={callback}
|
|
460
|
-
shortBar={true}
|
|
461
|
-
uid={"34"}
|
|
462
|
-
placeholder={"Add an argument"}
|
|
463
|
-
maxLength={500}
|
|
464
|
-
/>
|
|
465
|
-
</ModalProvider>
|
|
466
|
-
</IconProvider>
|
|
467
|
-
|
|
468
|
-
</InputProvider>
|
|
469
|
-
</IntlProvider>
|
|
470
|
-
);
|
|
471
|
-
|
|
472
|
-
const input = screen.getByRole("textbox");
|
|
473
|
-
await act(async () => { await userEvent.click(input) });
|
|
474
|
-
const maxLength = getByText("remaining characters", { exact: false })
|
|
475
|
-
expect(maxLength.textContent).toEqual("500 remaining characters");
|
|
476
|
-
|
|
477
|
-
const setContentButton = screen.getByText("Click to set content");
|
|
478
|
-
await act(async () => { await userEvent.click(setContentButton) });
|
|
479
|
-
const maxLengthUpdated = getByText("remaining characters", { exact: false })
|
|
480
|
-
expect(maxLengthUpdated.textContent).toEqual("460 remaining characters");
|
|
481
|
-
});
|
|
482
|
-
});
|
|
483
|
-
|
|
484
|
-
// describe('ResetPlugin', () => {
|
|
485
|
-
// const sessionStorageMock = (function() {
|
|
486
|
-
// let store = {}
|
|
487
|
-
|
|
488
|
-
// return {
|
|
489
|
-
// name: "sessionStorage",
|
|
490
|
-
// getItem: function(key) {
|
|
491
|
-
// return store[key] || null
|
|
492
|
-
// },
|
|
493
|
-
// setItem: function(key, value) {
|
|
494
|
-
// store[key] = value.toString()
|
|
495
|
-
// },
|
|
496
|
-
// removeItem: function(key) {
|
|
497
|
-
// delete store[key]
|
|
498
|
-
// },
|
|
499
|
-
// clear: function() {
|
|
500
|
-
// store = {}
|
|
501
|
-
// }
|
|
502
|
-
// }
|
|
503
|
-
// })()
|
|
504
|
-
|
|
505
|
-
// Object.defineProperty(window, 'sessionStorage', {
|
|
506
|
-
// configurable: true,
|
|
507
|
-
// value: sessionStorageMock
|
|
508
|
-
// })
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
// it('should reset content in editor when setReset called from outside', async () => {
|
|
512
|
-
// const targetContent = {"root":{"children":[{"children":[{"detail":0,"format":1,"mode":"normal","style":"","text":"Integer pretium varius odio ac eleifend.","type":"text","version":1}],"direction":"auto","format":"","indent":0,"type":"paragraph","version":1}],"direction":"auto","format":"","indent":0,"type":"root","version":1}};
|
|
513
|
-
|
|
514
|
-
// const ResetContentComponent = (props) => {
|
|
515
|
-
// const { setInputRichContent, setReset } = useInput();
|
|
516
|
-
|
|
517
|
-
// const setContent = (event) => {
|
|
518
|
-
// setInputRichContent(targetContent);
|
|
519
|
-
// }
|
|
520
|
-
|
|
521
|
-
// const resetContent = (event) => {
|
|
522
|
-
// setReset(true);
|
|
523
|
-
// }
|
|
524
|
-
|
|
525
|
-
// return (
|
|
526
|
-
// <>
|
|
527
|
-
// <div onClick={setContent}>Click to set content</div>
|
|
528
|
-
// <div onClick={resetContent}>Click to reset content</div>
|
|
529
|
-
// </>
|
|
530
|
-
// )
|
|
531
|
-
// }
|
|
532
|
-
|
|
533
|
-
// const container = render(
|
|
534
|
-
// <IntlProvider locale="en">
|
|
535
|
-
// <InputProvider>
|
|
536
|
-
//
|
|
537
|
-
// <ModalProvider>
|
|
538
|
-
// <IconProvider library={regularIcons}>
|
|
539
|
-
// <ResetContentComponent />
|
|
540
|
-
// <TextEditor
|
|
541
|
-
// handleChange={() => null}
|
|
542
|
-
// onSubmit={() => null}
|
|
543
|
-
// onActivation={() => null}
|
|
544
|
-
// shortBar={true}
|
|
545
|
-
// uid={"34"}
|
|
546
|
-
// placeholder={"Add something"}
|
|
547
|
-
// />
|
|
548
|
-
// </IconProvider>
|
|
549
|
-
// </ModalProvider>
|
|
550
|
-
//
|
|
551
|
-
// </InputProvider>
|
|
552
|
-
// </IntlProvider>
|
|
553
|
-
// );
|
|
554
|
-
|
|
555
|
-
// expect(screen.getByText("Add something")).toBeTruthy();
|
|
556
|
-
|
|
557
|
-
// const setContentButton = screen.getByText("Click to set content");
|
|
558
|
-
// const resetContentButton = screen.getByText("Click to reset content");
|
|
559
|
-
// expect(document.activeElement.tagName).toBe("BODY");
|
|
560
|
-
|
|
561
|
-
// await act(async () => { await userEvent.click(setContentButton) });
|
|
562
|
-
|
|
563
|
-
// expect(container.getByText("Integer pretium varius odio ac eleifend.")).toBeTruthy();
|
|
564
|
-
|
|
565
|
-
// await act(async () => { await userEvent.click(resetContentButton) });
|
|
566
|
-
|
|
567
|
-
// expect(container.queryByText("Integer pretium varius odio ac eleifend.")).toBeNull();
|
|
568
|
-
// });
|
|
569
|
-
// });
|
|
570
|
-
|
|
571
|
-
describe('AutoSavePlugin', () => {
|
|
572
|
-
const localStorageMock = (function () {
|
|
573
|
-
let store = {}
|
|
574
|
-
|
|
575
|
-
return {
|
|
576
|
-
name: "localStorage",
|
|
577
|
-
getItem: function (key) {
|
|
578
|
-
return store[key] || null
|
|
579
|
-
},
|
|
580
|
-
setItem: function (key, value) {
|
|
581
|
-
store[key] = value.toString()
|
|
582
|
-
},
|
|
583
|
-
removeItem: function (key) {
|
|
584
|
-
delete store[key]
|
|
585
|
-
},
|
|
586
|
-
clear: function () {
|
|
587
|
-
store = {}
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
})()
|
|
591
|
-
|
|
592
|
-
Object.defineProperty(window, 'localStorage', {
|
|
593
|
-
configurable: true,
|
|
594
|
-
value: localStorageMock
|
|
595
|
-
})
|
|
596
|
-
|
|
597
|
-
it('should auto save content in local storage', async () => {
|
|
598
|
-
const targetContent = { "root": { "children": [{ "children": [{ "detail": 0, "format": 1, "mode": "normal", "style": "", "text": "Integer pretium varius odio ac eleifend.", "type": "text", "version": 1 }], "direction": "auto", "format": "", "indent": 0, "type": "paragraph", "version": 1 }], "direction": "auto", "format": "", "indent": 0, "type": "root", "version": 1 } };
|
|
599
|
-
const getItemMock = vi.spyOn(window.localStorage, 'getItem');
|
|
600
|
-
|
|
601
|
-
const AutoSaveContentComponent = (props) => {
|
|
602
|
-
const { setInputRichContent } = useInput();
|
|
603
|
-
|
|
604
|
-
const setContent = (event) => {
|
|
605
|
-
setInputRichContent(targetContent);
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
return (
|
|
609
|
-
<>
|
|
610
|
-
<div onClick={setContent}>Click to set content</div>
|
|
611
|
-
</>
|
|
612
|
-
)
|
|
613
|
-
}
|
|
614
|
-
|
|
615
|
-
const container = render(
|
|
616
|
-
<IntlProvider locale="en">
|
|
617
|
-
<InputProvider>
|
|
618
|
-
|
|
619
|
-
<ModalProvider>
|
|
620
|
-
<IconProvider library={regularIcons}>
|
|
621
|
-
<AutoSaveContentComponent />
|
|
622
|
-
<TextEditor
|
|
623
|
-
handleChange={() => null}
|
|
624
|
-
onSubmit={() => null}
|
|
625
|
-
onActivation={() => null}
|
|
626
|
-
shortBar={true}
|
|
627
|
-
uid={"34"}
|
|
628
|
-
placeholder={"Add something"}
|
|
629
|
-
/>
|
|
630
|
-
</IconProvider>
|
|
631
|
-
</ModalProvider>
|
|
632
|
-
|
|
633
|
-
</InputProvider>
|
|
634
|
-
</IntlProvider>
|
|
635
|
-
);
|
|
636
|
-
|
|
637
|
-
expect(screen.getByText("Add something")).toBeTruthy();
|
|
638
|
-
|
|
639
|
-
const setContentButton = screen.getByText("Click to set content");
|
|
640
|
-
expect(document.activeElement.tagName).toBe("BODY");
|
|
641
|
-
|
|
642
|
-
await act(async () => { userEvent.click(setContentButton) });
|
|
643
|
-
|
|
644
|
-
await waitFor(() => {
|
|
645
|
-
expect(container.getByText("Integer pretium varius odio ac eleifend.")).toBeTruthy();
|
|
646
|
-
});
|
|
647
|
-
|
|
648
|
-
await act(async () => { await new Promise((r) => setTimeout(r, 1500)) });
|
|
649
|
-
|
|
650
|
-
await waitFor(() => {
|
|
651
|
-
expect(getItemMock).toHaveBeenCalled();
|
|
652
|
-
});
|
|
653
|
-
});
|
|
654
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createHeadlessEditor } from "@lexical/headless";
|
|
2
|
-
import { $generateHtmlFromNodes } from '@lexical/html';
|
|
3
|
-
import { QuoteNode } from "@lexical/rich-text";
|
|
4
|
-
import { ListItemNode, ListNode } from "@lexical/list";
|
|
5
|
-
import DOMPurify from "dompurify";
|
|
6
|
-
|
|
7
|
-
export const lexicalToHtml = (rawContent) => {
|
|
8
|
-
let html = null;
|
|
9
|
-
|
|
10
|
-
const editor = createHeadlessEditor({
|
|
11
|
-
nodes: [QuoteNode, ListItemNode, ListNode],
|
|
12
|
-
onError: () => {},
|
|
13
|
-
});
|
|
14
|
-
const editorState = editor.parseEditorState(rawContent);
|
|
15
|
-
editor.setEditorState(editorState);
|
|
16
|
-
|
|
17
|
-
editor.update(() => {
|
|
18
|
-
let htmlContent = $generateHtmlFromNodes(editor, null);
|
|
19
|
-
html = DOMPurify.sanitize(htmlContent);
|
|
20
|
-
})
|
|
21
|
-
|
|
22
|
-
return html;
|
|
23
|
-
}
|