@churchapps/apphelper 0.6.24 → 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/helpers/NotificationService.d.ts +5 -0
- package/dist/helpers/NotificationService.d.ts.map +1 -1
- package/dist/helpers/NotificationService.js +21 -4
- package/dist/helpers/NotificationService.js.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,58 @@
|
|
|
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 importJSON(serializedNode: any): CustomLinkNode;
|
|
14
|
+
exportJSON(): {
|
|
15
|
+
type: string;
|
|
16
|
+
url: string;
|
|
17
|
+
target: string;
|
|
18
|
+
classNames: string[];
|
|
19
|
+
version: number;
|
|
20
|
+
title?: null | string;
|
|
21
|
+
rel?: null | string;
|
|
22
|
+
children: import("lexical").SerializedLexicalNode[];
|
|
23
|
+
direction: "ltr" | "rtl" | null;
|
|
24
|
+
format: import("lexical").ElementFormatType;
|
|
25
|
+
$?: Record<string, unknown>;
|
|
26
|
+
indent: number;
|
|
27
|
+
textFormat?: number;
|
|
28
|
+
textStyle?: string;
|
|
29
|
+
} | {
|
|
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
|
+
isUnlinked: boolean;
|
|
45
|
+
};
|
|
46
|
+
static getType(): string;
|
|
47
|
+
static clone(node: CustomLinkNode): CustomLinkNode;
|
|
48
|
+
createDOM(): HTMLAnchorElement;
|
|
49
|
+
updateDOM(): boolean;
|
|
50
|
+
setClassNames(classNames: Array<string>): void;
|
|
51
|
+
}
|
|
52
|
+
export declare const TOGGLE_CUSTOM_LINK_NODE_COMMAND: LexicalCommand<LinkCustomizationAttributes>;
|
|
53
|
+
export declare function $createCustomLinkNode(url: string, target: string, classNames: Array<string>): CustomLinkNode;
|
|
54
|
+
export declare function $isCustomLinkNode(node: LexicalNode | null | undefined | any): node is CustomLinkNode;
|
|
55
|
+
export declare const toggleCustomLinkNode: ({ url, target, classNames, getNodeByKey }: LinkCustomizationAttributes & {
|
|
56
|
+
getNodeByKey: (key: NodeKey) => HTMLElement | null;
|
|
57
|
+
}) => void;
|
|
58
|
+
//# sourceMappingURL=CustomLinkNode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomLinkNode.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/markdownEditor/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,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,KAAK,CAAC,MAAM,CAAC,EACzB,GAAG,CAAC,EAAE,OAAO;IAQf,MAAM,CAAC,UAAU,CAAC,cAAc,EAAE,GAAG;IASrC,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAWV,MAAM,CAAC,OAAO,IAAK,MAAM;IAIzB,MAAM,CAAC,KAAK,CAAC,IAAI,EAAG,cAAc,GAAI,cAAc;IAMpD,SAAS;IAcT,SAAS,IAAI,OAAO;IAIpB,aAAa,CAAC,UAAU,EAAG,KAAK,CAAC,MAAM,CAAC,GAAI,IAAI;CAKjD;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,2CAKI,2BAA2B,GAAG;IAChC,YAAY,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,WAAW,GAAG,IAAI,CAAC;CACpD,KACA,IAmHF,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
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, target, classNames, key) {
|
|
6
|
+
super(url, { target }, key);
|
|
7
|
+
this.__url = url || "https://";
|
|
8
|
+
this.__target = target || "_self";
|
|
9
|
+
this.__classNames = classNames || [];
|
|
10
|
+
}
|
|
11
|
+
static importJSON(serializedNode) {
|
|
12
|
+
const { url = "https://", target = "_self", classNames = [] } = serializedNode || {};
|
|
13
|
+
return new CustomLinkNode(url, target, classNames);
|
|
14
|
+
}
|
|
15
|
+
exportJSON() {
|
|
16
|
+
return {
|
|
17
|
+
...super.exportJSON(),
|
|
18
|
+
type: CustomLinkNode.getType(),
|
|
19
|
+
url: this.__url,
|
|
20
|
+
target: this.__target,
|
|
21
|
+
classNames: this.__classNames,
|
|
22
|
+
version: 1
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
static getType() {
|
|
26
|
+
return "customlinknode";
|
|
27
|
+
}
|
|
28
|
+
static clone(node) {
|
|
29
|
+
const newLinkNode = new CustomLinkNode(node.__url, node.__target, node.__classNames, node.__key);
|
|
30
|
+
return $applyNodeReplacement(newLinkNode);
|
|
31
|
+
}
|
|
32
|
+
createDOM() {
|
|
33
|
+
const link = document.createElement("a");
|
|
34
|
+
link.href = this.__url;
|
|
35
|
+
link.setAttribute("target", this.__target || "_blank");
|
|
36
|
+
if (Array.isArray(this.__classNames) && this.__classNames.length > 0) {
|
|
37
|
+
addClassNamesToElement(link, ...this.__classNames);
|
|
38
|
+
}
|
|
39
|
+
return link;
|
|
40
|
+
}
|
|
41
|
+
updateDOM() {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
setClassNames(classNames) {
|
|
45
|
+
const writable = this.getWritable();
|
|
46
|
+
writable.__classNames = classNames;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export const TOGGLE_CUSTOM_LINK_NODE_COMMAND = createCommand();
|
|
50
|
+
export function $createCustomLinkNode(url, target, classNames) {
|
|
51
|
+
return $applyNodeReplacement(new CustomLinkNode(url, target, classNames));
|
|
52
|
+
}
|
|
53
|
+
export function $isCustomLinkNode(node) {
|
|
54
|
+
return node instanceof CustomLinkNode;
|
|
55
|
+
}
|
|
56
|
+
export const toggleCustomLinkNode = ({ url, target = "_blank", classNames = [], getNodeByKey }) => {
|
|
57
|
+
const addAttributesToLinkNode = (linkNode, { url, target, classNames }) => {
|
|
58
|
+
const dom = getNodeByKey(linkNode.getKey());
|
|
59
|
+
if (!dom)
|
|
60
|
+
return;
|
|
61
|
+
const uniqueClassNames = classNames;
|
|
62
|
+
linkNode.setURL(url);
|
|
63
|
+
linkNode.setTarget(target);
|
|
64
|
+
linkNode.setClassNames(uniqueClassNames);
|
|
65
|
+
dom.setAttribute("href", url);
|
|
66
|
+
dom.setAttribute("target", target);
|
|
67
|
+
dom.setAttribute("class", uniqueClassNames.join(" "));
|
|
68
|
+
};
|
|
69
|
+
const selection = $getSelection();
|
|
70
|
+
if (!$isRangeSelection(selection)) {
|
|
71
|
+
return;
|
|
72
|
+
}
|
|
73
|
+
const nodes = selection.extract();
|
|
74
|
+
if (url === null) {
|
|
75
|
+
// Remove LinkNodes
|
|
76
|
+
nodes.forEach((node) => {
|
|
77
|
+
const parent = node.getParent();
|
|
78
|
+
if ($isCustomLinkNode(parent)) {
|
|
79
|
+
const children = parent.getChildren();
|
|
80
|
+
for (let i = 0; i < children.length; i++) {
|
|
81
|
+
parent.insertBefore(children[i]);
|
|
82
|
+
}
|
|
83
|
+
parent.remove();
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
else {
|
|
88
|
+
// Add or merge LinkNodes
|
|
89
|
+
if (nodes.length === 1) {
|
|
90
|
+
const firstNode = nodes[0];
|
|
91
|
+
// if the first node is a LinkNode or if its
|
|
92
|
+
// parent is a LinkNode, we update the URL, target and rel.
|
|
93
|
+
const linkNode = $isCustomLinkNode(firstNode)
|
|
94
|
+
? firstNode
|
|
95
|
+
: $getLinkAncestor(firstNode);
|
|
96
|
+
if (linkNode !== null && $isCustomLinkNode(linkNode)) {
|
|
97
|
+
addAttributesToLinkNode(linkNode, { url, target, classNames });
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
let prevParent = null;
|
|
102
|
+
let linkNode = null;
|
|
103
|
+
nodes.forEach((node) => {
|
|
104
|
+
const parent = node.getParent();
|
|
105
|
+
if (parent === linkNode
|
|
106
|
+
|| parent === null
|
|
107
|
+
|| ($isElementNode(node) && !node.isInline())) {
|
|
108
|
+
return;
|
|
109
|
+
}
|
|
110
|
+
if ($isCustomLinkNode(parent)) {
|
|
111
|
+
linkNode = parent;
|
|
112
|
+
addAttributesToLinkNode(parent, { url, target, classNames });
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
if (!parent.is(prevParent)) {
|
|
116
|
+
prevParent = parent;
|
|
117
|
+
linkNode = $createCustomLinkNode(url, target, classNames);
|
|
118
|
+
if ($isCustomLinkNode(parent)) {
|
|
119
|
+
if (node.getPreviousSibling() === null) {
|
|
120
|
+
parent.insertBefore(linkNode);
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
parent.insertAfter(linkNode);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
node.insertBefore(linkNode);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
if ($isCustomLinkNode(node)) {
|
|
131
|
+
if (node.is(linkNode)) {
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
if (linkNode !== null) {
|
|
135
|
+
const children = node.getChildren();
|
|
136
|
+
for (let i = 0; i < children.length; i++) {
|
|
137
|
+
linkNode.append(children[i]);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
node.remove();
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
if (linkNode !== null) {
|
|
144
|
+
linkNode.append(node);
|
|
145
|
+
}
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
};
|
|
149
|
+
const $getLinkAncestor = (node) => ($getAncestor(node, (ancestor) => $isCustomLinkNode(ancestor)));
|
|
150
|
+
const $getAncestor = (node, predicate) => {
|
|
151
|
+
let parent = node;
|
|
152
|
+
while (parent !== null
|
|
153
|
+
&& (parent = parent.getParent()) !== null
|
|
154
|
+
&& !predicate(parent))
|
|
155
|
+
;
|
|
156
|
+
return parent;
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=CustomLinkNode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomLinkNode.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/markdownEditor/plugins/customLink/CustomLinkNode.tsx"],"names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iBAAiB,CAAC,QAAQ,CAAC,CAAC,CAC9D,CAAC;AAEF,MAAM,YAAY,GAAG,CACnB,IAAiB,EACjB,SAA6C,EACzB,EAAE;IACtB,IAAI,MAAM,GAAuB,IAAI,CAAC;IACtC,OACE,MAAM,KAAK,IAAI;WACZ,CAAC,MAAM,GAAG,MAAM,CAAC,SAAS,EAAE,CAAC,KAAK,IAAI;WACtC,CAAC,SAAS,CAAC,MAAM,CAAC;QACtB,CAAC;IACF,OAAO,MAAM,CAAC;AAChB,CAAC,CAAC"}
|
package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomLinkNodePlugin.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAa,MAAM,OAAO,CAAC;AAUtC,QAAA,MAAM,oBAAoB,EAAE,EAmB3B,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
|
package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomLinkNodePlugin.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/markdownEditor/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;YAEH,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":"CustomLinkNodeTransformer.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AAyE9D,eAAO,MAAM,4BAA4B,EAAE,oBAyD1C,CAAC"}
|
package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { $createTextNode, $isTextNode } from "lexical";
|
|
2
|
+
import { $isCustomLinkNode, CustomLinkNode, $createCustomLinkNode } from "./CustomLinkNode";
|
|
3
|
+
import { EmojiNode, $createEmojiNode } from "../emoji/EmojiNode";
|
|
4
|
+
import iconNamesList from "../../IconNamesList";
|
|
5
|
+
const CUSTOM_LINK_NODE_MARKDOWN_REGEX_QUERY = /(?:\[([^[]+?)\])(?:\(([^(]+)\))(?:({([^}]*)})?)(?:((.*)\)?))$/;
|
|
6
|
+
const CUSTOM_LINK_NODE_MARKDOWN_REGEX = new RegExp(CUSTOM_LINK_NODE_MARKDOWN_REGEX_QUERY);
|
|
7
|
+
const replaceCustomLinkNode = (textNode, match) => {
|
|
8
|
+
const linkUrl = match[2];
|
|
9
|
+
let linkText = match[1];
|
|
10
|
+
if (match.input.length > match.input.trim().length) {
|
|
11
|
+
linkText = " ".repeat(match.input.length - match.input.trim().length) + linkText;
|
|
12
|
+
}
|
|
13
|
+
const otherText = match[5];
|
|
14
|
+
const linkNode = $createCustomLinkNode(linkUrl, match[4] ? (match[4].includes("_self") || match[4].includes("\\_self") ? "_self" : "_blank") : "_blank", match[4]
|
|
15
|
+
? match[4]
|
|
16
|
+
.split(" ")
|
|
17
|
+
.filter((word) => word[0] === ".")
|
|
18
|
+
.map((word) => word.replace(".", ""))
|
|
19
|
+
: []);
|
|
20
|
+
const linkTextNode = $createTextNode(linkText);
|
|
21
|
+
linkTextNode.setFormat(textNode.getFormat());
|
|
22
|
+
linkNode.append(linkTextNode);
|
|
23
|
+
textNode.replace(linkNode);
|
|
24
|
+
const emojiText = otherText.replace(CUSTOM_LINK_NODE_MARKDOWN_REGEX, "").trim();
|
|
25
|
+
if (match[5]) {
|
|
26
|
+
const otherTextNode = $createTextNode(match[5].replace(CUSTOM_LINK_NODE_MARKDOWN_REGEX, ""));
|
|
27
|
+
linkNode.getParent().append(otherTextNode);
|
|
28
|
+
}
|
|
29
|
+
if (CUSTOM_LINK_NODE_MARKDOWN_REGEX.test(match[5])) {
|
|
30
|
+
const blankNode = $createTextNode("");
|
|
31
|
+
linkNode.getParent().append(blankNode);
|
|
32
|
+
replaceCustomLinkNode(blankNode, match[5].match(CUSTOM_LINK_NODE_MARKDOWN_REGEX_QUERY));
|
|
33
|
+
}
|
|
34
|
+
if (emojiText) {
|
|
35
|
+
if (!iconNamesList.includes(emojiText.replaceAll(":", "")))
|
|
36
|
+
return;
|
|
37
|
+
linkNode.getParent().append($createEmojiNode(emojiText.replaceAll(":", "")));
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
export const CUSTOM_LINK_NODE_TRANSFORMER = {
|
|
41
|
+
dependencies: [EmojiNode, CustomLinkNode],
|
|
42
|
+
export: (node, _exportChildren, exportFormat) => {
|
|
43
|
+
if (!$isCustomLinkNode(node)) {
|
|
44
|
+
return null;
|
|
45
|
+
}
|
|
46
|
+
// Only include target attribute if it's not "_self" (which is the default)
|
|
47
|
+
const targetAttr = node.__target && node.__target !== "_self" ? `target="${node.__target}"` : "";
|
|
48
|
+
const classNames = node
|
|
49
|
+
?.__classNames
|
|
50
|
+
?.join(" ")
|
|
51
|
+
.split(" ")
|
|
52
|
+
.map((className) => "." + className.replaceAll(".", ""))
|
|
53
|
+
.join(" ");
|
|
54
|
+
// Build the attribute string, filtering out empty values
|
|
55
|
+
const attributes = [targetAttr, classNames].filter(attr => attr.trim() !== "").join(" ");
|
|
56
|
+
// For links with attributes, we need to handle the export differently to prevent underscore escaping
|
|
57
|
+
if (attributes) {
|
|
58
|
+
const linkText = node.getTextContent();
|
|
59
|
+
const firstChild = node.getFirstChild();
|
|
60
|
+
// Format the text content with markdown formatting (bold, italic, etc.)
|
|
61
|
+
let formattedText = linkText;
|
|
62
|
+
if (node.getChildrenSize() === 1 && $isTextNode(firstChild)) {
|
|
63
|
+
// Get the formatted text by using the actual link content
|
|
64
|
+
const linkContent = `[${linkText}](${node.__url})`;
|
|
65
|
+
const formatted = exportFormat(firstChild, linkContent);
|
|
66
|
+
// Extract just the text part from the formatted link markdown
|
|
67
|
+
const linkMatch = formatted.match(/^\[([^\]]+)\]/);
|
|
68
|
+
if (linkMatch) {
|
|
69
|
+
formattedText = linkMatch[1];
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// Return the link with attributes - these won't go through exportFormat to avoid escaping
|
|
73
|
+
return `[${formattedText}](${node.__url}){:${attributes}}`;
|
|
74
|
+
}
|
|
75
|
+
// For simple links without attributes, use the standard format
|
|
76
|
+
const linkContent = `[${node.getTextContent()}](${node.__url})`;
|
|
77
|
+
const firstChild = node.getFirstChild();
|
|
78
|
+
if (node.getChildrenSize() === 1 && $isTextNode(firstChild)) {
|
|
79
|
+
return exportFormat(firstChild, linkContent);
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
return linkContent;
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
importRegExp: CUSTOM_LINK_NODE_MARKDOWN_REGEX,
|
|
86
|
+
regExp: CUSTOM_LINK_NODE_MARKDOWN_REGEX,
|
|
87
|
+
replace: replaceCustomLinkNode,
|
|
88
|
+
trigger: "[",
|
|
89
|
+
type: "text-match"
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=CustomLinkNodeTransformer.js.map
|
package/dist/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CustomLinkNodeTransformer.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEjE,OAAO,EACL,iBAAiB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,KAAK,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,EAAE,CAAC;gBAC5D,0DAA0D;gBAC1D,MAAM,WAAW,GAAG,IAAI,QAAQ,KAAK,IAAI,CAAC,KAAK,GAAG,CAAC;gBACnD,MAAM,SAAS,GAAG,YAAY,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;gBACxD,8DAA8D;gBAC9D,MAAM,SAAS,GAAG,SAAS,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC;gBACnD,IAAI,SAAS,EAAE,CAAC;oBACd,aAAa,GAAG,SAAS,CAAC,CAAC,CAAC,CAAC;gBAC/B,CAAC;YACH,CAAC;YAED,0FAA0F;YAC1F,OAAO,IAAI,aAAa,KAAK,IAAI,CAAC,KAAK,MAAM,UAAU,GAAG,CAAC;QAC7D,CAAC;QAED,+DAA+D;QAC/D,MAAM,WAAW,GAAG,IAAI,IAAI,CAAC,cAAc,EAAE,KAAK,IAAI,CAAC,KAAK,GAAG,CAAC;QAChE,MAAM,UAAU,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;QAExC,IAAI,IAAI,CAAC,eAAe,EAAE,KAAK,CAAC,IAAI,WAAW,CAAC,UAAU,CAAC,EAAE,CAAC;YAC5D,OAAO,YAAY,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;QAC/C,CAAC;aAAM,CAAC;YACN,OAAO,WAAW,CAAC;QAErB,CAAC;IACH,CAAC;IACD,YAAY,EAAE,+BAA+B;IAC7C,MAAM,EAAE,+BAA+B;IACvC,OAAO,EAAE,qBAAqB;IAC9B,OAAO,EAAE,GAAG;IACZ,IAAI,EAAE,YAAY;CACnB,CAAC"}
|
package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingLinkEditor.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAuB,EAAE,EAAa,MAAM,OAAO,CAAC;AAMlE,OAAO,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAqCrE,QAAA,MAAM,kBAAkB,EAAE,EAAE,CAAC,uBAAuB,CAkOnD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useCallback, useRef, useEffect } from "react";
|
|
3
|
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
4
|
+
import { mergeRegister } from "@lexical/utils";
|
|
5
|
+
import { $isCustomLinkNode } from "./CustomLinkNode";
|
|
6
|
+
import { $getSelection, SELECTION_CHANGE_COMMAND, $isRangeSelection, $getNodeByKey } from "lexical";
|
|
7
|
+
import { TOGGLE_CUSTOM_LINK_NODE_COMMAND } from "./CustomLinkNode";
|
|
8
|
+
import { getSelectedNode } from "../ToolbarPlugin";
|
|
9
|
+
import { FormControl, InputLabel, Select, MenuItem, TextField, Button } from "@mui/material";
|
|
10
|
+
const positionEditorElement = (editor, rect) => {
|
|
11
|
+
if (rect === null) {
|
|
12
|
+
editor.style.opacity = "0";
|
|
13
|
+
editor.style.top = "-1000px";
|
|
14
|
+
editor.style.left = "-1000px";
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
editor.style.opacity = "1";
|
|
18
|
+
// Add viewport height check
|
|
19
|
+
const editorHeight = editor.offsetHeight;
|
|
20
|
+
const viewportHeight = window.innerHeight;
|
|
21
|
+
let topPosition = rect.top + rect.height + 10;
|
|
22
|
+
// If editor would go off bottom of screen, position it above the selection instead
|
|
23
|
+
if (topPosition + editorHeight > viewportHeight) {
|
|
24
|
+
topPosition = rect.top - editorHeight - 10;
|
|
25
|
+
}
|
|
26
|
+
editor.style.top = `${topPosition}px`;
|
|
27
|
+
// Ensure editor stays within horizontal bounds
|
|
28
|
+
const leftPosition = Math.max(0, Math.min(rect.left + window.pageXOffset - editor.offsetWidth / 2 + rect.width / 2, window.innerWidth - editor.offsetWidth));
|
|
29
|
+
editor.style.left = `${leftPosition}px`;
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const LowPriority = 1;
|
|
33
|
+
const FloatingLinkEditor = ({ linkUrl, setLinkUrl, classNamesList, setClassNamesList, targetAttribute, setTargetAttribute, selectedElementKey }) => {
|
|
34
|
+
const [editor] = useLexicalComposerContext();
|
|
35
|
+
const editorRef = useRef(null);
|
|
36
|
+
const mouseDownRef = useRef(false);
|
|
37
|
+
/*
|
|
38
|
+
const [lastSelection, setLastSelection] = useState<
|
|
39
|
+
GridSelection | NodeSelection | RangeSelection | null
|
|
40
|
+
>(null);
|
|
41
|
+
*/
|
|
42
|
+
const updateLinkEditor = useCallback(() => {
|
|
43
|
+
const selection = $getSelection();
|
|
44
|
+
if ($isRangeSelection(selection)) {
|
|
45
|
+
const node = getSelectedNode(selection);
|
|
46
|
+
const parent = node.getParent();
|
|
47
|
+
if ($isCustomLinkNode(parent)) {
|
|
48
|
+
const _url = editor.getElementByKey(parent.__key)?.getAttribute("href");
|
|
49
|
+
if (_url) {
|
|
50
|
+
setLinkUrl(_url);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
else if ($isCustomLinkNode(node)) {
|
|
54
|
+
const _url = editor.getElementByKey(node.__key)?.getAttribute("href");
|
|
55
|
+
if (_url) {
|
|
56
|
+
setLinkUrl(_url);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
const editorElem = editorRef.current;
|
|
61
|
+
const nativeSelection = window.getSelection();
|
|
62
|
+
if (!nativeSelection)
|
|
63
|
+
return;
|
|
64
|
+
const activeElement = document.activeElement;
|
|
65
|
+
if (editorElem === null) {
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const rootElement = editor.getRootElement();
|
|
69
|
+
if (selection !== null
|
|
70
|
+
&& !nativeSelection?.isCollapsed
|
|
71
|
+
&& rootElement !== null
|
|
72
|
+
&& rootElement.contains(nativeSelection.anchorNode)) {
|
|
73
|
+
const domRange = nativeSelection.getRangeAt(0);
|
|
74
|
+
let rect;
|
|
75
|
+
if (nativeSelection.anchorNode === rootElement) {
|
|
76
|
+
let inner = rootElement;
|
|
77
|
+
while (inner.firstElementChild != null) {
|
|
78
|
+
inner = inner.firstElementChild;
|
|
79
|
+
}
|
|
80
|
+
rect = inner.getBoundingClientRect();
|
|
81
|
+
}
|
|
82
|
+
else {
|
|
83
|
+
rect = domRange.getBoundingClientRect();
|
|
84
|
+
}
|
|
85
|
+
if (!mouseDownRef.current) {
|
|
86
|
+
positionEditorElement(editorElem, rect);
|
|
87
|
+
}
|
|
88
|
+
//setLastSelection(selection);
|
|
89
|
+
}
|
|
90
|
+
else if (!activeElement || activeElement.className !== "link-input") {
|
|
91
|
+
positionEditorElement(editorElem, null);
|
|
92
|
+
//setLastSelection(null);
|
|
93
|
+
}
|
|
94
|
+
return true;
|
|
95
|
+
}, [editor]);
|
|
96
|
+
useEffect(() => (mergeRegister(editor.registerUpdateListener(({ editorState }) => {
|
|
97
|
+
editorState.read(() => {
|
|
98
|
+
updateLinkEditor();
|
|
99
|
+
});
|
|
100
|
+
}), editor.registerCommand(SELECTION_CHANGE_COMMAND, () => {
|
|
101
|
+
editor.getEditorState().read(() => {
|
|
102
|
+
updateLinkEditor();
|
|
103
|
+
});
|
|
104
|
+
return false;
|
|
105
|
+
}, LowPriority))), [editor, updateLinkEditor]);
|
|
106
|
+
useEffect(() => {
|
|
107
|
+
editor.getEditorState().read(() => {
|
|
108
|
+
updateLinkEditor();
|
|
109
|
+
});
|
|
110
|
+
}, [editor, updateLinkEditor]);
|
|
111
|
+
useEffect(() => {
|
|
112
|
+
editor.getEditorState().read(() => {
|
|
113
|
+
updateLinkEditor();
|
|
114
|
+
});
|
|
115
|
+
}, []);
|
|
116
|
+
const variants = [
|
|
117
|
+
"Light", "Light Accent", "Accent", "Dark Accent", "Dark", "Transparent Light", "Transparent Light Accent", "Transparent Accent", "Transparent Dark Accent", "Transparent Dark", "Primary", "Secondary", "Success", "Danger", "Warning", "Info"
|
|
118
|
+
];
|
|
119
|
+
const sizes = ["Small", "Medium", "Large", "XL", "2X", "3X", "4X"];
|
|
120
|
+
let appearance = "link";
|
|
121
|
+
if (classNamesList[0].indexOf("btn") > -1)
|
|
122
|
+
appearance = "btn";
|
|
123
|
+
if (classNamesList[0].indexOf("btn-block") > -1)
|
|
124
|
+
appearance = "btn btn-block";
|
|
125
|
+
const handleSave = () => {
|
|
126
|
+
editor.dispatchCommand(TOGGLE_CUSTOM_LINK_NODE_COMMAND, {
|
|
127
|
+
url: linkUrl,
|
|
128
|
+
classNames: classNamesList,
|
|
129
|
+
target: targetAttribute
|
|
130
|
+
});
|
|
131
|
+
editor.update(() => {
|
|
132
|
+
if (!selectedElementKey)
|
|
133
|
+
return;
|
|
134
|
+
const selectedNode = $getNodeByKey(selectedElementKey);
|
|
135
|
+
selectedNode?.selectEnd();
|
|
136
|
+
});
|
|
137
|
+
};
|
|
138
|
+
const getVariantKeyName = (variant) => {
|
|
139
|
+
const keyNameParts = variant.split(" ");
|
|
140
|
+
keyNameParts[0] = keyNameParts[0].toLowerCase();
|
|
141
|
+
return keyNameParts.join("");
|
|
142
|
+
};
|
|
143
|
+
const handleVariantChange = (e) => {
|
|
144
|
+
const newArray = [...classNamesList];
|
|
145
|
+
let index = 0;
|
|
146
|
+
newArray.forEach((item, i) => {
|
|
147
|
+
variants.forEach((element) => {
|
|
148
|
+
if (item.includes(getVariantKeyName(element))) {
|
|
149
|
+
index = i;
|
|
150
|
+
}
|
|
151
|
+
;
|
|
152
|
+
});
|
|
153
|
+
});
|
|
154
|
+
newArray.splice(index, 1, e.target.value.toString());
|
|
155
|
+
setClassNamesList(newArray);
|
|
156
|
+
};
|
|
157
|
+
const getVariantItems = () => {
|
|
158
|
+
const result = [];
|
|
159
|
+
variants.forEach((variant, idx) => {
|
|
160
|
+
result.push(_jsx(MenuItem, { value: "btn-" + getVariantKeyName(variant), children: variant }, appearance + " btn-" + getVariantKeyName(variant)));
|
|
161
|
+
if (idx === 4 || idx === 9)
|
|
162
|
+
result.push(_jsx(MenuItem, { disabled: true, children: "\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500" }));
|
|
163
|
+
});
|
|
164
|
+
return result;
|
|
165
|
+
};
|
|
166
|
+
return (_jsxs("div", { ref: editorRef, className: "link-editor", children: [_jsx(TextField, { label: "Url", value: linkUrl, onChange: e => { setLinkUrl(e.target.value); }, fullWidth: true, size: "small" }), _jsxs(FormControl, { fullWidth: true, children: [_jsx(InputLabel, { children: "Appearance" }), _jsxs(Select, { name: "classNames", fullWidth: true, label: "Appearance", size: "small", value: appearance, onChange: (e) => {
|
|
167
|
+
let className = "";
|
|
168
|
+
if (e.target.value.toString() !== "link")
|
|
169
|
+
className = e.target.value.toString();
|
|
170
|
+
setClassNamesList([className, "btn-primary", "btn-medium"]);
|
|
171
|
+
}, children: [_jsx(MenuItem, { value: "link", children: "Standard Link" }), _jsx(MenuItem, { value: "btn", children: "Button" }), _jsx(MenuItem, { value: "btn btn-block", children: "Full Width Button" })] })] }), appearance !== "link"
|
|
172
|
+
&& _jsxs("div", { children: [_jsxs(FormControl, { fullWidth: true, children: [_jsx(InputLabel, { children: "Variant" }), _jsx(Select, { name: "classNames", fullWidth: true, label: "Variant", size: "small", value: classNamesList[1], onChange: handleVariantChange, children: getVariantItems() })] }), _jsxs(FormControl, { fullWidth: true, children: [_jsx(InputLabel, { children: "Size" }), _jsx(Select, { name: "classNames", fullWidth: true, label: "Size", size: "small", value: classNamesList[2], onChange: (e) => {
|
|
173
|
+
const newArray = [...classNamesList];
|
|
174
|
+
let index = 0;
|
|
175
|
+
newArray.forEach((item, i) => {
|
|
176
|
+
sizes.forEach((element) => {
|
|
177
|
+
if (item.includes(element.toLowerCase())) {
|
|
178
|
+
index = i;
|
|
179
|
+
}
|
|
180
|
+
;
|
|
181
|
+
});
|
|
182
|
+
});
|
|
183
|
+
newArray.splice(index, 1, e.target.value.toString());
|
|
184
|
+
setClassNamesList(newArray);
|
|
185
|
+
}, children: sizes.map((optionValue) => (_jsx(MenuItem, { value: "btn-" + optionValue.toLowerCase(), children: optionValue }, appearance + " btn-" + optionValue.toLowerCase()))) })] })] }), _jsxs("div", { className: "target-check", children: [_jsx("input", { type: "checkbox", checked: targetAttribute === "_blank", onChange: (e) => {
|
|
186
|
+
setTargetAttribute((currentValue) => currentValue === "_blank" ? "_self" : "_blank");
|
|
187
|
+
} }), "- Open in new window"] }), _jsx("br", {}), _jsx(Button, { fullWidth: true, variant: "contained", onClick: handleSave, children: "Save" })] }));
|
|
188
|
+
};
|
|
189
|
+
export default FloatingLinkEditor;
|
|
190
|
+
//# sourceMappingURL=FloatingLinkEditor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingLinkEditor.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.tsx"],"names":[],"mappings":";AAAA,OAAc,EAAE,WAAW,EAAE,MAAM,EAAM,SAAS,EAAE,MAAM,OAAO,CAAC;AAClE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uCAAuC,CAAC;AAClF,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,wBAAwB,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AACpG,OAAO,EAAE,+BAA+B,EAAE,MAAM,kBAAkB,CAAC;AAEnE,OAAO,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,EAAqB,MAAM,eAAe,CAAC;AAEhH,MAAM,qBAAqB,GAAG,C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oDACzC,KAAK,GAAG,CAAC,CAAC;gDACZ,CAAC;gDAAA,CAAC;4CACJ,CAAC,CAAC,CAAC;wCACL,CAAC,CAAC,CAAC;wCACH,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,CAAC,CAAC;wCACrD,iBAAiB,CAAC,QAAQ,CAAC,CAAC;oCAC9B,CAAC,YACE,KAAK,CAAC,GAAG,CAAC,CAAC,WAAmB,EAAE,EAAE,CAAC,CAClC,KAAC,QAAQ,IAAwD,KAAK,EAAE,MAAM,GAAG,WAAW,CAAC,WAAW,EAAE,YAAG,WAAW,IAAzG,UAAU,GAAG,OAAO,GAAG,WAAW,CAAC,WAAW,EAAE,CAAqE,CACrI,CAAC,GACK,IACG,IACV,EAGN,eAAK,SAAS,EAAC,cAAc,aAC3B,gBAAO,IAAI,EAAC,UAAU,EAAC,OAAO,EAAE,eAAe,KAAK,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC,EAAE,EAAE;4BAC5E,kBAAkB,CAAC,CAAC,YAAoB,EAAE,EAAE,CAAC,YAAY,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAE,CAAC;wBAChG,CAAC,GAAI,4BAED,EAAA,cAAM,EAEZ,KAAC,MAAM,IAAC,SAAS,EAAE,IAAI,EAAE,OAAO,EAAC,WAAW,EAAC,OAAO,EAAE,UAAU,qBAAe,IAC3E,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Dispatch, SetStateAction } from "react";
|
|
2
|
+
export interface FloatingLinkEditorProps {
|
|
3
|
+
linkUrl: string;
|
|
4
|
+
setLinkUrl: (value: string) => void;
|
|
5
|
+
targetAttribute: string;
|
|
6
|
+
setTargetAttribute: Dispatch<SetStateAction<string>>;
|
|
7
|
+
classNamesList: Array<string>;
|
|
8
|
+
setClassNamesList: (value: Array<string>) => void;
|
|
9
|
+
selectedElementKey: string | null;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=FloatingLinkEditor.types.d.ts.map
|
package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingLinkEditor.types.d.ts","sourceRoot":"","sources":["../../../../../../src/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEjD,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACpC,eAAe,EAAE,MAAM,CAAC;IACxB,kBAAkB,EAAE,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IACrD,cAAc,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B,iBAAiB,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IAClD,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;CACnC"}
|
package/dist/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FloatingLinkEditor.types.js","sourceRoot":"","sources":["../../../../../../src/markdown/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.ts"],"names":[],"mappings":""}
|