@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,33 +0,0 @@
1
- declare class MarkdownDetector {
2
- private patterns;
3
- /**
4
- * Checks if text is NOT in Markdown format
5
- * @param text - The text to analyze
6
- * @param threshold - Minimum percentage of Markdown patterns needed (0-100)
7
- * @returns true if text is NOT Markdown, false if it likely is Markdown
8
- */
9
- isNotMarkdown(text: string, threshold?: number): boolean;
10
- /**
11
- * Calculates a score (0-100) indicating how much the text looks like Markdown
12
- * @param text - The text to analyze
13
- * @returns Score from 0 (no Markdown) to 100 (heavy Markdown usage)
14
- */
15
- calculateMarkdownScore(text: string): number;
16
- /**
17
- * Get detailed analysis of what Markdown patterns were found
18
- * @param text - The text to analyze
19
- * @returns Object with pattern match counts
20
- */
21
- analyzeMarkdownPatterns(text: string): Record<string, number>;
22
- /**
23
- * Simple boolean check with common Markdown indicators
24
- * @param text - The text to check
25
- * @returns true if text appears to be plain text (not Markdown)
26
- */
27
- isPlainText(text: string): boolean;
28
- }
29
- export declare const markdownDetector: MarkdownDetector;
30
- export declare function isNotMarkdown(text: string, threshold?: number): boolean;
31
- export declare function isPlainText(text: string): boolean;
32
- export declare function getMarkdownScore(text: string): number;
33
- export {};
@@ -1,2 +0,0 @@
1
- export declare const ALREADY_PARSED_TAG = "<!--- this is file is already parsed -->";
2
- export declare function parseMarkDown(content: string): string;
@@ -1,2 +0,0 @@
1
- export declare const ALREADY_PARSED_TAG = "<!--- this is file is already parsed -->";
2
- export declare function parseMarkDown(content: string): string;
@@ -1 +0,0 @@
1
- export default function NotionEditorDemo(): import("react/jsx-runtime").JSX.Element;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- import '@blocknote/core/fonts/inter.css';
3
- import '@blocknote/mantine/style.css';
4
- import './index.scss';
5
- export interface NotionEditorHandle {
6
- getContent: () => string;
7
- getJSON: () => Record<string, unknown>;
8
- setContent: (content: string) => void;
9
- focus: () => void;
10
- isEmpty: () => boolean;
11
- }
12
- interface NotionEditorProps {
13
- content?: string;
14
- placeholder?: string;
15
- editable?: boolean;
16
- className?: string;
17
- onChange?: (html: string) => void;
18
- onImageUpload?: (file: File) => Promise<string>;
19
- onFileUpload?: (file: File) => Promise<{
20
- url: string;
21
- name: string;
22
- size: number;
23
- }>;
24
- }
25
- declare const NotionEditor: React.ForwardRefExoticComponent<NotionEditorProps & React.RefAttributes<NotionEditorHandle>>;
26
- export default NotionEditor;
@@ -1,2 +0,0 @@
1
- declare function Layout(): import("react/jsx-runtime").JSX.Element;
2
- export default Layout;