@123usmanhaider321/ui 0.1.6 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +416 -31
- package/dist/images/icon/1LINK.svg +50 -0
- package/dist/images/icon/CreditCard.svg +83 -0
- package/dist/images/icon/Easypaisa.png +0 -0
- package/dist/images/icon/MobileWallet.png +0 -0
- package/dist/images/icon/Raast-Logo.png +0 -0
- package/dist/images/icon/VISA.png +0 -0
- package/dist/images/icon/add-circle-1.svg +5 -0
- package/dist/images/icon/check-circle-broken.svg +3 -0
- package/dist/images/icon/close-circle.svg +5 -0
- package/dist/images/icon/jazzcash.png +0 -0
- package/dist/images/icon/loading_icon.json +3347 -0
- package/dist/images/icon/mastercard-logo.webp +0 -0
- package/dist/images/icon/paymo.jpeg +0 -0
- package/dist/images/icon/preview-svgrepo-com.svg +36 -0
- package/dist/images/icon/trash.svg +7 -0
- package/dist/images/icon/unionpay-logo.svg +9 -0
- package/dist/index-87FQZHOs.js +11119 -0
- package/dist/index-87FQZHOs.js.map +1 -0
- package/dist/index-Tl9g213f.js +60475 -0
- package/dist/index-Tl9g213f.js.map +1 -0
- package/dist/index.d.ts +1 -10
- package/dist/index.es-CpgTaa1Y.js +16734 -0
- package/dist/index.es-CpgTaa1Y.js.map +1 -0
- package/dist/index.js +40 -12
- package/dist/index.js.map +1 -1
- package/dist/loading_icon-n5H5dQBl.js +3375 -0
- package/dist/loading_icon-n5H5dQBl.js.map +1 -0
- package/dist/src/components/Alert/ErrorAlert.d.ts +6 -0
- package/dist/src/components/Alert/SuccessAlert.d.ts +6 -0
- package/dist/{components → src/components}/FormBuilder/DiscountInput.d.ts +3 -6
- package/dist/{components → src/components}/FormBuilder/FormBuilder.d.ts +2 -11
- package/dist/{components → src/components}/FormBuilder/QuestionCard.d.ts +0 -5
- package/dist/{components → src/components}/FormBuilder/QuestionEditor.d.ts +0 -5
- package/dist/{components → src/components}/FormBuilder/SortableQuestionList.d.ts +0 -5
- package/dist/src/components/FormBuilder/questionIcons.d.ts +5 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/AddEventLayout.d.ts +2 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/AddEventStepper.d.ts +2 -2
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/common/ConfirmationModal.d.ts +1 -1
- package/dist/src/components/NewAddEvent/components/EventSubmissionConfirmationModal.d.ts +14 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/StepTwo/TicketTierSection.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/TicketTierForm.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/hooks/useStepperForm.d.ts +22 -22
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/hooks/useTicketTierForm.d.ts +63 -15
- package/dist/src/components/NewAddEvent/schemas/step1.d.ts +211 -0
- package/dist/src/components/NewAddEvent/schemas/step2.d.ts +411 -0
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/schemas/utils.d.ts +8 -2
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/IndividualFormStep.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/SocialProfilesStep.d.ts +1 -1
- package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/TeamFormStep.d.ts +1 -1
- package/dist/src/components/Spinner/spinner.d.ts +4 -0
- package/dist/src/components/TicketlyUIProvider.d.ts +35 -0
- package/dist/src/components/common/Loader/index.d.ts +8 -0
- package/dist/src/components/common/Modals/ConfirmationModal.d.ts +7 -0
- package/dist/{components/FormInput → src/components/ui}/FormInput.d.ts +1 -1
- package/dist/src/components/ui/Loader.d.ts +4 -0
- package/dist/{components/Button/Button.d.ts → src/components/ui/button.d.ts} +1 -1
- package/dist/src/index.d.ts +10 -0
- package/dist/{lib → src/lib}/actions.d.ts +0 -126
- package/dist/src/lib/dom-utils.d.ts +2 -0
- package/dist/src/lib/storage-utils.d.ts +5 -0
- package/dist/src/lib/types.d.ts +258 -0
- package/dist/src/redux/baseQuery.d.ts +16 -0
- package/dist/{services → src/redux/features}/eventApi.d.ts +1053 -1745
- package/dist/src/redux/features/globalSlice.d.ts +17 -0
- package/dist/{services → src/redux/features/single-event}/single-event-api.d.ts +856 -1190
- package/dist/src/redux/types.d.ts +2 -0
- package/dist/src/services/library-services.d.ts +15 -0
- package/dist/src/services/remote-config.d.ts +27 -0
- package/dist/{services → src/services}/utils.d.ts +1 -1
- package/dist/src/theme/colors.d.ts +127 -0
- package/dist/src/theme/typography.d.ts +13 -0
- package/dist/src/types/api.d.ts +18 -0
- package/dist/style.css +2984 -0
- package/dist/styles.css +3758 -3636
- package/package.json +78 -68
- package/dist/_virtual/_commonjsHelpers.js +0 -9
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/customParseFormat.js +0 -5
- package/dist/_virtual/customParseFormat.js.map +0 -1
- package/dist/_virtual/dayjs.min.js +0 -5
- package/dist/_virtual/dayjs.min.js.map +0 -1
- package/dist/_virtual/duration.js +0 -5
- package/dist/_virtual/duration.js.map +0 -1
- package/dist/_virtual/index.js +0 -5
- package/dist/_virtual/index.js.map +0 -1
- package/dist/_virtual/isBetween.js +0 -5
- package/dist/_virtual/isBetween.js.map +0 -1
- package/dist/_virtual/relativeTime.js +0 -5
- package/dist/_virtual/relativeTime.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.development.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/_virtual/use-sync-external-store-shim.production.js +0 -5
- package/dist/_virtual/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/_virtual/with-selector.development.js +0 -5
- package/dist/_virtual/with-selector.development.js.map +0 -1
- package/dist/_virtual/with-selector.js +0 -5
- package/dist/_virtual/with-selector.js.map +0 -1
- package/dist/_virtual/with-selector.production.js +0 -5
- package/dist/_virtual/with-selector.production.js.map +0 -1
- package/dist/components/Alert/Alert.js +0 -51
- package/dist/components/Alert/Alert.js.map +0 -1
- package/dist/components/Button/Button.js +0 -52
- package/dist/components/Button/Button.js.map +0 -1
- package/dist/components/Button/Button.test.d.ts +0 -1
- package/dist/components/Button/index.d.ts +0 -1
- package/dist/components/Checkbox/Checkbox.js +0 -50
- package/dist/components/Checkbox/Checkbox.js.map +0 -1
- package/dist/components/Checkbox/Checkbox.test.d.ts +0 -1
- package/dist/components/Checkbox/index.d.ts +0 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +0 -25
- package/dist/components/CheckboxGroup/CheckboxGroup.js +0 -99
- package/dist/components/CheckboxGroup/CheckboxGroup.js.map +0 -1
- package/dist/components/ConfirmationModal/ConfirmationModal.d.ts +0 -15
- package/dist/components/ConfirmationModal/ConfirmationModal.js +0 -136
- package/dist/components/ConfirmationModal/ConfirmationModal.js.map +0 -1
- package/dist/components/ConfirmationModal/index.d.ts +0 -2
- package/dist/components/CustomSelect/CustomSelect.js +0 -259
- package/dist/components/CustomSelect/CustomSelect.js.map +0 -1
- package/dist/components/EventAddForm/AddEventLayout.js +0 -227
- package/dist/components/EventAddForm/AddEventLayout.js.map +0 -1
- package/dist/components/EventAddForm/AddEventStepper.js +0 -719
- package/dist/components/EventAddForm/AddEventStepper.js.map +0 -1
- package/dist/components/EventAddForm/common/ConfirmationModal.js +0 -136
- package/dist/components/EventAddForm/common/ConfirmationModal.js.map +0 -1
- package/dist/components/EventAddForm/common/DescriptionModal.js +0 -70
- package/dist/components/EventAddForm/common/DescriptionModal.js.map +0 -1
- package/dist/components/EventAddForm/components/AnimatedBackground.d.ts +0 -8
- package/dist/components/EventAddForm/components/ApprovalConfirmationModal.d.ts +0 -7
- package/dist/components/EventAddForm/components/CheckboxGroup.js +0 -92
- package/dist/components/EventAddForm/components/CheckboxGroup.js.map +0 -1
- package/dist/components/EventAddForm/components/CustomMeetingForm.js +0 -237
- package/dist/components/EventAddForm/components/CustomMeetingForm.js.map +0 -1
- package/dist/components/EventAddForm/components/DateTimeField.js +0 -173
- package/dist/components/EventAddForm/components/DateTimeField.js.map +0 -1
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.d.ts +0 -33
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js +0 -366
- package/dist/components/EventAddForm/components/EventSubmissionConfirmationModal.js.map +0 -1
- package/dist/components/EventAddForm/components/FileUpload.js +0 -412
- package/dist/components/EventAddForm/components/FileUpload.js.map +0 -1
- package/dist/components/EventAddForm/components/FormBuilderProceedModal.js +0 -197
- package/dist/components/EventAddForm/components/FormBuilderProceedModal.js.map +0 -1
- package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js +0 -1179
- package/dist/components/EventAddForm/components/GoogleMapsAutocompleteInput.js.map +0 -1
- package/dist/components/EventAddForm/components/InputField.d.ts +0 -15
- package/dist/components/EventAddForm/components/RadioGroupButton.d.ts +0 -14
- package/dist/components/EventAddForm/components/SelectField.d.ts +0 -19
- package/dist/components/EventAddForm/components/SingleDateTimeInput.js +0 -102
- package/dist/components/EventAddForm/components/SingleDateTimeInput.js.map +0 -1
- package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js +0 -277
- package/dist/components/EventAddForm/components/StepTwo/CustomFormSection.js.map +0 -1
- package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js +0 -148
- package/dist/components/EventAddForm/components/StepTwo/TicketTierSection.js.map +0 -1
- package/dist/components/EventAddForm/components/TicketTierForm.js +0 -418
- package/dist/components/EventAddForm/components/TicketTierForm.js.map +0 -1
- package/dist/components/EventAddForm/components/TicketTypeSelection.js +0 -93
- package/dist/components/EventAddForm/components/TicketTypeSelection.js.map +0 -1
- package/dist/components/EventAddForm/hooks/useStepperForm.js +0 -371
- package/dist/components/EventAddForm/hooks/useStepperForm.js.map +0 -1
- package/dist/components/EventAddForm/hooks/useTicketTierForm.js +0 -237
- package/dist/components/EventAddForm/hooks/useTicketTierForm.js.map +0 -1
- package/dist/components/EventAddForm/index.d.ts +0 -3
- package/dist/components/EventAddForm/index.js +0 -41
- package/dist/components/EventAddForm/index.js.map +0 -1
- package/dist/components/EventAddForm/schemas/index.d.ts +0 -2
- package/dist/components/EventAddForm/schemas/step1.d.ts +0 -47
- package/dist/components/EventAddForm/schemas/step1.js +0 -135
- package/dist/components/EventAddForm/schemas/step1.js.map +0 -1
- package/dist/components/EventAddForm/schemas/step2.d.ts +0 -138
- package/dist/components/EventAddForm/schemas/step2.js +0 -94
- package/dist/components/EventAddForm/schemas/step2.js.map +0 -1
- package/dist/components/EventAddForm/schemas/utils.js +0 -28
- package/dist/components/EventAddForm/schemas/utils.js.map +0 -1
- package/dist/components/EventAddForm/steps/IndividualFormStep.js +0 -85
- package/dist/components/EventAddForm/steps/IndividualFormStep.js.map +0 -1
- package/dist/components/EventAddForm/steps/SocialProfilesStep.js +0 -123
- package/dist/components/EventAddForm/steps/SocialProfilesStep.js.map +0 -1
- package/dist/components/EventAddForm/steps/StepOne.js +0 -462
- package/dist/components/EventAddForm/steps/StepOne.js.map +0 -1
- package/dist/components/EventAddForm/steps/StepTwo.js +0 -173
- package/dist/components/EventAddForm/steps/StepTwo.js.map +0 -1
- package/dist/components/EventAddForm/steps/TeamFormStep.js +0 -13
- package/dist/components/EventAddForm/steps/TeamFormStep.js.map +0 -1
- package/dist/components/FormBuilder/CategoryList.js +0 -242
- package/dist/components/FormBuilder/CategoryList.js.map +0 -1
- package/dist/components/FormBuilder/DiscountInput.js +0 -366
- package/dist/components/FormBuilder/DiscountInput.js.map +0 -1
- package/dist/components/FormBuilder/FormBuilder.js +0 -918
- package/dist/components/FormBuilder/FormBuilder.js.map +0 -1
- package/dist/components/FormBuilder/OptionList.js +0 -120
- package/dist/components/FormBuilder/OptionList.js.map +0 -1
- package/dist/components/FormBuilder/PaymentPreview.d.ts +0 -12
- package/dist/components/FormBuilder/PaymentPreview.js +0 -70
- package/dist/components/FormBuilder/PaymentPreview.js.map +0 -1
- package/dist/components/FormBuilder/PreviewInput.d.ts +0 -10
- package/dist/components/FormBuilder/PreviewInput.js +0 -143
- package/dist/components/FormBuilder/PreviewInput.js.map +0 -1
- package/dist/components/FormBuilder/QuestionCard.js +0 -252
- package/dist/components/FormBuilder/QuestionCard.js.map +0 -1
- package/dist/components/FormBuilder/QuestionEditor.js +0 -166
- package/dist/components/FormBuilder/QuestionEditor.js.map +0 -1
- package/dist/components/FormBuilder/RequiredToggle.js +0 -43
- package/dist/components/FormBuilder/RequiredToggle.js.map +0 -1
- package/dist/components/FormBuilder/SortableQuestionList.js +0 -137
- package/dist/components/FormBuilder/SortableQuestionList.js.map +0 -1
- package/dist/components/FormBuilder/index.d.ts +0 -4
- package/dist/components/FormBuilder/utils.js +0 -229
- package/dist/components/FormBuilder/utils.js.map +0 -1
- package/dist/components/FormInput/FormInput.js +0 -126
- package/dist/components/FormInput/FormInput.js.map +0 -1
- package/dist/components/FormInput/FormInput.test.d.ts +0 -1
- package/dist/components/FormInput/index.d.ts +0 -2
- package/dist/components/ImageCropModal/index.js +0 -464
- package/dist/components/ImageCropModal/index.js.map +0 -1
- package/dist/components/InformationPopover/InformationPopover.d.ts +0 -7
- package/dist/components/InformationPopover/InformationPopover.js +0 -19
- package/dist/components/InformationPopover/InformationPopover.js.map +0 -1
- package/dist/components/InformationPopover.js +0 -19
- package/dist/components/InformationPopover.js.map +0 -1
- package/dist/components/InputErrorMessage/InputErrorMessage.js +0 -21
- package/dist/components/InputErrorMessage/InputErrorMessage.js.map +0 -1
- package/dist/components/Modal/Modal.d.ts +0 -15
- package/dist/components/Modal/Modal.js +0 -73
- package/dist/components/Modal/Modal.js.map +0 -1
- package/dist/components/Radio/Radio.js +0 -35
- package/dist/components/Radio/Radio.js.map +0 -1
- package/dist/components/Spinner/spinner.d.ts +0 -2
- package/dist/components/Spinner/spinner.js +0 -22
- package/dist/components/Spinner/spinner.js.map +0 -1
- package/dist/components/Toggle/Toggle.d.ts +0 -16
- package/dist/components/Toggle/index.d.ts +0 -2
- package/dist/components/Tooltip/Tooltip.d.ts +0 -12
- package/dist/components/Tooltip/Tooltip.js +0 -134
- package/dist/components/Tooltip/Tooltip.js.map +0 -1
- package/dist/components/common/FallbackImage.js +0 -47
- package/dist/components/common/FallbackImage.js.map +0 -1
- package/dist/components/ui/Calendar/calendar-utils.js +0 -51
- package/dist/components/ui/Calendar/calendar-utils.js.map +0 -1
- package/dist/components/ui/Calendar/index.js +0 -142
- package/dist/components/ui/Calendar/index.js.map +0 -1
- package/dist/components/ui/Checkbox.d.ts +0 -9
- package/dist/components/ui/Checkbox.js +0 -50
- package/dist/components/ui/Checkbox.js.map +0 -1
- package/dist/components/ui/DatePicker/index.js +0 -188
- package/dist/components/ui/DatePicker/index.js.map +0 -1
- package/dist/components/ui/FormInput.js +0 -129
- package/dist/components/ui/FormInput.js.map +0 -1
- package/dist/components/ui/InputErrorMessage.d.ts +0 -7
- package/dist/components/ui/InputErrorMessage.js +0 -21
- package/dist/components/ui/InputErrorMessage.js.map +0 -1
- package/dist/components/ui/Modal/index.js +0 -73
- package/dist/components/ui/Modal/index.js.map +0 -1
- package/dist/components/ui/Radio.d.ts +0 -6
- package/dist/components/ui/Radio.js +0 -35
- package/dist/components/ui/Radio.js.map +0 -1
- package/dist/components/ui/RichTextEditor.js +0 -242
- package/dist/components/ui/RichTextEditor.js.map +0 -1
- package/dist/components/ui/TimePicker/index.js +0 -215
- package/dist/components/ui/TimePicker/index.js.map +0 -1
- package/dist/components/ui/TimeSelector/index.js +0 -138
- package/dist/components/ui/TimeSelector/index.js.map +0 -1
- package/dist/components/ui/Tooltip.d.ts +0 -12
- package/dist/components/ui/Tooltip.js +0 -136
- package/dist/components/ui/Tooltip.js.map +0 -1
- package/dist/hooks/useDropdownPosition.d.ts +0 -11
- package/dist/hooks/useFirebaseAuthState.d.ts +0 -6
- package/dist/hooks/useFirebaseAuthState.js +0 -23
- package/dist/hooks/useFirebaseAuthState.js.map +0 -1
- package/dist/hooks/useTicketTierForm.d.ts +0 -61
- package/dist/lib/actions.js +0 -32
- package/dist/lib/actions.js.map +0 -1
- package/dist/lib/cropImage.js +0 -113
- package/dist/lib/cropImage.js.map +0 -1
- package/dist/lib/imageAnalysis.js +0 -58
- package/dist/lib/imageAnalysis.js.map +0 -1
- package/dist/lib/utils.js +0 -9
- package/dist/lib/utils.js.map +0 -1
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js +0 -60
- package/dist/node_modules/@dnd-kit/accessibility/dist/accessibility.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js +0 -3458
- package/dist/node_modules/@dnd-kit/core/dist/core.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js +0 -593
- package/dist/node_modules/@dnd-kit/sortable/dist/sortable.esm.js.map +0 -1
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js +0 -302
- package/dist/node_modules/@dnd-kit/utilities/dist/utilities.esm.js.map +0 -1
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js +0 -768
- package/dist/node_modules/@firebase/app/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js +0 -340
- package/dist/node_modules/@firebase/component/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js +0 -123
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/storage/dist/index.esm.js +0 -2623
- package/dist/node_modules/@firebase/storage/dist/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/util/dist/index.esm.js +0 -658
- package/dist/node_modules/@firebase/util/dist/index.esm.js.map +0 -1
- package/dist/node_modules/@firebase/util/dist/postinstall.js +0 -5
- package/dist/node_modules/@firebase/util/dist/postinstall.js.map +0 -1
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js +0 -3179
- package/dist/node_modules/@fortawesome/fontawesome-svg-core/index.js.map +0 -1
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js +0 -60
- package/dist/node_modules/@fortawesome/free-solid-svg-icons/index.js.map +0 -1
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js +0 -400
- package/dist/node_modules/@fortawesome/react-fontawesome/dist/index.js.map +0 -1
- package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js +0 -27
- package/dist/node_modules/@heroicons/react/20/solid/esm/CheckIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js +0 -27
- package/dist/node_modules/@heroicons/react/20/solid/esm/ChevronDownIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/ArrowRightIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/ClockIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/DocumentDuplicateIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/InformationCircleIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/InformationCircleIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/LinkIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/MagnifyingGlassIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js +0 -33
- package/dist/node_modules/@heroicons/react/24/outline/esm/MapPinIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/VideoCameraIcon.js.map +0 -1
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js +0 -29
- package/dist/node_modules/@heroicons/react/24/outline/esm/XMarkIcon.js.map +0 -1
- package/dist/node_modules/@tiptap/core/dist/index.js +0 -5446
- package/dist/node_modules/@tiptap/core/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js +0 -21
- package/dist/node_modules/@tiptap/core/dist/jsx-runtime/jsx-runtime.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -78
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +0 -100
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +0 -70
- package/dist/node_modules/@tiptap/extension-code/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +0 -317
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +0 -16
- package/dist/node_modules/@tiptap/extension-document/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -66
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +0 -86
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -80
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +0 -98
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +0 -423
- package/dist/node_modules/@tiptap/extension-link/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-list/dist/index.js +0 -1039
- package/dist/node_modules/@tiptap/extension-list/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -61
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +0 -7
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +0 -79
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +0 -16
- package/dist/node_modules/@tiptap/extension-text/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js +0 -76
- package/dist/node_modules/@tiptap/extension-underline/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/extensions/dist/index.js +0 -376
- package/dist/node_modules/@tiptap/extensions/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/react/dist/index.js +0 -650
- package/dist/node_modules/@tiptap/react/dist/index.js.map +0 -1
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +0 -97
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js.map +0 -1
- package/dist/node_modules/dayjs/dayjs.min.js +0 -283
- package/dist/node_modules/dayjs/dayjs.min.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/customParseFormat.js +0 -130
- package/dist/node_modules/dayjs/plugin/customParseFormat.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/duration.js +0 -137
- package/dist/node_modules/dayjs/plugin/duration.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/isBetween.js +0 -20
- package/dist/node_modules/dayjs/plugin/isBetween.js.map +0 -1
- package/dist/node_modules/dayjs/plugin/relativeTime.js +0 -49
- package/dist/node_modules/dayjs/plugin/relativeTime.js.map +0 -1
- package/dist/node_modules/fast-equals/dist/es/index.js +0 -442
- package/dist/node_modules/fast-equals/dist/es/index.js.map +0 -1
- package/dist/node_modules/idb/build/index.js +0 -70
- package/dist/node_modules/idb/build/index.js.map +0 -1
- package/dist/node_modules/idb/build/wrap-idb-value.js +0 -149
- package/dist/node_modules/idb/build/wrap-idb-value.js.map +0 -1
- package/dist/node_modules/linkifyjs/dist/linkify.js +0 -1159
- package/dist/node_modules/linkifyjs/dist/linkify.js.map +0 -1
- package/dist/node_modules/orderedmap/dist/index.js +0 -120
- package/dist/node_modules/orderedmap/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-commands/dist/index.js +0 -527
- package/dist/node_modules/prosemirror-commands/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +0 -137
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +0 -221
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-history/dist/index.js +0 -357
- package/dist/node_modules/prosemirror-history/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-keymap/dist/index.js +0 -84
- package/dist/node_modules/prosemirror-keymap/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-model/dist/index.js +0 -3209
- package/dist/node_modules/prosemirror-model/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +0 -131
- package/dist/node_modules/prosemirror-schema-list/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-state/dist/index.js +0 -936
- package/dist/node_modules/prosemirror-state/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-transform/dist/index.js +0 -1881
- package/dist/node_modules/prosemirror-transform/dist/index.js.map +0 -1
- package/dist/node_modules/prosemirror-view/dist/index.js +0 -5232
- package/dist/node_modules/prosemirror-view/dist/index.js.map +0 -1
- package/dist/node_modules/rope-sequence/dist/index.js +0 -184
- package/dist/node_modules/rope-sequence/dist/index.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js +0 -82
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js +0 -78
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim/with-selector.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js +0 -78
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.development.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js +0 -63
- package/dist/node_modules/use-sync-external-store/cjs/use-sync-external-store-shim.production.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/index.js +0 -13
- package/dist/node_modules/use-sync-external-store/shim/index.js.map +0 -1
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js +0 -13
- package/dist/node_modules/use-sync-external-store/shim/with-selector.js.map +0 -1
- package/dist/node_modules/w3c-keyname/index.js +0 -106
- package/dist/node_modules/w3c-keyname/index.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/coerce.js +0 -10
- package/dist/node_modules/zod/v4/classic/coerce.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/compat.js +0 -8
- package/dist/node_modules/zod/v4/classic/compat.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/errors.js +0 -45
- package/dist/node_modules/zod/v4/classic/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/iso.js +0 -44
- package/dist/node_modules/zod/v4/classic/iso.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/parse.js +0 -30
- package/dist/node_modules/zod/v4/classic/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/classic/schemas.js +0 -711
- package/dist/node_modules/zod/v4/classic/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/api.js +0 -588
- package/dist/node_modules/zod/v4/core/api.js.map +0 -1
- package/dist/node_modules/zod/v4/core/checks.js +0 -411
- package/dist/node_modules/zod/v4/core/checks.js.map +0 -1
- package/dist/node_modules/zod/v4/core/core.js +0 -75
- package/dist/node_modules/zod/v4/core/core.js.map +0 -1
- package/dist/node_modules/zod/v4/core/doc.js +0 -38
- package/dist/node_modules/zod/v4/core/doc.js.map +0 -1
- package/dist/node_modules/zod/v4/core/errors.js +0 -73
- package/dist/node_modules/zod/v4/core/errors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +0 -359
- package/dist/node_modules/zod/v4/core/json-schema-processors.js.map +0 -1
- package/dist/node_modules/zod/v4/core/parse.js +0 -96
- package/dist/node_modules/zod/v4/core/parse.js.map +0 -1
- package/dist/node_modules/zod/v4/core/regexes.js +0 -84
- package/dist/node_modules/zod/v4/core/regexes.js.map +0 -1
- package/dist/node_modules/zod/v4/core/registries.js +0 -52
- package/dist/node_modules/zod/v4/core/registries.js.map +0 -1
- package/dist/node_modules/zod/v4/core/schemas.js +0 -1391
- package/dist/node_modules/zod/v4/core/schemas.js.map +0 -1
- package/dist/node_modules/zod/v4/core/to-json-schema.js +0 -363
- package/dist/node_modules/zod/v4/core/to-json-schema.js.map +0 -1
- package/dist/node_modules/zod/v4/core/util.js +0 -431
- package/dist/node_modules/zod/v4/core/util.js.map +0 -1
- package/dist/node_modules/zod/v4/core/versions.js +0 -9
- package/dist/node_modules/zod/v4/core/versions.js.map +0 -1
- package/dist/redux/baseQuery.d.ts +0 -1
- package/dist/redux/baseQuery.js +0 -24
- package/dist/redux/baseQuery.js.map +0 -1
- package/dist/services/eventApi.js +0 -411
- package/dist/services/eventApi.js.map +0 -1
- package/dist/services/helpers.js +0 -115
- package/dist/services/helpers.js.map +0 -1
- package/dist/services/initialize-firebase.d.ts +0 -2
- package/dist/services/initialize-firebase.js +0 -20
- package/dist/services/initialize-firebase.js.map +0 -1
- package/dist/services/process-image-on-server.js +0 -30
- package/dist/services/process-image-on-server.js.map +0 -1
- package/dist/services/remote-config.d.ts +0 -5
- package/dist/services/remote-config.js +0 -9
- package/dist/services/remote-config.js.map +0 -1
- package/dist/services/single-event-api.js +0 -301
- package/dist/services/single-event-api.js.map +0 -1
- package/dist/services/utils.js +0 -107
- package/dist/services/utils.js.map +0 -1
- package/dist/setupTests.d.ts +0 -1
- package/dist/stories/Alert.stories.d.ts +0 -10
- package/dist/stories/Button.stories.d.ts +0 -13
- package/dist/types/redux-types.d.ts +0 -15
- package/dist/types/types.d.ts +0 -60
- package/dist/types/types.js +0 -10
- package/dist/types/types.js.map +0 -1
- package/dist/utils/cn.d.ts +0 -6
- package/dist/utils/cn.js +0 -9
- package/dist/utils/cn.js.map +0 -1
- package/dist/utils/date-range.d.ts +0 -4
- package/dist/utils/date-range.js +0 -13
- package/dist/utils/date-range.js.map +0 -1
- package/dist/utils/single-event-helpers.d.ts +0 -50
- package/dist/utils/single-event-helpers.js +0 -18
- package/dist/utils/single-event-helpers.js.map +0 -1
- package/dist/utils/social-validation.js +0 -42
- package/dist/utils/social-validation.js.map +0 -1
- package/dist/utils/utils.js +0 -20
- package/dist/utils/utils.js.map +0 -1
- /package/dist/{components/Alert/Alert.d.ts → src/components/Alert/index.d.ts} +0 -0
- /package/dist/{components → src/components}/FormBuilder/CategoryList.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/OptionList.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/RequiredToggle.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/types.d.ts +0 -0
- /package/dist/{components → src/components}/FormBuilder/utils.d.ts +0 -0
- /package/dist/{components → src/components}/ImageCropModal/index.d.ts +0 -0
- /package/dist/{components → src/components}/InformationPopover.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/common/DescriptionModal.d.ts +0 -0
- /package/dist/{components/ui/FormInput.d.ts → src/components/NewAddEvent/components/AddEventFormInput.d.ts} +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/CheckboxGroup.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/CustomMeetingForm.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/DateTimeField.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/FileUpload.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/FormBuilderProceedModal.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/GoogleMapsAutocompleteInput.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/SingleDateTimeInput.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/StepTwo/CustomFormSection.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/components/TicketTypeSelection.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/StepOne.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/steps/StepTwo.d.ts +0 -0
- /package/dist/{components/EventAddForm → src/components/NewAddEvent}/types.d.ts +0 -0
- /package/dist/{components → src/components}/common/FallbackImage.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Calendar/calendar-utils.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Calendar/index.d.ts +0 -0
- /package/dist/{components/Checkbox → src/components/ui}/Checkbox.d.ts +0 -0
- /package/dist/{components/CustomSelect → src/components/ui}/CustomSelect.d.ts +0 -0
- /package/dist/{components → src/components}/ui/DatePicker/index.d.ts +0 -0
- /package/dist/{components/InputErrorMessage → src/components/ui}/InputErrorMessage.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Modal/index.d.ts +0 -0
- /package/dist/{components/Radio → src/components/ui}/Radio.d.ts +0 -0
- /package/dist/{components → src/components}/ui/RichTextEditor.d.ts +0 -0
- /package/dist/{components → src/components}/ui/TimePicker/index.d.ts +0 -0
- /package/dist/{components → src/components}/ui/TimeSelector/index.d.ts +0 -0
- /package/dist/{components → src/components}/ui/Tooltip/index.d.ts +0 -0
- /package/dist/{lib → src/lib}/constants.d.ts +0 -0
- /package/dist/{lib → src/lib}/cropImage.d.ts +0 -0
- /package/dist/{lib → src/lib}/imageAnalysis.d.ts +0 -0
- /package/dist/{utils → src/lib}/social-validation.d.ts +0 -0
- /package/dist/{lib/utils.d.ts → src/lib/tailwind-merge.d.ts} +0 -0
- /package/dist/{utils → src/lib}/utils.d.ts +0 -0
- /package/dist/{services → src/redux/features/single-event}/helpers.d.ts +0 -0
- /package/dist/{services → src/services}/process-image-on-server.d.ts +0 -0
- /package/dist/{types → src/types}/events.d.ts +0 -0
- /package/dist/{types → src/types}/question.d.ts +0 -0
|
@@ -1,650 +0,0 @@
|
|
|
1
|
-
import React__default, { useRef, useState, useDebugValue, useEffect, forwardRef, useLayoutEffect, createContext, useContext, useMemo } from "react";
|
|
2
|
-
import ReactDOM from "react-dom";
|
|
3
|
-
import { s as shimExports } from "../../../use-sync-external-store/shim/index.js";
|
|
4
|
-
import { jsxs, Fragment, jsx } from "react/jsx-runtime";
|
|
5
|
-
import { Editor } from "../../core/dist/index.js";
|
|
6
|
-
import { CommandManager, Extendable, Extension, InputRule, MappablePosition, Mark, Node, NodePos, PasteRule, callOrReturn, canInsertNode, combineTransactionSteps, commands, createAtomBlockMarkdownSpec, createBlockMarkdownSpec, createChainableState, createDocument, createInlineMarkdownSpec, createMappablePosition, createNodeFromContent, createStyleTag, defaultBlockAt, deleteProps, elementFromString, extensions, findChildrenInRange, findDuplicates, findParentNode, findParentNodeClosestToPos, flattenExtensions, fromString, getAttributes, getAttributesFromExtensions, getChangedRanges, getExtensionField, getHTMLFromFragment, getMarkAttributes, getMarkRange, getMarkType, getMarksBetween, getNodeAtPosition, getNodeAttributes, getNodeType, getRenderedAttributes, getSchemaByResolvedExtensions, getSchemaTypeByName, getSchemaTypeNameByName, getSplittedAttributes, getText, getTextBetween, getTextContentFromNodes, getTextSerializersFromSchema, getUpdatedPosition, injectExtensionAttributesToParseRule, inputRulesPlugin, isActive, isAndroid, isAtEndOfNode, isAtStartOfNode, isEmptyObject, isExtensionRulesEnabled, isFunction, isList, isMacOS, isMarkActive, isNodeActive, isNodeEmpty, isNodeSelection, isNumber, isPlainObject, isRegExp, isSafari, isTextSelection, isiOS, markInputRule, markPasteRule, markdown, mergeAttributes, mergeDeep, minMax, nodeInputRule, objectIncludes, parseAttributes, parseIndentedBlocks, pasteRulesPlugin, removeDuplicates, renderNestedMarkdownContent, resolveExtensions, resolveFocusPosition, selectionToInsertionEnd, serializeAttributes, sortExtensions, splitExtensions, textblockTypeInputRule, updateMarkViewAttributes, wrappingInputRule } from "../../core/dist/index.js";
|
|
7
|
-
import { deepEqual } from "../../../fast-equals/dist/es/index.js";
|
|
8
|
-
import { w as withSelectorExports } from "../../../use-sync-external-store/shim/with-selector.js";
|
|
9
|
-
var mergeRefs = (...refs) => {
|
|
10
|
-
return (node) => {
|
|
11
|
-
refs.forEach((ref) => {
|
|
12
|
-
if (typeof ref === "function") {
|
|
13
|
-
ref(node);
|
|
14
|
-
} else if (ref) {
|
|
15
|
-
ref.current = node;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
var Portals = ({ contentComponent }) => {
|
|
21
|
-
const renderers = shimExports.useSyncExternalStore(
|
|
22
|
-
contentComponent.subscribe,
|
|
23
|
-
contentComponent.getSnapshot,
|
|
24
|
-
contentComponent.getServerSnapshot
|
|
25
|
-
);
|
|
26
|
-
return /* @__PURE__ */ jsx(Fragment, { children: Object.values(renderers) });
|
|
27
|
-
};
|
|
28
|
-
function getInstance() {
|
|
29
|
-
const subscribers = /* @__PURE__ */ new Set();
|
|
30
|
-
let renderers = {};
|
|
31
|
-
return {
|
|
32
|
-
/**
|
|
33
|
-
* Subscribe to the editor instance's changes.
|
|
34
|
-
*/
|
|
35
|
-
subscribe(callback) {
|
|
36
|
-
subscribers.add(callback);
|
|
37
|
-
return () => {
|
|
38
|
-
subscribers.delete(callback);
|
|
39
|
-
};
|
|
40
|
-
},
|
|
41
|
-
getSnapshot() {
|
|
42
|
-
return renderers;
|
|
43
|
-
},
|
|
44
|
-
getServerSnapshot() {
|
|
45
|
-
return renderers;
|
|
46
|
-
},
|
|
47
|
-
/**
|
|
48
|
-
* Adds a new NodeView Renderer to the editor.
|
|
49
|
-
*/
|
|
50
|
-
setRenderer(id, renderer) {
|
|
51
|
-
renderers = {
|
|
52
|
-
...renderers,
|
|
53
|
-
[id]: ReactDOM.createPortal(renderer.reactElement, renderer.element, id)
|
|
54
|
-
};
|
|
55
|
-
subscribers.forEach((subscriber) => subscriber());
|
|
56
|
-
},
|
|
57
|
-
/**
|
|
58
|
-
* Removes a NodeView Renderer from the editor.
|
|
59
|
-
*/
|
|
60
|
-
removeRenderer(id) {
|
|
61
|
-
const nextRenderers = { ...renderers };
|
|
62
|
-
delete nextRenderers[id];
|
|
63
|
-
renderers = nextRenderers;
|
|
64
|
-
subscribers.forEach((subscriber) => subscriber());
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
}
|
|
68
|
-
var PureEditorContent = class extends React__default.Component {
|
|
69
|
-
constructor(props) {
|
|
70
|
-
super(props);
|
|
71
|
-
this.editorContentRef = React__default.createRef();
|
|
72
|
-
}
|
|
73
|
-
componentDidMount() {
|
|
74
|
-
this.init();
|
|
75
|
-
}
|
|
76
|
-
componentDidUpdate() {
|
|
77
|
-
this.init();
|
|
78
|
-
}
|
|
79
|
-
init() {
|
|
80
|
-
var _a;
|
|
81
|
-
const editor = this.props.editor;
|
|
82
|
-
if (editor && !editor.isDestroyed && ((_a = editor.view.dom) == null ? void 0 : _a.parentNode)) {
|
|
83
|
-
if (editor.contentComponent) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
|
-
const element = this.editorContentRef.current;
|
|
87
|
-
element.append(...editor.view.dom.parentNode.childNodes);
|
|
88
|
-
editor.setOptions({
|
|
89
|
-
element
|
|
90
|
-
});
|
|
91
|
-
editor.contentComponent = getInstance();
|
|
92
|
-
editor.createNodeViews();
|
|
93
|
-
editor.isEditorContentInitialized = true;
|
|
94
|
-
this.forceUpdate();
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
componentWillUnmount() {
|
|
98
|
-
var _a;
|
|
99
|
-
const editor = this.props.editor;
|
|
100
|
-
if (!editor) {
|
|
101
|
-
return;
|
|
102
|
-
}
|
|
103
|
-
editor.isEditorContentInitialized = false;
|
|
104
|
-
if (!editor.isDestroyed) {
|
|
105
|
-
editor.view.setProps({
|
|
106
|
-
nodeViews: {}
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
editor.contentComponent = null;
|
|
110
|
-
try {
|
|
111
|
-
if (!((_a = editor.view.dom) == null ? void 0 : _a.parentNode)) {
|
|
112
|
-
return;
|
|
113
|
-
}
|
|
114
|
-
const newElement = document.createElement("div");
|
|
115
|
-
newElement.append(...editor.view.dom.parentNode.childNodes);
|
|
116
|
-
editor.setOptions({
|
|
117
|
-
element: newElement
|
|
118
|
-
});
|
|
119
|
-
} catch {
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
render() {
|
|
123
|
-
const { editor, innerRef, ...rest } = this.props;
|
|
124
|
-
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
125
|
-
/* @__PURE__ */ jsx("div", { ref: mergeRefs(innerRef, this.editorContentRef), ...rest }),
|
|
126
|
-
(editor == null ? void 0 : editor.contentComponent) && /* @__PURE__ */ jsx(Portals, { contentComponent: editor.contentComponent })
|
|
127
|
-
] });
|
|
128
|
-
}
|
|
129
|
-
};
|
|
130
|
-
var EditorContentWithKey = forwardRef(
|
|
131
|
-
(props, ref) => {
|
|
132
|
-
const key = React__default.useMemo(() => {
|
|
133
|
-
return Math.floor(Math.random() * 4294967295).toString();
|
|
134
|
-
}, [props.editor]);
|
|
135
|
-
return React__default.createElement(PureEditorContent, {
|
|
136
|
-
key,
|
|
137
|
-
innerRef: ref,
|
|
138
|
-
...props
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
);
|
|
142
|
-
var EditorContent = React__default.memo(EditorContentWithKey);
|
|
143
|
-
var useIsomorphicLayoutEffect = typeof window !== "undefined" ? useLayoutEffect : useEffect;
|
|
144
|
-
var EditorStateManager = class {
|
|
145
|
-
constructor(initialEditor) {
|
|
146
|
-
this.transactionNumber = 0;
|
|
147
|
-
this.lastTransactionNumber = 0;
|
|
148
|
-
this.subscribers = /* @__PURE__ */ new Set();
|
|
149
|
-
this.editor = initialEditor;
|
|
150
|
-
this.lastSnapshot = { editor: initialEditor, transactionNumber: 0 };
|
|
151
|
-
this.getSnapshot = this.getSnapshot.bind(this);
|
|
152
|
-
this.getServerSnapshot = this.getServerSnapshot.bind(this);
|
|
153
|
-
this.watch = this.watch.bind(this);
|
|
154
|
-
this.subscribe = this.subscribe.bind(this);
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Get the current editor instance.
|
|
158
|
-
*/
|
|
159
|
-
getSnapshot() {
|
|
160
|
-
if (this.transactionNumber === this.lastTransactionNumber) {
|
|
161
|
-
return this.lastSnapshot;
|
|
162
|
-
}
|
|
163
|
-
this.lastTransactionNumber = this.transactionNumber;
|
|
164
|
-
this.lastSnapshot = { editor: this.editor, transactionNumber: this.transactionNumber };
|
|
165
|
-
return this.lastSnapshot;
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* Always disable the editor on the server-side.
|
|
169
|
-
*/
|
|
170
|
-
getServerSnapshot() {
|
|
171
|
-
return { editor: null, transactionNumber: 0 };
|
|
172
|
-
}
|
|
173
|
-
/**
|
|
174
|
-
* Subscribe to the editor instance's changes.
|
|
175
|
-
*/
|
|
176
|
-
subscribe(callback) {
|
|
177
|
-
this.subscribers.add(callback);
|
|
178
|
-
return () => {
|
|
179
|
-
this.subscribers.delete(callback);
|
|
180
|
-
};
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* Watch the editor instance for changes.
|
|
184
|
-
*/
|
|
185
|
-
watch(nextEditor) {
|
|
186
|
-
this.editor = nextEditor;
|
|
187
|
-
if (this.editor) {
|
|
188
|
-
const fn = () => {
|
|
189
|
-
this.transactionNumber += 1;
|
|
190
|
-
this.subscribers.forEach((callback) => callback());
|
|
191
|
-
};
|
|
192
|
-
const currentEditor = this.editor;
|
|
193
|
-
currentEditor.on("transaction", fn);
|
|
194
|
-
return () => {
|
|
195
|
-
currentEditor.off("transaction", fn);
|
|
196
|
-
};
|
|
197
|
-
}
|
|
198
|
-
return void 0;
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
function useEditorState(options) {
|
|
202
|
-
var _a;
|
|
203
|
-
const [editorStateManager] = useState(() => new EditorStateManager(options.editor));
|
|
204
|
-
const selectedState = withSelectorExports.useSyncExternalStoreWithSelector(
|
|
205
|
-
editorStateManager.subscribe,
|
|
206
|
-
editorStateManager.getSnapshot,
|
|
207
|
-
editorStateManager.getServerSnapshot,
|
|
208
|
-
options.selector,
|
|
209
|
-
(_a = options.equalityFn) != null ? _a : deepEqual
|
|
210
|
-
);
|
|
211
|
-
useIsomorphicLayoutEffect(() => {
|
|
212
|
-
return editorStateManager.watch(options.editor);
|
|
213
|
-
}, [options.editor, editorStateManager]);
|
|
214
|
-
useDebugValue(selectedState);
|
|
215
|
-
return selectedState;
|
|
216
|
-
}
|
|
217
|
-
var isDev = process.env.NODE_ENV !== "production";
|
|
218
|
-
var isSSR = typeof window === "undefined";
|
|
219
|
-
var isNext = isSSR || Boolean(typeof window !== "undefined" && window.next);
|
|
220
|
-
var EditorInstanceManager = class _EditorInstanceManager {
|
|
221
|
-
constructor(options) {
|
|
222
|
-
this.editor = null;
|
|
223
|
-
this.subscriptions = /* @__PURE__ */ new Set();
|
|
224
|
-
this.isComponentMounted = false;
|
|
225
|
-
this.previousDeps = null;
|
|
226
|
-
this.instanceId = "";
|
|
227
|
-
this.options = options;
|
|
228
|
-
this.subscriptions = /* @__PURE__ */ new Set();
|
|
229
|
-
this.setEditor(this.getInitialEditor());
|
|
230
|
-
this.scheduleDestroy();
|
|
231
|
-
this.getEditor = this.getEditor.bind(this);
|
|
232
|
-
this.getServerSnapshot = this.getServerSnapshot.bind(this);
|
|
233
|
-
this.subscribe = this.subscribe.bind(this);
|
|
234
|
-
this.refreshEditorInstance = this.refreshEditorInstance.bind(this);
|
|
235
|
-
this.scheduleDestroy = this.scheduleDestroy.bind(this);
|
|
236
|
-
this.onRender = this.onRender.bind(this);
|
|
237
|
-
this.createEditor = this.createEditor.bind(this);
|
|
238
|
-
}
|
|
239
|
-
setEditor(editor) {
|
|
240
|
-
this.editor = editor;
|
|
241
|
-
this.instanceId = Math.random().toString(36).slice(2, 9);
|
|
242
|
-
this.subscriptions.forEach((cb) => cb());
|
|
243
|
-
}
|
|
244
|
-
getInitialEditor() {
|
|
245
|
-
if (this.options.current.immediatelyRender === void 0) {
|
|
246
|
-
if (isSSR || isNext) {
|
|
247
|
-
if (isDev) {
|
|
248
|
-
throw new Error(
|
|
249
|
-
"Tiptap Error: SSR has been detected, please set `immediatelyRender` explicitly to `false` to avoid hydration mismatches."
|
|
250
|
-
);
|
|
251
|
-
}
|
|
252
|
-
return null;
|
|
253
|
-
}
|
|
254
|
-
return this.createEditor();
|
|
255
|
-
}
|
|
256
|
-
if (this.options.current.immediatelyRender && isSSR && isDev) {
|
|
257
|
-
throw new Error(
|
|
258
|
-
"Tiptap Error: SSR has been detected, and `immediatelyRender` has been set to `true` this is an unsupported configuration that may result in errors, explicitly set `immediatelyRender` to `false` to avoid hydration mismatches."
|
|
259
|
-
);
|
|
260
|
-
}
|
|
261
|
-
if (this.options.current.immediatelyRender) {
|
|
262
|
-
return this.createEditor();
|
|
263
|
-
}
|
|
264
|
-
return null;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Create a new editor instance. And attach event listeners.
|
|
268
|
-
*/
|
|
269
|
-
createEditor() {
|
|
270
|
-
const optionsToApply = {
|
|
271
|
-
...this.options.current,
|
|
272
|
-
// Always call the most recent version of the callback function by default
|
|
273
|
-
onBeforeCreate: (...args) => {
|
|
274
|
-
var _a, _b;
|
|
275
|
-
return (_b = (_a = this.options.current).onBeforeCreate) == null ? void 0 : _b.call(_a, ...args);
|
|
276
|
-
},
|
|
277
|
-
onBlur: (...args) => {
|
|
278
|
-
var _a, _b;
|
|
279
|
-
return (_b = (_a = this.options.current).onBlur) == null ? void 0 : _b.call(_a, ...args);
|
|
280
|
-
},
|
|
281
|
-
onCreate: (...args) => {
|
|
282
|
-
var _a, _b;
|
|
283
|
-
return (_b = (_a = this.options.current).onCreate) == null ? void 0 : _b.call(_a, ...args);
|
|
284
|
-
},
|
|
285
|
-
onDestroy: (...args) => {
|
|
286
|
-
var _a, _b;
|
|
287
|
-
return (_b = (_a = this.options.current).onDestroy) == null ? void 0 : _b.call(_a, ...args);
|
|
288
|
-
},
|
|
289
|
-
onFocus: (...args) => {
|
|
290
|
-
var _a, _b;
|
|
291
|
-
return (_b = (_a = this.options.current).onFocus) == null ? void 0 : _b.call(_a, ...args);
|
|
292
|
-
},
|
|
293
|
-
onSelectionUpdate: (...args) => {
|
|
294
|
-
var _a, _b;
|
|
295
|
-
return (_b = (_a = this.options.current).onSelectionUpdate) == null ? void 0 : _b.call(_a, ...args);
|
|
296
|
-
},
|
|
297
|
-
onTransaction: (...args) => {
|
|
298
|
-
var _a, _b;
|
|
299
|
-
return (_b = (_a = this.options.current).onTransaction) == null ? void 0 : _b.call(_a, ...args);
|
|
300
|
-
},
|
|
301
|
-
onUpdate: (...args) => {
|
|
302
|
-
var _a, _b;
|
|
303
|
-
return (_b = (_a = this.options.current).onUpdate) == null ? void 0 : _b.call(_a, ...args);
|
|
304
|
-
},
|
|
305
|
-
onContentError: (...args) => {
|
|
306
|
-
var _a, _b;
|
|
307
|
-
return (_b = (_a = this.options.current).onContentError) == null ? void 0 : _b.call(_a, ...args);
|
|
308
|
-
},
|
|
309
|
-
onDrop: (...args) => {
|
|
310
|
-
var _a, _b;
|
|
311
|
-
return (_b = (_a = this.options.current).onDrop) == null ? void 0 : _b.call(_a, ...args);
|
|
312
|
-
},
|
|
313
|
-
onPaste: (...args) => {
|
|
314
|
-
var _a, _b;
|
|
315
|
-
return (_b = (_a = this.options.current).onPaste) == null ? void 0 : _b.call(_a, ...args);
|
|
316
|
-
},
|
|
317
|
-
onDelete: (...args) => {
|
|
318
|
-
var _a, _b;
|
|
319
|
-
return (_b = (_a = this.options.current).onDelete) == null ? void 0 : _b.call(_a, ...args);
|
|
320
|
-
}
|
|
321
|
-
};
|
|
322
|
-
const editor = new Editor(optionsToApply);
|
|
323
|
-
return editor;
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* Get the current editor instance.
|
|
327
|
-
*/
|
|
328
|
-
getEditor() {
|
|
329
|
-
return this.editor;
|
|
330
|
-
}
|
|
331
|
-
/**
|
|
332
|
-
* Always disable the editor on the server-side.
|
|
333
|
-
*/
|
|
334
|
-
getServerSnapshot() {
|
|
335
|
-
return null;
|
|
336
|
-
}
|
|
337
|
-
/**
|
|
338
|
-
* Subscribe to the editor instance's changes.
|
|
339
|
-
*/
|
|
340
|
-
subscribe(onStoreChange) {
|
|
341
|
-
this.subscriptions.add(onStoreChange);
|
|
342
|
-
return () => {
|
|
343
|
-
this.subscriptions.delete(onStoreChange);
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
static compareOptions(a, b) {
|
|
347
|
-
return Object.keys(a).every((key) => {
|
|
348
|
-
if ([
|
|
349
|
-
"onCreate",
|
|
350
|
-
"onBeforeCreate",
|
|
351
|
-
"onDestroy",
|
|
352
|
-
"onUpdate",
|
|
353
|
-
"onTransaction",
|
|
354
|
-
"onFocus",
|
|
355
|
-
"onBlur",
|
|
356
|
-
"onSelectionUpdate",
|
|
357
|
-
"onContentError",
|
|
358
|
-
"onDrop",
|
|
359
|
-
"onPaste"
|
|
360
|
-
].includes(key)) {
|
|
361
|
-
return true;
|
|
362
|
-
}
|
|
363
|
-
if (key === "extensions" && a.extensions && b.extensions) {
|
|
364
|
-
if (a.extensions.length !== b.extensions.length) {
|
|
365
|
-
return false;
|
|
366
|
-
}
|
|
367
|
-
return a.extensions.every((extension, index) => {
|
|
368
|
-
var _a;
|
|
369
|
-
if (extension !== ((_a = b.extensions) == null ? void 0 : _a[index])) {
|
|
370
|
-
return false;
|
|
371
|
-
}
|
|
372
|
-
return true;
|
|
373
|
-
});
|
|
374
|
-
}
|
|
375
|
-
if (a[key] !== b[key]) {
|
|
376
|
-
return false;
|
|
377
|
-
}
|
|
378
|
-
return true;
|
|
379
|
-
});
|
|
380
|
-
}
|
|
381
|
-
/**
|
|
382
|
-
* On each render, we will create, update, or destroy the editor instance.
|
|
383
|
-
* @param deps The dependencies to watch for changes
|
|
384
|
-
* @returns A cleanup function
|
|
385
|
-
*/
|
|
386
|
-
onRender(deps) {
|
|
387
|
-
return () => {
|
|
388
|
-
this.isComponentMounted = true;
|
|
389
|
-
clearTimeout(this.scheduledDestructionTimeout);
|
|
390
|
-
if (this.editor && !this.editor.isDestroyed && deps.length === 0) {
|
|
391
|
-
if (!_EditorInstanceManager.compareOptions(this.options.current, this.editor.options)) {
|
|
392
|
-
this.editor.setOptions({
|
|
393
|
-
...this.options.current,
|
|
394
|
-
editable: this.editor.isEditable
|
|
395
|
-
});
|
|
396
|
-
}
|
|
397
|
-
} else {
|
|
398
|
-
this.refreshEditorInstance(deps);
|
|
399
|
-
}
|
|
400
|
-
return () => {
|
|
401
|
-
this.isComponentMounted = false;
|
|
402
|
-
this.scheduleDestroy();
|
|
403
|
-
};
|
|
404
|
-
};
|
|
405
|
-
}
|
|
406
|
-
/**
|
|
407
|
-
* Recreate the editor instance if the dependencies have changed.
|
|
408
|
-
*/
|
|
409
|
-
refreshEditorInstance(deps) {
|
|
410
|
-
if (this.editor && !this.editor.isDestroyed) {
|
|
411
|
-
if (this.previousDeps === null) {
|
|
412
|
-
this.previousDeps = deps;
|
|
413
|
-
return;
|
|
414
|
-
}
|
|
415
|
-
const depsAreEqual = this.previousDeps.length === deps.length && this.previousDeps.every((dep, index) => dep === deps[index]);
|
|
416
|
-
if (depsAreEqual) {
|
|
417
|
-
return;
|
|
418
|
-
}
|
|
419
|
-
}
|
|
420
|
-
if (this.editor && !this.editor.isDestroyed) {
|
|
421
|
-
this.editor.destroy();
|
|
422
|
-
}
|
|
423
|
-
this.setEditor(this.createEditor());
|
|
424
|
-
this.previousDeps = deps;
|
|
425
|
-
}
|
|
426
|
-
/**
|
|
427
|
-
* Schedule the destruction of the editor instance.
|
|
428
|
-
* This will only destroy the editor if it was not mounted on the next tick.
|
|
429
|
-
* This is to avoid destroying the editor instance when it's actually still mounted.
|
|
430
|
-
*/
|
|
431
|
-
scheduleDestroy() {
|
|
432
|
-
const currentInstanceId = this.instanceId;
|
|
433
|
-
const currentEditor = this.editor;
|
|
434
|
-
this.scheduledDestructionTimeout = setTimeout(() => {
|
|
435
|
-
if (this.isComponentMounted && this.instanceId === currentInstanceId) {
|
|
436
|
-
if (currentEditor) {
|
|
437
|
-
currentEditor.setOptions(this.options.current);
|
|
438
|
-
}
|
|
439
|
-
return;
|
|
440
|
-
}
|
|
441
|
-
if (currentEditor && !currentEditor.isDestroyed) {
|
|
442
|
-
currentEditor.destroy();
|
|
443
|
-
if (this.instanceId === currentInstanceId) {
|
|
444
|
-
this.setEditor(null);
|
|
445
|
-
}
|
|
446
|
-
}
|
|
447
|
-
}, 1);
|
|
448
|
-
}
|
|
449
|
-
};
|
|
450
|
-
function useEditor(options = {}, deps = []) {
|
|
451
|
-
const mostRecentOptions = useRef(options);
|
|
452
|
-
mostRecentOptions.current = options;
|
|
453
|
-
const [instanceManager] = useState(() => new EditorInstanceManager(mostRecentOptions));
|
|
454
|
-
const editor = shimExports.useSyncExternalStore(
|
|
455
|
-
instanceManager.subscribe,
|
|
456
|
-
instanceManager.getEditor,
|
|
457
|
-
instanceManager.getServerSnapshot
|
|
458
|
-
);
|
|
459
|
-
useDebugValue(editor);
|
|
460
|
-
useEffect(instanceManager.onRender(deps));
|
|
461
|
-
useEditorState({
|
|
462
|
-
editor,
|
|
463
|
-
selector: ({ transactionNumber }) => {
|
|
464
|
-
if (options.shouldRerenderOnTransaction === false || options.shouldRerenderOnTransaction === void 0) {
|
|
465
|
-
return null;
|
|
466
|
-
}
|
|
467
|
-
if (options.immediatelyRender && transactionNumber === 0) {
|
|
468
|
-
return 0;
|
|
469
|
-
}
|
|
470
|
-
return transactionNumber + 1;
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
return editor;
|
|
474
|
-
}
|
|
475
|
-
var EditorContext = createContext({
|
|
476
|
-
editor: null
|
|
477
|
-
});
|
|
478
|
-
EditorContext.Consumer;
|
|
479
|
-
var ReactNodeViewContext = createContext({
|
|
480
|
-
onDragStart: () => {
|
|
481
|
-
},
|
|
482
|
-
nodeViewContentChildren: void 0,
|
|
483
|
-
nodeViewContentRef: () => {
|
|
484
|
-
}
|
|
485
|
-
});
|
|
486
|
-
var useReactNodeView = () => useContext(ReactNodeViewContext);
|
|
487
|
-
React__default.forwardRef((props, ref) => {
|
|
488
|
-
const { onDragStart } = useReactNodeView();
|
|
489
|
-
const Tag = props.as || "div";
|
|
490
|
-
return (
|
|
491
|
-
// @ts-ignore
|
|
492
|
-
/* @__PURE__ */ jsx(
|
|
493
|
-
Tag,
|
|
494
|
-
{
|
|
495
|
-
...props,
|
|
496
|
-
ref,
|
|
497
|
-
"data-node-view-wrapper": "",
|
|
498
|
-
onDragStart,
|
|
499
|
-
style: {
|
|
500
|
-
whiteSpace: "normal",
|
|
501
|
-
...props.style
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
)
|
|
505
|
-
);
|
|
506
|
-
});
|
|
507
|
-
React__default.createContext({
|
|
508
|
-
markViewContentRef: () => {
|
|
509
|
-
}
|
|
510
|
-
});
|
|
511
|
-
var TiptapContext = createContext({
|
|
512
|
-
get editor() {
|
|
513
|
-
throw new Error("useTiptap must be used within a <Tiptap> provider");
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
TiptapContext.displayName = "TiptapContext";
|
|
517
|
-
var useTiptap = () => useContext(TiptapContext);
|
|
518
|
-
function TiptapWrapper({ editor, instance, children }) {
|
|
519
|
-
const resolvedEditor = editor != null ? editor : instance;
|
|
520
|
-
if (!resolvedEditor) {
|
|
521
|
-
throw new Error("Tiptap: An editor instance is required. Pass a non-null `editor` prop.");
|
|
522
|
-
}
|
|
523
|
-
const tiptapContextValue = useMemo(() => ({ editor: resolvedEditor }), [resolvedEditor]);
|
|
524
|
-
const legacyContextValue = useMemo(() => ({ editor: resolvedEditor }), [resolvedEditor]);
|
|
525
|
-
return /* @__PURE__ */ jsx(EditorContext.Provider, { value: legacyContextValue, children: /* @__PURE__ */ jsx(TiptapContext.Provider, { value: tiptapContextValue, children }) });
|
|
526
|
-
}
|
|
527
|
-
TiptapWrapper.displayName = "Tiptap";
|
|
528
|
-
function TiptapContent({ ...rest }) {
|
|
529
|
-
const { editor } = useTiptap();
|
|
530
|
-
return /* @__PURE__ */ jsx(EditorContent, { editor, ...rest });
|
|
531
|
-
}
|
|
532
|
-
TiptapContent.displayName = "Tiptap.Content";
|
|
533
|
-
Object.assign(TiptapWrapper, {
|
|
534
|
-
/**
|
|
535
|
-
* The Tiptap Content component that renders the EditorContent with the editor instance from the context.
|
|
536
|
-
* @see TiptapContent
|
|
537
|
-
*/
|
|
538
|
-
Content: TiptapContent
|
|
539
|
-
});
|
|
540
|
-
export {
|
|
541
|
-
CommandManager,
|
|
542
|
-
Editor,
|
|
543
|
-
EditorContent,
|
|
544
|
-
EditorContext,
|
|
545
|
-
Extendable,
|
|
546
|
-
Extension,
|
|
547
|
-
InputRule,
|
|
548
|
-
MappablePosition,
|
|
549
|
-
Mark,
|
|
550
|
-
Node,
|
|
551
|
-
NodePos,
|
|
552
|
-
PasteRule,
|
|
553
|
-
PureEditorContent,
|
|
554
|
-
ReactNodeViewContext,
|
|
555
|
-
TiptapContent,
|
|
556
|
-
TiptapContext,
|
|
557
|
-
TiptapWrapper,
|
|
558
|
-
callOrReturn,
|
|
559
|
-
canInsertNode,
|
|
560
|
-
combineTransactionSteps,
|
|
561
|
-
commands,
|
|
562
|
-
createAtomBlockMarkdownSpec,
|
|
563
|
-
createBlockMarkdownSpec,
|
|
564
|
-
createChainableState,
|
|
565
|
-
createDocument,
|
|
566
|
-
createInlineMarkdownSpec,
|
|
567
|
-
createMappablePosition,
|
|
568
|
-
createNodeFromContent,
|
|
569
|
-
createStyleTag,
|
|
570
|
-
defaultBlockAt,
|
|
571
|
-
deleteProps,
|
|
572
|
-
elementFromString,
|
|
573
|
-
extensions,
|
|
574
|
-
findChildrenInRange,
|
|
575
|
-
findDuplicates,
|
|
576
|
-
findParentNode,
|
|
577
|
-
findParentNodeClosestToPos,
|
|
578
|
-
flattenExtensions,
|
|
579
|
-
fromString,
|
|
580
|
-
getAttributes,
|
|
581
|
-
getAttributesFromExtensions,
|
|
582
|
-
getChangedRanges,
|
|
583
|
-
getExtensionField,
|
|
584
|
-
getHTMLFromFragment,
|
|
585
|
-
getMarkAttributes,
|
|
586
|
-
getMarkRange,
|
|
587
|
-
getMarkType,
|
|
588
|
-
getMarksBetween,
|
|
589
|
-
getNodeAtPosition,
|
|
590
|
-
getNodeAttributes,
|
|
591
|
-
getNodeType,
|
|
592
|
-
getRenderedAttributes,
|
|
593
|
-
getSchemaByResolvedExtensions,
|
|
594
|
-
getSchemaTypeByName,
|
|
595
|
-
getSchemaTypeNameByName,
|
|
596
|
-
getSplittedAttributes,
|
|
597
|
-
getText,
|
|
598
|
-
getTextBetween,
|
|
599
|
-
getTextContentFromNodes,
|
|
600
|
-
getTextSerializersFromSchema,
|
|
601
|
-
getUpdatedPosition,
|
|
602
|
-
injectExtensionAttributesToParseRule,
|
|
603
|
-
inputRulesPlugin,
|
|
604
|
-
isActive,
|
|
605
|
-
isAndroid,
|
|
606
|
-
isAtEndOfNode,
|
|
607
|
-
isAtStartOfNode,
|
|
608
|
-
isEmptyObject,
|
|
609
|
-
isExtensionRulesEnabled,
|
|
610
|
-
isFunction,
|
|
611
|
-
isList,
|
|
612
|
-
isMacOS,
|
|
613
|
-
isMarkActive,
|
|
614
|
-
isNodeActive,
|
|
615
|
-
isNodeEmpty,
|
|
616
|
-
isNodeSelection,
|
|
617
|
-
isNumber,
|
|
618
|
-
isPlainObject,
|
|
619
|
-
isRegExp,
|
|
620
|
-
isSafari,
|
|
621
|
-
isTextSelection,
|
|
622
|
-
isiOS,
|
|
623
|
-
markInputRule,
|
|
624
|
-
markPasteRule,
|
|
625
|
-
markdown,
|
|
626
|
-
mergeAttributes,
|
|
627
|
-
mergeDeep,
|
|
628
|
-
minMax,
|
|
629
|
-
nodeInputRule,
|
|
630
|
-
objectIncludes,
|
|
631
|
-
parseAttributes,
|
|
632
|
-
parseIndentedBlocks,
|
|
633
|
-
pasteRulesPlugin,
|
|
634
|
-
removeDuplicates,
|
|
635
|
-
renderNestedMarkdownContent,
|
|
636
|
-
resolveExtensions,
|
|
637
|
-
resolveFocusPosition,
|
|
638
|
-
selectionToInsertionEnd,
|
|
639
|
-
serializeAttributes,
|
|
640
|
-
sortExtensions,
|
|
641
|
-
splitExtensions,
|
|
642
|
-
textblockTypeInputRule,
|
|
643
|
-
updateMarkViewAttributes,
|
|
644
|
-
useEditor,
|
|
645
|
-
useEditorState,
|
|
646
|
-
useReactNodeView,
|
|
647
|
-
useTiptap,
|
|
648
|
-
wrappingInputRule
|
|
649
|
-
};
|
|
650
|
-
//# sourceMappingURL=index.js.map
|