richtor 1.0.0 → 1.0.2

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.
Files changed (124) hide show
  1. package/dist/components/BubbleMenu.d.ts +9 -0
  2. package/dist/components/CopyButton.d.ts +4 -0
  3. package/dist/components/Editor.d.ts +27 -0
  4. package/dist/components/HeadingWithAnchor.d.ts +8 -0
  5. package/dist/components/MenuBar.d.ts +2 -0
  6. package/dist/components/MenuButton.d.ts +20 -0
  7. package/dist/components/Provider.d.ts +22 -0
  8. package/dist/components/Resizer.d.ts +3 -0
  9. package/dist/components/Source.d.ts +7 -0
  10. package/dist/components/StatusBar.d.ts +2 -0
  11. package/dist/components/SyntaxHighlighter.d.ts +6 -0
  12. package/dist/components/TableBuilder.d.ts +9 -0
  13. package/dist/components/color-picker/ColorButton.d.ts +8 -0
  14. package/dist/components/color-picker/ColorPicker.d.ts +7 -0
  15. package/dist/components/color-picker/index.d.ts +1 -0
  16. package/dist/components/controls/AlignCenterButton.d.ts +2 -0
  17. package/dist/components/controls/AlignJustifyButton.d.ts +2 -0
  18. package/dist/components/controls/AlignLeftButton.d.ts +2 -0
  19. package/dist/components/controls/AlignPopover.d.ts +2 -0
  20. package/dist/components/controls/AlignRightButton.d.ts +2 -0
  21. package/dist/components/controls/BlockquoteButton.d.ts +2 -0
  22. package/dist/components/controls/BoldButton.d.ts +2 -0
  23. package/dist/components/controls/BulletListButton.d.ts +2 -0
  24. package/dist/components/controls/ClearFormatButton.d.ts +2 -0
  25. package/dist/components/controls/CodeBlockButton.d.ts +2 -0
  26. package/dist/components/controls/CodeButton.d.ts +2 -0
  27. package/dist/components/controls/HeadingDropdown.d.ts +2 -0
  28. package/dist/components/controls/ImageButton.d.ts +2 -0
  29. package/dist/components/controls/InsertDropdown.d.ts +2 -0
  30. package/dist/components/controls/ItalicButton.d.ts +2 -0
  31. package/dist/components/controls/LinkButton.d.ts +2 -0
  32. package/dist/components/controls/MoreMarkPopover.d.ts +2 -0
  33. package/dist/components/controls/OrderedList.d.ts +2 -0
  34. package/dist/components/controls/RedoButton.d.ts +2 -0
  35. package/dist/components/controls/StrikeButton.d.ts +2 -0
  36. package/dist/components/controls/SubscriptButton.d.ts +2 -0
  37. package/dist/components/controls/SuperscriptButton.d.ts +2 -0
  38. package/dist/components/controls/TableButton.d.ts +2 -0
  39. package/dist/components/controls/TextColorButton.d.ts +3 -0
  40. package/dist/components/controls/TextHighlightButton.d.ts +3 -0
  41. package/dist/components/controls/UnderlineButton.d.ts +2 -0
  42. package/dist/components/controls/UndoButton.d.ts +2 -0
  43. package/dist/components/controls/YoutubeButton.d.ts +2 -0
  44. package/dist/components/extensions/CodeBlock/CodeBlock.d.ts +4 -0
  45. package/dist/components/extensions/CodeBlock/index.d.ts +1 -0
  46. package/dist/components/extensions/CodeBlock/lowlight-plugin.d.ts +7 -0
  47. package/dist/components/extensions/Figcaption.d.ts +3 -0
  48. package/dist/components/extensions/Figure.d.ts +3 -0
  49. package/dist/components/extensions/Image/Image.d.ts +14 -0
  50. package/dist/components/extensions/Image/image-plugin.d.ts +5 -0
  51. package/dist/components/extensions/Image/index.d.ts +1 -0
  52. package/dist/components/extensions/ImageFigure/ImageCaption.d.ts +2 -0
  53. package/dist/components/extensions/ImageFigure/ImageFigure.d.ts +15 -0
  54. package/dist/components/extensions/ImageFigure/index.d.ts +2 -0
  55. package/dist/components/extensions/Indent.d.ts +12 -0
  56. package/dist/components/extensions/Link.d.ts +20 -0
  57. package/dist/components/extensions/Selection.d.ts +3 -0
  58. package/dist/components/extensions/Table/Table.d.ts +1 -0
  59. package/dist/components/extensions/Table/index.d.ts +1 -0
  60. package/dist/components/extensions/Youtube/Youtube.d.ts +24 -0
  61. package/dist/components/extensions/Youtube/index.d.ts +1 -0
  62. package/dist/components/extensions/Youtube/utils.d.ts +10 -0
  63. package/dist/components/extensions/index.d.ts +23 -0
  64. package/dist/components/extensions/kit.d.ts +3 -0
  65. package/dist/components/icons/Corner.d.ts +3 -0
  66. package/dist/components/icons/InlineCode.d.ts +3 -0
  67. package/dist/components/icons/Quote.d.ts +3 -0
  68. package/dist/components/icons/TextColor.d.ts +3 -0
  69. package/dist/components/icons/TextHighlight.d.ts +3 -0
  70. package/dist/components/icons/icons.d.ts +67 -0
  71. package/dist/components/icons/index.d.ts +1 -0
  72. package/dist/components/menus/CodeBlockMenu/CodeBlockMenu.d.ts +3 -0
  73. package/dist/components/menus/CodeBlockMenu/CodeDropdown.d.ts +6 -0
  74. package/dist/components/menus/CodeBlockMenu/index.d.ts +1 -0
  75. package/dist/components/menus/ImageMenu/AltTextEdit.d.ts +7 -0
  76. package/dist/components/menus/ImageMenu/ImageMenu.d.ts +2 -0
  77. package/dist/components/menus/ImageMenu/SizeDropdown.d.ts +6 -0
  78. package/dist/components/menus/ImageMenu/index.d.ts +1 -0
  79. package/dist/components/menus/LinkMenu/LinkEdit.d.ts +9 -0
  80. package/dist/components/menus/LinkMenu/LinkMenu.d.ts +3 -0
  81. package/dist/components/menus/LinkMenu/LinkView.d.ts +7 -0
  82. package/dist/components/menus/LinkMenu/index.d.ts +1 -0
  83. package/dist/components/menus/TableMenu.d.ts +2 -0
  84. package/dist/components/menus/TextMenu.d.ts +4 -0
  85. package/dist/components/menus/index.d.ts +4 -0
  86. package/dist/components/renderer/client-renderer.d.ts +6 -0
  87. package/dist/components/renderer/components.d.ts +2 -0
  88. package/dist/components/renderer/server-renderer.d.ts +6 -0
  89. package/dist/components/ui/Button.d.ts +9 -0
  90. package/dist/components/ui/DropdownMenu.d.ts +19 -0
  91. package/dist/components/ui/Icon.d.ts +7 -0
  92. package/dist/components/ui/Input.d.ts +4 -0
  93. package/dist/components/ui/Label.d.ts +8 -0
  94. package/dist/components/ui/Popover.d.ts +7 -0
  95. package/dist/components/ui/Toolbar.d.ts +11 -0
  96. package/dist/components/ui/Tooltip.d.ts +11 -0
  97. package/dist/components/ui/dialog.d.ts +15 -0
  98. package/dist/constants/code-languages.d.ts +10 -0
  99. package/dist/constants/color.d.ts +2 -0
  100. package/dist/editor.d.ts +27 -0
  101. package/dist/{shadcn-rich-editor.umd.js → editor.umd.js} +1 -1
  102. package/dist/hooks/useCodeMirror.d.ts +6 -0
  103. package/dist/hooks/useCopyToClipboard.d.ts +4 -0
  104. package/dist/hooks/useForceUpdate.d.ts +1 -0
  105. package/dist/hooks/useModal.d.ts +5 -0
  106. package/dist/hooks/useMount.d.ts +1 -0
  107. package/dist/hooks/useThrottle.d.ts +1 -0
  108. package/dist/hooks/useTiptapEditor.d.ts +11 -0
  109. package/dist/index.d.ts +3 -0
  110. package/dist/lib/codeLanguageLoader.d.ts +12 -0
  111. package/dist/lib/cssVar.d.ts +1 -0
  112. package/dist/lib/format.d.ts +1 -0
  113. package/dist/lib/getNodeContainer.d.ts +2 -0
  114. package/dist/lib/highlight.d.ts +2 -0
  115. package/dist/lib/isNodeSelected.d.ts +2 -0
  116. package/dist/lib/isTextSelected.d.ts +3 -0
  117. package/dist/lib/processor.d.ts +6 -0
  118. package/dist/lib/shortcut.d.ts +1 -0
  119. package/dist/lib/theme.d.ts +5 -0
  120. package/dist/lib/throttle.d.ts +1 -0
  121. package/dist/lib/utils.d.ts +2 -0
  122. package/dist/renderer.d.ts +6 -0
  123. package/package.json +7 -7
  124. /package/dist/{shadcn-rich-editor.es.js → editor.es.js} +0 -0
@@ -0,0 +1,9 @@
1
+ import { type BubbleMenuPluginProps } from '@tiptap/extension-bubble-menu';
2
+ import React from 'react';
3
+ type Optional<T, K extends keyof T> = Pick<Partial<T>, K> & Omit<T, K>;
4
+ export type BubbleMenuProps = Omit<Optional<BubbleMenuPluginProps, 'pluginKey' | 'editor'>, 'element'> & {
5
+ className?: string;
6
+ children: React.ReactNode;
7
+ };
8
+ export declare const BubbleMenu: ({ editor, className, children, ...props }: BubbleMenuProps) => React.ReactPortal;
9
+ export {};
@@ -0,0 +1,4 @@
1
+ declare const CopyButton: ({ code }: {
2
+ code: string;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
+ export default CopyButton;
@@ -0,0 +1,27 @@
1
+ import '../style/index.css';
2
+ import type { Content, Editor } from '@tiptap/react';
3
+ export type TiptapEditorRef = {
4
+ getInstance: () => Editor | null;
5
+ };
6
+ export interface TiptapEditorProps {
7
+ ssr?: boolean;
8
+ readonly?: boolean;
9
+ disabled?: boolean;
10
+ initialContent?: Content;
11
+ placeholder?: {
12
+ paragraph?: string;
13
+ imageCaption?: string;
14
+ };
15
+ output?: 'html' | 'json';
16
+ hideMenuBar?: boolean;
17
+ hideStatusBar?: boolean;
18
+ hideBubbleMenu?: boolean;
19
+ containerClass?: string;
20
+ menuBarClass?: string;
21
+ contentClass?: string;
22
+ contentMinHeight?: string | number;
23
+ contentMaxHeight?: string | number;
24
+ onContentChange?: (value: Content) => void;
25
+ }
26
+ declare const TiptapEditor: import("react").ForwardRefExoticComponent<TiptapEditorProps & import("react").RefAttributes<TiptapEditorRef>>;
27
+ export default TiptapEditor;
@@ -0,0 +1,8 @@
1
+ import { ReactNode } from 'react';
2
+ interface HeadingWithAnchorProps {
3
+ level: number;
4
+ id?: string;
5
+ children?: ReactNode;
6
+ }
7
+ declare const HeadingWithAnchor: ({ level, children, id }: HeadingWithAnchorProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default HeadingWithAnchor;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
2
+ export default _default;
@@ -0,0 +1,20 @@
1
+ import React, { CSSProperties } from 'react';
2
+ import { type ButtonProps } from './ui/Button';
3
+ import { type IconProps } from './ui/Icon';
4
+ interface MenuButtonProps extends Omit<ButtonProps, 'variant' | 'ref' | 'type'> {
5
+ icon?: IconProps['name'];
6
+ type?: 'button' | 'dropdown' | 'popover';
7
+ buttonType?: ButtonProps['type'];
8
+ text?: string;
9
+ active?: boolean;
10
+ shortcuts?: string[];
11
+ hideText?: boolean;
12
+ hideArrow?: boolean;
13
+ tooltip?: string | boolean;
14
+ buttonClass?: string;
15
+ buttonStyle?: CSSProperties;
16
+ dropdownClass?: string;
17
+ dropdownStyle?: CSSProperties;
18
+ }
19
+ declare const _default: React.NamedExoticComponent<MenuButtonProps & React.RefAttributes<HTMLButtonElement>>;
20
+ export default _default;
@@ -0,0 +1,22 @@
1
+ import { type Editor } from '@tiptap/react';
2
+ import { ReactNode, RefObject } from 'react';
3
+ import { type UseTiptapEditorOptions } from '../hooks/useTiptapEditor';
4
+ type TiptapContextType = {
5
+ editor: Editor;
6
+ contentElement: RefObject<HTMLDivElement | null>;
7
+ isFullScreen: boolean;
8
+ isResizing: boolean;
9
+ isSourceMode: boolean;
10
+ toggleFullScreen: () => void;
11
+ toggleSourceMode: () => void;
12
+ setIsResizing: (value: boolean) => void;
13
+ };
14
+ export declare const useTiptapContext: () => TiptapContextType;
15
+ type TiptapProviderProps = {
16
+ slotBefore?: ReactNode;
17
+ slotAfter?: ReactNode;
18
+ editorOptions: UseTiptapEditorOptions;
19
+ children?: ReactNode;
20
+ };
21
+ export declare const TiptapProvider: ({ children, editorOptions, slotBefore, slotAfter }: TiptapProviderProps) => import("react/jsx-runtime").JSX.Element | null;
22
+ export default TiptapProvider;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const _default: React.MemoExoticComponent<() => React.ReactPortal | undefined>;
3
+ export default _default;
@@ -0,0 +1,7 @@
1
+ import '@/style/code-mirror.css';
2
+ interface SourceEditorProps {
3
+ initialContent: string;
4
+ onChange?: (content: string) => void;
5
+ }
6
+ declare const SourceEditor: import("react").ForwardRefExoticComponent<SourceEditorProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ export default SourceEditor;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
2
+ export default _default;
@@ -0,0 +1,6 @@
1
+ interface SyntaxHighlighterProps {
2
+ content?: string;
3
+ language?: string;
4
+ }
5
+ declare const SyntaxHighlighter: (props: SyntaxHighlighterProps) => any;
6
+ export default SyntaxHighlighter;
@@ -0,0 +1,9 @@
1
+ type GridSize = {
2
+ cols: number;
3
+ rows: number;
4
+ };
5
+ interface TableBuilderProps {
6
+ onCreate?: (value: GridSize) => void;
7
+ }
8
+ declare const TableBuilder: ({ onCreate }: TableBuilderProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default TableBuilder;
@@ -0,0 +1,8 @@
1
+ interface ColorButtonProps {
2
+ color: string;
3
+ active?: boolean;
4
+ tooltip?: boolean;
5
+ onClick?: (color: string) => void;
6
+ }
7
+ declare const ColorButton: ({ color, tooltip, active, onClick }: ColorButtonProps) => import("react/jsx-runtime").JSX.Element;
8
+ export default ColorButton;
@@ -0,0 +1,7 @@
1
+ interface ColorPickerProps {
2
+ color: string;
3
+ onChange?: (value: string) => void;
4
+ onReset?: () => void;
5
+ }
6
+ declare const ColorPicker: (props: ColorPickerProps) => import("react/jsx-runtime").JSX.Element;
7
+ export default ColorPicker;
@@ -0,0 +1 @@
1
+ export { default } from './ColorPicker';
@@ -0,0 +1,2 @@
1
+ declare const AlignCenterButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default AlignCenterButton;
@@ -0,0 +1,2 @@
1
+ declare const AlignJustifyButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default AlignJustifyButton;
@@ -0,0 +1,2 @@
1
+ declare const AlignLeftButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default AlignLeftButton;
@@ -0,0 +1,2 @@
1
+ declare const AlignPopover: () => import("react/jsx-runtime").JSX.Element;
2
+ export default AlignPopover;
@@ -0,0 +1,2 @@
1
+ declare const AlignRightButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default AlignRightButton;
@@ -0,0 +1,2 @@
1
+ declare const BlockquoteButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default BlockquoteButton;
@@ -0,0 +1,2 @@
1
+ declare const BoldButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default BoldButton;
@@ -0,0 +1,2 @@
1
+ declare const BulletListButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default BulletListButton;
@@ -0,0 +1,2 @@
1
+ declare const ClearFormatButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ClearFormatButton;
@@ -0,0 +1,2 @@
1
+ declare const CodeBlockButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default CodeBlockButton;
@@ -0,0 +1,2 @@
1
+ declare const CodeButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default CodeButton;
@@ -0,0 +1,2 @@
1
+ declare const HeadingDropdown: () => import("react/jsx-runtime").JSX.Element;
2
+ export default HeadingDropdown;
@@ -0,0 +1,2 @@
1
+ declare const ImageButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ImageButton;
@@ -0,0 +1,2 @@
1
+ declare const InsertDropdown: () => import("react/jsx-runtime").JSX.Element;
2
+ export default InsertDropdown;
@@ -0,0 +1,2 @@
1
+ declare const ItalicButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default ItalicButton;
@@ -0,0 +1,2 @@
1
+ declare const LinkButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default LinkButton;
@@ -0,0 +1,2 @@
1
+ declare const MoreMarkPopover: () => import("react/jsx-runtime").JSX.Element;
2
+ export default MoreMarkPopover;
@@ -0,0 +1,2 @@
1
+ declare const OrderedListButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default OrderedListButton;
@@ -0,0 +1,2 @@
1
+ declare const RedoButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default RedoButton;
@@ -0,0 +1,2 @@
1
+ declare const StrikeButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default StrikeButton;
@@ -0,0 +1,2 @@
1
+ declare const SubscriptButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SubscriptButton;
@@ -0,0 +1,2 @@
1
+ declare const SuperscriptButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default SuperscriptButton;
@@ -0,0 +1,2 @@
1
+ declare const TableButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default TableButton;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const TextColorButton: React.FC;
3
+ export default TextColorButton;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ declare const TextHighlightButton: React.FC;
3
+ export default TextHighlightButton;
@@ -0,0 +1,2 @@
1
+ declare const UnderlineButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default UnderlineButton;
@@ -0,0 +1,2 @@
1
+ declare const UndoButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default UndoButton;
@@ -0,0 +1,2 @@
1
+ declare const YoutubeButton: () => import("react/jsx-runtime").JSX.Element;
2
+ export default YoutubeButton;
@@ -0,0 +1,4 @@
1
+ import { CodeBlockLowlightOptions } from '@tiptap/extension-code-block-lowlight';
2
+ export declare const backtickInputRegex: RegExp;
3
+ export declare const tildeInputRegex: RegExp;
4
+ export declare const CodeBlock: import("@tiptap/core").Node<CodeBlockLowlightOptions, any>;
@@ -0,0 +1 @@
1
+ export * from './CodeBlock';
@@ -0,0 +1,7 @@
1
+ import { Plugin, PluginKey } from '@tiptap/pm/state';
2
+ export declare const LowlightPluginKey: PluginKey<any>;
3
+ export declare function LowlightPlugin({ name, lowlight, defaultLanguage }: {
4
+ name: string;
5
+ lowlight: any;
6
+ defaultLanguage: string | null | undefined;
7
+ }): Plugin<any>;
@@ -0,0 +1,3 @@
1
+ import { Node } from '@tiptap/core';
2
+ export declare const Figcaption: Node<any, any>;
3
+ export default Figcaption;
@@ -0,0 +1,3 @@
1
+ import { Node } from '@tiptap/core';
2
+ export declare const Figure: Node<any, any>;
3
+ export default Figure;
@@ -0,0 +1,14 @@
1
+ declare module '@tiptap/core' {
2
+ interface Commands<ReturnType> {
3
+ customImage: {
4
+ insertImage: (options: {
5
+ src: string;
6
+ alt?: string;
7
+ width?: number;
8
+ height?: number;
9
+ }) => ReturnType;
10
+ };
11
+ }
12
+ }
13
+ export declare const Image: import("@tiptap/core").Node<import("@tiptap/extension-image").ImageOptions, any>;
14
+ export default Image;
@@ -0,0 +1,5 @@
1
+ import { Plugin, PluginKey } from '@tiptap/pm/state';
2
+ export declare const ImagePluginKey: PluginKey<any>;
3
+ export declare function ImagePlugin({ name }: {
4
+ name: string;
5
+ }): Plugin<any>;
@@ -0,0 +1 @@
1
+ export * from './Image';
@@ -0,0 +1,2 @@
1
+ export declare const ImageCaption: import("@tiptap/core").Node<any, any>;
2
+ export default ImageCaption;
@@ -0,0 +1,15 @@
1
+ declare module '@tiptap/core' {
2
+ interface Commands<ReturnType> {
3
+ imageFigure: {
4
+ setImageFigure: (options: {
5
+ src: string;
6
+ caption?: string;
7
+ }) => ReturnType;
8
+ imageToFigure: () => ReturnType;
9
+ figureToImage: () => ReturnType;
10
+ removeImage: () => ReturnType;
11
+ };
12
+ }
13
+ }
14
+ export declare const ImageFigure: import("@tiptap/core").Node<any, any>;
15
+ export default ImageFigure;
@@ -0,0 +1,2 @@
1
+ export * from './ImageCaption';
2
+ export * from './ImageFigure';
@@ -0,0 +1,12 @@
1
+ import { Extension } from '@tiptap/core';
2
+ declare module '@tiptap/core' {
3
+ interface Commands<ReturnType> {
4
+ indent: {
5
+ indent: () => ReturnType;
6
+ };
7
+ outdent: {
8
+ outdent: () => ReturnType;
9
+ };
10
+ }
11
+ }
12
+ export declare const Indent: Extension<any, any>;
@@ -0,0 +1,20 @@
1
+ import { LinkOptions } from '@tiptap/extension-link';
2
+ import { Selection } from '@tiptap/pm/state';
3
+ declare module '@tiptap/core' {
4
+ interface Commands<ReturnType> {
5
+ customLink: {
6
+ insertLink: (attrs: any) => ReturnType;
7
+ startEditLink: () => ReturnType;
8
+ confirmEditLink: (attrs?: {
9
+ text?: string;
10
+ href?: string;
11
+ }) => ReturnType;
12
+ };
13
+ }
14
+ }
15
+ export interface LinkEditorStorage {
16
+ mode: number;
17
+ tempPos: Selection | null;
18
+ }
19
+ export declare const Link: import("@tiptap/core").Mark<LinkOptions, LinkEditorStorage>;
20
+ export default Link;
@@ -0,0 +1,3 @@
1
+ import { Extension } from '@tiptap/core';
2
+ export declare const Selection: Extension<any, any>;
3
+ export default Selection;
@@ -0,0 +1 @@
1
+ export declare const Table: import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any>;
@@ -0,0 +1 @@
1
+ export * from './Table';
@@ -0,0 +1,24 @@
1
+ import { Node } from '@tiptap/core';
2
+ export interface YoutubeOptions {
3
+ allowFullscreen?: boolean;
4
+ autoplay?: boolean;
5
+ nocookie?: boolean;
6
+ controls?: boolean;
7
+ HTMLAttributes: {
8
+ [key: string]: any;
9
+ };
10
+ }
11
+ type EmbedYoutubeOptions = {
12
+ src: string;
13
+ width?: number;
14
+ height?: number;
15
+ };
16
+ declare module '@tiptap/core' {
17
+ interface Commands<ReturnType> {
18
+ youtube: {
19
+ embedYoutube: (options: EmbedYoutubeOptions) => ReturnType;
20
+ };
21
+ }
22
+ }
23
+ export declare const Youtube: Node<YoutubeOptions, any>;
24
+ export {};
@@ -0,0 +1 @@
1
+ export * from './Youtube';
@@ -0,0 +1,10 @@
1
+ export declare function isValidYoutubeUrl(url: string): RegExpMatchArray | null;
2
+ type GetEmbedYoutubeUrlOptions = {
3
+ url: string;
4
+ allowFullscreen?: boolean;
5
+ autoplay?: boolean;
6
+ nocookie?: boolean;
7
+ controls?: boolean;
8
+ };
9
+ export declare function getEmbedYoutubeUrl({ url, nocookie, allowFullscreen, autoplay, controls }: GetEmbedYoutubeUrlOptions): string | null;
10
+ export {};
@@ -0,0 +1,23 @@
1
+ export { BulletList } from '@tiptap/extension-bullet-list';
2
+ export { CharacterCount } from '@tiptap/extension-character-count';
3
+ export { Color } from '@tiptap/extension-color';
4
+ export { Highlight } from '@tiptap/extension-highlight';
5
+ export { ListKeymap } from '@tiptap/extension-list-keymap';
6
+ export { OrderedList } from '@tiptap/extension-ordered-list';
7
+ export { Placeholder } from '@tiptap/extension-placeholder';
8
+ export { Subscript } from '@tiptap/extension-subscript';
9
+ export { Superscript } from '@tiptap/extension-superscript';
10
+ export { TextAlign } from '@tiptap/extension-text-align';
11
+ export { TextStyle } from '@tiptap/extension-text-style';
12
+ export { Underline } from '@tiptap/extension-underline';
13
+ export { StarterKit } from '@tiptap/starter-kit';
14
+ export { CodeBlock } from './CodeBlock';
15
+ export { Figcaption } from './Figcaption';
16
+ export { Figure } from './Figure';
17
+ export { Image } from './Image';
18
+ export { ImageCaption, ImageFigure } from './ImageFigure';
19
+ export { Indent } from './Indent';
20
+ export { Link } from './Link';
21
+ export { Selection } from './Selection';
22
+ export { Table } from './Table';
23
+ export { Youtube } from './Youtube/Youtube';
@@ -0,0 +1,3 @@
1
+ import type { Extensions } from '@tiptap/core';
2
+ declare const ExtensionKit: Extensions;
3
+ export default ExtensionKit;
@@ -0,0 +1,3 @@
1
+ import type { LucideProps } from 'lucide-react';
2
+ declare const IconCorner: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
3
+ export default IconCorner;
@@ -0,0 +1,3 @@
1
+ import type { LucideProps } from 'lucide-react';
2
+ declare const IconInlineCode: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
3
+ export default IconInlineCode;
@@ -0,0 +1,3 @@
1
+ import type { LucideProps } from 'lucide-react';
2
+ declare const IconQuote: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
3
+ export default IconQuote;
@@ -0,0 +1,3 @@
1
+ import type { LucideProps } from 'lucide-react';
2
+ declare const IconTextColor: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
3
+ export default IconTextColor;
@@ -0,0 +1,3 @@
1
+ import type { LucideProps } from 'lucide-react';
2
+ declare const IconTextHighlight: import("react").ForwardRefExoticComponent<Omit<LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
3
+ export default IconTextHighlight;
@@ -0,0 +1,67 @@
1
+ import { type LucideIcon } from 'lucide-react';
2
+ export declare const icons: {
3
+ Bold: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
4
+ Italic: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
5
+ Underline: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
6
+ Strike: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
7
+ Code: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
8
+ SourceCode: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
9
+ Subscript: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
10
+ Superscript: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
11
+ BulletList: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
12
+ OrderedList: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
13
+ TaskList: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
14
+ CodeBlock: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
15
+ CodeInline: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
16
+ Link: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
17
+ Unlink: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
18
+ Edit: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
19
+ ExternalLink: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
20
+ Redo: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
21
+ Undo: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
22
+ AlignLeft: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
23
+ AlignRight: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
24
+ AlignJustify: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
25
+ AlignCenter: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
26
+ Eraser: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
27
+ ChevronDown: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
28
+ Maximize: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
29
+ Minimize: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
30
+ HorizontalRule: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
31
+ Indent: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
32
+ Outdent: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
33
+ Clipboard: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
34
+ Check: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
35
+ Quote: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
36
+ Corner: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
37
+ LetterCase: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
38
+ Trash: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
39
+ Image: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
40
+ ImageCaption: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
41
+ ImageAltText: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
42
+ Download: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
43
+ Youtube: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
44
+ Close: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
45
+ Ruler: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
46
+ TextHighlight: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
47
+ TextColor: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
48
+ Palette: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
49
+ PaletteOff: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
50
+ Ban: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
51
+ Plus: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
52
+ Table: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
53
+ Stretch: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
54
+ HeaderRow: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
55
+ HeaderCol: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
56
+ ColInsertLeft: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
57
+ ColInsertRight: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
58
+ ColRemove: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
59
+ ColHeader: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
60
+ RowInsertTop: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
61
+ RowInsertBottom: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
62
+ RowRemove: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
63
+ RowHeader: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
64
+ MergeCell: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
65
+ SplitCell: import("react").ForwardRefExoticComponent<Omit<import("lucide-react").LucideProps, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
66
+ };
67
+ export type { LucideIcon };
@@ -0,0 +1 @@
1
+ export * from './icons';
@@ -0,0 +1,3 @@
1
+ export declare const CodeBlockMenu: () => import("react/jsx-runtime").JSX.Element;
2
+ declare const _default: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ export default _default;
@@ -0,0 +1,6 @@
1
+ interface CodeDropdownProps {
2
+ value: string;
3
+ onSelect: (value: string) => void;
4
+ }
5
+ declare const CodeDropdown: ({ value, onSelect }: CodeDropdownProps) => import("react/jsx-runtime").JSX.Element;
6
+ export default CodeDropdown;
@@ -0,0 +1 @@
1
+ export * from './CodeBlockMenu';