@churchapps/apphelper 0.0.1
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/.eslintignore +4 -0
- package/.eslintrc.json +22 -0
- package/LICENSE +21 -0
- package/README.md +16 -0
- package/dist/components/CreatePerson.d.ts +9 -0
- package/dist/components/CreatePerson.d.ts.map +1 -0
- package/dist/components/CreatePerson.js +80 -0
- package/dist/components/CreatePerson.js.map +1 -0
- package/dist/components/DisplayBox.d.ts +16 -0
- package/dist/components/DisplayBox.d.ts.map +1 -0
- package/dist/components/DisplayBox.js +48 -0
- package/dist/components/DisplayBox.js.map +1 -0
- package/dist/components/ErrorMessages.d.ts +7 -0
- package/dist/components/ErrorMessages.d.ts.map +1 -0
- package/dist/components/ErrorMessages.js +47 -0
- package/dist/components/ErrorMessages.js.map +1 -0
- package/dist/components/ExportLink.d.ts +10 -0
- package/dist/components/ExportLink.d.ts.map +1 -0
- package/dist/components/ExportLink.js +70 -0
- package/dist/components/ExportLink.js.map +1 -0
- package/dist/components/FloatingSupport.d.ts +7 -0
- package/dist/components/FloatingSupport.d.ts.map +1 -0
- package/dist/components/FloatingSupport.js +18 -0
- package/dist/components/FloatingSupport.js.map +1 -0
- package/dist/components/FormSubmissionEdit.d.ts +18 -0
- package/dist/components/FormSubmissionEdit.d.ts.map +1 -0
- package/dist/components/FormSubmissionEdit.js +125 -0
- package/dist/components/FormSubmissionEdit.js.map +1 -0
- package/dist/components/HelpIcon.d.ts +7 -0
- package/dist/components/HelpIcon.d.ts.map +1 -0
- package/dist/components/HelpIcon.js +12 -0
- package/dist/components/HelpIcon.js.map +1 -0
- package/dist/components/ImageEditor.d.ts +15 -0
- package/dist/components/ImageEditor.d.ts.map +1 -0
- package/dist/components/ImageEditor.js +109 -0
- package/dist/components/ImageEditor.js.map +1 -0
- package/dist/components/InputBox.d.ts +24 -0
- package/dist/components/InputBox.d.ts.map +1 -0
- package/dist/components/InputBox.js +59 -0
- package/dist/components/InputBox.js.map +1 -0
- package/dist/components/Loading.d.ts +10 -0
- package/dist/components/Loading.d.ts.map +1 -0
- package/dist/components/Loading.js +34 -0
- package/dist/components/Loading.js.map +1 -0
- package/dist/components/PersonAdd.d.ts +15 -0
- package/dist/components/PersonAdd.d.ts.map +1 -0
- package/dist/components/PersonAdd.js +84 -0
- package/dist/components/PersonAdd.js.map +1 -0
- package/dist/components/QuestionEdit.d.ts +11 -0
- package/dist/components/QuestionEdit.d.ts.map +1 -0
- package/dist/components/QuestionEdit.js +76 -0
- package/dist/components/QuestionEdit.js.map +1 -0
- package/dist/components/SmallButton.d.ts +14 -0
- package/dist/components/SmallButton.d.ts.map +1 -0
- package/dist/components/SmallButton.js +31 -0
- package/dist/components/SmallButton.js.map +1 -0
- package/dist/components/SupportModal.d.ts +8 -0
- package/dist/components/SupportModal.d.ts.map +1 -0
- package/dist/components/SupportModal.js +47 -0
- package/dist/components/SupportModal.js.map +1 -0
- package/dist/components/TabPanel.d.ts +9 -0
- package/dist/components/TabPanel.d.ts.map +1 -0
- package/dist/components/TabPanel.js +24 -0
- package/dist/components/TabPanel.js.map +1 -0
- package/dist/components/gallery/GalleryModal.d.ts +9 -0
- package/dist/components/gallery/GalleryModal.d.ts.map +1 -0
- package/dist/components/gallery/GalleryModal.js +108 -0
- package/dist/components/gallery/GalleryModal.js.map +1 -0
- package/dist/components/gallery/StockPhotos.d.ts +9 -0
- package/dist/components/gallery/StockPhotos.d.ts.map +1 -0
- package/dist/components/gallery/StockPhotos.js +82 -0
- package/dist/components/gallery/StockPhotos.js.map +1 -0
- package/dist/components/index.d.ts +18 -0
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/index.js +51 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/markdownEditor/Editor.d.ts +12 -0
- package/dist/components/markdownEditor/Editor.d.ts.map +1 -0
- package/dist/components/markdownEditor/Editor.js +106 -0
- package/dist/components/markdownEditor/Editor.js.map +1 -0
- package/dist/components/markdownEditor/MarkdownEditor.d.ts +11 -0
- package/dist/components/markdownEditor/MarkdownEditor.d.ts.map +1 -0
- package/dist/components/markdownEditor/MarkdownEditor.js +39 -0
- package/dist/components/markdownEditor/MarkdownEditor.js.map +1 -0
- package/dist/components/markdownEditor/MarkdownModal.d.ts +9 -0
- package/dist/components/markdownEditor/MarkdownModal.d.ts.map +1 -0
- package/dist/components/markdownEditor/MarkdownModal.js +58 -0
- package/dist/components/markdownEditor/MarkdownModal.js.map +1 -0
- package/dist/components/markdownEditor/MarkdownPreview.d.ts +8 -0
- package/dist/components/markdownEditor/MarkdownPreview.d.ts.map +1 -0
- package/dist/components/markdownEditor/MarkdownPreview.js +35 -0
- package/dist/components/markdownEditor/MarkdownPreview.js.map +1 -0
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.d.ts +3 -0
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.js +35 -0
- package/dist/components/markdownEditor/plugins/AutoLinkPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.d.ts +8 -0
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.js +20 -0
- package/dist/components/markdownEditor/plugins/ControlledEditorPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.d.ts +2 -0
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.js +46 -0
- package/dist/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.d.ts +12 -0
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.js +85 -0
- package/dist/components/markdownEditor/plugins/MarkdownTransformers.js.map +1 -0
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.d.ts +6 -0
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.js +13 -0
- package/dist/components/markdownEditor/plugins/ReadOnlyPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.d.ts +8 -0
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.js +324 -0
- package/dist/components/markdownEditor/plugins/ToolbarPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.d.ts +27 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.js +158 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNode.js.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.d.ts +4 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.js +18 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.d.ts +3 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js +67 -0
- package/dist/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.js.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.d.ts +5 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.js +212 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.js.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts +11 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.js +3 -0
- package/dist/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.js.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.d.ts +24 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.js +63 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNode.js.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.d.ts +4 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js +35 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiNodeTransform.js.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.d.ts +10 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js +99 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.d.ts +11 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.js +55 -0
- package/dist/components/markdownEditor/plugins/emoji/EmojisPlugin.js.map +1 -0
- package/dist/components/markdownEditor/plugins/index.d.ts +7 -0
- package/dist/components/markdownEditor/plugins/index.d.ts.map +1 -0
- package/dist/components/markdownEditor/plugins/index.js +16 -0
- package/dist/components/markdownEditor/plugins/index.js.map +1 -0
- package/dist/components/markdownEditor/theme.d.ts +66 -0
- package/dist/components/markdownEditor/theme.d.ts.map +1 -0
- package/dist/components/markdownEditor/theme.js +69 -0
- package/dist/components/markdownEditor/theme.js.map +1 -0
- package/dist/components/material/AppList.d.ts +9 -0
- package/dist/components/material/AppList.d.ts.map +1 -0
- package/dist/components/material/AppList.js +21 -0
- package/dist/components/material/AppList.js.map +1 -0
- package/dist/components/material/ChurchList.d.ts +9 -0
- package/dist/components/material/ChurchList.d.ts.map +1 -0
- package/dist/components/material/ChurchList.js +25 -0
- package/dist/components/material/ChurchList.js.map +1 -0
- package/dist/components/material/NavItem.d.ts +14 -0
- package/dist/components/material/NavItem.d.ts.map +1 -0
- package/dist/components/material/NavItem.js +36 -0
- package/dist/components/material/NavItem.js.map +1 -0
- package/dist/components/material/NewPrivateMessage.d.ts +10 -0
- package/dist/components/material/NewPrivateMessage.d.ts.map +1 -0
- package/dist/components/material/NewPrivateMessage.js +96 -0
- package/dist/components/material/NewPrivateMessage.js.map +1 -0
- package/dist/components/material/PrivateMessageDetails.d.ts +10 -0
- package/dist/components/material/PrivateMessageDetails.d.ts.map +1 -0
- package/dist/components/material/PrivateMessageDetails.js +18 -0
- package/dist/components/material/PrivateMessageDetails.js.map +1 -0
- package/dist/components/material/PrivateMessages.d.ts +8 -0
- package/dist/components/material/PrivateMessages.d.ts.map +1 -0
- package/dist/components/material/PrivateMessages.js +105 -0
- package/dist/components/material/PrivateMessages.js.map +1 -0
- package/dist/components/material/SiteWrapper.d.ts +14 -0
- package/dist/components/material/SiteWrapper.d.ts.map +1 -0
- package/dist/components/material/SiteWrapper.js +120 -0
- package/dist/components/material/SiteWrapper.js.map +1 -0
- package/dist/components/material/UserMenu.d.ts +14 -0
- package/dist/components/material/UserMenu.d.ts.map +1 -0
- package/dist/components/material/UserMenu.js +98 -0
- package/dist/components/material/UserMenu.js.map +1 -0
- package/dist/components/material/iconPicker/IconNamesList.d.ts +3 -0
- package/dist/components/material/iconPicker/IconNamesList.d.ts.map +1 -0
- package/dist/components/material/iconPicker/IconNamesList.js +2241 -0
- package/dist/components/material/iconPicker/IconNamesList.js.map +1 -0
- package/dist/components/material/iconPicker/IconPicker.d.ts +7 -0
- package/dist/components/material/iconPicker/IconPicker.d.ts.map +1 -0
- package/dist/components/material/iconPicker/IconPicker.js +136 -0
- package/dist/components/material/iconPicker/IconPicker.js.map +1 -0
- package/dist/components/material/index.d.ts +6 -0
- package/dist/components/material/index.d.ts.map +1 -0
- package/dist/components/material/index.js +14 -0
- package/dist/components/material/index.js.map +1 -0
- package/dist/components/notes/AddNote.d.ts +12 -0
- package/dist/components/notes/AddNote.d.ts.map +1 -0
- package/dist/components/notes/AddNote.js +123 -0
- package/dist/components/notes/AddNote.js.map +1 -0
- package/dist/components/notes/Conversation.d.ts +11 -0
- package/dist/components/notes/Conversation.d.ts.map +1 -0
- package/dist/components/notes/Conversation.js +85 -0
- package/dist/components/notes/Conversation.js.map +1 -0
- package/dist/components/notes/Conversations.d.ts +11 -0
- package/dist/components/notes/Conversations.d.ts.map +1 -0
- package/dist/components/notes/Conversations.js +64 -0
- package/dist/components/notes/Conversations.js.map +1 -0
- package/dist/components/notes/NewConversation.d.ts +13 -0
- package/dist/components/notes/NewConversation.d.ts.map +1 -0
- package/dist/components/notes/NewConversation.js +86 -0
- package/dist/components/notes/NewConversation.js.map +1 -0
- package/dist/components/notes/Note.d.ts +9 -0
- package/dist/components/notes/Note.d.ts.map +1 -0
- package/dist/components/notes/Note.js +58 -0
- package/dist/components/notes/Note.js.map +1 -0
- package/dist/components/notes/Notes.d.ts +11 -0
- package/dist/components/notes/Notes.d.ts.map +1 -0
- package/dist/components/notes/Notes.js +59 -0
- package/dist/components/notes/Notes.js.map +1 -0
- package/dist/components/reporting/ChartReport.d.ts +9 -0
- package/dist/components/reporting/ChartReport.d.ts.map +1 -0
- package/dist/components/reporting/ChartReport.js +93 -0
- package/dist/components/reporting/ChartReport.js.map +1 -0
- package/dist/components/reporting/ReportFilter.d.ts +10 -0
- package/dist/components/reporting/ReportFilter.d.ts.map +1 -0
- package/dist/components/reporting/ReportFilter.js +54 -0
- package/dist/components/reporting/ReportFilter.js.map +1 -0
- package/dist/components/reporting/ReportFilterField.d.ts +10 -0
- package/dist/components/reporting/ReportFilterField.d.ts.map +1 -0
- package/dist/components/reporting/ReportFilterField.js +167 -0
- package/dist/components/reporting/ReportFilterField.js.map +1 -0
- package/dist/components/reporting/ReportOutput.d.ts +8 -0
- package/dist/components/reporting/ReportOutput.d.ts.map +1 -0
- package/dist/components/reporting/ReportOutput.js +95 -0
- package/dist/components/reporting/ReportOutput.js.map +1 -0
- package/dist/components/reporting/ReportWithFilter.d.ts +8 -0
- package/dist/components/reporting/ReportWithFilter.d.ts.map +1 -0
- package/dist/components/reporting/ReportWithFilter.js +67 -0
- package/dist/components/reporting/ReportWithFilter.js.map +1 -0
- package/dist/components/reporting/TableReport.d.ts +9 -0
- package/dist/components/reporting/TableReport.d.ts.map +1 -0
- package/dist/components/reporting/TableReport.js +50 -0
- package/dist/components/reporting/TableReport.js.map +1 -0
- package/dist/components/reporting/TreeReport.d.ts +9 -0
- package/dist/components/reporting/TreeReport.d.ts.map +1 -0
- package/dist/components/reporting/TreeReport.js +104 -0
- package/dist/components/reporting/TreeReport.js.map +1 -0
- package/dist/components/reporting/index.d.ts +5 -0
- package/dist/components/reporting/index.d.ts.map +1 -0
- package/dist/components/reporting/index.js +12 -0
- package/dist/components/reporting/index.js.map +1 -0
- package/dist/donationComponents/DonationPage.d.ts +9 -0
- package/dist/donationComponents/DonationPage.d.ts.map +1 -0
- package/dist/donationComponents/DonationPage.js +128 -0
- package/dist/donationComponents/DonationPage.js.map +1 -0
- package/dist/donationComponents/components/BankForm.d.ts +14 -0
- package/dist/donationComponents/components/BankForm.d.ts.map +1 -0
- package/dist/donationComponents/components/BankForm.js +161 -0
- package/dist/donationComponents/components/BankForm.js.map +1 -0
- package/dist/donationComponents/components/CardForm.d.ts +13 -0
- package/dist/donationComponents/components/CardForm.d.ts.map +1 -0
- package/dist/donationComponents/components/CardForm.js +128 -0
- package/dist/donationComponents/components/CardForm.js.map +1 -0
- package/dist/donationComponents/components/DonationForm.d.ts +14 -0
- package/dist/donationComponents/components/DonationForm.d.ts.map +1 -0
- package/dist/donationComponents/components/DonationForm.js +227 -0
- package/dist/donationComponents/components/DonationForm.js.map +1 -0
- package/dist/donationComponents/components/FundDonation.d.ts +11 -0
- package/dist/donationComponents/components/FundDonation.d.ts.map +1 -0
- package/dist/donationComponents/components/FundDonation.js +37 -0
- package/dist/donationComponents/components/FundDonation.js.map +1 -0
- package/dist/donationComponents/components/FundDonations.d.ts +10 -0
- package/dist/donationComponents/components/FundDonations.d.ts.map +1 -0
- package/dist/donationComponents/components/FundDonations.js +35 -0
- package/dist/donationComponents/components/FundDonations.js.map +1 -0
- package/dist/donationComponents/components/NonAuthDonation.d.ts +11 -0
- package/dist/donationComponents/components/NonAuthDonation.d.ts.map +1 -0
- package/dist/donationComponents/components/NonAuthDonation.js +40 -0
- package/dist/donationComponents/components/NonAuthDonation.js.map +1 -0
- package/dist/donationComponents/components/NonAuthDonationInner.d.ts +11 -0
- package/dist/donationComponents/components/NonAuthDonationInner.d.ts.map +1 -0
- package/dist/donationComponents/components/NonAuthDonationInner.js +246 -0
- package/dist/donationComponents/components/NonAuthDonationInner.js.map +1 -0
- package/dist/donationComponents/components/PaymentMethods.d.ts +14 -0
- package/dist/donationComponents/components/PaymentMethods.d.ts.map +1 -0
- package/dist/donationComponents/components/PaymentMethods.js +113 -0
- package/dist/donationComponents/components/PaymentMethods.js.map +1 -0
- package/dist/donationComponents/components/RecurringDonations.d.ts +10 -0
- package/dist/donationComponents/components/RecurringDonations.d.ts.map +1 -0
- package/dist/donationComponents/components/RecurringDonations.js +118 -0
- package/dist/donationComponents/components/RecurringDonations.js.map +1 -0
- package/dist/donationComponents/components/RecurringDonationsEdit.d.ts +11 -0
- package/dist/donationComponents/components/RecurringDonationsEdit.d.ts.map +1 -0
- package/dist/donationComponents/components/RecurringDonationsEdit.js +81 -0
- package/dist/donationComponents/components/RecurringDonationsEdit.js.map +1 -0
- package/dist/donationComponents/components/index.d.ts +10 -0
- package/dist/donationComponents/components/index.d.ts.map +1 -0
- package/dist/donationComponents/components/index.js +22 -0
- package/dist/donationComponents/components/index.js.map +1 -0
- package/dist/donationComponents/modals/DonationPreviewModal.d.ts +15 -0
- package/dist/donationComponents/modals/DonationPreviewModal.d.ts.map +1 -0
- package/dist/donationComponents/modals/DonationPreviewModal.js +73 -0
- package/dist/donationComponents/modals/DonationPreviewModal.js.map +1 -0
- package/dist/helpers/AnalyticsHelper.d.ts +7 -0
- package/dist/helpers/AnalyticsHelper.d.ts.map +1 -0
- package/dist/helpers/AnalyticsHelper.js +39 -0
- package/dist/helpers/AnalyticsHelper.js.map +1 -0
- package/dist/helpers/ApiHelper.d.ts +18 -0
- package/dist/helpers/ApiHelper.d.ts.map +1 -0
- package/dist/helpers/ApiHelper.js +145 -0
- package/dist/helpers/ApiHelper.js.map +1 -0
- package/dist/helpers/AppearanceHelper.d.ts +19 -0
- package/dist/helpers/AppearanceHelper.d.ts.map +1 -0
- package/dist/helpers/AppearanceHelper.js +64 -0
- package/dist/helpers/AppearanceHelper.js.map +1 -0
- package/dist/helpers/ArrayHelper.d.ts +12 -0
- package/dist/helpers/ArrayHelper.d.ts.map +1 -0
- package/dist/helpers/ArrayHelper.js +88 -0
- package/dist/helpers/ArrayHelper.js.map +1 -0
- package/dist/helpers/CommonEnvironmentHelper.d.ts +20 -0
- package/dist/helpers/CommonEnvironmentHelper.d.ts.map +1 -0
- package/dist/helpers/CommonEnvironmentHelper.js +82 -0
- package/dist/helpers/CommonEnvironmentHelper.js.map +1 -0
- package/dist/helpers/CurrencyHelper.d.ts +4 -0
- package/dist/helpers/CurrencyHelper.d.ts.map +1 -0
- package/dist/helpers/CurrencyHelper.js +15 -0
- package/dist/helpers/CurrencyHelper.js.map +1 -0
- package/dist/helpers/DateHelper.d.ts +19 -0
- package/dist/helpers/DateHelper.d.ts.map +1 -0
- package/dist/helpers/DateHelper.js +108 -0
- package/dist/helpers/DateHelper.js.map +1 -0
- package/dist/helpers/DonationHelper.d.ts +8 -0
- package/dist/helpers/DonationHelper.d.ts.map +1 -0
- package/dist/helpers/DonationHelper.js +33 -0
- package/dist/helpers/DonationHelper.js.map +1 -0
- package/dist/helpers/ErrorHelper.d.ts +13 -0
- package/dist/helpers/ErrorHelper.d.ts.map +1 -0
- package/dist/helpers/ErrorHelper.js +34 -0
- package/dist/helpers/ErrorHelper.js.map +1 -0
- package/dist/helpers/EventHelper.d.ts +11 -0
- package/dist/helpers/EventHelper.d.ts.map +1 -0
- package/dist/helpers/EventHelper.js +47 -0
- package/dist/helpers/EventHelper.js.map +1 -0
- package/dist/helpers/FileHelper.d.ts +5 -0
- package/dist/helpers/FileHelper.d.ts.map +1 -0
- package/dist/helpers/FileHelper.js +34 -0
- package/dist/helpers/FileHelper.js.map +1 -0
- package/dist/helpers/PersonHelper.d.ts +11 -0
- package/dist/helpers/PersonHelper.d.ts.map +1 -0
- package/dist/helpers/PersonHelper.js +53 -0
- package/dist/helpers/PersonHelper.js.map +1 -0
- package/dist/helpers/SocketHelper.d.ts +16 -0
- package/dist/helpers/SocketHelper.d.ts.map +1 -0
- package/dist/helpers/SocketHelper.js +87 -0
- package/dist/helpers/SocketHelper.js.map +1 -0
- package/dist/helpers/Themes.d.ts +9 -0
- package/dist/helpers/Themes.d.ts.map +1 -0
- package/dist/helpers/Themes.js +16 -0
- package/dist/helpers/Themes.js.map +1 -0
- package/dist/helpers/UniqueIdHelper.d.ts +9 -0
- package/dist/helpers/UniqueIdHelper.d.ts.map +1 -0
- package/dist/helpers/UniqueIdHelper.js +37 -0
- package/dist/helpers/UniqueIdHelper.js.map +1 -0
- package/dist/helpers/UserHelper.d.ts +14 -0
- package/dist/helpers/UserHelper.d.ts.map +1 -0
- package/dist/helpers/UserHelper.js +68 -0
- package/dist/helpers/UserHelper.js.map +1 -0
- package/dist/helpers/createEmotionCache.d.ts +2 -0
- package/dist/helpers/createEmotionCache.d.ts.map +1 -0
- package/dist/helpers/createEmotionCache.js +21 -0
- package/dist/helpers/createEmotionCache.js.map +1 -0
- package/dist/helpers/index.d.ts +16 -0
- package/dist/helpers/index.d.ts.map +1 -0
- package/dist/helpers/index.js +47 -0
- package/dist/helpers/index.js.map +1 -0
- package/dist/hooks/index.d.ts +2 -0
- package/dist/hooks/index.d.ts.map +1 -0
- package/dist/hooks/index.js +6 -0
- package/dist/hooks/index.js.map +1 -0
- package/dist/hooks/useMountedState.d.ts +2 -0
- package/dist/hooks/useMountedState.d.ts.map +1 -0
- package/dist/hooks/useMountedState.js +17 -0
- package/dist/hooks/useMountedState.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +25 -0
- package/dist/index.js.map +1 -0
- package/dist/interfaces/Access.d.ts +131 -0
- package/dist/interfaces/Access.d.ts.map +1 -0
- package/dist/interfaces/Access.js +3 -0
- package/dist/interfaces/Access.js.map +1 -0
- package/dist/interfaces/Attendance.d.ts +45 -0
- package/dist/interfaces/Attendance.d.ts.map +1 -0
- package/dist/interfaces/Attendance.js +3 -0
- package/dist/interfaces/Attendance.js.map +1 -0
- package/dist/interfaces/Content.d.ts +86 -0
- package/dist/interfaces/Content.d.ts.map +1 -0
- package/dist/interfaces/Content.js +3 -0
- package/dist/interfaces/Content.js.map +1 -0
- package/dist/interfaces/Doing.d.ts +50 -0
- package/dist/interfaces/Doing.d.ts.map +1 -0
- package/dist/interfaces/Doing.js +3 -0
- package/dist/interfaces/Doing.js.map +1 -0
- package/dist/interfaces/Donation.d.ts +138 -0
- package/dist/interfaces/Donation.d.ts.map +1 -0
- package/dist/interfaces/Donation.js +24 -0
- package/dist/interfaces/Donation.js.map +1 -0
- package/dist/interfaces/Error.d.ts +17 -0
- package/dist/interfaces/Error.d.ts.map +1 -0
- package/dist/interfaces/Error.js +4 -0
- package/dist/interfaces/Error.js.map +1 -0
- package/dist/interfaces/Membership.d.ts +172 -0
- package/dist/interfaces/Membership.d.ts.map +1 -0
- package/dist/interfaces/Membership.js +3 -0
- package/dist/interfaces/Membership.js.map +1 -0
- package/dist/interfaces/Messaging.d.ts +59 -0
- package/dist/interfaces/Messaging.d.ts.map +1 -0
- package/dist/interfaces/Messaging.js +3 -0
- package/dist/interfaces/Messaging.js.map +1 -0
- package/dist/interfaces/Permissions.d.ts +159 -0
- package/dist/interfaces/Permissions.d.ts.map +1 -0
- package/dist/interfaces/Permissions.js +67 -0
- package/dist/interfaces/Permissions.js.map +1 -0
- package/dist/interfaces/Reporting.d.ts +45 -0
- package/dist/interfaces/Reporting.d.ts.map +1 -0
- package/dist/interfaces/Reporting.js +3 -0
- package/dist/interfaces/Reporting.js.map +1 -0
- package/dist/interfaces/UserContextInterface.d.ts +13 -0
- package/dist/interfaces/UserContextInterface.d.ts.map +1 -0
- package/dist/interfaces/UserContextInterface.js +3 -0
- package/dist/interfaces/UserContextInterface.js.map +1 -0
- package/dist/interfaces/index.d.ts +11 -0
- package/dist/interfaces/index.d.ts.map +1 -0
- package/dist/interfaces/index.js +28 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/pageComponents/LoginPage.d.ts +22 -0
- package/dist/pageComponents/LoginPage.d.ts.map +1 -0
- package/dist/pageComponents/LoginPage.js +287 -0
- package/dist/pageComponents/LoginPage.js.map +1 -0
- package/dist/pageComponents/LogoutPage.d.ts +8 -0
- package/dist/pageComponents/LogoutPage.d.ts.map +1 -0
- package/dist/pageComponents/LogoutPage.js +26 -0
- package/dist/pageComponents/LogoutPage.js.map +1 -0
- package/dist/pageComponents/components/Forgot.d.ts +8 -0
- package/dist/pageComponents/components/Forgot.d.ts.map +1 -0
- package/dist/pageComponents/components/Forgot.js +70 -0
- package/dist/pageComponents/components/Forgot.js.map +1 -0
- package/dist/pageComponents/components/Login.d.ts +13 -0
- package/dist/pageComponents/components/Login.d.ts.map +1 -0
- package/dist/pageComponents/components/Login.js +57 -0
- package/dist/pageComponents/components/Login.js.map +1 -0
- package/dist/pageComponents/components/LoginSetPassword.d.ts +13 -0
- package/dist/pageComponents/components/LoginSetPassword.d.ts.map +1 -0
- package/dist/pageComponents/components/LoginSetPassword.js +68 -0
- package/dist/pageComponents/components/LoginSetPassword.js.map +1 -0
- package/dist/pageComponents/components/Register.d.ts +12 -0
- package/dist/pageComponents/components/Register.d.ts.map +1 -0
- package/dist/pageComponents/components/Register.js +105 -0
- package/dist/pageComponents/components/Register.js.map +1 -0
- package/dist/pageComponents/components/SelectChurchModal.d.ts +13 -0
- package/dist/pageComponents/components/SelectChurchModal.d.ts.map +1 -0
- package/dist/pageComponents/components/SelectChurchModal.js +33 -0
- package/dist/pageComponents/components/SelectChurchModal.js.map +1 -0
- package/dist/pageComponents/components/SelectChurchRegister.d.ts +11 -0
- package/dist/pageComponents/components/SelectChurchRegister.d.ts.map +1 -0
- package/dist/pageComponents/components/SelectChurchRegister.js +114 -0
- package/dist/pageComponents/components/SelectChurchRegister.js.map +1 -0
- package/dist/pageComponents/components/SelectChurchSearch.d.ts +10 -0
- package/dist/pageComponents/components/SelectChurchSearch.d.ts.map +1 -0
- package/dist/pageComponents/components/SelectChurchSearch.js +61 -0
- package/dist/pageComponents/components/SelectChurchSearch.js.map +1 -0
- package/dist/pageComponents/components/SelectableChurch.d.ts +9 -0
- package/dist/pageComponents/components/SelectableChurch.d.ts.map +1 -0
- package/dist/pageComponents/components/SelectableChurch.js +31 -0
- package/dist/pageComponents/components/SelectableChurch.js.map +1 -0
- package/dist/pageComponents/index.d.ts +4 -0
- package/dist/pageComponents/index.d.ts.map +1 -0
- package/dist/pageComponents/index.js +10 -0
- package/dist/pageComponents/index.js.map +1 -0
- package/package.json +77 -0
- package/src/components/CreatePerson.tsx +80 -0
- package/src/components/DisplayBox.tsx +68 -0
- package/src/components/ErrorMessages.tsx +26 -0
- package/src/components/ExportLink.tsx +61 -0
- package/src/components/FloatingSupport.tsx +16 -0
- package/src/components/FormSubmissionEdit.tsx +122 -0
- package/src/components/HelpIcon.tsx +10 -0
- package/src/components/ImageEditor.tsx +126 -0
- package/src/components/InputBox.tsx +73 -0
- package/src/components/Loading.tsx +29 -0
- package/src/components/PersonAdd.tsx +75 -0
- package/src/components/QuestionEdit.tsx +62 -0
- package/src/components/SmallButton.tsx +39 -0
- package/src/components/SupportModal.tsx +26 -0
- package/src/components/TabPanel.tsx +34 -0
- package/src/components/gallery/GalleryModal.tsx +102 -0
- package/src/components/gallery/StockPhotos.tsx +74 -0
- package/src/components/index.tsx +18 -0
- package/src/components/markdownEditor/Editor.tsx +132 -0
- package/src/components/markdownEditor/MarkdownEditor.tsx +16 -0
- package/src/components/markdownEditor/MarkdownModal.tsx +46 -0
- package/src/components/markdownEditor/MarkdownPreview.tsx +14 -0
- package/src/components/markdownEditor/editor.css +787 -0
- package/src/components/markdownEditor/images/emoji/1F600.png +0 -0
- package/src/components/markdownEditor/images/emoji/1F641.png +0 -0
- package/src/components/markdownEditor/images/emoji/1F642.png +0 -0
- package/src/components/markdownEditor/images/emoji/2764.png +0 -0
- package/src/components/markdownEditor/images/icons/arrow-clockwise.svg +4 -0
- package/src/components/markdownEditor/images/icons/arrow-counterclockwise.svg +4 -0
- package/src/components/markdownEditor/images/icons/chat-square-quote.svg +4 -0
- package/src/components/markdownEditor/images/icons/chevron-down.svg +3 -0
- package/src/components/markdownEditor/images/icons/code.svg +3 -0
- package/src/components/markdownEditor/images/icons/journal-code.svg +5 -0
- package/src/components/markdownEditor/images/icons/journal-text.svg +5 -0
- package/src/components/markdownEditor/images/icons/justify.svg +3 -0
- package/src/components/markdownEditor/images/icons/link.svg +4 -0
- package/src/components/markdownEditor/images/icons/list-ol.svg +4 -0
- package/src/components/markdownEditor/images/icons/list-ul.svg +3 -0
- package/src/components/markdownEditor/images/icons/pencil-fill.svg +3 -0
- package/src/components/markdownEditor/images/icons/text-center.svg +3 -0
- package/src/components/markdownEditor/images/icons/text-left.svg +3 -0
- package/src/components/markdownEditor/images/icons/text-paragraph.svg +3 -0
- package/src/components/markdownEditor/images/icons/text-right.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-bold.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-h1.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-h2.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-h3.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-h4.svg +13 -0
- package/src/components/markdownEditor/images/icons/type-italic.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-strikethrough.svg +3 -0
- package/src/components/markdownEditor/images/icons/type-underline.svg +3 -0
- package/src/components/markdownEditor/plugins/AutoLinkPlugin.tsx +35 -0
- package/src/components/markdownEditor/plugins/ControlledEditorPlugin.tsx +24 -0
- package/src/components/markdownEditor/plugins/ListMaxIndentLevelPlugin.tsx +68 -0
- package/src/components/markdownEditor/plugins/MarkdownTransformers.ts +106 -0
- package/src/components/markdownEditor/plugins/ReadOnlyPlugin.tsx +15 -0
- package/src/components/markdownEditor/plugins/ToolbarPlugin.tsx +401 -0
- package/src/components/markdownEditor/plugins/customLink/CustomLinkNode.tsx +224 -0
- package/src/components/markdownEditor/plugins/customLink/CustomLinkNodePlugin.tsx +32 -0
- package/src/components/markdownEditor/plugins/customLink/CustomLinkNodeTransformer.tsx +102 -0
- package/src/components/markdownEditor/plugins/customLink/FloatingLinkEditor.tsx +243 -0
- package/src/components/markdownEditor/plugins/customLink/FloatingLinkEditor.types.ts +11 -0
- package/src/components/markdownEditor/plugins/emoji/EmojiNode.tsx +95 -0
- package/src/components/markdownEditor/plugins/emoji/EmojiNodeTransform.ts +41 -0
- package/src/components/markdownEditor/plugins/emoji/EmojiPickerPlugin.tsx +152 -0
- package/src/components/markdownEditor/plugins/emoji/EmojisPlugin.tsx +65 -0
- package/src/components/markdownEditor/plugins/index.ts +6 -0
- package/src/components/markdownEditor/theme.ts +65 -0
- package/src/components/material/AppList.tsx +20 -0
- package/src/components/material/ChurchList.tsx +22 -0
- package/src/components/material/NavItem.tsx +41 -0
- package/src/components/material/NewPrivateMessage.tsx +103 -0
- package/src/components/material/PrivateMessageDetails.tsx +23 -0
- package/src/components/material/PrivateMessages.tsx +87 -0
- package/src/components/material/SiteWrapper.tsx +140 -0
- package/src/components/material/UserMenu.tsx +141 -0
- package/src/components/material/iconPicker/IconNamesList.ts +2240 -0
- package/src/components/material/iconPicker/IconPicker.tsx +153 -0
- package/src/components/material/index.tsx +5 -0
- package/src/components/notes/AddNote.tsx +90 -0
- package/src/components/notes/Conversation.tsx +82 -0
- package/src/components/notes/Conversations.tsx +58 -0
- package/src/components/notes/NewConversation.tsx +78 -0
- package/src/components/notes/Note.tsx +44 -0
- package/src/components/notes/Notes.tsx +52 -0
- package/src/components/reporting/ChartReport.tsx +98 -0
- package/src/components/reporting/ReportFilter.tsx +54 -0
- package/src/components/reporting/ReportFilterField.tsx +160 -0
- package/src/components/reporting/ReportOutput.tsx +79 -0
- package/src/components/reporting/ReportWithFilter.tsx +70 -0
- package/src/components/reporting/TableReport.tsx +57 -0
- package/src/components/reporting/TreeReport.tsx +111 -0
- package/src/components/reporting/index.ts +4 -0
- package/src/donationComponents/DonationPage.tsx +136 -0
- package/src/donationComponents/components/BankForm.tsx +159 -0
- package/src/donationComponents/components/CardForm.tsx +104 -0
- package/src/donationComponents/components/DonationForm.tsx +228 -0
- package/src/donationComponents/components/FundDonation.tsx +49 -0
- package/src/donationComponents/components/FundDonations.tsx +39 -0
- package/src/donationComponents/components/NonAuthDonation.tsx +31 -0
- package/src/donationComponents/components/NonAuthDonationInner.tsx +208 -0
- package/src/donationComponents/components/PaymentMethods.tsx +135 -0
- package/src/donationComponents/components/RecurringDonations.tsx +121 -0
- package/src/donationComponents/components/RecurringDonationsEdit.tsx +93 -0
- package/src/donationComponents/components/index.tsx +9 -0
- package/src/donationComponents/modals/DonationPreviewModal.tsx +66 -0
- package/src/helpers/AnalyticsHelper.ts +33 -0
- package/src/helpers/ApiHelper.ts +125 -0
- package/src/helpers/AppearanceHelper.ts +69 -0
- package/src/helpers/ArrayHelper.ts +81 -0
- package/src/helpers/CommonEnvironmentHelper.ts +80 -0
- package/src/helpers/CurrencyHelper.ts +10 -0
- package/src/helpers/DateHelper.ts +108 -0
- package/src/helpers/DonationHelper.ts +26 -0
- package/src/helpers/ErrorHelper.ts +36 -0
- package/src/helpers/EventHelper.ts +52 -0
- package/src/helpers/FileHelper.ts +31 -0
- package/src/helpers/PersonHelper.ts +60 -0
- package/src/helpers/SocketHelper.ts +76 -0
- package/src/helpers/Themes.ts +14 -0
- package/src/helpers/UniqueIdHelper.ts +36 -0
- package/src/helpers/UserHelper.ts +59 -0
- package/src/helpers/createEmotionCache.ts +17 -0
- package/src/helpers/index.ts +15 -0
- package/src/hooks/index.ts +1 -0
- package/src/hooks/useMountedState.ts +16 -0
- package/src/index.ts +6 -0
- package/src/interfaces/Access.ts +24 -0
- package/src/interfaces/Attendance.ts +8 -0
- package/src/interfaces/Content.ts +10 -0
- package/src/interfaces/Doing.ts +24 -0
- package/src/interfaces/Donation.ts +45 -0
- package/src/interfaces/Error.ts +17 -0
- package/src/interfaces/Membership.ts +51 -0
- package/src/interfaces/Messaging.ts +20 -0
- package/src/interfaces/Permissions.ts +68 -0
- package/src/interfaces/Reporting.ts +7 -0
- package/src/interfaces/UserContextInterface.ts +13 -0
- package/src/interfaces/index.ts +12 -0
- package/src/pageComponents/LoginPage.tsx +244 -0
- package/src/pageComponents/LogoutPage.tsx +28 -0
- package/src/pageComponents/components/Forgot.tsx +79 -0
- package/src/pageComponents/components/Login.tsx +54 -0
- package/src/pageComponents/components/LoginSetPassword.tsx +63 -0
- package/src/pageComponents/components/Register.tsx +107 -0
- package/src/pageComponents/components/SelectChurchModal.tsx +41 -0
- package/src/pageComponents/components/SelectChurchRegister.tsx +88 -0
- package/src/pageComponents/components/SelectChurchSearch.tsx +69 -0
- package/src/pageComponents/components/SelectableChurch.tsx +38 -0
- package/src/pageComponents/index.ts +3 -0
- package/tsconfig.json +35 -0
- package/tslint.json +15 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-clockwise" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M8 3a5 5 0 1 0 4.546 2.914.5.5 0 0 1 .908-.417A6 6 0 1 1 8 2v1z"/>
|
|
3
|
+
<path d="M8 4.466V.534a.25.25 0 0 1 .41-.192l2.36 1.966c.12.1.12.284 0 .384L8.41 4.658A.25.25 0 0 1 8 4.466z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-arrow-counterclockwise" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M8 3a5 5 0 1 1-4.546 2.914.5.5 0 0 0-.908-.417A6 6 0 1 0 8 2v1z"/>
|
|
3
|
+
<path d="M8 4.466V.534a.25.25 0 0 0-.41-.192L5.23 2.308a.25.25 0 0 0 0 .384l2.36 1.966A.25.25 0 0 0 8 4.466z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chat-square-quote" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M14 1a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-2.5a2 2 0 0 0-1.6.8L8 14.333 6.1 11.8a2 2 0 0 0-1.6-.8H2a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1h12zM2 0a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h2.5a1 1 0 0 1 .8.4l1.9 2.533a1 1 0 0 0 1.6 0l1.9-2.533a1 1 0 0 1 .8-.4H14a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2z"/>
|
|
3
|
+
<path d="M7.066 4.76A1.665 1.665 0 0 0 4 5.668a1.667 1.667 0 0 0 2.561 1.406c-.131.389-.375.804-.777 1.22a.417.417 0 1 0 .6.58c1.486-1.54 1.293-3.214.682-4.112zm4 0A1.665 1.665 0 0 0 8 5.668a1.667 1.667 0 0 0 2.561 1.406c-.131.389-.375.804-.777 1.22a.417.417 0 1 0 .6.58c1.486-1.54 1.293-3.214.682-4.112z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-down" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-code" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M5.854 4.854a.5.5 0 1 0-.708-.708l-3.5 3.5a.5.5 0 0 0 0 .708l3.5 3.5a.5.5 0 0 0 .708-.708L2.707 8l3.147-3.146zm4.292 0a.5.5 0 0 1 .708-.708l3.5 3.5a.5.5 0 0 1 0 .708l-3.5 3.5a.5.5 0 0 1-.708-.708L13.293 8l-3.147-3.146z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-journal-code" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M8.646 5.646a.5.5 0 0 1 .708 0l2 2a.5.5 0 0 1 0 .708l-2 2a.5.5 0 0 1-.708-.708L10.293 8 8.646 6.354a.5.5 0 0 1 0-.708zm-1.292 0a.5.5 0 0 0-.708 0l-2 2a.5.5 0 0 0 0 .708l2 2a.5.5 0 0 0 .708-.708L5.707 8l1.647-1.646a.5.5 0 0 0 0-.708z"/>
|
|
3
|
+
<path d="M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z"/>
|
|
4
|
+
<path d="M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-journal-text" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M5 10.5a.5.5 0 0 1 .5-.5h2a.5.5 0 0 1 0 1h-2a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5zm0-2a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 0 1h-5a.5.5 0 0 1-.5-.5z"/>
|
|
3
|
+
<path d="M3 0h10a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2v-1h1v1a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H3a1 1 0 0 0-1 1v1H1V2a2 2 0 0 1 2-2z"/>
|
|
4
|
+
<path d="M1 5v-.5a.5.5 0 0 1 1 0V5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0V8h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1zm0 3v-.5a.5.5 0 0 1 1 0v.5h.5a.5.5 0 0 1 0 1h-2a.5.5 0 0 1 0-1H1z"/>
|
|
5
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-justify" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M2 12.5a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-link" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M6.354 5.5H4a3 3 0 0 0 0 6h3a3 3 0 0 0 2.83-4H9c-.086 0-.17.01-.25.031A2 2 0 0 1 7 10.5H4a2 2 0 1 1 0-4h1.535c.218-.376.495-.714.82-1z"/>
|
|
3
|
+
<path d="M9 5.5a3 3 0 0 0-2.83 4h1.098A2 2 0 0 1 9 6.5h3a2 2 0 1 1 0 4h-1.535a4.02 4.02 0 0 1-.82 1H12a3 3 0 1 0 0-6H9z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-list-ol" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M5 11.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5z"/>
|
|
3
|
+
<path d="M1.713 11.865v-.474H2c.217 0 .363-.137.363-.317 0-.185-.158-.31-.361-.31-.223 0-.367.152-.373.31h-.59c.016-.467.373-.787.986-.787.588-.002.954.291.957.703a.595.595 0 0 1-.492.594v.033a.615.615 0 0 1 .569.631c.003.533-.502.8-1.051.8-.656 0-1-.37-1.008-.794h.582c.008.178.186.306.422.309.254 0 .424-.145.422-.35-.002-.195-.155-.348-.414-.348h-.3zm-.004-4.699h-.604v-.035c0-.408.295-.844.958-.844.583 0 .96.326.96.756 0 .389-.257.617-.476.848l-.537.572v.03h1.054V9H1.143v-.395l.957-.99c.138-.142.293-.304.293-.508 0-.18-.147-.32-.342-.32a.33.33 0 0 0-.342.338v.041zM2.564 5h-.635V2.924h-.031l-.598.42v-.567l.629-.443h.635V5z"/>
|
|
4
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-list-ul" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M5 11.5a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5zm-3 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2zm0 4a1 1 0 1 0 0-2 1 1 0 0 0 0 2z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-pencil-fill" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-text-center" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M4 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm2-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-2-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-text-left" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-text-paragraph" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M2 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm0-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm4-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-text-right" viewBox="0 0 16 16">
|
|
2
|
+
<path fill-rule="evenodd" d="M6 12.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-4-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5zm4-3a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm-4-3a.5.5 0 0 1 .5-.5h11a.5.5 0 0 1 0 1h-11a.5.5 0 0 1-.5-.5z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-type-bold" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M8.21 13c2.106 0 3.412-1.087 3.412-2.823 0-1.306-.984-2.283-2.324-2.386v-.055a2.176 2.176 0 0 0 1.852-2.14c0-1.51-1.162-2.46-3.014-2.46H3.843V13H8.21zM5.908 4.674h1.696c.963 0 1.517.451 1.517 1.244 0 .834-.629 1.32-1.73 1.32H5.908V4.673zm0 6.788V8.598h1.73c1.217 0 1.88.492 1.88 1.415 0 .943-.643 1.449-1.832 1.449H5.907z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-type-h1" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M8.637 13V3.669H7.379V7.62H2.758V3.67H1.5V13h1.258V8.728h4.62V13h1.259zm5.329 0V3.669h-1.244L10.5 5.316v1.265l2.16-1.565h.062V13h1.244z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-type-h2" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M7.638 13V3.669H6.38V7.62H1.759V3.67H.5V13h1.258V8.728h4.62V13h1.259zm3.022-6.733v-.048c0-.889.63-1.668 1.716-1.668.957 0 1.675.608 1.675 1.572 0 .855-.554 1.504-1.067 2.085l-3.513 3.999V13H15.5v-1.094h-4.245v-.075l2.481-2.844c.875-.998 1.586-1.784 1.586-2.953 0-1.463-1.155-2.556-2.919-2.556-1.941 0-2.966 1.326-2.966 2.74v.049h1.223z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-type-h3" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M7.637 13V3.669H6.379V7.62H1.758V3.67H.5V13h1.258V8.728h4.62V13h1.259zm3.625-4.272h1.018c1.142 0 1.935.67 1.949 1.674.013 1.005-.78 1.737-2.01 1.73-1.08-.007-1.853-.588-1.935-1.32H9.108c.069 1.327 1.224 2.386 3.083 2.386 1.935 0 3.343-1.155 3.309-2.789-.027-1.51-1.251-2.16-2.037-2.249v-.068c.704-.123 1.764-.91 1.723-2.229-.035-1.353-1.176-2.4-2.954-2.385-1.873.006-2.857 1.162-2.898 2.358h1.196c.062-.69.711-1.299 1.696-1.299.998 0 1.695.622 1.695 1.525.007.922-.718 1.592-1.695 1.592h-.964v1.074z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<svg width="800px" height="800px" viewBox="0 0 24 24"
|
|
3
|
+
xmlns="http://www.w3.org/2000/svg">
|
|
4
|
+
|
|
5
|
+
<rect x="0" fill="none" width="24" height="24"/>
|
|
6
|
+
|
|
7
|
+
<g>
|
|
8
|
+
|
|
9
|
+
<path d="M11 17H9v-4H5v4H3V7h2v4h4V7h2v10zm10-2h-1v2h-2v-2h-5v-2l4.05-6H20v6h1v2zm-3-2V9l-2.79 4H18z"/>
|
|
10
|
+
|
|
11
|
+
</g>
|
|
12
|
+
|
|
13
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-type-italic" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M7.991 11.674 9.53 4.455c.123-.595.246-.71 1.347-.807l.11-.52H7.211l-.11.52c1.06.096 1.128.212 1.005.807L6.57 11.674c-.123.595-.246.71-1.346.806l-.11.52h3.774l.11-.52c-1.06-.095-1.129-.211-1.006-.806z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-type-strikethrough" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M6.333 5.686c0 .31.083.581.27.814H5.166a2.776 2.776 0 0 1-.099-.76c0-1.627 1.436-2.768 3.48-2.768 1.969 0 3.39 1.175 3.445 2.85h-1.23c-.11-1.08-.964-1.743-2.25-1.743-1.23 0-2.18.602-2.18 1.607zm2.194 7.478c-2.153 0-3.589-1.107-3.705-2.81h1.23c.144 1.06 1.129 1.703 2.544 1.703 1.34 0 2.31-.705 2.31-1.675 0-.827-.547-1.374-1.914-1.675L8.046 8.5H1v-1h14v1h-3.504c.468.437.675.994.675 1.697 0 1.826-1.436 2.967-3.644 2.967z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-type-underline" viewBox="0 0 16 16">
|
|
2
|
+
<path d="M5.313 3.136h-1.23V9.54c0 2.105 1.47 3.623 3.917 3.623s3.917-1.518 3.917-3.623V3.136h-1.23v6.323c0 1.49-.978 2.57-2.687 2.57-1.709 0-2.687-1.08-2.687-2.57V3.136zM12.5 15h-9v-1h9v1z"/>
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { AutoLinkPlugin } from "@lexical/react/LexicalAutoLinkPlugin";
|
|
2
|
+
import React from "react";
|
|
3
|
+
|
|
4
|
+
const URL_MATCHER = /((https?:\/\/(www\.)?)|(www\.))[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&//=]*)/;
|
|
5
|
+
|
|
6
|
+
const EMAIL_MATCHER = /(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))/;
|
|
7
|
+
|
|
8
|
+
const MATCHERS = [
|
|
9
|
+
(text: any) => {
|
|
10
|
+
const match = URL_MATCHER.exec(text);
|
|
11
|
+
return (
|
|
12
|
+
match && {
|
|
13
|
+
index: match.index,
|
|
14
|
+
length: match[0].length,
|
|
15
|
+
text: match[0],
|
|
16
|
+
url: match[0]
|
|
17
|
+
}
|
|
18
|
+
);
|
|
19
|
+
},
|
|
20
|
+
(text: any) => {
|
|
21
|
+
const match = EMAIL_MATCHER.exec(text);
|
|
22
|
+
return (
|
|
23
|
+
match && {
|
|
24
|
+
index: match.index,
|
|
25
|
+
length: match[0].length,
|
|
26
|
+
text: match[0],
|
|
27
|
+
url: `mailto:${match[0]}`
|
|
28
|
+
}
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
];
|
|
32
|
+
|
|
33
|
+
export function CustomAutoLinkPlugin() {
|
|
34
|
+
return <AutoLinkPlugin matchers={MATCHERS} />;
|
|
35
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { useState, useEffect } from "react"
|
|
2
|
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext"
|
|
3
|
+
import { $convertFromMarkdownString } from "@lexical/markdown";
|
|
4
|
+
import { PLAYGROUND_TRANSFORMERS } from "./MarkdownTransformers";
|
|
5
|
+
|
|
6
|
+
interface Props {
|
|
7
|
+
value: string
|
|
8
|
+
isPreview?: boolean;
|
|
9
|
+
isFullscreen?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function ControlledEditorPlugin({ isFullscreen, value, isPreview = false }: Props): any {
|
|
13
|
+
const [editor] = useLexicalComposerContext();
|
|
14
|
+
|
|
15
|
+
useEffect(() => {
|
|
16
|
+
if (isFullscreen || isPreview) {
|
|
17
|
+
editor.update(() => {
|
|
18
|
+
$convertFromMarkdownString(value, PLAYGROUND_TRANSFORMERS);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}, [value]) //eslint-disable-line
|
|
22
|
+
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { $getListDepth, $isListItemNode, $isListNode } from "@lexical/list";
|
|
2
|
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
3
|
+
import {
|
|
4
|
+
$getSelection,
|
|
5
|
+
$isElementNode,
|
|
6
|
+
$isRangeSelection,
|
|
7
|
+
INDENT_CONTENT_COMMAND,
|
|
8
|
+
COMMAND_PRIORITY_HIGH
|
|
9
|
+
} from "lexical";
|
|
10
|
+
import { useEffect } from "react";
|
|
11
|
+
|
|
12
|
+
function getElementNodesInSelection(selection: any) {
|
|
13
|
+
const nodesInSelection = selection.getNodes();
|
|
14
|
+
|
|
15
|
+
if (nodesInSelection.length === 0) {
|
|
16
|
+
return new Set([
|
|
17
|
+
selection.anchor.getNode().getParentOrThrow(),
|
|
18
|
+
selection.focus.getNode().getParentOrThrow()
|
|
19
|
+
]);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
return new Set(
|
|
23
|
+
nodesInSelection.map((n: any) => ($isElementNode(n) ? n : n.getParentOrThrow()))
|
|
24
|
+
);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function isIndentPermitted(maxDepth: any) {
|
|
28
|
+
const selection = $getSelection();
|
|
29
|
+
|
|
30
|
+
if (!$isRangeSelection(selection)) {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
const elementNodesInSelection = getElementNodesInSelection(selection);
|
|
35
|
+
|
|
36
|
+
let totalDepth = 0;
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
for (const elementNode of elementNodesInSelection) {
|
|
39
|
+
if ($isListNode(elementNode)) {
|
|
40
|
+
totalDepth = Math.max($getListDepth(elementNode) + 1, totalDepth);
|
|
41
|
+
} else if ($isListItemNode(elementNode)) {
|
|
42
|
+
const parent = elementNode.getParent();
|
|
43
|
+
if (!$isListNode(parent)) {
|
|
44
|
+
throw new Error(
|
|
45
|
+
"ListMaxIndentLevelPlugin: A ListItemNode must have a ListNode for a parent."
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
totalDepth = Math.max($getListDepth(parent) + 1, totalDepth);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
return totalDepth <= maxDepth;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function ListMaxIndentLevelPlugin(data: any): any {
|
|
57
|
+
const [editor] = useLexicalComposerContext();
|
|
58
|
+
|
|
59
|
+
useEffect(() => (
|
|
60
|
+
editor.registerCommand(
|
|
61
|
+
INDENT_CONTENT_COMMAND,
|
|
62
|
+
() => !isIndentPermitted(data.maxDepth ?? 7),
|
|
63
|
+
COMMAND_PRIORITY_HIGH
|
|
64
|
+
)
|
|
65
|
+
), [editor, data.maxDepth]);
|
|
66
|
+
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import type { ElementTransformer, Transformer } from "@lexical/markdown";
|
|
2
|
+
import type { LexicalNode, TextFormatType } from "lexical";
|
|
3
|
+
|
|
4
|
+
import {
|
|
5
|
+
ELEMENT_TRANSFORMERS,
|
|
6
|
+
TEXT_FORMAT_TRANSFORMERS,
|
|
7
|
+
TRANSFORMERS
|
|
8
|
+
} from "@lexical/markdown";
|
|
9
|
+
import {
|
|
10
|
+
$createHorizontalRuleNode,
|
|
11
|
+
$isHorizontalRuleNode,
|
|
12
|
+
HorizontalRuleNode
|
|
13
|
+
} from "@lexical/react/LexicalHorizontalRuleNode";
|
|
14
|
+
import { CUSTOM_LINK_NODE_TRANSFORMER } from "./customLink/CustomLinkNodeTransformer";
|
|
15
|
+
import { EMOJI_NODE_MARKDOWN_TRANSFORM } from "./emoji/EmojiNodeTransform";
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
export const HR: ElementTransformer = {
|
|
19
|
+
dependencies: [HorizontalRuleNode],
|
|
20
|
+
export: (node: LexicalNode) => ($isHorizontalRuleNode(node) ? "***" : null),
|
|
21
|
+
regExp: /^(---|\*\*\*|___)\s?$/,
|
|
22
|
+
replace: (parentNode, _1, _2, isImport) => {
|
|
23
|
+
const line = $createHorizontalRuleNode();
|
|
24
|
+
|
|
25
|
+
// TODO: Get rid of isImport flag
|
|
26
|
+
if (isImport || parentNode.getNextSibling() != null) {
|
|
27
|
+
parentNode.replace(line);
|
|
28
|
+
} else {
|
|
29
|
+
parentNode.insertBefore(line);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
line.selectNext();
|
|
33
|
+
},
|
|
34
|
+
type: "element"
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export type TextFormatTransformer = Readonly<{
|
|
38
|
+
format: ReadonlyArray<TextFormatType>;
|
|
39
|
+
tag: string;
|
|
40
|
+
intraword?: boolean;
|
|
41
|
+
type: "text-format";
|
|
42
|
+
}>;
|
|
43
|
+
/*
|
|
44
|
+
export type TextMatchTransformer = Readonly<{
|
|
45
|
+
dependencies: Array<Klass<LexicalNode>>;
|
|
46
|
+
export: (
|
|
47
|
+
node: LexicalNode,
|
|
48
|
+
// eslint-disable-next-line no-shadow
|
|
49
|
+
exportChildren: (node: ElementNode) => string,
|
|
50
|
+
// eslint-disable-next-line no-shadow
|
|
51
|
+
exportFormat: (node: TextNode, textContent: string) => string,
|
|
52
|
+
) => string | null;
|
|
53
|
+
importRegExp: RegExp;
|
|
54
|
+
regExp: RegExp;
|
|
55
|
+
replace: (node: TextNode, match: RegExpMatchArray) => void;
|
|
56
|
+
trigger: string;
|
|
57
|
+
type: 'text-match';
|
|
58
|
+
}>;
|
|
59
|
+
*/
|
|
60
|
+
|
|
61
|
+
export const UNDERLINE: TextFormatTransformer = {
|
|
62
|
+
format: ["underline"],
|
|
63
|
+
intraword: false,
|
|
64
|
+
tag: "_",
|
|
65
|
+
type: "text-format"
|
|
66
|
+
};
|
|
67
|
+
/*
|
|
68
|
+
export const UNDERLINE: TextMatchTransformer = {
|
|
69
|
+
dependencies: [],
|
|
70
|
+
export: (node, exportChildren, exportFormat) => {
|
|
71
|
+
const linkContent = `[${node.getTextContent()}](${node.getURL()})`;
|
|
72
|
+
const firstChild = node.getFirstChild();
|
|
73
|
+
// Add text styles only if link has single text node inside. If it's more
|
|
74
|
+
// then one we ignore it as markdown does not support nested styles for links
|
|
75
|
+
if (node.getChildrenSize() === 1 && $isTextNode(firstChild)) {
|
|
76
|
+
return exportFormat(firstChild, linkContent);
|
|
77
|
+
} else {
|
|
78
|
+
return linkContent;
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
importRegExp: /(?:\[([^[]+)\])(?:\(([^()]+)\))/,
|
|
82
|
+
regExp: /(?:\[([^[]+)\])(?:\(([^()]+)\))$/,
|
|
83
|
+
replace: (textNode, match) => {
|
|
84
|
+
const [, linkText, linkUrl] = match;
|
|
85
|
+
const linkNode = $createLinkNode(linkUrl);
|
|
86
|
+
const linkTextNode = $createTextNode(linkText);
|
|
87
|
+
linkTextNode.setFormat(textNode.getFormat());
|
|
88
|
+
linkNode.append(linkTextNode);
|
|
89
|
+
textNode.replace(linkNode);
|
|
90
|
+
},
|
|
91
|
+
trigger: ')',
|
|
92
|
+
type: 'text-match',
|
|
93
|
+
};
|
|
94
|
+
*/
|
|
95
|
+
|
|
96
|
+
const modifiedTextTransformers = [EMOJI_NODE_MARKDOWN_TRANSFORM];
|
|
97
|
+
|
|
98
|
+
export const PLAYGROUND_TRANSFORMERS: Array<Transformer> = [
|
|
99
|
+
UNDERLINE,
|
|
100
|
+
...modifiedTextTransformers,
|
|
101
|
+
HR,
|
|
102
|
+
...ELEMENT_TRANSFORMERS,
|
|
103
|
+
|
|
104
|
+
CUSTOM_LINK_NODE_TRANSFORMER,
|
|
105
|
+
...TRANSFORMERS.splice(0, 13),
|
|
106
|
+
];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { useEffect } from "react";
|
|
2
|
+
import { useLexicalComposerContext } from "@lexical/react/LexicalComposerContext";
|
|
3
|
+
|
|
4
|
+
interface Props {
|
|
5
|
+
isDisabled?: boolean
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// When isDisabled true, set active editor in ReadOnly mode preventing changes
|
|
9
|
+
export function ReadOnlyPlugin(props: Props): any {
|
|
10
|
+
const [editor] = useLexicalComposerContext();
|
|
11
|
+
|
|
12
|
+
useEffect(() => { editor.setEditable(!props.isDisabled); }, [editor, props.isDisabled]);
|
|
13
|
+
|
|
14
|
+
return null;
|
|
15
|
+
}
|