@zjlab-fe/data-hub-ui 0.22.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/es/components/FileUploader/FileUploadModal.js +0 -1
  2. package/es/components/FileUploader/FileUploaderImpl/FileUploaderFileReceiver.js +0 -1
  3. package/es/components/FileUploader/index.js +0 -3
  4. package/es/components/confirm-again/index.js +0 -1
  5. package/es/components/feature-card/index.js +0 -1
  6. package/es/components/file-uploader/components/circle-progress.js +0 -1
  7. package/es/components/file-uploader/components/uploader-drop-zone.js +0 -2
  8. package/es/components/file-uploader/components/uploader-file-item.js +0 -2
  9. package/es/components/file-uploader/components/uploader-file-list.js +0 -2
  10. package/es/components/file-uploader/components/uploader.js +0 -2
  11. package/es/components/file-uploader/components/uploading-status.js +0 -1
  12. package/es/components/floating-layer/index.js +0 -1
  13. package/es/components/notion-editor/index.js +0 -1
  14. package/es/components/radio-card/index.js +0 -1
  15. package/es/components/section-heading/index.js +0 -1
  16. package/es/components/uploadDrawer/index.js +0 -1
  17. package/es/index.js +0 -2
  18. package/lib/index.js +1 -1
  19. package/package.json +181 -164
  20. package/dist/types/components/FileUploader/FileUploaderContextProvider.d.ts +0 -9
  21. package/dist/types/components/FileUploader/FileUploaderFileDragger.d.ts +0 -11
  22. package/dist/types/components/FileUploader/FileUploaderFileDraggerDragAreaDescription.d.ts +0 -4
  23. package/dist/types/components/FileUploader/FileUploaderList.d.ts +0 -1
  24. package/dist/types/components/FileUploader/FileUploaderListItem.d.ts +0 -26
  25. package/dist/types/components/FileUploader/FileUploaderListItemFail.d.ts +0 -5
  26. package/dist/types/components/FileUploader/FileUploaderListItemPaused.d.ts +0 -5
  27. package/dist/types/components/FileUploader/FileUploaderListItemUploading.d.ts +0 -2
  28. package/dist/types/components/FileUploader/FileUploaderMain.d.ts +0 -7
  29. package/dist/types/components/FileUploader/FileUploaderlListItemFinished.d.ts +0 -5
  30. package/dist/types/components/FileUploader/UploadStoreProvider.d.ts +0 -41
  31. package/dist/types/components/FileUploader/hooks/useCheckForDuplicates.d.ts +0 -1
  32. package/dist/types/components/FileUploader/hooks/useCurrentFIleOnInit.d.ts +0 -5
  33. package/dist/types/components/FileUploader/hooks/useCurrentFileOnAllUploaded.d.ts +0 -1
  34. package/dist/types/components/FileUploader/hooks/useCurrentFileOnCancel.d.ts +0 -2
  35. package/dist/types/components/FileUploader/hooks/useCurrentFileOnFail.d.ts +0 -2
  36. package/dist/types/components/FileUploader/hooks/useCurrentFileOnFinished.d.ts +0 -2
  37. package/dist/types/components/FileUploader/hooks/useFileDragAndDrop.d.ts +0 -9
  38. package/dist/types/components/FileUploader/hooks/useRemoveFilesInUploadQueue.d.ts +0 -1
  39. package/dist/types/components/FileUploader/hooks/useResumeUnfinishedUploads.d.ts +0 -1
  40. package/dist/types/components/FileUploader/hooks/useSaveUnfinishedUploads.d.ts +0 -11
  41. package/dist/types/components/FileUploader/hooks/useTranslate.d.ts +0 -1
  42. package/dist/types/components/FileUploader/hooks/useUploadContext.d.ts +0 -26
  43. package/dist/types/components/FileUploader/hooks/useWathUploadQueueAndSetupCurrentFile.d.ts +0 -1
  44. package/dist/types/components/FileUploader/translations.d.ts +0 -4
  45. package/dist/types/components/file-uploader/hooks/use-upload-batch.d.ts +0 -36
  46. package/dist/types/components/file-uploader/hooks/use-upload-control.d.ts +0 -37
  47. package/dist/types/components/file-uploader/hooks/use-upload-files.d.ts +0 -40
  48. package/dist/types/components/file-uploader/hooks/use-upload-operations.d.ts +0 -43
  49. package/dist/types/components/tip-tap/actions/BoldItalicStrikeUnderline.d.ts +0 -4
  50. package/dist/types/components/tip-tap/actions/CodeQuoteHorizontalRule.d.ts +0 -4
  51. package/dist/types/components/tip-tap/actions/Image.d.ts +0 -4
  52. package/dist/types/components/tip-tap/actions/Link.d.ts +0 -5
  53. package/dist/types/components/tip-tap/actions/LinkModifier.d.ts +0 -4
  54. package/dist/types/components/tip-tap/actions/List.d.ts +0 -4
  55. package/dist/types/components/tip-tap/actions/ParagraphHeadings.d.ts +0 -13
  56. package/dist/types/components/tip-tap/actions/Table.d.ts +0 -4
  57. package/dist/types/components/tip-tap/actions/TextAligment.d.ts +0 -4
  58. package/dist/types/components/tip-tap/actions/UndoRedo.d.ts +0 -4
  59. package/dist/types/components/tip-tap/actions/action-image.d.ts +0 -4
  60. package/dist/types/components/tip-tap/actions/action-link.d.ts +0 -5
  61. package/dist/types/components/tip-tap/actions/action-list.d.ts +0 -4
  62. package/dist/types/components/tip-tap/actions/action-table.d.ts +0 -4
  63. package/dist/types/components/tip-tap/actions/bold-italic-strike-underline.d.ts +0 -4
  64. package/dist/types/components/tip-tap/actions/code-quote-horizontalRule.d.ts +0 -4
  65. package/dist/types/components/tip-tap/actions/highlight-textcolor-fontsize.d.ts +0 -4
  66. package/dist/types/components/tip-tap/actions/link-modifier.d.ts +0 -4
  67. package/dist/types/components/tip-tap/actions/paragraph-headings.d.ts +0 -13
  68. package/dist/types/components/tip-tap/actions/text-aligment.d.ts +0 -4
  69. package/dist/types/components/tip-tap/actions/undo-redo.d.ts +0 -4
  70. package/dist/types/components/tip-tap/extensions/DropHandler.d.ts +0 -2
  71. package/dist/types/components/tip-tap/extensions/FontSize.d.ts +0 -20
  72. package/dist/types/components/tip-tap/extensions/PatseHandler.d.ts +0 -3
  73. package/dist/types/components/tip-tap/extensions/drop-handler.d.ts +0 -2
  74. package/dist/types/components/tip-tap/extensions/font-size.d.ts +0 -20
  75. package/dist/types/components/tip-tap/extensions/patse-handler.d.ts +0 -3
  76. package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextCenter.d.ts +0 -3
  77. package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextJustify.d.ts +0 -3
  78. package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextLeft.d.ts +0 -3
  79. package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextRight.d.ts +0 -3
  80. package/dist/types/components/tip-tap/icons/MaterialSymbolsAddLink.d.ts +0 -3
  81. package/dist/types/components/tip-tap/icons/MaterialSymbolsAddPhotoAlternateOutline.d.ts +0 -3
  82. package/dist/types/components/tip-tap/icons/MaterialSymbolsCode.d.ts +0 -3
  83. package/dist/types/components/tip-tap/icons/MaterialSymbolsEditOutline.d.ts +0 -3
  84. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatColorText.d.ts +0 -3
  85. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH1.d.ts +0 -3
  86. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH2.d.ts +0 -3
  87. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH3.d.ts +0 -3
  88. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH4.d.ts +0 -3
  89. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH5.d.ts +0 -3
  90. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH6.d.ts +0 -3
  91. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatInkHighlighterOutlineSharp.d.ts +0 -3
  92. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatListBulleted.d.ts +0 -3
  93. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatListNumbered.d.ts +0 -3
  94. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatParagraph.d.ts +0 -3
  95. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatQuote.d.ts +0 -3
  96. package/dist/types/components/tip-tap/icons/MaterialSymbolsHorizontalRule.d.ts +0 -3
  97. package/dist/types/components/tip-tap/icons/MaterialSymbolsLinkOff.d.ts +0 -3
  98. package/dist/types/components/tip-tap/icons/MaterialSymbolsRedo.d.ts +0 -3
  99. package/dist/types/components/tip-tap/icons/MaterialSymbolsTable.d.ts +0 -3
  100. package/dist/types/components/tip-tap/icons/MaterialSymbolsUndo.d.ts +0 -3
  101. package/dist/types/components/tip-tap/icons/MdiCodeBlockTags.d.ts +0 -3
  102. package/dist/types/components/tip-tap/icons/MdiFormatBold.d.ts +0 -3
  103. package/dist/types/components/tip-tap/icons/MdiFormatItalic.d.ts +0 -3
  104. package/dist/types/components/tip-tap/icons/MdiFormatStrikethroughVariant.d.ts +0 -3
  105. package/dist/types/components/tip-tap/icons/MdiFormatUnderline.d.ts +0 -3
  106. package/dist/types/components/tip-tap/menus/BubbleMenu.d.ts +0 -7
  107. package/dist/types/components/tip-tap/menus/FixedMenu.d.ts +0 -9
  108. package/dist/types/components/tip-tap/menus/LinkFloatingMenu.d.ts +0 -6
  109. package/dist/types/components/tip-tap/menus/ParagraphFloatingMenu.d.ts +0 -6
  110. package/dist/types/components/tip-tap/menus/bubble-menu.d.ts +0 -7
  111. package/dist/types/components/tip-tap/menus/fixed-menu.d.ts +0 -9
  112. package/dist/types/components/tip-tap/menus/link-floating-menu.d.ts +0 -6
  113. package/dist/types/components/tip-tap/menus/paragraph-floating-menu.d.ts +0 -6
  114. package/dist/types/components/tip-tap/the-editor.d.ts +0 -4
  115. package/dist/types/components/tip-tap/utils/add-image-to-editor.d.ts +0 -2
  116. package/dist/types/components/tip-tap/utils/addImageToEditor.d.ts +0 -2
  117. package/dist/types/components/tip-tap/utils/markdown-detector.d.ts +0 -33
  118. package/dist/types/components/tip-tap/utils/parse-markdown.d.ts +0 -2
  119. package/dist/types/components/tip-tap/utils/parseMarkDown.d.ts +0 -2
  120. package/dist/types/components/tip-tap-2/demo/index.d.ts +0 -1
  121. package/dist/types/components/tip-tap-2/index.d.ts +0 -26
  122. package/dist/types/demo/layout/index.d.ts +0 -2
@@ -1,36 +0,0 @@
1
- /**
2
- * Hook for batch upload operations.
3
- *
4
- * Provides:
5
- * - Start all pending files
6
- * - Pause all uploading files
7
- * - Resume all paused files
8
- * - Cancel all uploads
9
- *
10
- * Use this hook when you need bulk control over multiple files.
11
- *
12
- * @example
13
- * ```tsx
14
- * function BatchControls() {
15
- * const { startAll, pauseAll, cancelAll } = useUploadBatch();
16
- *
17
- * return (
18
- * <div>
19
- * <button onClick={startAll}>Start All</button>
20
- * <button onClick={pauseAll}>Pause All</button>
21
- * <button onClick={cancelAll}>Cancel All</button>
22
- * </div>
23
- * );
24
- * }
25
- * ```
26
- */
27
- export declare function useUploadBatch(): {
28
- /** Start all pending files */
29
- startAll: () => Promise<void>;
30
- /** Pause all uploading files */
31
- pauseAll: () => void;
32
- /** Resume all paused files */
33
- resumeAll: () => Promise<void>;
34
- /** Cancel all uploads */
35
- cancelAll: () => void;
36
- };
@@ -1,37 +0,0 @@
1
- /**
2
- * Hook for single file upload controls.
3
- *
4
- * Provides:
5
- * - Start a pending file
6
- * - Pause an uploading file
7
- * - Resume a paused file
8
- * - Cancel an upload
9
- *
10
- * Use this hook when you only need to control individual file uploads.
11
- *
12
- * @example
13
- * ```tsx
14
- * function FileControlButtons({ fileId, status }: { fileId: string; status: string }) {
15
- * const { start, pause, resume, cancel } = useUploadControl();
16
- *
17
- * return (
18
- * <div>
19
- * {status === 'pending' && <button onClick={() => start(fileId)}>Start</button>}
20
- * {status === 'uploading' && <button onClick={() => pause(fileId)}>Pause</button>}
21
- * {status === 'paused' && <button onClick={() => resume(fileId)}>Resume</button>}
22
- * <button onClick={() => cancel(fileId)}>Cancel</button>
23
- * </div>
24
- * );
25
- * }
26
- * ```
27
- */
28
- export declare function useUploadControl(): {
29
- /** Start uploading a pending file */
30
- start: (id: string) => Promise<void>;
31
- /** Pause an uploading file */
32
- pause: (id: string) => void;
33
- /** Resume a paused file */
34
- resume: (id: string) => Promise<void>;
35
- /** Cancel a file upload */
36
- cancel: (id: string) => Promise<void>;
37
- };
@@ -1,40 +0,0 @@
1
- import type { UploadFile } from '../types';
2
- /**
3
- * Hook for accessing upload file state and filtered lists.
4
- *
5
- * Provides:
6
- * - All files in the upload queue
7
- * - Filtered lists by status (pending, uploading, completed, failed, paused)
8
- * - File lookup by ID
9
- *
10
- * Use this hook when you only need to display/read file data without controlling uploads.
11
- *
12
- * @example
13
- * ```tsx
14
- * function FileList() {
15
- * const { files, pendingFiles, completedFiles } = useUploadFiles();
16
- * return (
17
- * <div>
18
- * <h3>Pending: {pendingFiles.length}</h3>
19
- * <ul>{files.map(f => <li key={f.id}>{f.fileName}</li>)}</ul>
20
- * </div>
21
- * );
22
- * }
23
- * ```
24
- */
25
- export declare function useUploadFiles(): {
26
- /** All files in the upload queue */
27
- files: UploadFile[];
28
- /** Get a specific file by ID */
29
- getFileById: (id: string) => UploadFile | undefined;
30
- /** Files waiting to be uploaded */
31
- pendingFiles: UploadFile[];
32
- /** Files currently uploading */
33
- uploadingFiles: UploadFile[];
34
- /** Successfully completed uploads */
35
- completedFiles: UploadFile[];
36
- /** Failed uploads */
37
- failedFiles: UploadFile[];
38
- /** Paused uploads */
39
- pausedFiles: UploadFile[];
40
- };
@@ -1,43 +0,0 @@
1
- import type { UploadFile, AddFilesOptions } from '../types';
2
- /**
3
- * Hook for file management operations.
4
- *
5
- * Provides:
6
- * - Adding files to the upload queue
7
- * - Removing individual files
8
- * - Clearing completed/all files
9
- *
10
- * Use this hook when you need to manage the file queue without upload controls.
11
- *
12
- * @example
13
- * ```tsx
14
- * function FileInput({ datasetId }: { datasetId: string }) {
15
- * const { addFiles } = useUploadOperations();
16
- *
17
- * return (
18
- * <input
19
- * type="file"
20
- * onChange={(e) =>
21
- * addFiles(e.target.files, {
22
- * getHandlers: (file) => ({
23
- * onGetUploadUrls: (fileName, partCount) =>
24
- * api.getUploadUrls(datasetId, fileName, partCount),
25
- * // ... other handlers
26
- * }),
27
- * })
28
- * }
29
- * />
30
- * );
31
- * }
32
- * ```
33
- */
34
- export declare function useUploadOperations(): {
35
- /** Add files to the upload queue */
36
- addFiles: (files: FileList | File[], addOptions: AddFilesOptions, runtime?: unknown) => UploadFile[] | undefined;
37
- /** Remove a file from the queue */
38
- removeFile: (id: string) => Promise<void>;
39
- /** Clear all completed files */
40
- clearCompleted: () => void;
41
- /** Clear all files */
42
- clearAll: () => void;
43
- };
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function BoldItalicStrikeUnderline({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function CodeQuoteHorizontalRule({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function Image({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function Link({ editor, inline }: {
3
- editor: Editor;
4
- inline?: boolean;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function LinkModifier({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function List({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export declare const ICON_MAP: {
3
- paragraph: import("react/jsx-runtime").JSX.Element;
4
- 1: import("react/jsx-runtime").JSX.Element;
5
- 2: import("react/jsx-runtime").JSX.Element;
6
- 3: import("react/jsx-runtime").JSX.Element;
7
- 4: import("react/jsx-runtime").JSX.Element;
8
- 5: import("react/jsx-runtime").JSX.Element;
9
- 6: import("react/jsx-runtime").JSX.Element;
10
- };
11
- export default function ParagraphHeadings({ editor }: {
12
- editor: Editor;
13
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function Table({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function TextAlignment({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function UndoRedo({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function Image({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function Link({ editor, inline }: {
3
- editor: Editor;
4
- inline?: boolean;
5
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function List({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function Table({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function BoldItalicStrikeUnderline({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function CodeQuoteHorizontalRule({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function HighlightTextColorFontSize({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function LinkModifier({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,13 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export declare const ICON_MAP: {
3
- paragraph: import("react/jsx-runtime").JSX.Element;
4
- 1: import("react/jsx-runtime").JSX.Element;
5
- 2: import("react/jsx-runtime").JSX.Element;
6
- 3: import("react/jsx-runtime").JSX.Element;
7
- 4: import("react/jsx-runtime").JSX.Element;
8
- 5: import("react/jsx-runtime").JSX.Element;
9
- 6: import("react/jsx-runtime").JSX.Element;
10
- };
11
- export default function ParagraphHeadings({ editor }: {
12
- editor: Editor;
13
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function TextAlignment({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,4 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export default function UndoRedo({ editor }: {
3
- editor: Editor;
4
- }): import("react/jsx-runtime").JSX.Element;
@@ -1,2 +0,0 @@
1
- import { Extension } from '@tiptap/react';
2
- export declare const DropHandler: Extension<any, any>;
@@ -1,20 +0,0 @@
1
- import { Extension } from '@tiptap/react';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- fontSize: {
5
- /**
6
- * Set the font size
7
- */
8
- setFontSize: (size: string) => ReturnType;
9
- /**
10
- * Unset the font size
11
- */
12
- unsetFontSize: () => ReturnType;
13
- };
14
- }
15
- }
16
- export interface FontSizeOptions {
17
- types: string[];
18
- defaultFontSize: string;
19
- }
20
- export declare const FontSize: Extension<FontSizeOptions, any>;
@@ -1,3 +0,0 @@
1
- import { Editor, Extension } from '@tiptap/react';
2
- export declare const PasteHandler: Extension<any, any>;
3
- export declare function handleImage(editor: Editor, files: FileList): void;
@@ -1,2 +0,0 @@
1
- import { Extension } from '@tiptap/react';
2
- export declare const DropHandler: Extension<any, any>;
@@ -1,20 +0,0 @@
1
- import { Extension } from '@tiptap/react';
2
- declare module '@tiptap/core' {
3
- interface Commands<ReturnType> {
4
- fontSize: {
5
- /**
6
- * Set the font size
7
- */
8
- setFontSize: (size: string) => ReturnType;
9
- /**
10
- * Unset the font size
11
- */
12
- unsetFontSize: () => ReturnType;
13
- };
14
- }
15
- }
16
- export interface FontSizeOptions {
17
- types: string[];
18
- defaultFontSize: string;
19
- }
20
- export declare const FontSize: Extension<FontSizeOptions, any>;
@@ -1,3 +0,0 @@
1
- import { Editor, Extension } from '@tiptap/react';
2
- export declare const PasteHandler: Extension<any, any>;
3
- export declare function handleImage(editor: Editor, files: FileList): void;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function HumbleiconsAlignTextCenter(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default HumbleiconsAlignTextCenter;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function HumbleiconsAlignTextJustify(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default HumbleiconsAlignTextJustify;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function HumbleiconsAlignTextLeft(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default HumbleiconsAlignTextLeft;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function HumbleiconsAlignTextRight(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default HumbleiconsAlignTextRight;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsAddLink(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsAddLink;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsAddPhotoAlternateOutline(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsAddPhotoAlternateOutline;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsCode(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsCode;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsEditOutline(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsEditOutline;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatColorText(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatColorText;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatH1(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatH1;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatH2(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatH2;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatH3(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatH3;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatH4(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatH4;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatH5(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatH5;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatH6(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatH6;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatInkHighlighterOutlineSharp(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatInkHighlighterOutlineSharp;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatListBulleted(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatListBulleted;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatListNumbered(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatListNumbered;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatParagraph(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatParagraph;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsFormatQuote(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsFormatQuote;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsHorizontalRule(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsHorizontalRule;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsLinkOff(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsLinkOff;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsRedo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsRedo;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsTable(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsTable;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MaterialSymbolsUndo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MaterialSymbolsUndo;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MdiCodeBlockTags(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MdiCodeBlockTags;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MdiFormatBold(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MdiFormatBold;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MdiFormatItalic(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MdiFormatItalic;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MdiFormatStrikethroughVariant(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MdiFormatStrikethroughVariant;
@@ -1,3 +0,0 @@
1
- import { SVGProps } from 'react';
2
- export declare function MdiFormatUnderline(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
- export default MdiFormatUnderline;
@@ -1,7 +0,0 @@
1
- import './BubbleMenu.css';
2
- /**
3
- * 选中文本后显示
4
- */
5
- export default function BubbleMenu({ className }: {
6
- className?: string;
7
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,9 +0,0 @@
1
- /**
2
- * 固定菜单
3
- */
4
- declare const _default: import("react").ForwardRefExoticComponent<{
5
- className?: string;
6
- } & import("react").RefAttributes<{
7
- getContent: () => string;
8
- }>>;
9
- export default _default;
@@ -1,6 +0,0 @@
1
- /**
2
- * 链接修改菜单
3
- */
4
- export default function LinkFloatingMenu({ className }: {
5
- className?: string;
6
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +0,0 @@
1
- /**
2
- * 新段落菜单
3
- */
4
- export default function ParagraphFloatingMenu({ className }: {
5
- className?: string;
6
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,7 +0,0 @@
1
- import './bubble-menu.css';
2
- /**
3
- * 选中文本后显示
4
- */
5
- export default function BubbleMenu({ className }: {
6
- className?: string;
7
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,9 +0,0 @@
1
- /**
2
- * 固定菜单
3
- */
4
- declare const _default: import("react").ForwardRefExoticComponent<{
5
- className?: string;
6
- } & import("react").RefAttributes<{
7
- getContent: () => string;
8
- }>>;
9
- export default _default;
@@ -1,6 +0,0 @@
1
- /**
2
- * 链接修改菜单
3
- */
4
- export default function LinkFloatingMenu({ className }: {
5
- className?: string;
6
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +0,0 @@
1
- /**
2
- * 新段落菜单
3
- */
4
- export default function ParagraphFloatingMenu({ className }: {
5
- className?: string;
6
- }): import("react/jsx-runtime").JSX.Element | null;
@@ -1,4 +0,0 @@
1
- declare const _default: import("react").ForwardRefExoticComponent<import("react").RefAttributes<{
2
- getContent: () => string;
3
- }>>;
4
- export default _default;
@@ -1,2 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export declare function addImageToEditor(editor: Editor, file: File, onAdded?: () => void): boolean;
@@ -1,2 +0,0 @@
1
- import { Editor } from '@tiptap/react';
2
- export declare function addImageToEditor(editor: Editor, file: File, onAdded?: () => void): boolean;