@churchapps/apphelper 0.6.25 → 0.7.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/dist/donations/components/BankForm.d.ts +17 -0
- package/dist/donations/components/BankForm.d.ts.map +1 -0
- package/dist/donations/components/BankForm.js +268 -0
- package/dist/donations/components/BankForm.js.map +1 -0
- package/dist/donations/components/CardForm.d.ts +15 -0
- package/dist/donations/components/CardForm.d.ts.map +1 -0
- package/dist/donations/components/CardForm.js +132 -0
- package/dist/donations/components/CardForm.js.map +1 -0
- package/dist/donations/components/DonationForm.d.ts +17 -0
- package/dist/donations/components/DonationForm.d.ts.map +1 -0
- package/dist/donations/components/DonationForm.js +225 -0
- package/dist/donations/components/DonationForm.js.map +1 -0
- package/dist/donations/components/FormCardPayment.d.ts +8 -0
- package/dist/donations/components/FormCardPayment.d.ts.map +1 -0
- package/dist/donations/components/FormCardPayment.js +159 -0
- package/dist/donations/components/FormCardPayment.js.map +1 -0
- package/dist/donations/components/FundDonation.d.ts +13 -0
- package/dist/donations/components/FundDonation.d.ts.map +1 -0
- package/dist/donations/components/FundDonation.js +29 -0
- package/dist/donations/components/FundDonation.js.map +1 -0
- package/dist/donations/components/FundDonations.d.ts +12 -0
- package/dist/donations/components/FundDonations.d.ts.map +1 -0
- package/dist/donations/components/FundDonations.js +37 -0
- package/dist/donations/components/FundDonations.js.map +1 -0
- package/dist/donations/components/MultiGatewayDonationForm.d.ts +17 -0
- package/dist/donations/components/MultiGatewayDonationForm.d.ts.map +1 -0
- package/dist/donations/components/MultiGatewayDonationForm.js +375 -0
- package/dist/donations/components/MultiGatewayDonationForm.js.map +1 -0
- package/dist/donations/components/NonAuthDonation.d.ts +12 -0
- package/dist/donations/components/NonAuthDonation.d.ts.map +1 -0
- package/dist/donations/components/NonAuthDonation.js +68 -0
- package/dist/donations/components/NonAuthDonation.js.map +1 -0
- package/dist/donations/components/NonAuthDonationInner.d.ts +13 -0
- package/dist/donations/components/NonAuthDonationInner.d.ts.map +1 -0
- package/dist/donations/components/NonAuthDonationInner.js +431 -0
- package/dist/donations/components/NonAuthDonationInner.js.map +1 -0
- package/dist/donations/components/PayPalCardForm.d.ts +17 -0
- package/dist/donations/components/PayPalCardForm.d.ts.map +1 -0
- package/dist/donations/components/PayPalCardForm.js +118 -0
- package/dist/donations/components/PayPalCardForm.js.map +1 -0
- package/dist/donations/components/PayPalHostedFields.d.ts +19 -0
- package/dist/donations/components/PayPalHostedFields.d.ts.map +1 -0
- package/dist/donations/components/PayPalHostedFields.js +114 -0
- package/dist/donations/components/PayPalHostedFields.js.map +1 -0
- package/dist/donations/components/PayPalNonAuthDonation.d.ts +12 -0
- package/dist/donations/components/PayPalNonAuthDonation.d.ts.map +1 -0
- package/dist/donations/components/PayPalNonAuthDonation.js +20 -0
- package/dist/donations/components/PayPalNonAuthDonation.js.map +1 -0
- package/dist/donations/components/PayPalNonAuthDonationInner.d.ts +13 -0
- package/dist/donations/components/PayPalNonAuthDonationInner.d.ts.map +1 -0
- package/dist/donations/components/PayPalNonAuthDonationInner.js +309 -0
- package/dist/donations/components/PayPalNonAuthDonationInner.js.map +1 -0
- package/dist/donations/components/PaymentMethods.d.ts +15 -0
- package/dist/donations/components/PaymentMethods.d.ts.map +1 -0
- package/dist/donations/components/PaymentMethods.js +97 -0
- package/dist/donations/components/PaymentMethods.js.map +1 -0
- package/dist/donations/components/RecurringDonations.d.ts +10 -0
- package/dist/donations/components/RecurringDonations.d.ts.map +1 -0
- package/dist/donations/components/RecurringDonations.js +106 -0
- package/dist/donations/components/RecurringDonations.js.map +1 -0
- package/dist/donations/components/RecurringDonationsEdit.d.ts +12 -0
- package/dist/donations/components/RecurringDonationsEdit.d.ts.map +1 -0
- package/dist/donations/components/RecurringDonationsEdit.js +67 -0
- package/dist/donations/components/RecurringDonationsEdit.js.map +1 -0
- package/dist/donations/components/index.d.ts +17 -0
- package/dist/donations/components/index.d.ts.map +1 -0
- package/dist/donations/components/index.js +16 -0
- package/dist/donations/components/index.js.map +1 -0
- package/dist/donations/helpers/DonationHelper.d.ts +19 -0
- package/dist/donations/helpers/DonationHelper.d.ts.map +1 -0
- package/dist/donations/helpers/DonationHelper.js +62 -0
- package/dist/donations/helpers/DonationHelper.js.map +1 -0
- package/dist/donations/helpers/DonationInterface.d.ts +23 -0
- package/dist/donations/helpers/DonationInterface.d.ts.map +1 -0
- package/dist/donations/helpers/DonationInterface.js +2 -0
- package/dist/donations/helpers/DonationInterface.js.map +1 -0
- package/dist/donations/helpers/Locale.d.ts +14 -0
- package/dist/donations/helpers/Locale.d.ts.map +1 -0
- package/dist/donations/helpers/Locale.js +276 -0
- package/dist/donations/helpers/Locale.js.map +1 -0
- package/dist/donations/helpers/PayPalDonationInterface.d.ts +33 -0
- package/dist/donations/helpers/PayPalDonationInterface.d.ts.map +1 -0
- package/dist/donations/helpers/PayPalDonationInterface.js +2 -0
- package/dist/donations/helpers/PayPalDonationInterface.js.map +1 -0
- package/dist/donations/helpers/PayPalPaymentMethod.d.ts +8 -0
- package/dist/donations/helpers/PayPalPaymentMethod.d.ts.map +1 -0
- package/dist/donations/helpers/PayPalPaymentMethod.js +2 -0
- package/dist/donations/helpers/PayPalPaymentMethod.js.map +1 -0
- package/dist/donations/helpers/PaymentMethod.d.ts +19 -0
- package/dist/donations/helpers/PaymentMethod.d.ts.map +1 -0
- package/dist/donations/helpers/PaymentMethod.js +2 -0
- package/dist/donations/helpers/PaymentMethod.js.map +1 -0
- package/dist/donations/helpers/StripePaymentMethod.d.ts +16 -0
- package/dist/donations/helpers/StripePaymentMethod.d.ts.map +1 -0
- package/dist/donations/helpers/StripePaymentMethod.js +17 -0
- package/dist/donations/helpers/StripePaymentMethod.js.map +1 -0
- package/dist/donations/helpers/index.d.ts +9 -0
- package/dist/donations/helpers/index.d.ts.map +1 -0
- package/dist/donations/helpers/index.js +4 -0
- package/dist/donations/helpers/index.js.map +1 -0
- package/dist/donations/index.d.ts +5 -0
- package/dist/donations/index.d.ts.map +1 -0
- package/dist/donations/index.js +4 -0
- package/dist/donations/index.js.map +1 -0
- package/dist/donations/modals/DonationPreviewModal.d.ts +15 -0
- package/dist/donations/modals/DonationPreviewModal.d.ts.map +1 -0
- package/dist/donations/modals/DonationPreviewModal.js +27 -0
- package/dist/donations/modals/DonationPreviewModal.js.map +1 -0
- package/dist/forms/components/ErrorMessages.d.ts +7 -0
- package/dist/forms/components/ErrorMessages.d.ts.map +1 -0
- package/dist/forms/components/ErrorMessages.js +21 -0
- package/dist/forms/components/ErrorMessages.js.map +1 -0
- package/dist/forms/components/FormSubmissionEdit.d.ts +19 -0
- package/dist/forms/components/FormSubmissionEdit.d.ts.map +1 -0
- package/dist/forms/components/FormSubmissionEdit.js +141 -0
- package/dist/forms/components/FormSubmissionEdit.js.map +1 -0
- package/dist/forms/components/HelpIcon.d.ts +6 -0
- package/dist/forms/components/HelpIcon.d.ts.map +1 -0
- package/dist/forms/components/HelpIcon.js +6 -0
- package/dist/forms/components/HelpIcon.js.map +1 -0
- package/dist/forms/components/InputBox.d.ts +38 -0
- package/dist/forms/components/InputBox.d.ts.map +1 -0
- package/dist/forms/components/InputBox.js +38 -0
- package/dist/forms/components/InputBox.js.map +1 -0
- package/dist/forms/components/QuestionEdit.d.ts +14 -0
- package/dist/forms/components/QuestionEdit.d.ts.map +1 -0
- package/dist/forms/components/QuestionEdit.js +77 -0
- package/dist/forms/components/QuestionEdit.js.map +1 -0
- package/dist/forms/components/SmallButton.d.ts +15 -0
- package/dist/forms/components/SmallButton.d.ts.map +1 -0
- package/dist/forms/components/SmallButton.js +25 -0
- package/dist/forms/components/SmallButton.js.map +1 -0
- package/dist/forms/components/index.d.ts +7 -0
- package/dist/forms/components/index.d.ts.map +1 -0
- package/dist/forms/components/index.js +7 -0
- package/dist/forms/components/index.js.map +1 -0
- package/dist/forms/helpers/Locale.d.ts +14 -0
- package/dist/forms/helpers/Locale.d.ts.map +1 -0
- package/dist/forms/helpers/Locale.js +201 -0
- package/dist/forms/helpers/Locale.js.map +1 -0
- package/dist/forms/helpers/index.d.ts +2 -0
- package/dist/forms/helpers/index.d.ts.map +1 -0
- package/dist/forms/helpers/index.js +2 -0
- package/dist/forms/helpers/index.js.map +1 -0
- package/dist/forms/index.d.ts +3 -0
- package/dist/forms/index.d.ts.map +1 -0
- package/dist/forms/index.js +3 -0
- package/dist/forms/index.js.map +1 -0
- package/dist/helpers/AppearanceHelper.d.ts +4 -0
- package/dist/helpers/AppearanceHelper.d.ts.map +1 -1
- package/dist/login/LoginPage.d.ts +26 -0
- package/dist/login/LoginPage.d.ts.map +1 -0
- package/dist/login/LoginPage.js +315 -0
- package/dist/login/LoginPage.js.map +1 -0
- package/dist/login/LogoutPage.d.ts +9 -0
- package/dist/login/LogoutPage.d.ts.map +1 -0
- package/dist/login/LogoutPage.js +33 -0
- package/dist/login/LogoutPage.js.map +1 -0
- package/dist/login/components/Forgot.d.ts +9 -0
- package/dist/login/components/Forgot.d.ts.map +1 -0
- package/dist/login/components/Forgot.js +140 -0
- package/dist/login/components/Forgot.js.map +1 -0
- package/dist/login/components/Login.d.ts +17 -0
- package/dist/login/components/Login.d.ts.map +1 -0
- package/dist/login/components/Login.js +134 -0
- package/dist/login/components/Login.js.map +1 -0
- package/dist/login/components/LoginSetPassword.d.ts +13 -0
- package/dist/login/components/LoginSetPassword.d.ts.map +1 -0
- package/dist/login/components/LoginSetPassword.js +126 -0
- package/dist/login/components/LoginSetPassword.js.map +1 -0
- package/dist/login/components/Register.d.ts +18 -0
- package/dist/login/components/Register.d.ts.map +1 -0
- package/dist/login/components/Register.js +245 -0
- package/dist/login/components/Register.js.map +1 -0
- package/dist/login/components/SelectChurchModal.d.ts +14 -0
- package/dist/login/components/SelectChurchModal.d.ts.map +1 -0
- package/dist/login/components/SelectChurchModal.js +41 -0
- package/dist/login/components/SelectChurchModal.js.map +1 -0
- package/dist/login/components/SelectChurchRegister.d.ts +11 -0
- package/dist/login/components/SelectChurchRegister.d.ts.map +1 -0
- package/dist/login/components/SelectChurchRegister.js +89 -0
- package/dist/login/components/SelectChurchRegister.js.map +1 -0
- package/dist/login/components/SelectChurchSearch.d.ts +10 -0
- package/dist/login/components/SelectChurchSearch.d.ts.map +1 -0
- package/dist/login/components/SelectChurchSearch.js +62 -0
- package/dist/login/components/SelectChurchSearch.js.map +1 -0
- package/dist/login/components/SelectableChurch.d.ts +9 -0
- package/dist/login/components/SelectableChurch.d.ts.map +1 -0
- package/dist/login/components/SelectableChurch.js +49 -0
- package/dist/login/components/SelectableChurch.js.map +1 -0
- package/dist/login/components/VerificationCodeInput.d.ts +11 -0
- package/dist/login/components/VerificationCodeInput.d.ts.map +1 -0
- package/dist/login/components/VerificationCodeInput.js +90 -0
- package/dist/login/components/VerificationCodeInput.js.map +1 -0
- package/dist/login/helpers/AnalyticsHelper.d.ts +7 -0
- package/dist/login/helpers/AnalyticsHelper.d.ts.map +1 -0
- package/dist/login/helpers/AnalyticsHelper.js +45 -0
- package/dist/login/helpers/AnalyticsHelper.js.map +1 -0
- package/dist/login/helpers/Locale.d.ts +14 -0
- package/dist/login/helpers/Locale.d.ts.map +1 -0
- package/dist/login/helpers/Locale.js +220 -0
- package/dist/login/helpers/Locale.js.map +1 -0
- package/dist/login/helpers/index.d.ts +3 -0
- package/dist/login/helpers/index.d.ts.map +1 -0
- package/dist/login/helpers/index.js +3 -0
- package/dist/login/helpers/index.js.map +1 -0
- package/dist/login/index.d.ts +13 -0
- package/dist/login/index.d.ts.map +1 -0
- package/dist/login/index.js +13 -0
- package/dist/login/index.js.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlEditor.d.ts +11 -0
- package/dist/markdown/components/htmlEditor/HtmlEditor.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlEditor.js +8 -0
- package/dist/markdown/components/htmlEditor/HtmlEditor.js.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlEditorInner.d.ts +12 -0
- package/dist/markdown/components/htmlEditor/HtmlEditorInner.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlEditorInner.js +89 -0
- package/dist/markdown/components/htmlEditor/HtmlEditorInner.js.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlModal.d.ts +14 -0
- package/dist/markdown/components/htmlEditor/HtmlModal.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/HtmlModal.js +71 -0
- package/dist/markdown/components/htmlEditor/HtmlModal.js.map +1 -0
- package/dist/markdown/components/htmlEditor/editor.css +831 -0
- package/dist/markdown/components/htmlEditor/images/emoji/1F600.png +0 -0
- package/dist/markdown/components/htmlEditor/images/emoji/1F641.png +0 -0
- package/dist/markdown/components/htmlEditor/images/emoji/1F642.png +0 -0
- package/dist/markdown/components/htmlEditor/images/emoji/2764.png +0 -0
- package/dist/markdown/components/htmlEditor/images/icons/arrow-clockwise.svg +4 -0
- package/dist/markdown/components/htmlEditor/images/icons/arrow-counterclockwise.svg +4 -0
- package/dist/markdown/components/htmlEditor/images/icons/chat-square-quote.svg +4 -0
- package/dist/markdown/components/htmlEditor/images/icons/chevron-down.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/code.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/journal-code.svg +5 -0
- package/dist/markdown/components/htmlEditor/images/icons/journal-text.svg +5 -0
- package/dist/markdown/components/htmlEditor/images/icons/justify.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/link.svg +4 -0
- package/dist/markdown/components/htmlEditor/images/icons/list-ol.svg +4 -0
- package/dist/markdown/components/htmlEditor/images/icons/list-ul.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/pencil-fill.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/text-center.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/text-left.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/text-paragraph.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/text-right.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-bold.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-h1.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-h2.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-h3.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-h4.svg +13 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-italic.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-strikethrough.svg +3 -0
- package/dist/markdown/components/htmlEditor/images/icons/type-underline.svg +3 -0
- package/dist/markdown/components/htmlEditor/index.d.ts +3 -0
- package/dist/markdown/components/htmlEditor/index.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/index.js +3 -0
- package/dist/markdown/components/htmlEditor/index.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/AutoLinkPlugin.d.ts +2 -0
- package/dist/markdown/components/htmlEditor/plugins/AutoLinkPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/AutoLinkPlugin.js +28 -0
- package/dist/markdown/components/htmlEditor/plugins/AutoLinkPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ControlledEditorPlugin.d.ts +6 -0
- package/dist/markdown/components/htmlEditor/plugins/ControlledEditorPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ControlledEditorPlugin.js +30 -0
- package/dist/markdown/components/htmlEditor/plugins/ControlledEditorPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingLinkEditorPlugin.d.ts +8 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingLinkEditorPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingLinkEditorPlugin.js +280 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingLinkEditorPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingTextFormatToolbarPlugin.d.ts +4 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingTextFormatToolbarPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingTextFormatToolbarPlugin.js +188 -0
- package/dist/markdown/components/htmlEditor/plugins/FloatingTextFormatToolbarPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlSourcePlugin.d.ts +6 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlSourcePlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlSourcePlugin.js +85 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlSourcePlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlToolbarPlugin.d.ts +8 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlToolbarPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlToolbarPlugin.js +249 -0
- package/dist/markdown/components/htmlEditor/plugins/HtmlToolbarPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ListMaxIndentLevelPlugin.d.ts +4 -0
- package/dist/markdown/components/htmlEditor/plugins/ListMaxIndentLevelPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ListMaxIndentLevelPlugin.js +41 -0
- package/dist/markdown/components/htmlEditor/plugins/ListMaxIndentLevelPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ReadOnlyPlugin.d.ts +6 -0
- package/dist/markdown/components/htmlEditor/plugins/ReadOnlyPlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/ReadOnlyPlugin.js +10 -0
- package/dist/markdown/components/htmlEditor/plugins/ReadOnlyPlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNode.d.ts +69 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNode.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNode.js +175 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNode.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNodePlugin.d.ts +4 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNodePlugin.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNodePlugin.js +19 -0
- package/dist/markdown/components/htmlEditor/plugins/customLink/CustomLinkNodePlugin.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/AlignmentControls.d.ts +7 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/AlignmentControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/AlignmentControls.js +8 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/AlignmentControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/BlockAndFontControls.d.ts +10 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/BlockAndFontControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/BlockAndFontControls.js +26 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/BlockAndFontControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ColorsAndLinkControls.d.ts +12 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ColorsAndLinkControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ColorsAndLinkControls.js +7 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ColorsAndLinkControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/HistoryControls.d.ts +6 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/HistoryControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/HistoryControls.js +8 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/HistoryControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.d.ts +7 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.js +68 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/SourceToggleControl.d.ts +7 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/SourceToggleControl.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/SourceToggleControl.js +9 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/SourceToggleControl.js.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/TextFormattingControls.d.ts +14 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/TextFormattingControls.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/TextFormattingControls.js +8 -0
- package/dist/markdown/components/htmlEditor/plugins/toolbarParts/TextFormattingControls.js.map +1 -0
- package/dist/markdown/components/htmlEditor/theme.d.ts +77 -0
- package/dist/markdown/components/htmlEditor/theme.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/theme.js +75 -0
- package/dist/markdown/components/htmlEditor/theme.js.map +1 -0
- package/dist/markdown/components/htmlEditor/utils/cleanHtml.d.ts +6 -0
- package/dist/markdown/components/htmlEditor/utils/cleanHtml.d.ts.map +1 -0
- package/dist/markdown/components/htmlEditor/utils/cleanHtml.js +69 -0
- package/dist/markdown/components/htmlEditor/utils/cleanHtml.js.map +1 -0
- package/dist/markdown/components/markdownEditor/Editor.d.ts +14 -0
- package/dist/markdown/components/markdownEditor/Editor.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/Editor.js +86 -0
- package/dist/markdown/components/markdownEditor/Editor.js.map +1 -0
- package/dist/markdown/components/markdownEditor/IconNamesList.d.ts +3 -0
- package/dist/markdown/components/markdownEditor/IconNamesList.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/IconNamesList.js +59 -0
- package/dist/markdown/components/markdownEditor/IconNamesList.js.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownEditor.d.ts +10 -0
- package/dist/markdown/components/markdownEditor/MarkdownEditor.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownEditor.js +9 -0
- package/dist/markdown/components/markdownEditor/MarkdownEditor.js.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownModal.d.ts +9 -0
- package/dist/markdown/components/markdownEditor/MarkdownModal.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownModal.js +20 -0
- package/dist/markdown/components/markdownEditor/MarkdownModal.js.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreview.d.ts +9 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreview.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreview.js +9 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreview.js.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreviewLight.d.ts +7 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreviewLight.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreviewLight.js +50 -0
- package/dist/markdown/components/markdownEditor/MarkdownPreviewLight.js.map +1 -0
- package/dist/markdown/components/markdownEditor/editor.css +787 -0
- package/dist/markdown/components/markdownEditor/images/emoji/1F600.png +0 -0
- package/dist/markdown/components/markdownEditor/images/emoji/1F641.png +0 -0
- package/dist/markdown/components/markdownEditor/images/emoji/1F642.png +0 -0
- package/dist/markdown/components/markdownEditor/images/emoji/2764.png +0 -0
- package/dist/markdown/components/markdownEditor/images/icons/arrow-clockwise.svg +4 -0
- package/dist/markdown/components/markdownEditor/images/icons/arrow-counterclockwise.svg +4 -0
- package/dist/markdown/components/markdownEditor/images/icons/chat-square-quote.svg +4 -0
- package/dist/markdown/components/markdownEditor/images/icons/chevron-down.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/code.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/journal-code.svg +5 -0
- package/dist/markdown/components/markdownEditor/images/icons/journal-text.svg +5 -0
- package/dist/markdown/components/markdownEditor/images/icons/justify.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/link.svg +4 -0
- package/dist/markdown/components/markdownEditor/images/icons/list-ol.svg +4 -0
- package/dist/markdown/components/markdownEditor/images/icons/list-ul.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/pencil-fill.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/text-center.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/text-left.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/text-paragraph.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/text-right.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-bold.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-h1.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-h2.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-h3.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-h4.svg +13 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-italic.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-strikethrough.svg +3 -0
- package/dist/markdown/components/markdownEditor/images/icons/type-underline.svg +3 -0
- package/dist/markdown/components/markdownEditor/index.d.ts +4 -0
- package/dist/markdown/components/markdownEditor/index.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/index.js +4 -0
- package/dist/markdown/components/markdownEditor/index.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/AutoLinkPlugin.d.ts +2 -0
- package/dist/markdown/components/markdownEditor/plugins/AutoLinkPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/AutoLinkPlugin.js +28 -0
- package/dist/markdown/components/markdownEditor/plugins/AutoLinkPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ControlledEditorPlugin.d.ts +8 -0
- package/dist/markdown/components/markdownEditor/plugins/ControlledEditorPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ControlledEditorPlugin.js +16 -0
- package/dist/markdown/components/markdownEditor/plugins/ControlledEditorPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.d.ts +6 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.js +296 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/FloatingTextFormatToolbarPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.d.ts +2 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.js +16 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getDOMRangeRect.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.d.ts +2 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.js +18 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/getSelectNode.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.d.ts +2 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.js +26 -0
- package/dist/markdown/components/markdownEditor/plugins/FloatingTextMenu/setFloatingElemPosition.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.d.ts +2 -0
- package/dist/markdown/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.js +42 -0
- package/dist/markdown/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/MarkdownTransformers.d.ts +12 -0
- package/dist/markdown/components/markdownEditor/plugins/MarkdownTransformers.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/MarkdownTransformers.js +82 -0
- package/dist/markdown/components/markdownEditor/plugins/MarkdownTransformers.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ReadOnlyPlugin.d.ts +6 -0
- package/dist/markdown/components/markdownEditor/plugins/ReadOnlyPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ReadOnlyPlugin.js +9 -0
- package/dist/markdown/components/markdownEditor/plugins/ReadOnlyPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ToolbarPlugin.d.ts +7 -0
- package/dist/markdown/components/markdownEditor/plugins/ToolbarPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/ToolbarPlugin.js +280 -0
- package/dist/markdown/components/markdownEditor/plugins/ToolbarPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNode.d.ts +58 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNode.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNode.js +158 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNode.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.d.ts +4 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.js +19 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.d.ts +3 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js +91 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.d.ts +5 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.js +190 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts +11 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.js +2 -0
- package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNode.d.ts +24 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNode.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNode.js +59 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNode.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNodeTransform.d.ts +4 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNodeTransform.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js +29 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.d.ts +9 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js +62 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojisPlugin.d.ts +10 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojisPlugin.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojisPlugin.js +53 -0
- package/dist/markdown/components/markdownEditor/plugins/emoji/EmojisPlugin.js.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/index.d.ts +7 -0
- package/dist/markdown/components/markdownEditor/plugins/index.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/plugins/index.js +7 -0
- package/dist/markdown/components/markdownEditor/plugins/index.js.map +1 -0
- package/dist/markdown/components/markdownEditor/theme.d.ts +66 -0
- package/dist/markdown/components/markdownEditor/theme.d.ts.map +1 -0
- package/dist/markdown/components/markdownEditor/theme.js +64 -0
- package/dist/markdown/components/markdownEditor/theme.js.map +1 -0
- package/dist/markdown/index.d.ts +7 -0
- package/dist/markdown/index.d.ts.map +1 -0
- package/dist/markdown/index.js +7 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/markdown/stubs/stripe.d.ts +8 -0
- package/dist/markdown/stubs/stripe.d.ts.map +1 -0
- package/dist/markdown/stubs/stripe.js +9 -0
- package/dist/markdown/stubs/stripe.js.map +1 -0
- package/dist/website/components/Animate.d.ts +2 -0
- package/dist/website/components/Animate.d.ts.map +1 -0
- package/dist/website/components/Animate.js +11 -0
- package/dist/website/components/Animate.js.map +1 -0
- package/dist/website/components/Element.d.ts +15 -0
- package/dist/website/components/Element.d.ts.map +1 -0
- package/dist/website/components/Element.js +214 -0
- package/dist/website/components/Element.js.map +1 -0
- package/dist/website/components/Theme.d.ts +9 -0
- package/dist/website/components/Theme.d.ts.map +1 -0
- package/dist/website/components/Theme.js +107 -0
- package/dist/website/components/Theme.js.map +1 -0
- package/dist/website/components/YoutubeBackground.d.ts +13 -0
- package/dist/website/components/YoutubeBackground.d.ts.map +1 -0
- package/dist/website/components/YoutubeBackground.js +86 -0
- package/dist/website/components/YoutubeBackground.js.map +1 -0
- package/dist/website/components/admin/DraggableWrapper.d.ts +11 -0
- package/dist/website/components/admin/DraggableWrapper.d.ts.map +1 -0
- package/dist/website/components/admin/DraggableWrapper.js +13 -0
- package/dist/website/components/admin/DraggableWrapper.js.map +1 -0
- package/dist/website/components/admin/DroppableArea.d.ts +13 -0
- package/dist/website/components/admin/DroppableArea.d.ts.map +1 -0
- package/dist/website/components/admin/DroppableArea.js +112 -0
- package/dist/website/components/admin/DroppableArea.js.map +1 -0
- package/dist/website/components/admin/calendar/CuratedCalendar.d.ts +10 -0
- package/dist/website/components/admin/calendar/CuratedCalendar.d.ts.map +1 -0
- package/dist/website/components/admin/calendar/CuratedCalendar.js +22 -0
- package/dist/website/components/admin/calendar/CuratedCalendar.js.map +1 -0
- package/dist/website/components/admin/calendar/CuratedEventCalendar.d.ts +12 -0
- package/dist/website/components/admin/calendar/CuratedEventCalendar.d.ts.map +1 -0
- package/dist/website/components/admin/calendar/CuratedEventCalendar.js +99 -0
- package/dist/website/components/admin/calendar/CuratedEventCalendar.js.map +1 -0
- package/dist/website/components/admin/calendar/DisplayCalendarEventModal.d.ts +10 -0
- package/dist/website/components/admin/calendar/DisplayCalendarEventModal.d.ts.map +1 -0
- package/dist/website/components/admin/calendar/DisplayCalendarEventModal.js +42 -0
- package/dist/website/components/admin/calendar/DisplayCalendarEventModal.js.map +1 -0
- package/dist/website/components/admin/calendar/EditCalendarEventModal.d.ts +9 -0
- package/dist/website/components/admin/calendar/EditCalendarEventModal.d.ts.map +1 -0
- package/dist/website/components/admin/calendar/EditCalendarEventModal.js +101 -0
- package/dist/website/components/admin/calendar/EditCalendarEventModal.js.map +1 -0
- package/dist/website/components/admin/calendar/index.d.ts +5 -0
- package/dist/website/components/admin/calendar/index.d.ts.map +1 -0
- package/dist/website/components/admin/calendar/index.js +5 -0
- package/dist/website/components/admin/calendar/index.js.map +1 -0
- package/dist/website/components/admin/index.d.ts +4 -0
- package/dist/website/components/admin/index.d.ts.map +1 -0
- package/dist/website/components/admin/index.js +4 -0
- package/dist/website/components/admin/index.js.map +1 -0
- package/dist/website/components/donate/NonAuthDonationWrapper.d.ts +11 -0
- package/dist/website/components/donate/NonAuthDonationWrapper.d.ts.map +1 -0
- package/dist/website/components/donate/NonAuthDonationWrapper.js +25 -0
- package/dist/website/components/donate/NonAuthDonationWrapper.js.map +1 -0
- package/dist/website/components/donate/index.d.ts +2 -0
- package/dist/website/components/donate/index.d.ts.map +1 -0
- package/dist/website/components/donate/index.js +2 -0
- package/dist/website/components/donate/index.js.map +1 -0
- package/dist/website/components/elementTypes/BoxElement.d.ts +11 -0
- package/dist/website/components/elementTypes/BoxElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/BoxElement.js +68 -0
- package/dist/website/components/elementTypes/BoxElement.js.map +1 -0
- package/dist/website/components/elementTypes/ButtonLink.d.ts +7 -0
- package/dist/website/components/elementTypes/ButtonLink.d.ts.map +1 -0
- package/dist/website/components/elementTypes/ButtonLink.js +6 -0
- package/dist/website/components/elementTypes/ButtonLink.js.map +1 -0
- package/dist/website/components/elementTypes/CalendarElement.d.ts +14 -0
- package/dist/website/components/elementTypes/CalendarElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/CalendarElement.js +21 -0
- package/dist/website/components/elementTypes/CalendarElement.js.map +1 -0
- package/dist/website/components/elementTypes/CardElement.d.ts +9 -0
- package/dist/website/components/elementTypes/CardElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/CardElement.js +31 -0
- package/dist/website/components/elementTypes/CardElement.js.map +1 -0
- package/dist/website/components/elementTypes/CarouselElement.d.ts +11 -0
- package/dist/website/components/elementTypes/CarouselElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/CarouselElement.js +120 -0
- package/dist/website/components/elementTypes/CarouselElement.js.map +1 -0
- package/dist/website/components/elementTypes/DonateLinkElement.d.ts +7 -0
- package/dist/website/components/elementTypes/DonateLinkElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/DonateLinkElement.js +15 -0
- package/dist/website/components/elementTypes/DonateLinkElement.js.map +1 -0
- package/dist/website/components/elementTypes/ElementBlock.d.ts +10 -0
- package/dist/website/components/elementTypes/ElementBlock.d.ts.map +1 -0
- package/dist/website/components/elementTypes/ElementBlock.js +14 -0
- package/dist/website/components/elementTypes/ElementBlock.js.map +1 -0
- package/dist/website/components/elementTypes/FaqElement.d.ts +8 -0
- package/dist/website/components/elementTypes/FaqElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/FaqElement.js +38 -0
- package/dist/website/components/elementTypes/FaqElement.js.map +1 -0
- package/dist/website/components/elementTypes/FormElement.d.ts +20 -0
- package/dist/website/components/elementTypes/FormElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/FormElement.js +39 -0
- package/dist/website/components/elementTypes/FormElement.js.map +1 -0
- package/dist/website/components/elementTypes/GroupListElement.d.ts +8 -0
- package/dist/website/components/elementTypes/GroupListElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/GroupListElement.js +4 -0
- package/dist/website/components/elementTypes/GroupListElement.js.map +1 -0
- package/dist/website/components/elementTypes/HtmlPreview.d.ts +12 -0
- package/dist/website/components/elementTypes/HtmlPreview.d.ts.map +1 -0
- package/dist/website/components/elementTypes/HtmlPreview.js +8 -0
- package/dist/website/components/elementTypes/HtmlPreview.js.map +1 -0
- package/dist/website/components/elementTypes/IframeElement.d.ts +7 -0
- package/dist/website/components/elementTypes/IframeElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/IframeElement.js +6 -0
- package/dist/website/components/elementTypes/IframeElement.js.map +1 -0
- package/dist/website/components/elementTypes/ImageElement.d.ts +8 -0
- package/dist/website/components/elementTypes/ImageElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/ImageElement.js +67 -0
- package/dist/website/components/elementTypes/ImageElement.js.map +1 -0
- package/dist/website/components/elementTypes/LogoElement.d.ts +10 -0
- package/dist/website/components/elementTypes/LogoElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/LogoElement.js +11 -0
- package/dist/website/components/elementTypes/LogoElement.js.map +1 -0
- package/dist/website/components/elementTypes/MapElement.d.ts +7 -0
- package/dist/website/components/elementTypes/MapElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/MapElement.js +33 -0
- package/dist/website/components/elementTypes/MapElement.js.map +1 -0
- package/dist/website/components/elementTypes/RawHTMLElement.d.ts +8 -0
- package/dist/website/components/elementTypes/RawHTMLElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/RawHTMLElement.js +22 -0
- package/dist/website/components/elementTypes/RawHTMLElement.js.map +1 -0
- package/dist/website/components/elementTypes/RowElement.d.ts +13 -0
- package/dist/website/components/elementTypes/RowElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/RowElement.js +60 -0
- package/dist/website/components/elementTypes/RowElement.js.map +1 -0
- package/dist/website/components/elementTypes/SermonElement.d.ts +7 -0
- package/dist/website/components/elementTypes/SermonElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/SermonElement.js +53 -0
- package/dist/website/components/elementTypes/SermonElement.js.map +1 -0
- package/dist/website/components/elementTypes/StreamElement.d.ts +11 -0
- package/dist/website/components/elementTypes/StreamElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/StreamElement.js +14 -0
- package/dist/website/components/elementTypes/StreamElement.js.map +1 -0
- package/dist/website/components/elementTypes/TableElement.d.ts +7 -0
- package/dist/website/components/elementTypes/TableElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/TableElement.js +33 -0
- package/dist/website/components/elementTypes/TableElement.js.map +1 -0
- package/dist/website/components/elementTypes/TextOnly.d.ts +8 -0
- package/dist/website/components/elementTypes/TextOnly.d.ts.map +1 -0
- package/dist/website/components/elementTypes/TextOnly.js +13 -0
- package/dist/website/components/elementTypes/TextOnly.js.map +1 -0
- package/dist/website/components/elementTypes/TextWithPhoto.d.ts +8 -0
- package/dist/website/components/elementTypes/TextWithPhoto.d.ts.map +1 -0
- package/dist/website/components/elementTypes/TextWithPhoto.js +28 -0
- package/dist/website/components/elementTypes/TextWithPhoto.js.map +1 -0
- package/dist/website/components/elementTypes/VideoElement.d.ts +7 -0
- package/dist/website/components/elementTypes/VideoElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/VideoElement.js +9 -0
- package/dist/website/components/elementTypes/VideoElement.js.map +1 -0
- package/dist/website/components/elementTypes/WhiteSpaceElement.d.ts +8 -0
- package/dist/website/components/elementTypes/WhiteSpaceElement.d.ts.map +1 -0
- package/dist/website/components/elementTypes/WhiteSpaceElement.js +8 -0
- package/dist/website/components/elementTypes/WhiteSpaceElement.js.map +1 -0
- package/dist/website/components/elementTypes/index.d.ts +25 -0
- package/dist/website/components/elementTypes/index.d.ts.map +1 -0
- package/dist/website/components/elementTypes/index.js +25 -0
- package/dist/website/components/elementTypes/index.js.map +1 -0
- package/dist/website/components/eventCalendar/DisplayEventModal.d.ts +11 -0
- package/dist/website/components/eventCalendar/DisplayEventModal.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/DisplayEventModal.js +37 -0
- package/dist/website/components/eventCalendar/DisplayEventModal.js.map +1 -0
- package/dist/website/components/eventCalendar/EditEventModal.d.ts +9 -0
- package/dist/website/components/eventCalendar/EditEventModal.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/EditEventModal.js +133 -0
- package/dist/website/components/eventCalendar/EditEventModal.js.map +1 -0
- package/dist/website/components/eventCalendar/EditRecurringModal.d.ts +8 -0
- package/dist/website/components/eventCalendar/EditRecurringModal.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/EditRecurringModal.js +12 -0
- package/dist/website/components/eventCalendar/EditRecurringModal.js.map +1 -0
- package/dist/website/components/eventCalendar/EventCalendar.d.ts +11 -0
- package/dist/website/components/eventCalendar/EventCalendar.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/EventCalendar.js +91 -0
- package/dist/website/components/eventCalendar/EventCalendar.js.map +1 -0
- package/dist/website/components/eventCalendar/GroupCalendar.d.ts +9 -0
- package/dist/website/components/eventCalendar/GroupCalendar.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/GroupCalendar.js +22 -0
- package/dist/website/components/eventCalendar/GroupCalendar.js.map +1 -0
- package/dist/website/components/eventCalendar/RRuleEditor.d.ts +9 -0
- package/dist/website/components/eventCalendar/RRuleEditor.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/RRuleEditor.js +147 -0
- package/dist/website/components/eventCalendar/RRuleEditor.js.map +1 -0
- package/dist/website/components/eventCalendar/index.d.ts +7 -0
- package/dist/website/components/eventCalendar/index.d.ts.map +1 -0
- package/dist/website/components/eventCalendar/index.js +7 -0
- package/dist/website/components/eventCalendar/index.js.map +1 -0
- package/dist/website/components/groups/GroupCard.d.ts +7 -0
- package/dist/website/components/groups/GroupCard.d.ts.map +1 -0
- package/dist/website/components/groups/GroupCard.js +43 -0
- package/dist/website/components/groups/GroupCard.js.map +1 -0
- package/dist/website/components/groups/GroupList.d.ts +7 -0
- package/dist/website/components/groups/GroupList.d.ts.map +1 -0
- package/dist/website/components/groups/GroupList.js +26 -0
- package/dist/website/components/groups/GroupList.js.map +1 -0
- package/dist/website/components/index.d.ts +9 -0
- package/dist/website/components/index.d.ts.map +1 -0
- package/dist/website/components/index.js +9 -0
- package/dist/website/components/index.js.map +1 -0
- package/dist/website/components/video/LiveStream.d.ts +12 -0
- package/dist/website/components/video/LiveStream.d.ts.map +1 -0
- package/dist/website/components/video/LiveStream.js +44 -0
- package/dist/website/components/video/LiveStream.js.map +1 -0
- package/dist/website/components/video/VideoContainer.d.ts +11 -0
- package/dist/website/components/video/VideoContainer.d.ts.map +1 -0
- package/dist/website/components/video/VideoContainer.js +118 -0
- package/dist/website/components/video/VideoContainer.js.map +1 -0
- package/dist/website/helpers/AnimationHelper.d.ts +8 -0
- package/dist/website/helpers/AnimationHelper.d.ts.map +1 -0
- package/dist/website/helpers/AnimationHelper.js +46 -0
- package/dist/website/helpers/AnimationHelper.js.map +1 -0
- package/dist/website/helpers/EnvironmentHelper.d.ts +10 -0
- package/dist/website/helpers/EnvironmentHelper.d.ts.map +1 -0
- package/dist/website/helpers/EnvironmentHelper.js +43 -0
- package/dist/website/helpers/EnvironmentHelper.js.map +1 -0
- package/dist/website/helpers/StreamingServiceHelper.d.ts +13 -0
- package/dist/website/helpers/StreamingServiceHelper.d.ts.map +1 -0
- package/dist/website/helpers/StreamingServiceHelper.js +64 -0
- package/dist/website/helpers/StreamingServiceHelper.js.map +1 -0
- package/dist/website/helpers/StyleHelper.d.ts +23 -0
- package/dist/website/helpers/StyleHelper.d.ts.map +1 -0
- package/dist/website/helpers/StyleHelper.js +171 -0
- package/dist/website/helpers/StyleHelper.js.map +1 -0
- package/dist/website/helpers/index.d.ts +36 -0
- package/dist/website/helpers/index.d.ts.map +1 -0
- package/dist/website/helpers/index.js +6 -0
- package/dist/website/helpers/index.js.map +1 -0
- package/dist/website/helpers/interfaces.d.ts +58 -0
- package/dist/website/helpers/interfaces.d.ts.map +1 -0
- package/dist/website/helpers/interfaces.js +2 -0
- package/dist/website/helpers/interfaces.js.map +1 -0
- package/dist/website/index.d.ts +3 -0
- package/dist/website/index.d.ts.map +1 -0
- package/dist/website/index.js +3 -0
- package/dist/website/index.js.map +1 -0
- package/dist/website/styles/animations.css +65 -0
- package/dist/website/styles/pages.css +797 -0
- package/package.json +157 -109
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { $getListDepth, $isListItemNode, $isListNode } from "@lexical/list";
|
|
2
|
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
3
|
+
import { $getSelection, $isElementNode, $isRangeSelection, INDENT_CONTENT_COMMAND, COMMAND_PRIORITY_HIGH } from "lexical";
|
|
4
|
+
import { useEffect } from "react";
|
|
5
|
+
function getElementNodesInSelection(selection) {
|
|
6
|
+
const nodesInSelection = selection.getNodes();
|
|
7
|
+
if (nodesInSelection.length === 0) {
|
|
8
|
+
return new Set([
|
|
9
|
+
selection.anchor.getNode().getParentOrThrow(),
|
|
10
|
+
selection.focus.getNode().getParentOrThrow()
|
|
11
|
+
]);
|
|
12
|
+
}
|
|
13
|
+
return new Set(nodesInSelection.map((n) => ($isElementNode(n) ? n : n.getParentOrThrow())));
|
|
14
|
+
}
|
|
15
|
+
function isIndentPermitted(maxDepth) {
|
|
16
|
+
const selection = $getSelection();
|
|
17
|
+
if (!$isRangeSelection(selection)) {
|
|
18
|
+
return false;
|
|
19
|
+
}
|
|
20
|
+
const elementNodesInSelection = getElementNodesInSelection(selection);
|
|
21
|
+
let totalDepth = 0;
|
|
22
|
+
for (const elementNode of elementNodesInSelection) {
|
|
23
|
+
if ($isListNode(elementNode)) {
|
|
24
|
+
totalDepth = Math.max($getListDepth(elementNode) + 1, totalDepth);
|
|
25
|
+
}
|
|
26
|
+
else if ($isListItemNode(elementNode)) {
|
|
27
|
+
const parent = elementNode.getParent();
|
|
28
|
+
if (!$isListNode(parent)) {
|
|
29
|
+
throw new Error("ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent.");
|
|
30
|
+
}
|
|
31
|
+
totalDepth = Math.max($getListDepth(parent) + 1, totalDepth);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return totalDepth <= maxDepth;
|
|
35
|
+
}
|
|
36
|
+
export default function ListMaxIndentLevelPlugin({ maxDepth = 7 }) {
|
|
37
|
+
const [editor] = useLexicalComposerContext();
|
|
38
|
+
useEffect(() => (editor.registerCommand(INDENT_CONTENT_COMMAND, () => !isIndentPermitted(maxDepth), COMMAND_PRIORITY_HIGH)), [editor, maxDepth]);
|
|
39
|
+
return null;
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=ListMaxIndentLevelPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListMaxIndentLevelPlugin.js","sourceRoot":"","sources":["../../../../../src/markdown/components/htmlEditor/plugins/ListMaxIndentLevelPlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EACL,aAAa,EACb,cAAc,EACd,iBAAiB,EACjB,sBAAsB,EACtB,qBAAqB,EACtB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,SAAS,0BAA0B,CAAC,SAAc;IAChD,MAAM,gBAAgB,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;IAE9C,IAAI,gBAAgB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAClC,OAAO,IAAI,GAAG,CAAC;YACb,SAAS,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,gBAAgB,EAAE;YAC7C,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC,gBAAgB,EAAE;SAC7C,CAAC,CAAC;IACL,CAAC;IAED,OAAO,IAAI,GAAG,CACZ,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,gBAAgB,EAAE,CAAC,CAAC,CACjF,CAAC;AACJ,CAAC;AAED,SAAS,iBAAiB,CAAC,QAAa;IACtC,MAAM,SAAS,GAAG,aAAa,EAAE,CAAC;IAElC,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,EAAE,CAAC;QAClC,OAAO,KAAK,CAAC;IACf,CAAC;IAED,MAAM,uBAAuB,GAAG,0BAA0B,CAAC,SAAS,CAAC,CAAC;IAEtE,IAAI,UAAU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O,UAAU,cAAc,CAAC,EAAE,QAAgB,EAAE,EAAE,KAAK,OAQjE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
3
|
+
export default function ReadOnlyPlugin({ readOnly = false }) {
|
|
4
|
+
const [editor] = useLexicalComposerContext();
|
|
5
|
+
useEffect(() => {
|
|
6
|
+
editor.setEditable(!readOnly);
|
|
7
|
+
}, [editor, readOnly]);
|
|
8
|
+
return null;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=ReadOnlyPlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ReadOnlyPlugin.js","sourceRoot":"","sources":["../../../../../src/markdown/components/htmlEditor/plugins/ReadOnlyPlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAMlF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,QAAQ,GAAG,KAAK,EAAS;IAChE,MAAM,CAAC,MAAM,CAAC,GAAG,yBAAyB,EAAE,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE;QACb,MAAM,CAAC,WAAW,CAAC,CAAC,QAAQ,CAAC,CAAC;IAChC,CAAC,EAAE,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IAEvB,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { LexicalNode, LexicalCommand, NodeKey } from "lexical";
|
|
2
|
+
import { LinkNode } from "@lexical/link";
|
|
3
|
+
export interface LinkCustomizationAttributes {
|
|
4
|
+
url: string;
|
|
5
|
+
target?: string;
|
|
6
|
+
classNames?: Array<string>;
|
|
7
|
+
}
|
|
8
|
+
export declare class CustomLinkNode extends LinkNode {
|
|
9
|
+
__url: string;
|
|
10
|
+
__target: string;
|
|
11
|
+
__classNames: Array<string>;
|
|
12
|
+
constructor(url?: string, target?: string, classNames?: Array<string>, key?: NodeKey);
|
|
13
|
+
static getType(): string;
|
|
14
|
+
static clone(node: CustomLinkNode): CustomLinkNode;
|
|
15
|
+
static importJSON(serializedNode: any): CustomLinkNode;
|
|
16
|
+
static importDOM(): {
|
|
17
|
+
a: (node: Node) => {
|
|
18
|
+
conversion: (domNode: HTMLElement) => {
|
|
19
|
+
node: CustomLinkNode;
|
|
20
|
+
};
|
|
21
|
+
priority: 0 | 1 | 2 | 3 | 4;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
createDOM(): HTMLAnchorElement;
|
|
25
|
+
updateDOM(): boolean;
|
|
26
|
+
exportDOM(): {
|
|
27
|
+
element: HTMLAnchorElement;
|
|
28
|
+
};
|
|
29
|
+
exportJSON(): {
|
|
30
|
+
type: string;
|
|
31
|
+
url: string;
|
|
32
|
+
target: string;
|
|
33
|
+
classNames: string[];
|
|
34
|
+
version: number;
|
|
35
|
+
title?: null | string;
|
|
36
|
+
rel?: null | string;
|
|
37
|
+
children: import("lexical").SerializedLexicalNode[];
|
|
38
|
+
direction: "ltr" | "rtl" | null;
|
|
39
|
+
format: import("lexical").ElementFormatType;
|
|
40
|
+
$?: Record<string, unknown>;
|
|
41
|
+
indent: number;
|
|
42
|
+
textFormat?: number;
|
|
43
|
+
textStyle?: string;
|
|
44
|
+
} | {
|
|
45
|
+
type: string;
|
|
46
|
+
url: string;
|
|
47
|
+
target: string;
|
|
48
|
+
classNames: string[];
|
|
49
|
+
version: number;
|
|
50
|
+
title?: null | string;
|
|
51
|
+
rel?: null | string;
|
|
52
|
+
children: import("lexical").SerializedLexicalNode[];
|
|
53
|
+
direction: "ltr" | "rtl" | null;
|
|
54
|
+
format: import("lexical").ElementFormatType;
|
|
55
|
+
$?: Record<string, unknown>;
|
|
56
|
+
indent: number;
|
|
57
|
+
textFormat?: number;
|
|
58
|
+
textStyle?: string;
|
|
59
|
+
isUnlinked: boolean;
|
|
60
|
+
};
|
|
61
|
+
setClassNames(classNames: Array<string>): void;
|
|
62
|
+
}
|
|
63
|
+
export declare const TOGGLE_CUSTOM_LINK_NODE_COMMAND: LexicalCommand<LinkCustomizationAttributes>;
|
|
64
|
+
export declare function $createCustomLinkNode(url: string, target: string, classNames: Array<string>): CustomLinkNode;
|
|
65
|
+
export declare function $isCustomLinkNode(node: LexicalNode | null | undefined | any): node is CustomLinkNode;
|
|
66
|
+
export declare const toggleCustomLinkNode: ({ url, target, classNames, getNodeByKey }: LinkCustomizationAttributes & {
|
|
67
|
+
getNodeByKey: (key: NodeKey) => HTMLElement | null;
|
|
68
|
+
}) => void;
|
|
69
|
+
//# sourceMappingURL=CustomLinkNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomLinkNode.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/customLink/CustomLinkNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAiB,cAAc,EAA8C,OAAO,EAA4C,MAAM,SAAS,CAAC;AACpK,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAGzC,MAAM,WAAW,2BAA2B;IAC1C,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAC5B;AAED,qBAAa,cAAe,SAAQ,QAAQ;IAC1C,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;gBAE1B,GAAG,GAAE,MAAmB,EACxB,MAAM,GAAE,MAAgB,EACxB,UAAU,GAAE,KAAK,CAAC,MAAM,CAAM,EAC9B,GAAG,CAAC,EAAE,OAAO;IAQf,MAAM,CAAC,OAAO,IAAI,MAAM;IAIxB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,cAAc,GAAG,cAAc;IAKlD,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,GAAG;IASrC,MAAM,CAAC,SAAS;kBAEF,IAAI;kCACU,WAAW;;;sBAMlB,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC;;;IAKtC,SAAS;IAWT,SAAS,IAAI,OAAO;IAKpB,SAAS;;;IAKT,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWV,aAAa,CAAC,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI;CAI/C;AAED,eAAO,MAAM,+BAA+B,EAAE,cAAc,CAAC,2BAA2B,CAAmB,CAAC;AAE5G,wBAAgB,qBAAqB,CACnC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,GACxB,cAAc,CAEhB;AAED,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,GAAG,GAAG,GACzC,IAAI,IAAI,cAAc,CAExB;AAED,eAAO,MAAM,oBAAoB,GAC/B,2CAKG,2BAA2B,GAAG;IAC/B,YAAY,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,WAAW,GAAG,IAAI,CAAC;CACpD,KACA,IAsGF,CAAC"}
|
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
import { createCommand, $isElementNode, $getSelection, $applyNodeReplacement, $isRangeSelection } from "lexical";
|
|
2
|
+
import { LinkNode } from "@lexical/link";
|
|
3
|
+
import { addClassNamesToElement } from "@lexical/utils";
|
|
4
|
+
export class CustomLinkNode extends LinkNode {
|
|
5
|
+
constructor(url = "https://", target = "_self", classNames = [], key) {
|
|
6
|
+
super(url, { target }, key);
|
|
7
|
+
this.__url = url || "https://";
|
|
8
|
+
this.__target = target || "_self";
|
|
9
|
+
this.__classNames = classNames || [];
|
|
10
|
+
}
|
|
11
|
+
static getType() {
|
|
12
|
+
return "html-customlinknode";
|
|
13
|
+
}
|
|
14
|
+
static clone(node) {
|
|
15
|
+
const newLinkNode = new CustomLinkNode(node.__url, node.__target, node.__classNames, node.__key);
|
|
16
|
+
return $applyNodeReplacement(newLinkNode);
|
|
17
|
+
}
|
|
18
|
+
static importJSON(serializedNode) {
|
|
19
|
+
const { url = "https://", target = "_self", classNames = [] } = serializedNode || {};
|
|
20
|
+
return new CustomLinkNode(url, target, classNames);
|
|
21
|
+
}
|
|
22
|
+
static importDOM() {
|
|
23
|
+
return {
|
|
24
|
+
a: (node) => ({
|
|
25
|
+
conversion: (domNode) => {
|
|
26
|
+
const url = domNode.getAttribute("href") || "https://";
|
|
27
|
+
const target = domNode.getAttribute("target") || "_self";
|
|
28
|
+
const classNames = domNode.className ? domNode.className.split(" ").filter(c => c.length > 0) : [];
|
|
29
|
+
return { node: new CustomLinkNode(url, target, classNames) };
|
|
30
|
+
},
|
|
31
|
+
priority: 1
|
|
32
|
+
})
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
createDOM() {
|
|
36
|
+
const link = document.createElement("a");
|
|
37
|
+
link.href = this.__url;
|
|
38
|
+
link.setAttribute("target", this.__target || "_blank");
|
|
39
|
+
if (Array.isArray(this.__classNames)) {
|
|
40
|
+
// Spread so each class is a separate token
|
|
41
|
+
addClassNamesToElement(link, ...this.__classNames);
|
|
42
|
+
}
|
|
43
|
+
return link;
|
|
44
|
+
}
|
|
45
|
+
updateDOM() {
|
|
46
|
+
return false;
|
|
47
|
+
}
|
|
48
|
+
// Ensure HTML export includes class/target
|
|
49
|
+
exportDOM() {
|
|
50
|
+
const element = this.createDOM();
|
|
51
|
+
return { element };
|
|
52
|
+
}
|
|
53
|
+
exportJSON() {
|
|
54
|
+
return {
|
|
55
|
+
...super.exportJSON(),
|
|
56
|
+
type: CustomLinkNode.getType(),
|
|
57
|
+
url: this.__url,
|
|
58
|
+
target: this.__target,
|
|
59
|
+
classNames: this.__classNames,
|
|
60
|
+
version: 1
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
setClassNames(classNames) {
|
|
64
|
+
const writable = this.getWritable();
|
|
65
|
+
writable.__classNames = classNames;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
export const TOGGLE_CUSTOM_LINK_NODE_COMMAND = createCommand();
|
|
69
|
+
export function $createCustomLinkNode(url, target, classNames) {
|
|
70
|
+
return $applyNodeReplacement(new CustomLinkNode(url, target, classNames));
|
|
71
|
+
}
|
|
72
|
+
export function $isCustomLinkNode(node) {
|
|
73
|
+
return node instanceof CustomLinkNode;
|
|
74
|
+
}
|
|
75
|
+
export const toggleCustomLinkNode = ({ url, target = "_blank", classNames = [], getNodeByKey }) => {
|
|
76
|
+
const addAttributesToLinkNode = (linkNode, { url, target, classNames }) => {
|
|
77
|
+
const dom = getNodeByKey(linkNode.getKey());
|
|
78
|
+
if (!dom)
|
|
79
|
+
return;
|
|
80
|
+
const uniqueClassNames = classNames;
|
|
81
|
+
linkNode.setURL(url);
|
|
82
|
+
linkNode.setTarget(target);
|
|
83
|
+
linkNode.setClassNames(uniqueClassNames);
|
|
84
|
+
dom.setAttribute("href", url);
|
|
85
|
+
dom.setAttribute("target", target);
|
|
86
|
+
dom.setAttribute("class", uniqueClassNames.join(" "));
|
|
87
|
+
};
|
|
88
|
+
const selection = $getSelection();
|
|
89
|
+
if (!$isRangeSelection(selection)) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
const nodes = selection.extract();
|
|
93
|
+
if (url === null) {
|
|
94
|
+
// Remove LinkNodes
|
|
95
|
+
nodes.forEach((node) => {
|
|
96
|
+
const parent = node.getParent();
|
|
97
|
+
if ($isCustomLinkNode(parent)) {
|
|
98
|
+
const children = parent.getChildren();
|
|
99
|
+
for (let i = 0; i < children.length; i++) {
|
|
100
|
+
parent.insertBefore(children[i]);
|
|
101
|
+
}
|
|
102
|
+
parent.remove();
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
// Add or merge LinkNodes
|
|
108
|
+
if (nodes.length === 1) {
|
|
109
|
+
const firstNode = nodes[0];
|
|
110
|
+
const linkNode = $isCustomLinkNode(firstNode)
|
|
111
|
+
? firstNode
|
|
112
|
+
: $getLinkAncestor(firstNode);
|
|
113
|
+
if (linkNode !== null && $isCustomLinkNode(linkNode)) {
|
|
114
|
+
addAttributesToLinkNode(linkNode, { url, target, classNames });
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
let prevParent = null;
|
|
119
|
+
let linkNode = null;
|
|
120
|
+
nodes.forEach((node) => {
|
|
121
|
+
const parent = node.getParent();
|
|
122
|
+
if (parent === linkNode ||
|
|
123
|
+
parent === null ||
|
|
124
|
+
($isElementNode(node) && !node.isInline())) {
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
if ($isCustomLinkNode(parent)) {
|
|
128
|
+
linkNode = parent;
|
|
129
|
+
addAttributesToLinkNode(parent, { url, target, classNames });
|
|
130
|
+
return;
|
|
131
|
+
}
|
|
132
|
+
if (!parent.is(prevParent)) {
|
|
133
|
+
prevParent = parent;
|
|
134
|
+
linkNode = $createCustomLinkNode(url, target, classNames);
|
|
135
|
+
if ($isCustomLinkNode(parent)) {
|
|
136
|
+
if (node.getPreviousSibling() === null) {
|
|
137
|
+
parent.insertBefore(linkNode);
|
|
138
|
+
}
|
|
139
|
+
else {
|
|
140
|
+
parent.insertAfter(linkNode);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
else {
|
|
144
|
+
node.insertBefore(linkNode);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
if ($isCustomLinkNode(node)) {
|
|
148
|
+
if (node.is(linkNode)) {
|
|
149
|
+
return;
|
|
150
|
+
}
|
|
151
|
+
if (linkNode !== null) {
|
|
152
|
+
const children = node.getChildren();
|
|
153
|
+
for (let i = 0; i < children.length; i++) {
|
|
154
|
+
linkNode.append(children[i]);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
node.remove();
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
if (linkNode !== null) {
|
|
161
|
+
linkNode.append(node);
|
|
162
|
+
}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
const $getLinkAncestor = (node) => ($getAncestor(node, (ancestor) => $isCustomLinkNode(ancestor)));
|
|
167
|
+
const $getAncestor = (node, predicate) => {
|
|
168
|
+
let parent = node;
|
|
169
|
+
while (parent !== null &&
|
|
170
|
+
(parent = parent.getParent()) !== null &&
|
|
171
|
+
!predicate(parent))
|
|
172
|
+
;
|
|
173
|
+
return parent;
|
|
174
|
+
};
|
|
175
|
+
//# sourceMappingURL=CustomLinkNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomLinkNode.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/customLink/CustomLinkNode.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAe,aAAa,EAAkB,cAAc,EAAE,aAAa,EAAwB,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AACpK,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AAQxD,MAAM,OAAO,cAAe,SAAQ,QAAQ;IAI1C,YACE,MAAc,UAAU,EACxB,SAAiB,OAAO,EACxB,aAA4B,EAAE,EAC9B,GAAa;QAEb,KAAK,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,EAAE,GAAG,CAAC,CAAC;QAC5B,IAAI,CAAC,KAAK,GAAG,GAAG,IAAI,UAAU,CAAC;QAC/B,IAAI,CAAC,QAAQ,GAAG,MAAM,IAAI,OAAO,CAAC;QAClC,IAAI,CAAC,YAAY,GAAG,UAAU,IAAI,EAAE,CAAC;IACvC,CAAC;IAED,MAAM,CAAC,OAAO;QACZ,OAA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L,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,gBAAgB,GAAG,CAAC,IAAiB,EAAsB,EAAE,CAAC,CAClE,YAAY,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE,EAAE,CAAC,iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAC9D,CAAC;AAEF,MAAM,YAAY,GAAG,CACnB,IAAiB,EACjB,SAA6C,EACzB,EAAE;IACtB,IAAI,MAAM,GAAuB,IAAI,CAAC;IAEtC,OACE,MAAM,KAAK,IAAI;QACf,CAAC,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC,KAAK,IAAI;QACtC,CAAC,SAAS,CAAC,MAAM,CAAC;QACnB,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomLinkNodePlugin.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/customLink/CustomLinkNodePlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAUtC,QAAA,MAAM,oBAAoB,EAAE,EAkB3B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
3
|
+
import { toggleCustomLinkNode, TOGGLE_CUSTOM_LINK_NODE_COMMAND } from "./CustomLinkNode";
|
|
4
|
+
const COMMAND_PRIORITY = 1;
|
|
5
|
+
const CustomLinkNodePlugin = () => {
|
|
6
|
+
const [editor] = useLexicalComposerContext();
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
return editor.registerCommand(TOGGLE_CUSTOM_LINK_NODE_COMMAND, (props) => {
|
|
9
|
+
toggleCustomLinkNode({
|
|
10
|
+
...props,
|
|
11
|
+
getNodeByKey: (key) => editor.getElementByKey(key)
|
|
12
|
+
});
|
|
13
|
+
return true;
|
|
14
|
+
}, COMMAND_PRIORITY);
|
|
15
|
+
}, [editor]);
|
|
16
|
+
return null;
|
|
17
|
+
};
|
|
18
|
+
export default CustomLinkNodePlugin;
|
|
19
|
+
//# sourceMappingURL=CustomLinkNodePlugin.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomLinkNodePlugin.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/customLink/CustomLinkNodePlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,SAAS,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAEL,oBAAoB,EACpB,+BAA+B,EAChC,MAAM,kBAAkB,CAAC;AAE1B,MAAM,gBAAgB,GAAG,CAAC,CAAC;AAE3B,MAAM,oBAAoB,GAAO,GAAG,EAAE;IACpC,MAAM,CAAC,MAAM,CAAC,GAAG,yBAAyB,EAAE,CAAC;IAE7C,SAAS,CAAC,GAAG,EAAE;QACb,OAAO,MAAM,CAAC,eAAe,CAC3B,+BAA+B,EAC/B,CAAC,KAAkC,EAAE,EAAE;YACrC,oBAAoB,CAAC;gBACnB,GAAG,KAAK;gBACR,YAAY,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,GAAG,CAAC;aAC3D,CAAC,CAAC;YACH,OAAO,IAAI,CAAC;QACd,CAAC,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlignmentControls.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/toolbarParts/AlignmentControls.tsx"],"names":[],"mappings":"AAKA,UAAU,KAAK;IAAG,MAAM,EAAE,GAAG,CAAC;IAAC,aAAa,EAAE,MAAM,CAAC;CAAE;AAEvD,wBAAgB,iBAAiB,CAAC,EAAE,MAAM,EAAE,aAAa,EAAE,EAAE,KAAK,2CASjE"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonGroup, IconButton, Tooltip } from "@mui/material";
|
|
3
|
+
import { FormatAlignLeft, FormatAlignCenter, FormatAlignRight, FormatAlignJustify } from "@mui/icons-material";
|
|
4
|
+
import { FORMAT_ELEMENT_COMMAND } from "lexical";
|
|
5
|
+
export function AlignmentControls({ editor, elementFormat }) {
|
|
6
|
+
return (_jsxs(ButtonGroup, { size: "small", variant: "outlined", children: [_jsx(Tooltip, { title: "Align Left", children: _jsx(IconButton, { onClick: () => editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "left"), className: elementFormat === "left" || elementFormat === "" ? "active" : "", size: "small", children: _jsx(FormatAlignLeft, {}) }) }), _jsx(Tooltip, { title: "Align Center", children: _jsx(IconButton, { onClick: () => editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "center"), className: elementFormat === "center" ? "active" : "", size: "small", children: _jsx(FormatAlignCenter, {}) }) }), _jsx(Tooltip, { title: "Align Right", children: _jsx(IconButton, { onClick: () => editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "right"), className: elementFormat === "right" ? "active" : "", size: "small", children: _jsx(FormatAlignRight, {}) }) }), _jsx(Tooltip, { title: "Justify", children: _jsx(IconButton, { onClick: () => editor.dispatchCommand(FORMAT_ELEMENT_COMMAND, "justify"), className: elementFormat === "justify" ? "active" : "", size: "small", children: _jsx(FormatAlignJustify, {}) }) })] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=AlignmentControls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AlignmentControls.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/html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,CAAC,CAAC,EAAE,EAAE,IAAI,EAAC,OAAO,YAAC,KAAC,gBAAgB,KAAG,GAAa,GAAU,EAC/N,KAAC,OAAO,IAAC,KAAK,EAAC,SAAS,YAAC,KAAC,UAAU,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,sBAAsB,EAAE,SAAS,CAAC,EAAE,SAAS,EAAE,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,EAAC,OAAO,YAAC,KAAC,kBAAkB,KAAG,GAAa,GAAU,IACrN,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
blockType: string;
|
|
3
|
+
onFormatHeading: (tag: "h1" | "h2" | "h3" | "h4" | "h5" | "h6") => void;
|
|
4
|
+
onFormatParagraph: () => void;
|
|
5
|
+
onFormatCode: () => void;
|
|
6
|
+
onApplyFontSize: (size: string) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare function BlockAndFontControls({ blockType, onFormatHeading, onFormatParagraph, onFormatCode, onApplyFontSize }: Props): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=BlockAndFontControls.d.ts.map
|
package/dist/markdown/components/htmlEditor/plugins/toolbarParts/BlockAndFontControls.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockAndFontControls.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/toolbarParts/BlockAndFontControls.tsx"],"names":[],"mappings":"AAIA,UAAU,KAAK;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,eAAe,EAAE,CAAC,GAAG,EAAE,IAAI,GAAC,IAAI,GAAC,IAAI,GAAC,IAAI,GAAC,IAAI,GAAC,IAAI,KAAK,IAAI,CAAC;IAC9D,iBAAiB,EAAE,MAAM,IAAI,CAAC;IAC9B,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB,eAAe,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAMD,wBAAgB,oBAAoB,CAAC,EAAE,SAAS,EAAE,eAAe,EAAE,iBAAiB,EAAE,YAAY,EAAE,eAAe,EAAE,EAAE,KAAK,2CA0D3H"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import { Box, IconButton, MenuItem, Popover, Select, Tooltip } from "@mui/material";
|
|
4
|
+
import { FormatSize } from "@mui/icons-material";
|
|
5
|
+
const FONT_SIZES = [
|
|
6
|
+
"12px", "14px", "16px", "18px", "20px", "24px", "28px", "32px", "36px", "48px"
|
|
7
|
+
];
|
|
8
|
+
export function BlockAndFontControls({ blockType, onFormatHeading, onFormatParagraph, onFormatCode, onApplyFontSize }) {
|
|
9
|
+
const [fontSizeAnchor, setFontSizeAnchor] = useState(null);
|
|
10
|
+
// Normalize block type to a valid dropdown value
|
|
11
|
+
// When in lists (bullet/number) or quotes, show "Normal" as the base block type
|
|
12
|
+
const validBlockTypes = [
|
|
13
|
+
"paragraph", "h1", "h2", "h3", "h4", "h5", "h6", "code"
|
|
14
|
+
];
|
|
15
|
+
const normalizedBlockType = validBlockTypes.includes(blockType) ? blockType : "paragraph";
|
|
16
|
+
return (_jsxs(Box, { sx: { display: "flex", alignItems: "center", gap: 1 }, children: [_jsxs(Select, { value: normalizedBlockType, size: "small", sx: { minWidth: 100 }, onChange: (e) => {
|
|
17
|
+
const value = e.target.value;
|
|
18
|
+
if (value === "paragraph")
|
|
19
|
+
return onFormatParagraph();
|
|
20
|
+
if (value === "code")
|
|
21
|
+
return onFormatCode();
|
|
22
|
+
if (["h1", "h2", "h3", "h4", "h5", "h6"].includes(value))
|
|
23
|
+
return onFormatHeading(value);
|
|
24
|
+
}, children: [_jsx(MenuItem, { value: "paragraph", children: "Normal" }), _jsx(MenuItem, { value: "h1", children: "Heading 1" }), _jsx(MenuItem, { value: "h2", children: "Heading 2" }), _jsx(MenuItem, { value: "h3", children: "Heading 3" }), _jsx(MenuItem, { value: "h4", children: "Heading 4" }), _jsx(MenuItem, { value: "h5", children: "Heading 5" }), _jsx(MenuItem, { value: "h6", children: "Heading 6" }), _jsx(MenuItem, { value: "code", children: "Code Block" })] }), _jsx(Tooltip, { title: "Font Size", children: _jsx(IconButton, { onClick: (e) => setFontSizeAnchor(e.currentTarget), size: "small", children: _jsx(FormatSize, {}) }) }), _jsx(Popover, { open: Boolean(fontSizeAnchor), anchorEl: fontSizeAnchor, onClose: () => setFontSizeAnchor(null), anchorOrigin: { vertical: "bottom", horizontal: "left" }, disableAutoFocus: true, disableEnforceFocus: true, disableRestoreFocus: true, children: _jsx(Box, { sx: { p: 1 }, onMouseDown: (e) => e.stopPropagation(), onClick: (e) => e.stopPropagation(), onKeyDown: (e) => e.stopPropagation(), children: FONT_SIZES.map(size => (_jsx(MenuItem, { onClick: () => { onApplyFontSize(size); setFontSizeAnchor(null); }, children: size }, size))) }) })] }));
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=BlockAndFontControls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BlockAndFontControls.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/toolbarParts/BlockAndFontControls.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAUjD,MAAM,UAAU,GAAG;IACjB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAA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IAAI,CAAC,CAAC,CAAC,iBAAiB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,YACpF,IAAI,IADQ,IAAI,CAER,CACZ,CAAC,GACE,GACE,IACN,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
textColor: string;
|
|
3
|
+
bgColor: string;
|
|
4
|
+
isLink: boolean;
|
|
5
|
+
onOpenPicker: (initialColor: string, onColor: (val: string) => void, anchorEl?: HTMLElement) => void;
|
|
6
|
+
onApplyTextColor: (val: string) => void;
|
|
7
|
+
onApplyBgColor: (val: string) => void;
|
|
8
|
+
onInsertLink: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare function ColorsAndLinkControls({ textColor, bgColor, isLink, onOpenPicker, onApplyTextColor, onApplyBgColor, onInsertLink }: Props): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=ColorsAndLinkControls.d.ts.map
|
package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ColorsAndLinkControls.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorsAndLinkControls.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/toolbarParts/ColorsAndLinkControls.tsx"],"names":[],"mappings":"AAIA,UAAU,KAAK;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,EAAE,QAAQ,CAAC,EAAE,WAAW,KAAK,IAAI,CAAC;IACrG,gBAAgB,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,cAAc,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;IACtC,YAAY,EAAE,MAAM,IAAI,CAAC;CAC1B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,EAAE,KAAK,2CAoBxI"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonGroup, IconButton, Tooltip } from "@mui/material";
|
|
3
|
+
import { FormatColorText, FormatColorFill, Link as LinkIcon } from "@mui/icons-material";
|
|
4
|
+
export function ColorsAndLinkControls({ textColor, bgColor, isLink, onOpenPicker, onApplyTextColor, onApplyBgColor, onInsertLink }) {
|
|
5
|
+
return (_jsxs(ButtonGroup, { size: "small", variant: "outlined", children: [_jsx(Tooltip, { title: "Text Color", children: _jsx(IconButton, { onClick: (e) => onOpenPicker(textColor, onApplyTextColor, e.currentTarget), size: "small", children: _jsx(FormatColorText, {}) }) }), _jsx(Tooltip, { title: "Background Color", children: _jsx(IconButton, { onClick: (e) => onOpenPicker(bgColor, onApplyBgColor, e.currentTarget), size: "small", children: _jsx(FormatColorFill, {}) }) }), _jsx(Tooltip, { title: "Insert Link", children: _jsx(IconButton, { onClick: onInsertLink, className: isLink ? "active" : "", size: "small", children: _jsx(LinkIcon, {}) }) })] }));
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=ColorsAndLinkControls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ColorsAndLinkControls.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/toolbarParts/ColorsAndLinkControls.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAYzF,MAAM,UAAU,qBAAqB,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAS;IACvI,OAAO,CACL,MAAC,WAAW,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAC,UAAU,aAC1C,KAAC,OAAO,IAAC,KAAK,EAAC,YAAY,YACzB,KAAC,UAAU,IAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,SAAS,EAAE,gBAAgB,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,IAAI,EAAC,OAAO,YAClG,KAAC,eAAe,KAAG,GACR,GACL,EACV,KAAC,OAAO,IAAC,KAAK,EAAC,kBAAkB,YAC/B,KAAC,UAAU,IAAC,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,OAAO,EAAE,cAAc,EAAE,CAAC,CAAC,aAAa,CAAC,EAAE,IAAI,EAAC,OAAO,YAC9F,KAAC,eAAe,KAAG,GACR,GACL,EACV,KAAC,OAAO,IAAC,KAAK,EAAC,aAAa,YAC1B,KAAC,UAAU,IAAC,OAAO,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAAE,IAAI,EAAC,OAAO,YAChF,KAAC,QAAQ,KAAG,GACD,GACL,IACE,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HistoryControls.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/toolbarParts/HistoryControls.tsx"],"names":[],"mappings":"AAKA,UAAU,KAAK;IACb,MAAM,EAAE,GAAG,CAAC;CACb;AAED,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,2CAehD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { IconButton, ButtonGroup, Tooltip } from "@mui/material";
|
|
3
|
+
import { Undo, Redo } from "@mui/icons-material";
|
|
4
|
+
import { UNDO_COMMAND, REDO_COMMAND } from "lexical";
|
|
5
|
+
export function HistoryControls({ editor }) {
|
|
6
|
+
return (_jsxs(ButtonGroup, { size: "small", variant: "outlined", children: [_jsx(Tooltip, { title: "Undo", children: _jsx(IconButton, { onClick: () => editor.dispatchCommand(UNDO_COMMAND, undefined), size: "small", children: _jsx(Undo, {}) }) }), _jsx(Tooltip, { title: "Redo", children: _jsx(IconButton, { onClick: () => editor.dispatchCommand(REDO_COMMAND, undefined), size: "small", children: _jsx(Redo, {}) }) })] }));
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=HistoryControls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HistoryControls.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/toolbarParts/HistoryControls.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAMrD,MAAM,UAAU,eAAe,CAAC,EAAE,MAAM,EAAS;IAC/C,OAAO,CACL,MAAC,WAAW,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAC,UAAU,aAC1C,KAAC,OAAO,IAAC,KAAK,EAAC,MAAM,YACnB,KAAC,UAAU,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,EAAE,IAAI,EAAC,OAAO,YACtF,KAAC,IAAI,KAAG,GACG,GACL,EACV,KAAC,OAAO,IAAC,KAAK,EAAC,MAAM,YACnB,KAAC,UAAU,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,YAAY,EAAE,SAAS,CAAC,EAAE,IAAI,EAAC,OAAO,YACtF,KAAC,IAAI,KAAG,GACG,GACL,IACE,CACf,CAAC;AACJ,CAAC"}
|
package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListsAndElementsControls.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.tsx"],"names":[],"mappings":"AAUA,UAAU,KAAK;IAAG,MAAM,EAAE,GAAG,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;CAAE;AAEnD,wBAAgB,wBAAwB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,KAAK,2CAmEpE"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { ButtonGroup, IconButton, Tooltip } from "@mui/material";
|
|
3
|
+
import { FormatListBulleted, FormatListNumbered, FormatQuote, HorizontalRule } from "@mui/icons-material";
|
|
4
|
+
import { INSERT_UNORDERED_LIST_COMMAND, INSERT_ORDERED_LIST_COMMAND, REMOVE_LIST_COMMAND, $isListNode, ListNode } from "@lexical/list";
|
|
5
|
+
import { $getSelection, $isRangeSelection, $createParagraphNode } from "lexical";
|
|
6
|
+
import { $setBlocksType } from "@lexical/selection";
|
|
7
|
+
import { $createQuoteNode, $isQuoteNode } from "@lexical/rich-text";
|
|
8
|
+
import { INSERT_HORIZONTAL_RULE_COMMAND } from "@lexical/react/LexicalHorizontalRuleNode";
|
|
9
|
+
import { $getNearestNodeOfType } from "@lexical/utils";
|
|
10
|
+
export function ListsAndElementsControls({ editor, blockType }) {
|
|
11
|
+
const formatBulletList = () => {
|
|
12
|
+
editor.update(() => {
|
|
13
|
+
const selection = $getSelection();
|
|
14
|
+
if ($isRangeSelection(selection)) {
|
|
15
|
+
const anchorNode = selection.anchor.getNode();
|
|
16
|
+
const element = anchorNode.getKey() === "root"
|
|
17
|
+
? anchorNode
|
|
18
|
+
: anchorNode.getTopLevelElementOrThrow();
|
|
19
|
+
const parentList = $getNearestNodeOfType(anchorNode, ListNode);
|
|
20
|
+
const type = $isListNode(element) ? element.getListType() : parentList?.getListType();
|
|
21
|
+
if (type === "bullet") {
|
|
22
|
+
editor.dispatchCommand(REMOVE_LIST_COMMAND, undefined);
|
|
23
|
+
}
|
|
24
|
+
else {
|
|
25
|
+
editor.dispatchCommand(INSERT_UNORDERED_LIST_COMMAND, undefined);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
const formatNumberedList = () => {
|
|
31
|
+
editor.update(() => {
|
|
32
|
+
const selection = $getSelection();
|
|
33
|
+
if ($isRangeSelection(selection)) {
|
|
34
|
+
const anchorNode = selection.anchor.getNode();
|
|
35
|
+
const element = anchorNode.getKey() === "root"
|
|
36
|
+
? anchorNode
|
|
37
|
+
: anchorNode.getTopLevelElementOrThrow();
|
|
38
|
+
const parentList = $getNearestNodeOfType(anchorNode, ListNode);
|
|
39
|
+
const type = $isListNode(element) ? element.getListType() : parentList?.getListType();
|
|
40
|
+
if (type === "number") {
|
|
41
|
+
editor.dispatchCommand(REMOVE_LIST_COMMAND, undefined);
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
editor.dispatchCommand(INSERT_ORDERED_LIST_COMMAND, undefined);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
const insertQuote = () => {
|
|
50
|
+
editor.update(() => {
|
|
51
|
+
const selection = $getSelection();
|
|
52
|
+
if ($isRangeSelection(selection)) {
|
|
53
|
+
const anchorNode = selection.anchor.getNode();
|
|
54
|
+
const element = anchorNode.getKey() === "root"
|
|
55
|
+
? anchorNode
|
|
56
|
+
: anchorNode.getTopLevelElementOrThrow();
|
|
57
|
+
if ($isQuoteNode(element)) {
|
|
58
|
+
$setBlocksType(selection, () => $createParagraphNode());
|
|
59
|
+
}
|
|
60
|
+
else {
|
|
61
|
+
$setBlocksType(selection, () => $createQuoteNode());
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
return (_jsxs(ButtonGroup, { size: "small", variant: "outlined", children: [_jsx(Tooltip, { title: "Bullet List", children: _jsx(IconButton, { onClick: formatBulletList, className: blockType === "bullet" ? "active" : "", size: "small", children: _jsx(FormatListBulleted, {}) }) }), _jsx(Tooltip, { title: "Numbered List", children: _jsx(IconButton, { onClick: formatNumberedList, className: blockType === "number" ? "active" : "", size: "small", children: _jsx(FormatListNumbered, {}) }) }), _jsx(Tooltip, { title: "Quote", children: _jsx(IconButton, { onClick: insertQuote, className: blockType === "quote" ? "active" : "", size: "small", children: _jsx(FormatQuote, {}) }) }), _jsx(Tooltip, { title: "Horizontal Rule", children: _jsx(IconButton, { onClick: () => editor.dispatchCommand(INSERT_HORIZONTAL_RULE_COMMAND, undefined), size: "small", children: _jsx(HorizontalRule, {}) }) })] }));
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=ListsAndElementsControls.js.map
|
package/dist/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ListsAndElementsControls.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/htmlEditor/plugins/toolbarParts/ListsAndElementsControls.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1G,OAAO,EAAE,6BAA6B,EAAE,2BAA2B,EAAE,mBAAmB,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,e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E,IAAI,EAAC,OAAO,YAAC,KAAC,cAAc,KAAG,GAAa,GAAU,IACzK,CACf,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
isSourceMode?: boolean;
|
|
3
|
+
setIsSourceMode?: (value: boolean) => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function SourceToggleControl({ isSourceMode, setIsSourceMode }: Props): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export {};
|
|
7
|
+
//# sourceMappingURL=SourceToggleControl.d.ts.map
|