@zjlab-fe/data-hub-ui 0.5.12 → 0.5.13

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 (59) hide show
  1. package/dist/types/components/tip-tap/actions/BoldItalicStrikeUnderline.d.ts +4 -0
  2. package/dist/types/components/tip-tap/actions/CodeQuoteHorizontalRule.d.ts +4 -0
  3. package/dist/types/components/tip-tap/actions/Image.d.ts +4 -0
  4. package/dist/types/components/tip-tap/actions/Link.d.ts +5 -0
  5. package/dist/types/components/tip-tap/actions/LinkModifier.d.ts +4 -0
  6. package/dist/types/components/tip-tap/actions/List.d.ts +4 -0
  7. package/dist/types/components/tip-tap/actions/ParagraphHeadings.d.ts +13 -0
  8. package/dist/types/components/tip-tap/actions/Table.d.ts +4 -0
  9. package/dist/types/components/tip-tap/actions/TextAligment.d.ts +4 -0
  10. package/dist/types/components/tip-tap/actions/UndoRedo.d.ts +4 -0
  11. package/dist/types/components/tip-tap/actions/highlight-textcolor-fontsize.d.ts +4 -0
  12. package/dist/types/components/tip-tap/demo/index.d.ts +1 -0
  13. package/dist/types/components/tip-tap/extensions/DropHandler.d.ts +2 -0
  14. package/dist/types/components/tip-tap/extensions/FontSize.d.ts +20 -0
  15. package/dist/types/components/tip-tap/extensions/PatseHandler.d.ts +3 -0
  16. package/dist/types/components/tip-tap/extensions/index.d.ts +2 -0
  17. package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextCenter.d.ts +3 -0
  18. package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextJustify.d.ts +3 -0
  19. package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextLeft.d.ts +3 -0
  20. package/dist/types/components/tip-tap/icons/HumbleiconsAlignTextRight.d.ts +3 -0
  21. package/dist/types/components/tip-tap/icons/MaterialSymbolsAddLink.d.ts +3 -0
  22. package/dist/types/components/tip-tap/icons/MaterialSymbolsAddPhotoAlternateOutline.d.ts +3 -0
  23. package/dist/types/components/tip-tap/icons/MaterialSymbolsCode.d.ts +3 -0
  24. package/dist/types/components/tip-tap/icons/MaterialSymbolsEditOutline.d.ts +3 -0
  25. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatColorText.d.ts +3 -0
  26. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH1.d.ts +3 -0
  27. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH2.d.ts +3 -0
  28. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH3.d.ts +3 -0
  29. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH4.d.ts +3 -0
  30. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH5.d.ts +3 -0
  31. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatH6.d.ts +3 -0
  32. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatInkHighlighterOutlineSharp.d.ts +3 -0
  33. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatListBulleted.d.ts +3 -0
  34. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatListNumbered.d.ts +3 -0
  35. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatParagraph.d.ts +3 -0
  36. package/dist/types/components/tip-tap/icons/MaterialSymbolsFormatQuote.d.ts +3 -0
  37. package/dist/types/components/tip-tap/icons/MaterialSymbolsHorizontalRule.d.ts +3 -0
  38. package/dist/types/components/tip-tap/icons/MaterialSymbolsLinkOff.d.ts +3 -0
  39. package/dist/types/components/tip-tap/icons/MaterialSymbolsRedo.d.ts +3 -0
  40. package/dist/types/components/tip-tap/icons/MaterialSymbolsTable.d.ts +3 -0
  41. package/dist/types/components/tip-tap/icons/MaterialSymbolsUndo.d.ts +3 -0
  42. package/dist/types/components/tip-tap/icons/MdiCodeBlockTags.d.ts +3 -0
  43. package/dist/types/components/tip-tap/icons/MdiFormatBold.d.ts +3 -0
  44. package/dist/types/components/tip-tap/icons/MdiFormatItalic.d.ts +3 -0
  45. package/dist/types/components/tip-tap/icons/MdiFormatStrikethroughVariant.d.ts +3 -0
  46. package/dist/types/components/tip-tap/icons/MdiFormatUnderline.d.ts +3 -0
  47. package/dist/types/components/tip-tap/index.d.ts +19 -0
  48. package/dist/types/components/tip-tap/menus/BubbleMenu.d.ts +7 -0
  49. package/dist/types/components/tip-tap/menus/FixedMenu.d.ts +9 -0
  50. package/dist/types/components/tip-tap/menus/LinkFloatingMenu.d.ts +6 -0
  51. package/dist/types/components/tip-tap/menus/ParagraphFloatingMenu.d.ts +6 -0
  52. package/dist/types/components/tip-tap/the-editor.d.ts +4 -0
  53. package/dist/types/components/tip-tap/utils/addImageToEditor.d.ts +2 -0
  54. package/dist/types/components/tip-tap/utils/parseMarkDown.d.ts +2 -0
  55. package/dist/types/index.d.ts +1 -0
  56. package/es/index.js +1 -1
  57. package/lib/index.js +1 -1
  58. package/package.json +135 -114
  59. package/tailwind.config.js +2 -0
@@ -0,0 +1,4 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export default function BoldItalicStrikeUnderline({ editor }: {
3
+ editor: Editor;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export default function CodeQuoteHorizontalRule({ editor }: {
3
+ editor: Editor;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export default function Image({ editor }: {
3
+ editor: Editor;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,5 @@
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;
@@ -0,0 +1,4 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export default function LinkModifier({ editor }: {
3
+ editor: Editor;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export default function List({ editor }: {
3
+ editor: Editor;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,13 @@
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;
@@ -0,0 +1,4 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export default function Table({ editor }: {
3
+ editor: Editor;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export default function TextAlignment({ editor }: {
3
+ editor: Editor;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export default function UndoRedo({ editor }: {
3
+ editor: Editor;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export default function HighlightTextColorFontSize({ editor }: {
3
+ editor: Editor;
4
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export default function Demo(): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,2 @@
1
+ import { Extension } from '@tiptap/react';
2
+ export declare const DropHandler: Extension<any, any>;
@@ -0,0 +1,20 @@
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>;
@@ -0,0 +1,3 @@
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;
@@ -0,0 +1,2 @@
1
+ export declare const editorExtensions: (import("@tiptap/core").Extension<any, any> | import("@tiptap/core").Extension<import("./FontSize").FontSizeOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableRowOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-text-style").TextStyleOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-code-block-lowlight").CodeBlockLowlightOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-highlight").HighlightOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-image").ImageOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-text-style").ColorOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-text-align").TextAlignOptions, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any>)[];
2
+ export declare const readerExtensions: (import("@tiptap/core").Extension<any, any> | import("@tiptap/core").Extension<import("./FontSize").FontSizeOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableRowOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-text-style").TextStyleOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-table").TableOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-code-block-lowlight").CodeBlockLowlightOptions, any> | import("@tiptap/core").Mark<import("@tiptap/extension-highlight").HighlightOptions, any> | import("@tiptap/core").Node<import("@tiptap/extension-image").ImageOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-text-style").ColorOptions, any> | import("@tiptap/core").Extension<import("@tiptap/extension-text-align").TextAlignOptions, any> | import("@tiptap/core").Extension<import("@tiptap/starter-kit").StarterKitOptions, any>)[];
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function HumbleiconsAlignTextCenter(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default HumbleiconsAlignTextCenter;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function HumbleiconsAlignTextJustify(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default HumbleiconsAlignTextJustify;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function HumbleiconsAlignTextLeft(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default HumbleiconsAlignTextLeft;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function HumbleiconsAlignTextRight(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default HumbleiconsAlignTextRight;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsAddLink(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsAddLink;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsAddPhotoAlternateOutline(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsAddPhotoAlternateOutline;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsCode(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsCode;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsEditOutline(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsEditOutline;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatColorText(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatColorText;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatH1(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatH1;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatH2(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatH2;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatH3(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatH3;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatH4(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatH4;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatH5(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatH5;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatH6(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatH6;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatInkHighlighterOutlineSharp(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatInkHighlighterOutlineSharp;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatListBulleted(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatListBulleted;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatListNumbered(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatListNumbered;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatParagraph(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatParagraph;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsFormatQuote(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsFormatQuote;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsHorizontalRule(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsHorizontalRule;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsLinkOff(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsLinkOff;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsRedo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsRedo;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsTable(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsTable;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MaterialSymbolsUndo(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MaterialSymbolsUndo;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MdiCodeBlockTags(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MdiCodeBlockTags;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MdiFormatBold(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MdiFormatBold;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MdiFormatItalic(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MdiFormatItalic;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MdiFormatStrikethroughVariant(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MdiFormatStrikethroughVariant;
@@ -0,0 +1,3 @@
1
+ import { SVGProps } from 'react';
2
+ export declare function MdiFormatUnderline(props: SVGProps<SVGSVGElement>): import("react/jsx-runtime").JSX.Element;
3
+ export default MdiFormatUnderline;
@@ -0,0 +1,19 @@
1
+ import './index.css';
2
+ import './table.css';
3
+ import './code-block.css';
4
+ declare const _default: import("react").ForwardRefExoticComponent<{
5
+ content: string;
6
+ classNames?: {
7
+ fixedMenu?: string;
8
+ editorContainer?: string;
9
+ bubbleMenu?: string;
10
+ linkFloatingMenu?: string;
11
+ paragraphFloatingMenu?: string;
12
+ };
13
+ } & import("react").RefAttributes<{
14
+ getContent: () => string;
15
+ }>>;
16
+ export default _default;
17
+ export declare function TipTapReader({ content }: {
18
+ content: string;
19
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,7 @@
1
+ import './BubbleMenu.css';
2
+ /**
3
+ * 选中文本后显示
4
+ */
5
+ export default function BubbleMenu({ className }: {
6
+ className?: string;
7
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,9 @@
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;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 链接修改菜单
3
+ */
4
+ export default function LinkFloatingMenu({ className }: {
5
+ className?: string;
6
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 新段落菜单
3
+ */
4
+ export default function ParagraphFloatingMenu({ className }: {
5
+ className?: string;
6
+ }): import("react/jsx-runtime").JSX.Element | null;
@@ -0,0 +1,4 @@
1
+ declare const _default: import("react").ForwardRefExoticComponent<import("react").RefAttributes<{
2
+ getContent: () => string;
3
+ }>>;
4
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import { Editor } from '@tiptap/react';
2
+ export declare function addImageToEditor(editor: Editor, file: File, onAdded?: () => void): boolean;
@@ -0,0 +1,2 @@
1
+ export declare const ALREADY_PARSED_TAG = "<!--- this is file is already parsed -->";
2
+ export declare function parseMarkDown(content: string): string;
@@ -17,3 +17,4 @@ export { default as BenchCard } from './components/bench-card';
17
17
  export { default as AuthTag } from './components/auth-tag';
18
18
  export { default as StatusTag } from './components/status-tag';
19
19
  export type { IFilePreviewProps } from './components/file-preview/interface';
20
+ export { default as Tiptap, TipTapReader } from './components/tip-tap';