@fileverse-dev/ddoc 2.0.3-sync-patch-2 → 2.0.3-sync-patch-3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (89) hide show
  1. package/package.json +2 -2
  2. package/dist/index.d.ts +0 -1
  3. package/dist/index.es.js +0 -140681
  4. package/dist/package/common/carousel.d.ts +0 -22
  5. package/dist/package/common/cutsom-tooltip.d.ts +0 -8
  6. package/dist/package/common/dropdown.d.ts +0 -12
  7. package/dist/package/common/spinner.d.ts +0 -1
  8. package/dist/package/common/surface.d.ts +0 -7
  9. package/dist/package/common/toolbar-button.d.ts +0 -9
  10. package/dist/package/common/toolbar.d.ts +0 -13
  11. package/dist/package/common/types.d.ts +0 -19
  12. package/dist/package/components/color-selector.d.ts +0 -14
  13. package/dist/package/components/editor-bubble-menu.d.ts +0 -11
  14. package/dist/package/components/editor-toolbar.d.ts +0 -10
  15. package/dist/package/components/editor-utils.d.ts +0 -84
  16. package/dist/package/components/mobile-toolbar.d.ts +0 -10
  17. package/dist/package/components/node-selector.d.ts +0 -9
  18. package/dist/package/components/slash-comand.d.ts +0 -5
  19. package/dist/package/components/utils-modal.d.ts +0 -9
  20. package/dist/package/ddoc-editor.d.ts +0 -4
  21. package/dist/package/extensions/action-button/action-button-node-view.d.ts +0 -3
  22. package/dist/package/extensions/action-button/action-button.d.ts +0 -16
  23. package/dist/package/extensions/action-button/index.d.ts +0 -1
  24. package/dist/package/extensions/action-button/modal.d.ts +0 -8
  25. package/dist/package/extensions/custom-keymap.d.ts +0 -14
  26. package/dist/package/extensions/d-block/dblock-node-view.d.ts +0 -4
  27. package/dist/package/extensions/d-block/dblock.d.ts +0 -13
  28. package/dist/package/extensions/d-block/index.d.ts +0 -1
  29. package/dist/package/extensions/default-extension.d.ts +0 -5
  30. package/dist/package/extensions/doc.d.ts +0 -3
  31. package/dist/package/extensions/document/document.d.ts +0 -2
  32. package/dist/package/extensions/document/index.d.ts +0 -1
  33. package/dist/package/extensions/footnote/footnote.d.ts +0 -4
  34. package/dist/package/extensions/horizontal-rule.d.ts +0 -2
  35. package/dist/package/extensions/iframe/iframe.d.ts +0 -27
  36. package/dist/package/extensions/iframe/index.d.ts +0 -1
  37. package/dist/package/extensions/mardown-paste-handler/index.d.ts +0 -14
  38. package/dist/package/extensions/multi-column/column-selection.d.ts +0 -17
  39. package/dist/package/extensions/multi-column/column.d.ts +0 -4
  40. package/dist/package/extensions/multi-column/columns.d.ts +0 -18
  41. package/dist/package/extensions/multi-column/index.d.ts +0 -11
  42. package/dist/package/extensions/multi-column/menus/columns-menu.d.ts +0 -4
  43. package/dist/package/extensions/multi-column/menus/index.d.ts +0 -1
  44. package/dist/package/extensions/multi-column/utils.d.ts +0 -22
  45. package/dist/package/extensions/resizable-media/index.d.ts +0 -1
  46. package/dist/package/extensions/resizable-media/media-paste-drop-plugin/index.d.ts +0 -1
  47. package/dist/package/extensions/resizable-media/media-paste-drop-plugin/media-paste-drop-plugin.d.ts +0 -12
  48. package/dist/package/extensions/resizable-media/resizable-media-menu-util.d.ts +0 -16
  49. package/dist/package/extensions/resizable-media/resizable-media-node-view.d.ts +0 -3
  50. package/dist/package/extensions/resizable-media/resizable-media.d.ts +0 -27
  51. package/dist/package/extensions/supercharged-table/extension-table/index.d.ts +0 -5
  52. package/dist/package/extensions/supercharged-table/extension-table/table-view.d.ts +0 -18
  53. package/dist/package/extensions/supercharged-table/extension-table/table.d.ts +0 -56
  54. package/dist/package/extensions/supercharged-table/extension-table/utilities/create-cell.d.ts +0 -3
  55. package/dist/package/extensions/supercharged-table/extension-table/utilities/create-table.d.ts +0 -3
  56. package/dist/package/extensions/supercharged-table/extension-table/utilities/delete-table-when-all-cells-selected.d.ts +0 -3
  57. package/dist/package/extensions/supercharged-table/extension-table/utilities/get-table-node-types.d.ts +0 -5
  58. package/dist/package/extensions/supercharged-table/extension-table/utilities/is-cell-selection.d.ts +0 -3
  59. package/dist/package/extensions/supercharged-table/extension-table-cell/index.d.ts +0 -4
  60. package/dist/package/extensions/supercharged-table/extension-table-cell/table-cell-node-view.d.ts +0 -4
  61. package/dist/package/extensions/supercharged-table/extension-table-cell/table-cell.d.ts +0 -6
  62. package/dist/package/extensions/supercharged-table/extension-table-header/index.d.ts +0 -4
  63. package/dist/package/extensions/supercharged-table/extension-table-header/table-header.d.ts +0 -6
  64. package/dist/package/extensions/supercharged-table/extension-table-row/index.d.ts +0 -4
  65. package/dist/package/extensions/supercharged-table/extension-table-row/table-row-node-view.d.ts +0 -17
  66. package/dist/package/extensions/supercharged-table/extension-table-row/table-row.d.ts +0 -7
  67. package/dist/package/extensions/supercharged-table/index.d.ts +0 -5
  68. package/dist/package/extensions/supercharged-table/supercharged-table-kit.d.ts +0 -3
  69. package/dist/package/extensions/sync-cursor.d.ts +0 -28
  70. package/dist/package/extensions/trailing-node/index.d.ts +0 -1
  71. package/dist/package/extensions/trailing-node/trailing-node.d.ts +0 -12
  72. package/dist/package/extensions/twitter-embed/embedded-tweet.d.ts +0 -18
  73. package/dist/package/extensions/twitter-embed/index.d.ts +0 -1
  74. package/dist/package/extensions/twitter-embed/tweet-component-node-view.d.ts +0 -3
  75. package/dist/package/hooks/use-content-item-actions.d.ts +0 -10
  76. package/dist/package/hooks/use-editing-context.d.ts +0 -10
  77. package/dist/package/hooks/use-visibility.d.ts +0 -24
  78. package/dist/package/types.d.ts +0 -48
  79. package/dist/package/use-ddoc-editor.d.ts +0 -9
  80. package/dist/package/utils/colors.d.ts +0 -4
  81. package/dist/package/utils/cursor.d.ts +0 -5
  82. package/dist/package/utils/debounce.d.ts +0 -1
  83. package/dist/package/utils/get-render-container.d.ts +0 -4
  84. package/dist/package/utils/getAddressName.d.ts +0 -7
  85. package/dist/package/utils/getTemplateContent.d.ts +0 -3
  86. package/dist/package/utils/template-utils.d.ts +0 -15
  87. package/dist/package/utils/upload-images.d.ts +0 -7
  88. package/dist/style.css +0 -1
  89. package/dist/vite.svg +0 -1
@@ -1,22 +0,0 @@
1
- import { default as React } from 'react';
2
- import { default as useEmblaCarousel, UseEmblaCarouselType } from 'embla-carousel-react';
3
-
4
- type CarouselApi = UseEmblaCarouselType[1];
5
- type UseCarouselParameters = Parameters<typeof useEmblaCarousel>;
6
- type CarouselOptions = UseCarouselParameters[0];
7
- type CarouselPlugin = UseCarouselParameters[1];
8
- type CarouselProps = {
9
- opts?: CarouselOptions;
10
- plugins?: CarouselPlugin;
11
- orientation?: 'horizontal' | 'vertical';
12
- setApi?: (api: CarouselApi) => void;
13
- };
14
- declare const Carousel: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & CarouselProps & React.RefAttributes<HTMLDivElement>>;
15
- declare const CarouselContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
16
- declare const CarouselItem: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
17
- declare const CarouselIndicator: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
18
- index: number;
19
- } & React.RefAttributes<HTMLButtonElement>>;
20
- declare const CarouselPrevious: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
21
- declare const CarouselNext: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
22
- export { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselIndicator, CarouselPrevious, CarouselNext, };
@@ -1,8 +0,0 @@
1
- import { ReactNode, FC } from 'react';
2
-
3
- interface CustomTooltipProps {
4
- content: ReactNode;
5
- children: ReactNode;
6
- }
7
- declare const CustomTooltip: FC<CustomTooltipProps>;
8
- export default CustomTooltip;
@@ -1,12 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export declare const DropdownCategoryTitle: ({ children, }: {
4
- children: React.ReactNode;
5
- }) => import("react/jsx-runtime").JSX.Element;
6
- export declare const DropdownButton: ({ children, isActive, onClick, disabled, className, }: {
7
- children: React.ReactNode;
8
- isActive?: boolean;
9
- onClick?: () => void;
10
- disabled?: boolean;
11
- className?: string;
12
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1 +0,0 @@
1
- export declare const Spinner: () => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +0,0 @@
1
- import { HTMLProps } from 'react';
2
-
3
- export type SurfaceProps = HTMLProps<HTMLDivElement> & {
4
- withShadow?: boolean;
5
- withBorder?: boolean;
6
- };
7
- export declare const Surface: import('react').ForwardRefExoticComponent<Omit<SurfaceProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,9 +0,0 @@
1
- declare const ToolbarButton: import('react').ForwardRefExoticComponent<{
2
- icon: string;
3
- isActive: boolean;
4
- onClick: () => void;
5
- tooltip?: string;
6
- classNames?: string;
7
- disabled?: boolean;
8
- } & import('react').RefAttributes<HTMLButtonElement>>;
9
- export default ToolbarButton;
@@ -1,13 +0,0 @@
1
- import { HTMLProps } from 'react';
2
-
3
- export type ToolbarWrapperProps = {
4
- shouldShowContent?: boolean;
5
- isVertical?: boolean;
6
- } & HTMLProps<HTMLDivElement>;
7
- export type ToolbarDividerProps = {
8
- horizontal?: boolean;
9
- } & HTMLProps<HTMLDivElement>;
10
- export declare const Toolbar: {
11
- Wrapper: import('react').ForwardRefExoticComponent<Omit<ToolbarWrapperProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
12
- Divider: import('react').ForwardRefExoticComponent<Omit<ToolbarDividerProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
13
- };
@@ -1,19 +0,0 @@
1
- import { default as React } from 'react';
2
- import { Editor as CoreEditor } from '@tiptap/core';
3
- import { Editor } from '@tiptap/react';
4
- import { EditorState } from '@tiptap/pm/state';
5
- import { EditorView } from '@tiptap/pm/view';
6
-
7
- export interface MenuProps {
8
- editor: Editor;
9
- appendTo?: React.RefObject<any>;
10
- shouldHide?: boolean;
11
- }
12
- export interface ShouldShowProps {
13
- editor?: CoreEditor;
14
- view: EditorView;
15
- state?: EditorState;
16
- oldState?: EditorState;
17
- from?: number;
18
- to?: number;
19
- }
@@ -1,14 +0,0 @@
1
- import { Editor } from '@tiptap/core';
2
- import { Dispatch, FC, SetStateAction } from 'react';
3
-
4
- export interface BubbleColorMenuItem {
5
- name: string;
6
- color: string;
7
- }
8
- interface ColorSelectorProps {
9
- editor: Editor;
10
- isOpen: boolean;
11
- setIsOpen: Dispatch<SetStateAction<boolean>>;
12
- }
13
- export declare const ColorSelector: FC<ColorSelectorProps>;
14
- export {};
@@ -1,11 +0,0 @@
1
- import { BubbleMenuProps } from '@tiptap/react';
2
-
3
- export interface BubbleMenuItem {
4
- name: string;
5
- isActive: () => boolean;
6
- command: () => void;
7
- icon: any;
8
- }
9
- type EditorBubbleMenuProps = Omit<BubbleMenuProps, 'children'>;
10
- export declare const EditorBubbleMenu: (props: EditorBubbleMenuProps) => import("react/jsx-runtime").JSX.Element;
11
- export {};
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- import { Editor } from '@tiptap/react';
3
-
4
- declare const TiptapToolBar: ({ editor, onError, isNavbarVisible, setIsNavbarVisible, }: {
5
- editor: Editor;
6
- onError?: (errorString: string) => void;
7
- isNavbarVisible: boolean;
8
- setIsNavbarVisible: React.Dispatch<React.SetStateAction<boolean>>;
9
- }) => import("react/jsx-runtime").JSX.Element;
10
- export default TiptapToolBar;
@@ -1,84 +0,0 @@
1
- import { default as React, Dispatch, SetStateAction } from 'react';
2
- import { IEditorTool } from '../hooks/use-visibility';
3
- import { Editor } from '@tiptap/react';
4
-
5
- interface IEditorToolElement {
6
- icon: any;
7
- title: string;
8
- onClick: () => void;
9
- isActive: boolean;
10
- }
11
- export declare const fonts: {
12
- title: string;
13
- value: string;
14
- command: (editor: Editor) => void;
15
- }[];
16
- export declare const MAX_IMAGE_SIZE: number;
17
- export declare const ERR_MSG_MAP: {
18
- IMAGE_SIZE: string;
19
- };
20
- export declare const useEditorToolbar: ({ editor, onError, }: {
21
- editor: Editor;
22
- onError?: (errorString: string) => void;
23
- }) => {
24
- undoRedoTools: (IEditorToolElement | null)[];
25
- toolbar: (IEditorToolElement | null)[];
26
- markdownOptions: (IEditorToolElement | null)[];
27
- bottomToolbar: (IEditorToolElement | null)[];
28
- toolRef: React.RefObject<HTMLDivElement>;
29
- toolVisibility: IEditorTool;
30
- setToolVisibility: React.Dispatch<React.SetStateAction<IEditorTool>>;
31
- isExportModalOpen: boolean;
32
- setIsExportModalOpen: React.Dispatch<React.SetStateAction<boolean>>;
33
- };
34
- export declare const TextHighlighter: ({ editor, setVisibility, elementRef, }: {
35
- editor: Editor;
36
- elementRef: React.RefObject<HTMLDivElement>;
37
- setVisibility: Dispatch<SetStateAction<IEditorTool>>;
38
- }) => import("react/jsx-runtime").JSX.Element;
39
- export declare const EditorFontFamily: ({ elementRef, editor, setToolVisibility, }: {
40
- elementRef: React.RefObject<HTMLDivElement>;
41
- editor: Editor;
42
- setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
43
- }) => import("react/jsx-runtime").JSX.Element;
44
- export declare const EditorAlignment: ({ elementRef, editor, setToolVisibility, }: {
45
- elementRef: React.RefObject<HTMLDivElement>;
46
- editor: Editor;
47
- setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
48
- }) => import("react/jsx-runtime").JSX.Element;
49
- export declare const EditorList: ({ elementRef, editor, setToolVisibility, }: {
50
- elementRef: React.RefObject<HTMLDivElement>;
51
- editor: Editor;
52
- setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
53
- }) => import("react/jsx-runtime").JSX.Element;
54
- export declare const LinkPopup: ({ elementRef, editor, setToolVisibility, bubbleMenu, setIsLinkPopupOpen, onError, }: {
55
- elementRef: React.RefObject<HTMLDivElement>;
56
- editor: Editor;
57
- setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
58
- bubbleMenu?: boolean;
59
- setIsLinkPopupOpen?: Dispatch<SetStateAction<boolean>>;
60
- onError?: (errorString: string) => void;
61
- }) => import("react/jsx-runtime").JSX.Element;
62
- export declare const ScriptsPopup: ({ elementRef, editor, setToolVisibility, }: {
63
- elementRef: React.RefObject<HTMLDivElement>;
64
- editor: Editor;
65
- setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
66
- }) => import("react/jsx-runtime").JSX.Element;
67
- export declare const TextColor: ({ editor, setVisibility, elementRef, }: {
68
- editor: Editor;
69
- elementRef: React.RefObject<HTMLDivElement>;
70
- setVisibility: Dispatch<SetStateAction<IEditorTool>>;
71
- }) => import("react/jsx-runtime").JSX.Element;
72
- export declare const TextHeading: ({ editor, setVisibility, elementRef, }: {
73
- editor: Editor;
74
- elementRef: React.RefObject<HTMLDivElement>;
75
- setVisibility: Dispatch<SetStateAction<IEditorTool>>;
76
- }) => import("react/jsx-runtime").JSX.Element;
77
- export declare const TextFormatingPopup: ({ editor, setToolVisibility, }: {
78
- editor: Editor;
79
- setToolVisibility: Dispatch<SetStateAction<IEditorTool>>;
80
- }) => import("react/jsx-runtime").JSX.Element;
81
- export declare const TextColorPicker: ({ editor }: {
82
- editor: Editor;
83
- }) => import("react/jsx-runtime").JSX.Element;
84
- export {};
@@ -1,10 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
-
3
- declare const MobileToolbar: ({ editor, onError, isKeyboardVisible, isNavbarVisible, setIsNavbarVisible, }: {
4
- editor: Editor;
5
- onError?: (errorString: string) => void;
6
- isKeyboardVisible: boolean;
7
- isNavbarVisible: boolean;
8
- setIsNavbarVisible: React.Dispatch<React.SetStateAction<boolean>>;
9
- }) => import("react/jsx-runtime").JSX.Element;
10
- export default MobileToolbar;
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
- import { Editor } from '@tiptap/core';
3
-
4
- interface NodeSelectorProps {
5
- editor: Editor;
6
- elementRef: React.RefObject<HTMLDivElement>;
7
- }
8
- export declare const NodeSelector: ({ editor, elementRef }: NodeSelectorProps) => import("react/jsx-runtime").JSX.Element;
9
- export {};
@@ -1,5 +0,0 @@
1
- import { Extension } from '@tiptap/core';
2
-
3
- export declare const updateScrollView: (container: HTMLElement, item: HTMLElement) => void;
4
- declare const SlashCommand: (onError?: (errorString: string) => void) => Extension<any, any>;
5
- export default SlashCommand;
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- interface UtilsModalProps {
4
- title: string;
5
- content: React.ReactNode;
6
- contentClassName?: string;
7
- }
8
- declare const UtilsModal: ({ title, content, contentClassName }: UtilsModalProps) => import("react/jsx-runtime").JSX.Element;
9
- export default UtilsModal;
@@ -1,4 +0,0 @@
1
- import { DdocProps } from './types';
2
-
3
- declare const DdocEditor: import('react').ForwardRefExoticComponent<DdocProps & import('react').RefAttributes<unknown>>;
4
- export default DdocEditor;
@@ -1,3 +0,0 @@
1
- import { NodeViewProps } from '@tiptap/core';
2
-
3
- export declare const ActionButtonNodeView: ({ node, editor, getPos, }: NodeViewProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,16 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
-
3
- declare module '@tiptap/core' {
4
- interface Commands<ReturnType> {
5
- actionButton: {
6
- /**
7
- * Toggle a actionButton
8
- */
9
- setActionButton: (option?: string) => ReturnType;
10
- };
11
- }
12
- }
13
- export interface ActionButtonOptions {
14
- HTMLAttributes: Record<string, any>;
15
- }
16
- export declare const actionButton: Node<ActionButtonOptions, any>;
@@ -1 +0,0 @@
1
- export * from './action-button';
@@ -1,8 +0,0 @@
1
- import { Editor } from '@tiptap/core';
2
- import { Dispatch, SetStateAction } from 'react';
3
-
4
- export declare const Modal: ({ editor, setShowModal, node, }: {
5
- editor?: Editor;
6
- setShowModal: Dispatch<SetStateAction<boolean>>;
7
- node: any;
8
- }) => import("react/jsx-runtime").JSX.Element;
@@ -1,14 +0,0 @@
1
- import { Extension } from '@tiptap/core';
2
-
3
- declare module '@tiptap/core' {
4
- interface Commands<ReturnType> {
5
- customkeymap: {
6
- /**
7
- * Select text between node boundaries
8
- */
9
- selectTextWithinNodeBoundaries: () => ReturnType;
10
- };
11
- }
12
- }
13
- declare const CustomKeymap: Extension<any, any>;
14
- export default CustomKeymap;
@@ -1,4 +0,0 @@
1
- import { default as React } from 'react';
2
- import { NodeViewProps } from '@tiptap/react';
3
-
4
- export declare const DBlockNodeView: React.FC<NodeViewProps>;
@@ -1,13 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
-
3
- export interface DBlockOptions {
4
- HTMLAttributes: Record<string, any>;
5
- }
6
- declare module '@tiptap/core' {
7
- interface Commands<ReturnType> {
8
- dBlock: {
9
- setDBlock: (position?: number) => ReturnType;
10
- };
11
- }
12
- }
13
- export declare const DBlock: Node<DBlockOptions, any>;
@@ -1 +0,0 @@
1
- export * from './dblock';
@@ -1,5 +0,0 @@
1
- import { NodeType } from '@tiptap/pm/model';
2
- import { InputRule } from '@tiptap/core';
3
-
4
- export declare const defaultExtensions: (import('@tiptap/core').Node<any, any> | import('@tiptap/core').Extension<any, any> | import('@tiptap/core').Mark<any, any>)[];
5
- export declare const createInputRule: (pattern: RegExp, data: string, type: NodeType) => InputRule;
@@ -1,3 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
-
3
- export declare const Document: Node<any, any>;
@@ -1,2 +0,0 @@
1
- export declare const Document: import('@tiptap/core').Node<any, any>;
2
- export default Document;
@@ -1 +0,0 @@
1
- export * from './document';
@@ -1,4 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
-
3
- export declare const Footnote: Node<any, any>;
4
- export declare const FootnoteRef: Node<any, any>;
@@ -1,2 +0,0 @@
1
- export declare const HorizontalRule: import('@tiptap/core').Node<import('@tiptap/extension-horizontal-rule').HorizontalRuleOptions, any>;
2
- export default HorizontalRule;
@@ -1,27 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
-
3
- export interface IframeOptions {
4
- allowFullscreen: boolean;
5
- HTMLAttributes: {
6
- [key: string]: any;
7
- };
8
- width?: number;
9
- height?: number;
10
- }
11
- declare module '@tiptap/core' {
12
- interface Commands<ReturnType> {
13
- iframe: {
14
- /**
15
- * Add an iframe
16
- */
17
- setIframe: (options: {
18
- src: string;
19
- alt?: string;
20
- title?: string;
21
- width?: number;
22
- height?: number;
23
- }) => ReturnType;
24
- };
25
- }
26
- }
27
- export declare const Iframe: Node<IframeOptions, any>;
@@ -1 +0,0 @@
1
- export * from './iframe';
@@ -1,14 +0,0 @@
1
- import { Extension, Command } from '@tiptap/core';
2
-
3
- declare module '@tiptap/core' {
4
- interface Commands {
5
- uploadMarkdownFile: {
6
- uploadMarkdownFile: () => Command;
7
- };
8
- exportMarkdownFile: {
9
- exportMarkdownFile: () => any;
10
- };
11
- }
12
- }
13
- declare const MarkdownPasteHandler: Extension<any, any>;
14
- export default MarkdownPasteHandler;
@@ -1,17 +0,0 @@
1
- import { ResolvedPos, Node } from 'prosemirror-model';
2
- import { Selection } from 'prosemirror-state';
3
-
4
- export declare class ColumnSelection extends Selection {
5
- constructor(selection: Selection);
6
- _$from: ResolvedPos;
7
- _$to: ResolvedPos;
8
- get $from(): ResolvedPos;
9
- get $to(): ResolvedPos;
10
- map(): this;
11
- content(): import('prosemirror-model').Slice;
12
- eq(other: Selection): boolean;
13
- toJSON(): any;
14
- expandSelection(doc: Node): void;
15
- static create(doc: Node, from: number, to: number): ColumnSelection;
16
- getFirstNode(): Node | null;
17
- }
@@ -1,4 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
-
3
- export declare const Column: Node<any, any>;
4
- export default Column;
@@ -1,18 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
-
3
- export declare enum ColumnLayout {
4
- AlignLeft = "align-left",
5
- AlignRight = "align-right",
6
- AlignCenter = "align-center"
7
- }
8
- declare module '@tiptap/core' {
9
- interface Commands<ReturnType> {
10
- columns: {
11
- unsetColumns: () => ReturnType;
12
- setColumns: (columns: number) => ReturnType;
13
- setLayout: (layout: ColumnLayout) => ReturnType;
14
- };
15
- }
16
- }
17
- export declare const Columns: Node<any, any>;
18
- export default Columns;
@@ -1,11 +0,0 @@
1
- import { Extension } from '@tiptap/core';
2
- import { Column } from './column';
3
- import { Columns } from './columns';
4
-
5
- export interface ColumnExtensionOptions {
6
- column?: boolean;
7
- columns?: boolean;
8
- }
9
- export declare const ColumnExtension: Extension<ColumnExtensionOptions, any>;
10
- export { Column, Columns };
11
- export default ColumnExtension;
@@ -1,4 +0,0 @@
1
- import { MenuProps } from '../../../common/types';
2
-
3
- export declare const ColumnsMenu: ({ editor, appendTo }: MenuProps) => import("react/jsx-runtime").JSX.Element;
4
- export default ColumnsMenu;
@@ -1 +0,0 @@
1
- export * from './columns-menu';
@@ -1,22 +0,0 @@
1
- import { JSONContent } from '@tiptap/core';
2
- import { Node, ResolvedPos } from 'prosemirror-model';
3
-
4
- export declare const buildNode: ({ type, content }: JSONContent) => JSONContent;
5
- export declare const buildParagraph: ({ content }: Partial<JSONContent>) => JSONContent;
6
- export declare const buildDBlock: ({ content }: Partial<JSONContent>) => JSONContent;
7
- export declare const buildColumn: ({ content }: Partial<JSONContent>) => JSONContent;
8
- export declare const buildColumnBlock: ({ content }: Partial<JSONContent>) => JSONContent;
9
- export declare const buildNColumns: (n: number) => JSONContent[];
10
- interface PredicateProps {
11
- node: Node;
12
- pos: number;
13
- start: number;
14
- }
15
- export type Predicate = (props: PredicateProps) => boolean;
16
- export declare const findParentNodeClosestToPos: ($pos: ResolvedPos, predicate: Predicate) => {
17
- start: number;
18
- depth: number;
19
- node: Node;
20
- pos: number;
21
- };
22
- export {};
@@ -1 +0,0 @@
1
- export * from './resizable-media';
@@ -1 +0,0 @@
1
- export * from './media-paste-drop-plugin';
@@ -1,12 +0,0 @@
1
- import { Plugin } from 'prosemirror-state';
2
-
3
- export type UploadFnType = (image: File) => Promise<string>;
4
- /**
5
- * This function creates a Prosemirror plugin that handles pasting and dropping of media files.
6
- * It accepts an upload function as a parameter which is used to upload the media files.
7
- * The plugin prevents the default paste and drop event, uploads the media file (if an upload function is provided),
8
- * creates a new node with the uploaded media file and replaces the current selection with the new node.
9
- * If no upload function is provided, it reads the media file as DataURL and uses this in the new node.
10
- * The function returns a new instance of the Plugin.
11
- */
12
- export declare const getMediaPasteDropPlugin: (upload: UploadFnType) => Plugin<any>;
@@ -1,16 +0,0 @@
1
- import { Attrs } from '@tiptap/pm/model';
2
-
3
- interface ResizableMediaAttributes {
4
- dataAlign: string;
5
- dataFloat: null | string;
6
- }
7
- type Action = (updateAttributes: (o: ResizableMediaAttributes) => void) => void;
8
- interface ResizableMediaAction {
9
- tooltip: string;
10
- icon?: string;
11
- action?: Action;
12
- isActive?: (attrs: Attrs) => boolean;
13
- delete?: (d: () => void) => void;
14
- }
15
- export declare const resizableMediaActions: ResizableMediaAction[];
16
- export {};
@@ -1,3 +0,0 @@
1
- import { NodeViewProps } from '@tiptap/react';
2
-
3
- export declare const ResizableMediaNodeView: ({ node, updateAttributes, deleteNode, }: NodeViewProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,27 +0,0 @@
1
- import { Node } from '@tiptap/core';
2
- import { UploadFnType } from './media-paste-drop-plugin';
3
-
4
- declare module '@tiptap/core' {
5
- interface Commands<ReturnType> {
6
- resizableMedia: {
7
- /**
8
- * Set media
9
- */
10
- setMedia: (options: {
11
- 'media-type': 'img' | 'video';
12
- src: string;
13
- alt?: string;
14
- title?: string;
15
- width?: string;
16
- height?: string;
17
- }) => ReturnType;
18
- };
19
- }
20
- }
21
- export interface MediaOptions {
22
- HTMLAttributes: Record<string, any>;
23
- uploadFn: UploadFnType;
24
- }
25
- export declare const IMAGE_INPUT_REGEX: RegExp;
26
- export declare const VIDEO_INPUT_REGEX: RegExp;
27
- export declare const ResizableMedia: Node<MediaOptions, any>;
@@ -1,5 +0,0 @@
1
- import { Table } from './table';
2
-
3
- export * from './table';
4
- export * from './utilities/create-table';
5
- export default Table;
@@ -1,18 +0,0 @@
1
- import { Node as ProseMirrorNode } from 'prosemirror-model';
2
- import { NodeView } from 'prosemirror-view';
3
-
4
- export declare function updateColumns(node: ProseMirrorNode, colgroup: Element, table: HTMLTableElement, cellMinWidth: number, overrideCol?: number, overrideValue?: string): void;
5
- export declare class TableView implements NodeView {
6
- node: ProseMirrorNode;
7
- cellMinWidth: number;
8
- dom: Element;
9
- table: HTMLTableElement;
10
- colgroup: Element;
11
- contentDOM: HTMLElement;
12
- constructor(node: ProseMirrorNode, cellMinWidth: number);
13
- update(node: ProseMirrorNode): boolean;
14
- ignoreMutation(mutation: MutationRecord | {
15
- type: 'selection';
16
- target: Element;
17
- }): boolean;
18
- }