rayo-editor 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cloudinaryUpload-16fe0b7d.js +35 -0
- package/dist/components/project/blog-writer/hooks/useAutoRecovery.d.ts +63 -0
- package/dist/components/project/blog-writer/hooks/useAutoRecovery.d.ts.map +1 -0
- package/dist/components/project/blog-writer/hooks/useTypingEffect.d.ts +5 -0
- package/dist/components/project/blog-writer/hooks/useTypingEffect.d.ts.map +1 -0
- package/dist/components/project/blog-writer/index.d.ts +2 -0
- package/dist/components/project/blog-writer/index.d.ts.map +1 -0
- package/dist/components/project/blog-writer/shared/BlogEditor.d.ts +57 -0
- package/dist/components/project/blog-writer/shared/BlogEditor.d.ts.map +1 -0
- package/dist/components/project/blog-writer/shared/BlogMinimap.d.ts +36 -0
- package/dist/components/project/blog-writer/shared/BlogMinimap.d.ts.map +1 -0
- package/dist/components/project/blog-writer/shared/EditorErrorFallback.d.ts +8 -0
- package/dist/components/project/blog-writer/shared/EditorErrorFallback.d.ts.map +1 -0
- package/dist/components/project/blog-writer/shared/ImageGallery.d.ts +3 -0
- package/dist/components/project/blog-writer/shared/ImageGallery.d.ts.map +1 -0
- package/dist/components/project/blog-writer/shared/ImageGenerationLoader.d.ts +8 -0
- package/dist/components/project/blog-writer/shared/ImageGenerationLoader.d.ts.map +1 -0
- package/dist/components/project/blog-writer/shared/SkeletonEditor.d.ts +12 -0
- package/dist/components/project/blog-writer/shared/SkeletonEditor.d.ts.map +1 -0
- package/dist/components/project/blog-writer/shared/StreamingProgressOverlay.d.ts +9 -0
- package/dist/components/project/blog-writer/shared/StreamingProgressOverlay.d.ts.map +1 -0
- package/dist/components/project/blog-writer/shared/__tests__/AgentChatPanel.perf.test.d.ts +14 -0
- package/dist/components/project/blog-writer/shared/__tests__/AgentChatPanel.perf.test.d.ts.map +1 -0
- package/dist/components/project/blog-writer/shared/__tests__/BlogEditor.perf.test.d.ts +14 -0
- package/dist/components/project/blog-writer/shared/__tests__/BlogEditor.perf.test.d.ts.map +1 -0
- package/dist/components/project/blog-writer/shared/wordCountUtils.d.ts +30 -0
- package/dist/components/project/blog-writer/shared/wordCountUtils.d.ts.map +1 -0
- package/dist/components/shared/editor/CustomEditorSkeleton.d.ts +3 -0
- package/dist/components/shared/editor/CustomEditorSkeleton.d.ts.map +1 -0
- package/dist/components/tiptap-extension/ari-score-extension.d.ts +6 -0
- package/dist/components/tiptap-extension/ari-score-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/code-block-extension.d.ts +7 -0
- package/dist/components/tiptap-extension/code-block-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/diff-marks-extension.d.ts +4 -0
- package/dist/components/tiptap-extension/diff-marks-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/drag-handle-extension.d.ts +16 -0
- package/dist/components/tiptap-extension/drag-handle-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/instagram-extension.d.ts +26 -0
- package/dist/components/tiptap-extension/instagram-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/link-extension.d.ts +3 -0
- package/dist/components/tiptap-extension/link-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/reference-manager-extension.d.ts +17 -0
- package/dist/components/tiptap-extension/reference-manager-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/resizable-image-extension.d.ts +2 -0
- package/dist/components/tiptap-extension/resizable-image-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/selection-extension.d.ts +4 -0
- package/dist/components/tiptap-extension/selection-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/table-extension.d.ts +10 -0
- package/dist/components/tiptap-extension/table-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/trailing-node-extension.d.ts +8 -0
- package/dist/components/tiptap-extension/trailing-node-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/x-extension.d.ts +26 -0
- package/dist/components/tiptap-extension/x-extension.d.ts.map +1 -0
- package/dist/components/tiptap-extension/youtube-extension.d.ts +42 -0
- package/dist/components/tiptap-extension/youtube-extension.d.ts.map +1 -0
- package/dist/components/tiptap-icons/align-center-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/align-center-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/align-justify-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/align-justify-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/align-left-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/align-left-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/align-right-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/align-right-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/arrow-left-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/arrow-left-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/ban-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/ban-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/block-quote-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/block-quote-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/bold-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/bold-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/check-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/check-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/chevron-down-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/chevron-down-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/close-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/close-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/code-block-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/code-block-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/code2-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/code2-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/corner-down-left-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/corner-down-left-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/edit-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/edit-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/external-link-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/external-link-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/heading-five-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/heading-five-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/heading-four-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/heading-four-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/heading-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/heading-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/heading-one-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/heading-one-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/heading-six-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/heading-six-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/heading-three-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/heading-three-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/heading-two-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/heading-two-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/highlighter-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/highlighter-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/image-plus-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/image-plus-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/italic-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/italic-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/link-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/link-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/list-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/list-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/list-ordered-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/list-ordered-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/list-todo-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/list-todo-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/magic-icon.d.ts +5 -0
- package/dist/components/tiptap-icons/magic-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/moon-star-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/moon-star-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/redo2-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/redo2-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/strike-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/strike-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/subscript-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/subscript-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/sun-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/sun-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/superscript-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/superscript-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/table-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/table-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/trash-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/trash-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/underline-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/underline-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/undo2-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/undo2-icon.d.ts.map +1 -0
- package/dist/components/tiptap-icons/x-icon.d.ts +3 -0
- package/dist/components/tiptap-icons/x-icon.d.ts.map +1 -0
- package/dist/components/tiptap-node/image-upload-node/image-upload-node-extension.d.ts +47 -0
- package/dist/components/tiptap-node/image-upload-node/image-upload-node-extension.d.ts.map +1 -0
- package/dist/components/tiptap-node/image-upload-node/image-upload-node.d.ts +12 -0
- package/dist/components/tiptap-node/image-upload-node/image-upload-node.d.ts.map +1 -0
- package/dist/components/tiptap-node/image-upload-node/index.d.ts +2 -0
- package/dist/components/tiptap-node/image-upload-node/index.d.ts.map +1 -0
- package/dist/components/tiptap-node/resizable-image-node/image-cropper.d.ts +10 -0
- package/dist/components/tiptap-node/resizable-image-node/image-cropper.d.ts.map +1 -0
- package/dist/components/tiptap-node/resizable-image-node/resizable-image-node.d.ts +4 -0
- package/dist/components/tiptap-node/resizable-image-node/resizable-image-node.d.ts.map +1 -0
- package/dist/components/tiptap-templates/simple/blog-simple-editor.d.ts +62 -0
- package/dist/components/tiptap-templates/simple/blog-simple-editor.d.ts.map +1 -0
- package/dist/components/tiptap-templates/simple/demo-animated-editor.d.ts +2 -0
- package/dist/components/tiptap-templates/simple/demo-animated-editor.d.ts.map +1 -0
- package/dist/components/tiptap-templates/simple/link-bubble.d.ts +9 -0
- package/dist/components/tiptap-templates/simple/link-bubble.d.ts.map +1 -0
- package/dist/components/tiptap-templates/simple/simple-editor-animated.d.ts +2 -0
- package/dist/components/tiptap-templates/simple/simple-editor-animated.d.ts.map +1 -0
- package/dist/components/tiptap-templates/simple/simple-editor.d.ts +13 -0
- package/dist/components/tiptap-templates/simple/simple-editor.d.ts.map +1 -0
- package/dist/components/tiptap-templates/simple/table-bubble.d.ts +7 -0
- package/dist/components/tiptap-templates/simple/table-bubble.d.ts.map +1 -0
- package/dist/components/tiptap-templates/simple/text-selection-bubble.d.ts +8 -0
- package/dist/components/tiptap-templates/simple/text-selection-bubble.d.ts.map +1 -0
- package/dist/components/tiptap-templates/simple/theme-toggle.d.ts +2 -0
- package/dist/components/tiptap-templates/simple/theme-toggle.d.ts.map +1 -0
- package/dist/components/tiptap-ui/ai/AIBubbleMenu.d.ts +8 -0
- package/dist/components/tiptap-ui/ai/AIBubbleMenu.d.ts.map +1 -0
- package/dist/components/tiptap-ui/ai/AICompletionCommands.d.ts +10 -0
- package/dist/components/tiptap-ui/ai/AICompletionCommands.d.ts.map +1 -0
- package/dist/components/tiptap-ui/ai/AIInput.d.ts +12 -0
- package/dist/components/tiptap-ui/ai/AIInput.d.ts.map +1 -0
- package/dist/components/tiptap-ui/ai/AISelector.d.ts +10 -0
- package/dist/components/tiptap-ui/ai/AISelector.d.ts.map +1 -0
- package/dist/components/tiptap-ui/ai/AISelectorCommands.d.ts +9 -0
- package/dist/components/tiptap-ui/ai/AISelectorCommands.d.ts.map +1 -0
- package/dist/components/tiptap-ui/ai/GenerativeMenuSwitch.d.ts +13 -0
- package/dist/components/tiptap-ui/ai/GenerativeMenuSwitch.d.ts.map +1 -0
- package/dist/components/tiptap-ui/ai/LinkSelector.d.ts +18 -0
- package/dist/components/tiptap-ui/ai/LinkSelector.d.ts.map +1 -0
- package/dist/components/tiptap-ui/ai/TextButtons.d.ts +10 -0
- package/dist/components/tiptap-ui/ai/TextButtons.d.ts.map +1 -0
- package/dist/components/tiptap-ui/ai/ai-request-context.d.ts +14 -0
- package/dist/components/tiptap-ui/ai/ai-request-context.d.ts.map +1 -0
- package/dist/components/tiptap-ui/ai/useAICompletion.d.ts +25 -0
- package/dist/components/tiptap-ui/ai/useAICompletion.d.ts.map +1 -0
- package/dist/components/tiptap-ui/blockquote-button/blockquote-button.d.ts +43 -0
- package/dist/components/tiptap-ui/blockquote-button/blockquote-button.d.ts.map +1 -0
- package/dist/components/tiptap-ui/blockquote-button/index.d.ts +2 -0
- package/dist/components/tiptap-ui/blockquote-button/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/code-block-button/code-block-button.d.ts +43 -0
- package/dist/components/tiptap-ui/code-block-button/code-block-button.d.ts.map +1 -0
- package/dist/components/tiptap-ui/code-block-button/index.d.ts +2 -0
- package/dist/components/tiptap-ui/code-block-button/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/color-highlight-button/color-highlight-button.d.ts +78 -0
- package/dist/components/tiptap-ui/color-highlight-button/color-highlight-button.d.ts.map +1 -0
- package/dist/components/tiptap-ui/color-highlight-button/index.d.ts +2 -0
- package/dist/components/tiptap-ui/color-highlight-button/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/color-highlight-popover/color-highlight-popover.d.ts +29 -0
- package/dist/components/tiptap-ui/color-highlight-popover/color-highlight-popover.d.ts.map +1 -0
- package/dist/components/tiptap-ui/color-highlight-popover/index.d.ts +2 -0
- package/dist/components/tiptap-ui/color-highlight-popover/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/drag-handle/drag-handle.d.ts +8 -0
- package/dist/components/tiptap-ui/drag-handle/drag-handle.d.ts.map +1 -0
- package/dist/components/tiptap-ui/drag-handle/index.d.ts +3 -0
- package/dist/components/tiptap-ui/drag-handle/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/font-family-dropdown/font-family-dropdown.d.ts +43 -0
- package/dist/components/tiptap-ui/font-family-dropdown/font-family-dropdown.d.ts.map +1 -0
- package/dist/components/tiptap-ui/font-family-dropdown/index.d.ts +2 -0
- package/dist/components/tiptap-ui/font-family-dropdown/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/font-family-dropdown-menu/font-family-dropdown-menu.d.ts +10 -0
- package/dist/components/tiptap-ui/font-family-dropdown-menu/font-family-dropdown-menu.d.ts.map +1 -0
- package/dist/components/tiptap-ui/font-family-dropdown-menu/index.d.ts +2 -0
- package/dist/components/tiptap-ui/font-family-dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/heading-button/heading-button.d.ts +56 -0
- package/dist/components/tiptap-ui/heading-button/heading-button.d.ts.map +1 -0
- package/dist/components/tiptap-ui/heading-button/index.d.ts +2 -0
- package/dist/components/tiptap-ui/heading-button/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.d.ts +13 -0
- package/dist/components/tiptap-ui/heading-dropdown-menu/heading-dropdown-menu.d.ts.map +1 -0
- package/dist/components/tiptap-ui/heading-dropdown-menu/index.d.ts +2 -0
- package/dist/components/tiptap-ui/heading-dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/image-gallery/ImageGalleryDialog.d.ts +34 -0
- package/dist/components/tiptap-ui/image-gallery/ImageGalleryDialog.d.ts.map +1 -0
- package/dist/components/tiptap-ui/image-upload-button/image-upload-button.d.ts +26 -0
- package/dist/components/tiptap-ui/image-upload-button/image-upload-button.d.ts.map +1 -0
- package/dist/components/tiptap-ui/image-upload-button/index.d.ts +2 -0
- package/dist/components/tiptap-ui/image-upload-button/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/link-popover/index.d.ts +2 -0
- package/dist/components/tiptap-ui/link-popover/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/link-popover/link-popover.d.ts +50 -0
- package/dist/components/tiptap-ui/link-popover/link-popover.d.ts.map +1 -0
- package/dist/components/tiptap-ui/list-button/index.d.ts +2 -0
- package/dist/components/tiptap-ui/list-button/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/list-button/list-button.d.ts +51 -0
- package/dist/components/tiptap-ui/list-button/list-button.d.ts.map +1 -0
- package/dist/components/tiptap-ui/list-dropdown-menu/index.d.ts +2 -0
- package/dist/components/tiptap-ui/list-dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/list-dropdown-menu/list-dropdown-menu.d.ts +43 -0
- package/dist/components/tiptap-ui/list-dropdown-menu/list-dropdown-menu.d.ts.map +1 -0
- package/dist/components/tiptap-ui/mark-button/index.d.ts +2 -0
- package/dist/components/tiptap-ui/mark-button/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/mark-button/mark-button.d.ts +56 -0
- package/dist/components/tiptap-ui/mark-button/mark-button.d.ts.map +1 -0
- package/dist/components/tiptap-ui/search-and-replace/search-and-replace.d.ts +28 -0
- package/dist/components/tiptap-ui/search-and-replace/search-and-replace.d.ts.map +1 -0
- package/dist/components/tiptap-ui/table-dropdown-menu/index.d.ts +3 -0
- package/dist/components/tiptap-ui/table-dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/table-dropdown-menu/table-dropdown-menu.d.ts +34 -0
- package/dist/components/tiptap-ui/table-dropdown-menu/table-dropdown-menu.d.ts.map +1 -0
- package/dist/components/tiptap-ui/text-align-button/index.d.ts +2 -0
- package/dist/components/tiptap-ui/text-align-button/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/text-align-button/text-align-button.d.ts +56 -0
- package/dist/components/tiptap-ui/text-align-button/text-align-button.d.ts.map +1 -0
- package/dist/components/tiptap-ui/text-align-dropdown-menu/index.d.ts +2 -0
- package/dist/components/tiptap-ui/text-align-dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/text-align-dropdown-menu/text-align-dropdown-menu.d.ts +52 -0
- package/dist/components/tiptap-ui/text-align-dropdown-menu/text-align-dropdown-menu.d.ts.map +1 -0
- package/dist/components/tiptap-ui/text-format-dropdown-menu/index.d.ts +3 -0
- package/dist/components/tiptap-ui/text-format-dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/text-format-dropdown-menu/text-format-dropdown-menu.d.ts +54 -0
- package/dist/components/tiptap-ui/text-format-dropdown-menu/text-format-dropdown-menu.d.ts.map +1 -0
- package/dist/components/tiptap-ui/undo-redo-button/index.d.ts +2 -0
- package/dist/components/tiptap-ui/undo-redo-button/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui/undo-redo-button/undo-redo-button.d.ts +76 -0
- package/dist/components/tiptap-ui/undo-redo-button/undo-redo-button.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/button/button.d.ts +19 -0
- package/dist/components/tiptap-ui-primitive/button/button.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/button/index.d.ts +2 -0
- package/dist/components/tiptap-ui-primitive/button/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.d.ts +49 -0
- package/dist/components/tiptap-ui-primitive/dropdown-menu/dropdown-menu.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/dropdown-menu/index.d.ts +2 -0
- package/dist/components/tiptap-ui-primitive/dropdown-menu/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/loading-circle.d.ts +5 -0
- package/dist/components/tiptap-ui-primitive/loading-circle.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/popover/index.d.ts +2 -0
- package/dist/components/tiptap-ui-primitive/popover/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/popover/popover.d.ts +36 -0
- package/dist/components/tiptap-ui-primitive/popover/popover.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/separator/index.d.ts +2 -0
- package/dist/components/tiptap-ui-primitive/separator/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/separator/separator.d.ts +11 -0
- package/dist/components/tiptap-ui-primitive/separator/separator.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/spacer/index.d.ts +2 -0
- package/dist/components/tiptap-ui-primitive/spacer/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/spacer/spacer.d.ts +11 -0
- package/dist/components/tiptap-ui-primitive/spacer/spacer.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/toolbar/animated-toolbar-button.d.ts +15 -0
- package/dist/components/tiptap-ui-primitive/toolbar/animated-toolbar-button.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/toolbar/animated-toolbar.d.ts +28 -0
- package/dist/components/tiptap-ui-primitive/toolbar/animated-toolbar.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/toolbar/index.d.ts +2 -0
- package/dist/components/tiptap-ui-primitive/toolbar/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/toolbar/toolbar.d.ts +16 -0
- package/dist/components/tiptap-ui-primitive/toolbar/toolbar.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/tooltip/index.d.ts +2 -0
- package/dist/components/tiptap-ui-primitive/tooltip/index.d.ts.map +1 -0
- package/dist/components/tiptap-ui-primitive/tooltip/tooltip.d.ts +31 -0
- package/dist/components/tiptap-ui-primitive/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/ui/AnimatedGradientText.d.ts +10 -0
- package/dist/components/ui/AnimatedGradientText.d.ts.map +1 -0
- package/dist/components/ui/badge.d.ts +7 -0
- package/dist/components/ui/badge.d.ts.map +1 -0
- package/dist/components/ui/button.d.ts +11 -0
- package/dist/components/ui/button.d.ts.map +1 -0
- package/dist/components/ui/card.d.ts +15 -0
- package/dist/components/ui/card.d.ts.map +1 -0
- package/dist/components/ui/dialog.d.ts +22 -0
- package/dist/components/ui/dialog.d.ts.map +1 -0
- package/dist/components/ui/input.d.ts +8 -0
- package/dist/components/ui/input.d.ts.map +1 -0
- package/dist/components/ui/label.d.ts +9 -0
- package/dist/components/ui/label.d.ts.map +1 -0
- package/dist/components/ui/loading.d.ts +13 -0
- package/dist/components/ui/loading.d.ts.map +1 -0
- package/dist/components/ui/modal.d.ts +11 -0
- package/dist/components/ui/modal.d.ts.map +1 -0
- package/dist/components/ui/popover.d.ts +9 -0
- package/dist/components/ui/popover.d.ts.map +1 -0
- package/dist/components/ui/simple-modal.d.ts +11 -0
- package/dist/components/ui/simple-modal.d.ts.map +1 -0
- package/dist/components/ui/textarea.d.ts +8 -0
- package/dist/components/ui/textarea.d.ts.map +1 -0
- package/dist/components/ui/toast.d.ts +15 -0
- package/dist/components/ui/toast.d.ts.map +1 -0
- package/dist/constants/index.d.ts +4 -0
- package/dist/constants/index.d.ts.map +1 -0
- package/dist/extensions/DiffMarks/DeletionMark.d.ts +6 -0
- package/dist/extensions/DiffMarks/DeletionMark.d.ts.map +1 -0
- package/dist/extensions/DiffMarks/InsertionMark.d.ts +6 -0
- package/dist/extensions/DiffMarks/InsertionMark.d.ts.map +1 -0
- package/dist/extensions/DiffMarks/index.d.ts +6 -0
- package/dist/extensions/DiffMarks/index.d.ts.map +1 -0
- package/dist/extensions/VersionComparison/VersionComparisonExtension.d.ts +44 -0
- package/dist/extensions/VersionComparison/VersionComparisonExtension.d.ts.map +1 -0
- package/dist/extensions/search-and-replace.d.ts +42 -0
- package/dist/extensions/search-and-replace.d.ts.map +1 -0
- package/dist/hooks/use-cursor-visibility.d.ts +35 -0
- package/dist/hooks/use-cursor-visibility.d.ts.map +1 -0
- package/dist/hooks/use-menu-navigation.d.ts +19 -0
- package/dist/hooks/use-menu-navigation.d.ts.map +1 -0
- package/dist/hooks/use-mobile.d.ts +2 -0
- package/dist/hooks/use-mobile.d.ts.map +1 -0
- package/dist/hooks/use-tiptap-editor.d.ts +3 -0
- package/dist/hooks/use-tiptap-editor.d.ts.map +1 -0
- package/dist/hooks/use-window-size.d.ts +12 -0
- package/dist/hooks/use-window-size.d.ts.map +1 -0
- package/dist/hooks/useIsMobile.d.ts +4 -0
- package/dist/hooks/useIsMobile.d.ts.map +1 -0
- package/dist/hooks/useKeywordToast.d.ts +10 -0
- package/dist/hooks/useKeywordToast.d.ts.map +1 -0
- package/dist/hooks/useToast.d.ts +10 -0
- package/dist/hooks/useToast.d.ts.map +1 -0
- package/dist/index.d.ts +4 -212
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +54533 -958
- package/dist/index.umd.js +1561 -20
- package/dist/lib/editor-formatting/extensions/resizable-image-caption-extension.d.ts +36 -0
- package/dist/lib/editor-formatting/extensions/resizable-image-caption-extension.d.ts.map +1 -0
- package/dist/lib/editor-formatting/extensions/spacing-normalization-extension.d.ts +35 -0
- package/dist/lib/editor-formatting/extensions/spacing-normalization-extension.d.ts.map +1 -0
- package/dist/lib/editor-formatting/extensions/table-formatting-extension.d.ts +48 -0
- package/dist/lib/editor-formatting/extensions/table-formatting-extension.d.ts.map +1 -0
- package/dist/lib/editor-formatting/index.d.ts +88 -0
- package/dist/lib/editor-formatting/index.d.ts.map +1 -0
- package/dist/lib/editor-formatting/nodes/resizable-image-caption-node.d.ts +5 -0
- package/dist/lib/editor-formatting/nodes/resizable-image-caption-node.d.ts.map +1 -0
- package/dist/lib/editor-formatting/types.d.ts +70 -0
- package/dist/lib/editor-formatting/types.d.ts.map +1 -0
- package/dist/lib/editor-formatting/utils/image-utils.d.ts +66 -0
- package/dist/lib/editor-formatting/utils/image-utils.d.ts.map +1 -0
- package/dist/lib/editor-formatting/utils/spacing-utils.d.ts +41 -0
- package/dist/lib/editor-formatting/utils/spacing-utils.d.ts.map +1 -0
- package/dist/lib/editor-formatting/utils/table-utils.d.ts +86 -0
- package/dist/lib/editor-formatting/utils/table-utils.d.ts.map +1 -0
- package/dist/lib/routes.d.ts +6 -0
- package/dist/lib/routes.d.ts.map +1 -0
- package/dist/lib/supabase-types.d.ts +42 -0
- package/dist/lib/supabase-types.d.ts.map +1 -0
- package/dist/lib/tiptap-utils.d.ts +90 -0
- package/dist/lib/tiptap-utils.d.ts.map +1 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.d.ts.map +1 -0
- package/dist/style.css +1 -0
- package/dist/styles.css +1 -1150
- package/dist/types/analytics.d.ts +14 -0
- package/dist/types/analytics.d.ts.map +1 -0
- package/dist/types/cms.d.ts +12 -0
- package/dist/types/cms.d.ts.map +1 -0
- package/dist/types/diff.types.d.ts +18 -65
- package/dist/types/diff.types.d.ts.map +1 -1
- package/dist/types/index.d.ts +78 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/cloudinaryUpload.d.ts +34 -0
- package/dist/utils/cloudinaryUpload.d.ts.map +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.d.ts.map +1 -0
- package/dist/utils/codeBlockHandling.d.ts +12 -0
- package/dist/utils/codeBlockHandling.d.ts.map +1 -0
- package/dist/utils/consoleManager.d.ts +80 -0
- package/dist/utils/consoleManager.d.ts.map +1 -0
- package/dist/utils/countryCode.d.ts +5 -0
- package/dist/utils/countryCode.d.ts.map +1 -0
- package/dist/utils/countryCodes.d.ts +17 -0
- package/dist/utils/countryCodes.d.ts.map +1 -0
- package/dist/utils/countryEmoji.d.ts +35 -0
- package/dist/utils/countryEmoji.d.ts.map +1 -0
- package/dist/utils/debugSources.d.ts +2 -0
- package/dist/utils/debugSources.d.ts.map +1 -0
- package/dist/utils/eventBus.d.ts +26 -0
- package/dist/utils/eventBus.d.ts.map +1 -0
- package/dist/utils/localStorageManager.d.ts +78 -0
- package/dist/utils/localStorageManager.d.ts.map +1 -0
- package/dist/utils/logger.d.ts +42 -0
- package/dist/utils/logger.d.ts.map +1 -0
- package/dist/utils/modalTestUtils.d.ts +5 -0
- package/dist/utils/modalTestUtils.d.ts.map +1 -0
- package/dist/utils/smoothScroll.d.ts +6 -0
- package/dist/utils/smoothScroll.d.ts.map +1 -0
- package/dist/utils/tableHandling.d.ts +12 -0
- package/dist/utils/tableHandling.d.ts.map +1 -0
- package/dist/utils/url.d.ts +13 -0
- package/dist/utils/url.d.ts.map +1 -0
- package/dist/utils/urlUtils.d.ts +14 -0
- package/dist/utils/urlUtils.d.ts.map +1 -0
- package/dist/utils/urlValidator.d.ts +13 -0
- package/dist/utils/urlValidator.d.ts.map +1 -0
- package/package.json +70 -3
- package/dist/components/BlogEditor.d.ts +0 -4
- package/dist/components/BlogEditor.d.ts.map +0 -1
- package/dist/components/DiffOverlay.d.ts +0 -4
- package/dist/components/DiffOverlay.d.ts.map +0 -1
- package/dist/components/ImageGenerationLoader.d.ts +0 -5
- package/dist/components/ImageGenerationLoader.d.ts.map +0 -1
- package/dist/components/RayoEditor.d.ts +0 -74
- package/dist/components/RayoEditor.d.ts.map +0 -1
- package/dist/components/ReviewButtons.d.ts +0 -4
- package/dist/components/ReviewButtons.d.ts.map +0 -1
- package/dist/components/TitleTextarea.d.ts +0 -4
- package/dist/components/TitleTextarea.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -7
- package/dist/components/index.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -3
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useContentProcessing.d.ts +0 -83
- package/dist/hooks/useContentProcessing.d.ts.map +0 -1
- package/dist/hooks/useEditorDiff.d.ts +0 -65
- package/dist/hooks/useEditorDiff.d.ts.map +0 -1
- package/dist/types/editor.types.d.ts +0 -59
- package/dist/types/editor.types.d.ts.map +0 -1
- package/dist/utils/contentProcessing.d.ts +0 -81
- package/dist/utils/contentProcessing.d.ts.map +0 -1
- package/dist/utils/diffDetection.d.ts +0 -85
- package/dist/utils/diffDetection.d.ts.map +0 -1
- package/dist/utils/errorHandling.d.ts +0 -57
- package/dist/utils/errorHandling.d.ts.map +0 -1
- package/dist/utils/imageHandling.d.ts +0 -52
- package/dist/utils/imageHandling.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -6
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/proximityMatching.d.ts +0 -80
- package/dist/utils/proximityMatching.d.ts.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { ImageAlignment } from '../types';
|
|
2
|
+
export interface ResizableImageWithCaptionOptions {
|
|
3
|
+
/** Default alignment for new images */
|
|
4
|
+
defaultAlignment?: ImageAlignment;
|
|
5
|
+
/** Default caption placement */
|
|
6
|
+
defaultCaptionPlacement?: 'above' | 'below';
|
|
7
|
+
/** Allow base64 images */
|
|
8
|
+
allowBase64?: boolean;
|
|
9
|
+
/** HTML attributes for the image wrapper */
|
|
10
|
+
HTMLAttributes?: Record<string, unknown>;
|
|
11
|
+
}
|
|
12
|
+
declare module '@tiptap/core' {
|
|
13
|
+
interface Commands<ReturnType> {
|
|
14
|
+
resizableImageWithCaption: {
|
|
15
|
+
/**
|
|
16
|
+
* Set image alignment
|
|
17
|
+
*/
|
|
18
|
+
setImageAlignment: (alignment: ImageAlignment) => ReturnType;
|
|
19
|
+
/**
|
|
20
|
+
* Set image size
|
|
21
|
+
*/
|
|
22
|
+
setImageSize: (width: string | number, height?: string | number) => ReturnType;
|
|
23
|
+
/**
|
|
24
|
+
* Set image caption
|
|
25
|
+
*/
|
|
26
|
+
setImageCaption: (caption: string) => ReturnType;
|
|
27
|
+
/**
|
|
28
|
+
* Remove image caption
|
|
29
|
+
*/
|
|
30
|
+
removeImageCaption: () => ReturnType;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export declare const ResizableImageWithCaptionExtension: import('@tiptap/core').Node<ResizableImageWithCaptionOptions, any>;
|
|
35
|
+
export default ResizableImageWithCaptionExtension;
|
|
36
|
+
//# sourceMappingURL=resizable-image-caption-extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resizable-image-caption-extension.d.ts","sourceRoot":"","sources":["../../../../src/lib/editor-formatting/extensions/resizable-image-caption-extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAE9C,MAAM,WAAW,gCAAgC;IAC/C,uCAAuC;IACvC,gBAAgB,CAAC,EAAE,cAAc,CAAA;IACjC,gCAAgC;IAChC,uBAAuB,CAAC,EAAE,OAAO,GAAG,OAAO,CAAA;IAC3C,0BAA0B;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,4CAA4C;IAC5C,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACzC;AAED,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,yBAAyB,EAAE;YACzB;;eAEG;YACH,iBAAiB,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,UAAU,CAAA;YAC5D;;eAEG;YACH,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,UAAU,CAAA;YAC9E;;eAEG;YACH,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,UAAU,CAAA;YAChD;;eAEG;YACH,kBAAkB,EAAE,MAAM,UAAU,CAAA;SACrC,CAAA;KACF;CACF;AAED,eAAO,MAAM,kCAAkC,oEA+N7C,CAAA;AAEF,eAAe,kCAAkC,CAAA"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
import { SpacingOptions } from '../types';
|
|
3
|
+
export interface SpacingNormalizationOptions extends SpacingOptions {
|
|
4
|
+
/** Auto-cleanup on paste */
|
|
5
|
+
cleanupOnPaste?: boolean;
|
|
6
|
+
/** Auto-cleanup on input */
|
|
7
|
+
cleanupOnInput?: boolean;
|
|
8
|
+
/** Maximum consecutive empty lines */
|
|
9
|
+
maxConsecutiveEmptyLines?: number;
|
|
10
|
+
}
|
|
11
|
+
declare module '@tiptap/core' {
|
|
12
|
+
interface Commands<ReturnType> {
|
|
13
|
+
spacingNormalization: {
|
|
14
|
+
/**
|
|
15
|
+
* Normalize all spacing in the document
|
|
16
|
+
*/
|
|
17
|
+
normalizeSpacing: () => ReturnType;
|
|
18
|
+
/**
|
|
19
|
+
* Remove all empty paragraphs
|
|
20
|
+
*/
|
|
21
|
+
removeEmptyParagraphs: () => ReturnType;
|
|
22
|
+
/**
|
|
23
|
+
* Remove extra line breaks (more than max allowed)
|
|
24
|
+
*/
|
|
25
|
+
removeExtraLineBreaks: () => ReturnType;
|
|
26
|
+
/**
|
|
27
|
+
* Clean up the entire document
|
|
28
|
+
*/
|
|
29
|
+
cleanupDocument: () => ReturnType;
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export declare const SpacingNormalizationExtension: Extension<SpacingNormalizationOptions, any>;
|
|
34
|
+
export default SpacingNormalizationExtension;
|
|
35
|
+
//# sourceMappingURL=spacing-normalization-extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spacing-normalization-extension.d.ts","sourceRoot":"","sources":["../../../../src/lib/editor-formatting/extensions/spacing-normalization-extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAExC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAA;AAQ9C,MAAM,WAAW,2BAA4B,SAAQ,cAAc;IACjE,4BAA4B;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,4BAA4B;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,sCAAsC;IACtC,wBAAwB,CAAC,EAAE,MAAM,CAAA;CAClC;AAID,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,oBAAoB,EAAE;YACpB;;eAEG;YACH,gBAAgB,EAAE,MAAM,UAAU,CAAA;YAClC;;eAEG;YACH,qBAAqB,EAAE,MAAM,UAAU,CAAA;YACvC;;eAEG;YACH,qBAAqB,EAAE,MAAM,UAAU,CAAA;YACvC;;eAEG;YACH,eAAe,EAAE,MAAM,UAAU,CAAA;SAClC,CAAA;KACF;CACF;AAED,eAAO,MAAM,6BAA6B,6CAgMxC,CAAA;AAEF,eAAe,6BAA6B,CAAA"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
export interface TableFormattingOptions {
|
|
3
|
+
/** Default cell padding */
|
|
4
|
+
cellPadding?: string;
|
|
5
|
+
/** Default border color */
|
|
6
|
+
borderColor?: string;
|
|
7
|
+
/** Default header background color */
|
|
8
|
+
headerBackgroundColor?: string;
|
|
9
|
+
/** Enable resizable columns */
|
|
10
|
+
resizable?: boolean;
|
|
11
|
+
/** Allow nested tables */
|
|
12
|
+
allowNested?: boolean;
|
|
13
|
+
/** HTML attributes */
|
|
14
|
+
HTMLAttributes?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
declare module '@tiptap/core' {
|
|
17
|
+
interface Commands<ReturnType> {
|
|
18
|
+
tableFormatting: {
|
|
19
|
+
/**
|
|
20
|
+
* Set cell background color
|
|
21
|
+
*/
|
|
22
|
+
setCellBackgroundColor: (color: string) => ReturnType;
|
|
23
|
+
/**
|
|
24
|
+
* Set cell text alignment
|
|
25
|
+
*/
|
|
26
|
+
setCellTextAlign: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
27
|
+
/**
|
|
28
|
+
* Set cell vertical alignment
|
|
29
|
+
*/
|
|
30
|
+
setCellVerticalAlign: (align: 'top' | 'middle' | 'bottom') => ReturnType;
|
|
31
|
+
/**
|
|
32
|
+
* Set table width
|
|
33
|
+
*/
|
|
34
|
+
setTableWidth: (width: string) => ReturnType;
|
|
35
|
+
/**
|
|
36
|
+
* Set table alignment
|
|
37
|
+
*/
|
|
38
|
+
setTableAlign: (align: 'left' | 'center' | 'right') => ReturnType;
|
|
39
|
+
/**
|
|
40
|
+
* Clear cell formatting
|
|
41
|
+
*/
|
|
42
|
+
clearCellFormatting: () => ReturnType;
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export declare const TableFormattingExtension: Extension<TableFormattingOptions, any>;
|
|
47
|
+
export default TableFormattingExtension;
|
|
48
|
+
//# sourceMappingURL=table-formatting-extension.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-formatting-extension.d.ts","sourceRoot":"","sources":["../../../../src/lib/editor-formatting/extensions/table-formatting-extension.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAMxC,MAAM,WAAW,sBAAsB;IACrC,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,sCAAsC;IACtC,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,+BAA+B;IAC/B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,0BAA0B;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,sBAAsB;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACzC;AAmID,OAAO,QAAQ,cAAc,CAAC;IAC5B,UAAU,QAAQ,CAAC,UAAU;QAC3B,eAAe,EAAE;YACf;;eAEG;YACH,sBAAsB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,CAAA;YACrD;;eAEG;YACH,gBAAgB,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,KAAK,UAAU,CAAA;YACpE;;eAEG;YACH,oBAAoB,EAAE,CAAC,KAAK,EAAE,KAAK,GAAG,QAAQ,GAAG,QAAQ,KAAK,UAAU,CAAA;YACxE;;eAEG;YACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,UAAU,CAAA;YAC5C;;eAEG;YACH,aAAa,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,KAAK,UAAU,CAAA;YACjE;;eAEG;YACH,mBAAmB,EAAE,MAAM,UAAU,CAAA;SACtC,CAAA;KACF;CACF;AAED,eAAO,MAAM,wBAAwB,wCAkGnC,CAAA;AAEF,eAAe,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Comprehensive Editor Formatting Utilities
|
|
3
|
+
*
|
|
4
|
+
* This module provides all the formatting utilities needed for the TipTap editor including:
|
|
5
|
+
* - Image resizing and alignment
|
|
6
|
+
* - Image with caption support
|
|
7
|
+
* - Table formatting
|
|
8
|
+
* - Spacing normalization
|
|
9
|
+
* - Content cleanup utilities
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* ```tsx
|
|
13
|
+
* import {
|
|
14
|
+
* ResizableImageWithCaptionExtension,
|
|
15
|
+
* TableFormattingExtension,
|
|
16
|
+
* SpacingNormalizationExtension,
|
|
17
|
+
* setImageAlignment,
|
|
18
|
+
* formatContent,
|
|
19
|
+
* } from '@/lib/editor-formatting'
|
|
20
|
+
*
|
|
21
|
+
* // Use in TipTap editor
|
|
22
|
+
* const editor = useEditor({
|
|
23
|
+
* extensions: [
|
|
24
|
+
* StarterKit,
|
|
25
|
+
* ResizableImageWithCaptionExtension.configure({
|
|
26
|
+
* defaultAlignment: 'center',
|
|
27
|
+
* defaultCaptionPlacement: 'below',
|
|
28
|
+
* }),
|
|
29
|
+
* TableFormattingExtension.configure({
|
|
30
|
+
* resizable: true,
|
|
31
|
+
* headerBackgroundColor: '#f8f9fa',
|
|
32
|
+
* }),
|
|
33
|
+
* SpacingNormalizationExtension.configure({
|
|
34
|
+
* cleanupOnPaste: true,
|
|
35
|
+
* maxConsecutiveEmptyLines: 2,
|
|
36
|
+
* }),
|
|
37
|
+
* ],
|
|
38
|
+
* })
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```tsx
|
|
43
|
+
* // Image alignment
|
|
44
|
+
* setImageAlignment(editor, 'left') // Float left
|
|
45
|
+
* setImageAlignment(editor, 'center') // Center
|
|
46
|
+
* setImageAlignment(editor, 'right') // Float right
|
|
47
|
+
*
|
|
48
|
+
* // Image sizing
|
|
49
|
+
* setImageSize(editor, '50%') // 50% width
|
|
50
|
+
* setImageSize(editor, 300, 200) // 300x200 pixels
|
|
51
|
+
*
|
|
52
|
+
* // Image caption
|
|
53
|
+
* setImageCaption(editor, 'My caption')
|
|
54
|
+
* ```
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```tsx
|
|
58
|
+
* // Table operations
|
|
59
|
+
* insertTable(editor, { rows: 3, cols: 3, withHeaderRow: true })
|
|
60
|
+
* addTableRow(editor, 'after')
|
|
61
|
+
* addTableColumn(editor, 'before')
|
|
62
|
+
* mergeCells(editor)
|
|
63
|
+
* setTableCellBackground(editor, '#f0f0f0')
|
|
64
|
+
* ```
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```tsx
|
|
68
|
+
* // Content cleanup
|
|
69
|
+
* const cleanedHtml = formatContent(dirtyHtml, {
|
|
70
|
+
* removeExtraLineBreaks: true,
|
|
71
|
+
* normalizeWhitespace: true,
|
|
72
|
+
* removeEmptyParagraphs: true,
|
|
73
|
+
* removeInlineStyles: true,
|
|
74
|
+
* })
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export { ResizableImageWithCaptionExtension } from './extensions/resizable-image-caption-extension';
|
|
78
|
+
export type { ResizableImageWithCaptionOptions } from './extensions/resizable-image-caption-extension';
|
|
79
|
+
export { TableFormattingExtension } from './extensions/table-formatting-extension';
|
|
80
|
+
export type { TableFormattingOptions } from './extensions/table-formatting-extension';
|
|
81
|
+
export { SpacingNormalizationExtension } from './extensions/spacing-normalization-extension';
|
|
82
|
+
export type { SpacingNormalizationOptions } from './extensions/spacing-normalization-extension';
|
|
83
|
+
export { ResizableImageWithCaption } from './nodes/resizable-image-caption-node';
|
|
84
|
+
export { cleanupHtmlSpacing, normalizeWhitespace, removeExtraLineBreaks, cleanupEmptyParagraphs, formatContent, stripHtml, isContentEmpty, getWordCount, getCharacterCount, } from './utils/spacing-utils';
|
|
85
|
+
export { setImageAlignment, setImageSize, setImageCaption, removeImage, getImageAttributes, isImageSelected, insertImage, calculateResponsiveSize, pixelsToPercentage, percentageToPixels, parseWidthValue, isValidImageUrl, getImageDimensions, } from './utils/image-utils';
|
|
86
|
+
export { insertTable, deleteTable, addTableRow, addTableColumn, deleteTableRow, deleteTableColumn, mergeCells, splitCell, setTableCellBackground, getTableAttributes, isInTable, canInsertTable, toggleHeaderRow, toggleHeaderColumn, fixTables, goToNextCell, goToPreviousCell, setCellAlignment, setCellVerticalAlignment, getTableDimensions, } from './utils/table-utils';
|
|
87
|
+
export type { ImageAlignment, ImageAttributes, ImageWithCaptionAttributes, TableAttributes, TableCellAttributes, SpacingOptions, ContentCleanupOptions, ImageCommand, TableCommand, } from './types';
|
|
88
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/editor-formatting/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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":3,"file":"resizable-image-caption-node.d.ts","sourceRoot":"","sources":["../../../../src/lib/editor-formatting/nodes/resizable-image-caption-node.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAmD,MAAM,OAAO,CAAA;AACvE,OAAO,EAAmB,aAAa,EAAE,MAAM,eAAe,CAAA;AAI9D,OAAO,qCAAqC,CAAA;AAE5C,eAAO,MAAM,yBAAyB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoW7D,CAAA;AAED,eAAe,yBAAyB,CAAA"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for editor formatting utilities
|
|
3
|
+
*/
|
|
4
|
+
export type ImageAlignment = 'left' | 'center' | 'right';
|
|
5
|
+
export interface ImageAttributes {
|
|
6
|
+
src: string;
|
|
7
|
+
alt?: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
width?: string | number;
|
|
10
|
+
height?: string | number;
|
|
11
|
+
dataAlign?: ImageAlignment;
|
|
12
|
+
}
|
|
13
|
+
export interface ImageWithCaptionAttributes extends ImageAttributes {
|
|
14
|
+
caption?: string;
|
|
15
|
+
captionPlacement?: 'above' | 'below';
|
|
16
|
+
}
|
|
17
|
+
export interface TableAttributes {
|
|
18
|
+
rows?: number;
|
|
19
|
+
cols?: number;
|
|
20
|
+
withHeaderRow?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface TableCellAttributes {
|
|
23
|
+
colspan?: number;
|
|
24
|
+
rowspan?: number;
|
|
25
|
+
backgroundColor?: string;
|
|
26
|
+
borderColor?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface SpacingOptions {
|
|
29
|
+
/** Remove extra line breaks (more than 2 consecutive) */
|
|
30
|
+
removeExtraLineBreaks?: boolean;
|
|
31
|
+
/** Remove empty paragraphs */
|
|
32
|
+
removeEmptyParagraphs?: boolean;
|
|
33
|
+
/** Normalize whitespace (multiple spaces to single) */
|
|
34
|
+
normalizeWhitespace?: boolean;
|
|
35
|
+
/** Trim leading/trailing whitespace */
|
|
36
|
+
trimContent?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export interface ContentCleanupOptions extends SpacingOptions {
|
|
39
|
+
/** Remove inline styles */
|
|
40
|
+
removeInlineStyles?: boolean;
|
|
41
|
+
/** Remove empty spans */
|
|
42
|
+
removeEmptySpans?: boolean;
|
|
43
|
+
/** Convert br tags to proper paragraphs */
|
|
44
|
+
convertBrToParagraphs?: boolean;
|
|
45
|
+
/** Remove font tags and keep content */
|
|
46
|
+
removeFontTags?: boolean;
|
|
47
|
+
/** Remove class attributes */
|
|
48
|
+
removeClassAttributes?: boolean;
|
|
49
|
+
}
|
|
50
|
+
export interface ImageCommand {
|
|
51
|
+
setImage: (options: ImageAttributes) => boolean;
|
|
52
|
+
setImageAlignment: (alignment: ImageAlignment) => boolean;
|
|
53
|
+
setImageSize: (width: string | number, height?: string | number) => boolean;
|
|
54
|
+
setImageCaption: (caption: string) => boolean;
|
|
55
|
+
removeImage: () => boolean;
|
|
56
|
+
}
|
|
57
|
+
export interface TableCommand {
|
|
58
|
+
insertTable: (options: TableAttributes) => boolean;
|
|
59
|
+
deleteTable: () => boolean;
|
|
60
|
+
addRowBefore: () => boolean;
|
|
61
|
+
addRowAfter: () => boolean;
|
|
62
|
+
addColumnBefore: () => boolean;
|
|
63
|
+
addColumnAfter: () => boolean;
|
|
64
|
+
deleteRow: () => boolean;
|
|
65
|
+
deleteColumn: () => boolean;
|
|
66
|
+
mergeCells: () => boolean;
|
|
67
|
+
splitCell: () => boolean;
|
|
68
|
+
setCellBackground: (color: string) => boolean;
|
|
69
|
+
}
|
|
70
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/lib/editor-formatting/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO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AC9B,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAChC;AAGD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,OAAO,CAAA;IAC/C,iBAAiB,EAAE,CAAC,SAAS,EAAE,cAAc,KAAK,OAAO,CAAA;IACzD,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,KAAK,OAAO,CAAA;IAC3E,eAAe,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;IAC7C,WAAW,EAAE,MAAM,OAAO,CAAA;CAC3B;AAED,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,CAAC,OAAO,EAAE,eAAe,KAAK,OAAO,CAAA;IAClD,WAAW,EAAE,MAAM,OAAO,CAAA;IAC1B,YAAY,EAAE,MAAM,OAAO,CAAA;IAC3B,WAAW,EAAE,MAAM,OAAO,CAAA;IAC1B,eAAe,EAAE,MAAM,OAAO,CAAA;IAC9B,cAAc,EAAE,MAAM,OAAO,CAAA;IAC7B,SAAS,EAAE,MAAM,OAAO,CAAA;IACxB,YAAY,EAAE,MAAM,OAAO,CAAA;IAC3B,UAAU,EAAE,MAAM,OAAO,CAAA;IACzB,SAAS,EAAE,MAAM,OAAO,CAAA;IACxB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,OAAO,CAAA;CAC9C"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
import { ImageAlignment, ImageAttributes, ImageWithCaptionAttributes } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Set image alignment in the editor
|
|
5
|
+
*/
|
|
6
|
+
export declare function setImageAlignment(editor: Editor | null, alignment: ImageAlignment): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Set image size in the editor
|
|
9
|
+
* @param width - Width value (e.g., '50%', '300px', 300)
|
|
10
|
+
* @param height - Height value (optional, defaults to 'auto')
|
|
11
|
+
*/
|
|
12
|
+
export declare function setImageSize(editor: Editor | null, width: string | number, height?: string | number): boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Set image caption
|
|
15
|
+
*/
|
|
16
|
+
export declare function setImageCaption(editor: Editor | null, caption: string): boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Remove the currently selected image
|
|
19
|
+
*/
|
|
20
|
+
export declare function removeImage(editor: Editor | null): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Get attributes of the currently selected image
|
|
23
|
+
*/
|
|
24
|
+
export declare function getImageAttributes(editor: Editor | null): ImageWithCaptionAttributes | null;
|
|
25
|
+
/**
|
|
26
|
+
* Check if current selection is an image
|
|
27
|
+
*/
|
|
28
|
+
export declare function isImageSelected(editor: Editor | null): boolean;
|
|
29
|
+
/**
|
|
30
|
+
* Insert an image at the current cursor position
|
|
31
|
+
*/
|
|
32
|
+
export declare function insertImage(editor: Editor | null, attrs: ImageAttributes): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Calculate responsive image size based on container width
|
|
35
|
+
*/
|
|
36
|
+
export declare function calculateResponsiveSize(originalWidth: number, originalHeight: number, maxWidth: number): {
|
|
37
|
+
width: number;
|
|
38
|
+
height: number;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Convert pixel width to percentage
|
|
42
|
+
*/
|
|
43
|
+
export declare function pixelsToPercentage(pixelWidth: number, containerWidth: number): number;
|
|
44
|
+
/**
|
|
45
|
+
* Convert percentage width to pixels
|
|
46
|
+
*/
|
|
47
|
+
export declare function percentageToPixels(percentageWidth: number, containerWidth: number): number;
|
|
48
|
+
/**
|
|
49
|
+
* Parse width value to get numeric value and unit
|
|
50
|
+
*/
|
|
51
|
+
export declare function parseWidthValue(width: string | number): {
|
|
52
|
+
value: number;
|
|
53
|
+
unit: 'px' | '%' | 'auto';
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Validate image URL
|
|
57
|
+
*/
|
|
58
|
+
export declare function isValidImageUrl(url: string): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Get image dimensions from URL
|
|
61
|
+
*/
|
|
62
|
+
export declare function getImageDimensions(url: string): Promise<{
|
|
63
|
+
width: number;
|
|
64
|
+
height: number;
|
|
65
|
+
}>;
|
|
66
|
+
//# sourceMappingURL=image-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"image-utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/editor-formatting/utils/image-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,eAAe,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAA;AAE3F;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,SAAS,EAAE,cAAc,GACxB,OAAO,CAWT;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,MAAM,GAAE,MAAM,GAAG,MAAe,GAC/B,OAAO,CAqBT;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAW/E;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAW1D;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,IAAI,GACpB,0BAA0B,GAAG,IAAI,CAWnC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAG9D;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,KAAK,EAAE,eAAe,GACrB,OAAO,CAYT;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,EACtB,QAAQ,EAAE,MAAM,GACf;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAUnC;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,EAClB,cAAc,EAAE,MAAM,GACrB,MAAM,CAER;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,eAAe,EAAE,MAAM,EACvB,cAAc,EAAE,MAAM,GACrB,MAAM,CAER;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG;IACvD,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,IAAI,GAAG,GAAG,GAAG,MAAM,CAAA;CAC1B,CAkBA;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAoBpD;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,GAAG,EAAE,MAAM,GACV,OAAO,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,CAAC,CAiB5C"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { SpacingOptions, ContentCleanupOptions } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Normalize whitespace in text
|
|
4
|
+
* - Replaces multiple spaces with single space
|
|
5
|
+
* - Preserves line breaks
|
|
6
|
+
* - Trims leading/trailing whitespace
|
|
7
|
+
*/
|
|
8
|
+
export declare function normalizeWhitespace(text: string): string;
|
|
9
|
+
/**
|
|
10
|
+
* Remove extra line breaks (more than specified maximum)
|
|
11
|
+
*/
|
|
12
|
+
export declare function removeExtraLineBreaks(text: string, maxConsecutive?: number): string;
|
|
13
|
+
/**
|
|
14
|
+
* Clean up empty paragraphs from HTML
|
|
15
|
+
*/
|
|
16
|
+
export declare function cleanupEmptyParagraphs(html: string, keepMinimum?: number): string;
|
|
17
|
+
/**
|
|
18
|
+
* Clean up HTML spacing with various options
|
|
19
|
+
*/
|
|
20
|
+
export declare function cleanupHtmlSpacing(html: string, options?: SpacingOptions): string;
|
|
21
|
+
/**
|
|
22
|
+
* Format content with comprehensive cleanup
|
|
23
|
+
*/
|
|
24
|
+
export declare function formatContent(content: string, options?: ContentCleanupOptions): string;
|
|
25
|
+
/**
|
|
26
|
+
* Remove all formatting from text (strip HTML)
|
|
27
|
+
*/
|
|
28
|
+
export declare function stripHtml(html: string): string;
|
|
29
|
+
/**
|
|
30
|
+
* Check if content is effectively empty
|
|
31
|
+
*/
|
|
32
|
+
export declare function isContentEmpty(content: string): boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Get word count from HTML content
|
|
35
|
+
*/
|
|
36
|
+
export declare function getWordCount(html: string): number;
|
|
37
|
+
/**
|
|
38
|
+
* Get character count from HTML content
|
|
39
|
+
*/
|
|
40
|
+
export declare function getCharacterCount(html: string, includeSpaces?: boolean): number;
|
|
41
|
+
//# sourceMappingURL=spacing-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spacing-utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/editor-formatting/utils/spacing-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,UAAU,CAAA;AAErE;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAWxD;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,cAAc,SAAI,GAAG,MAAM,CAQ9E;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,WAAW,SAAI,GAAG,MAAM,CAmB5E;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,OAAO,GAAE,cAAmB,GAC3B,MAAM,CAwCR;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,OAAO,EAAE,MAAM,EACf,OAAO,GAAE,qBAA0B,GAClC,MAAM,CAoDR;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAmB9C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAKvD;AAED;;GAEG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAIjD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,UAAO,GAAG,MAAM,CAM5E"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/react';
|
|
2
|
+
import { TableAttributes } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Insert a table at the current cursor position
|
|
5
|
+
*/
|
|
6
|
+
export declare function insertTable(editor: Editor | null, options?: TableAttributes): boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Delete the current table
|
|
9
|
+
*/
|
|
10
|
+
export declare function deleteTable(editor: Editor | null): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Add a row before the current row
|
|
13
|
+
*/
|
|
14
|
+
export declare function addTableRow(editor: Editor | null, position?: 'before' | 'after'): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Add a column before or after the current column
|
|
17
|
+
*/
|
|
18
|
+
export declare function addTableColumn(editor: Editor | null, position?: 'before' | 'after'): boolean;
|
|
19
|
+
/**
|
|
20
|
+
* Delete the current row
|
|
21
|
+
*/
|
|
22
|
+
export declare function deleteTableRow(editor: Editor | null): boolean;
|
|
23
|
+
/**
|
|
24
|
+
* Delete the current column
|
|
25
|
+
*/
|
|
26
|
+
export declare function deleteTableColumn(editor: Editor | null): boolean;
|
|
27
|
+
/**
|
|
28
|
+
* Merge selected cells
|
|
29
|
+
*/
|
|
30
|
+
export declare function mergeCells(editor: Editor | null): boolean;
|
|
31
|
+
/**
|
|
32
|
+
* Split the current cell
|
|
33
|
+
*/
|
|
34
|
+
export declare function splitCell(editor: Editor | null): boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Set background color for the current cell
|
|
37
|
+
*/
|
|
38
|
+
export declare function setTableCellBackground(editor: Editor | null, color: string): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Get attributes of the current table
|
|
41
|
+
*/
|
|
42
|
+
export declare function getTableAttributes(editor: Editor | null): TableAttributes | null;
|
|
43
|
+
/**
|
|
44
|
+
* Check if the current selection is inside a table
|
|
45
|
+
*/
|
|
46
|
+
export declare function isInTable(editor: Editor | null): boolean;
|
|
47
|
+
/**
|
|
48
|
+
* Check if a table can be inserted at the current position
|
|
49
|
+
*/
|
|
50
|
+
export declare function canInsertTable(editor: Editor | null): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Toggle header row for the current table
|
|
53
|
+
*/
|
|
54
|
+
export declare function toggleHeaderRow(editor: Editor | null): boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Toggle header column for the current table
|
|
57
|
+
*/
|
|
58
|
+
export declare function toggleHeaderColumn(editor: Editor | null): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Fix tables (repair invalid table structure)
|
|
61
|
+
*/
|
|
62
|
+
export declare function fixTables(editor: Editor | null): boolean;
|
|
63
|
+
/**
|
|
64
|
+
* Go to next cell in table
|
|
65
|
+
*/
|
|
66
|
+
export declare function goToNextCell(editor: Editor | null): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Go to previous cell in table
|
|
69
|
+
*/
|
|
70
|
+
export declare function goToPreviousCell(editor: Editor | null): boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Set cell alignment
|
|
73
|
+
*/
|
|
74
|
+
export declare function setCellAlignment(editor: Editor | null, align: 'left' | 'center' | 'right'): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Set cell vertical alignment
|
|
77
|
+
*/
|
|
78
|
+
export declare function setCellVerticalAlignment(editor: Editor | null, align: 'top' | 'middle' | 'bottom'): boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Get table dimensions (rows and columns count)
|
|
81
|
+
*/
|
|
82
|
+
export declare function getTableDimensions(editor: Editor | null): {
|
|
83
|
+
rows: number;
|
|
84
|
+
cols: number;
|
|
85
|
+
} | null;
|
|
86
|
+
//# sourceMappingURL=table-utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"table-utils.d.ts","sourceRoot":"","sources":["../../../../src/lib/editor-formatting/utils/table-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,KAAK,EAAE,eAAe,EAAuB,MAAM,UAAU,CAAA;AAEpE;;GAEG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAUT;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAQ1D;AAED;;GAEG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,GAAE,QAAQ,GAAG,OAAiB,GACrC,OAAO,CAUT;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,MAAM,EAAE,MAAM,GAAG,IAAI,EACrB,QAAQ,GAAE,QAAQ,GAAG,OAAiB,GACrC,OAAO,CAUT;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAK7D;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,OAAO,CAKhE;AAED;;GA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Q,GAAG,QAAQ,GACjC,OAAO,CAQT;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,MAAM,EAAE,MAAM,GAAG,IAAI,GACpB;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAyBvC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../src/lib/routes.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,MAAM;0CACY,MAAM;iDACC,MAAM;6CACV,MAAM;CAC9B,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export type Json = string | number | boolean | null | {
|
|
2
|
+
[key: string]: Json | undefined;
|
|
3
|
+
} | Json[];
|
|
4
|
+
export interface Database {
|
|
5
|
+
public: {
|
|
6
|
+
Tables: {
|
|
7
|
+
projects: {
|
|
8
|
+
Row: {
|
|
9
|
+
id: string;
|
|
10
|
+
created_at: string;
|
|
11
|
+
name: string;
|
|
12
|
+
url: string;
|
|
13
|
+
visitors: number;
|
|
14
|
+
audience: string;
|
|
15
|
+
services: string[];
|
|
16
|
+
user_id: string;
|
|
17
|
+
};
|
|
18
|
+
Insert: {
|
|
19
|
+
id?: string;
|
|
20
|
+
created_at?: string;
|
|
21
|
+
name: string;
|
|
22
|
+
url: string;
|
|
23
|
+
visitors?: number;
|
|
24
|
+
audience: string;
|
|
25
|
+
services?: string[];
|
|
26
|
+
user_id: string;
|
|
27
|
+
};
|
|
28
|
+
Update: {
|
|
29
|
+
id?: string;
|
|
30
|
+
created_at?: string;
|
|
31
|
+
name?: string;
|
|
32
|
+
url?: string;
|
|
33
|
+
visitors?: number;
|
|
34
|
+
audience?: string;
|
|
35
|
+
services?: string[];
|
|
36
|
+
user_id?: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=supabase-types.d.ts.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