beca-ui 2.1.1-beta.1 → 2.1.1-beta.10

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.
@@ -1,2 +1,2 @@
1
1
  import { SuggesstionGroupModel } from "../TextEditor.types";
2
- export declare const suggestions: (suggestionGroups: SuggesstionGroupModel[]) => any[];
2
+ export declare const suggestions: (suggestionGroups: SuggesstionGroupModel[], onRenderChange?: (component: any) => void) => any[];
@@ -7,5 +7,5 @@ interface TableToolsProps {
7
7
  editor?: Editor | null;
8
8
  tablePosition?: TablePosition;
9
9
  }
10
- export declare const TableTools: ({ editor, tablePosition }: TableToolsProps) => import("react/jsx-runtime").JSX.Element;
10
+ export declare const TableTools: ({ editor, tablePosition }: TableToolsProps) => import("react/jsx-runtime").JSX.Element | null;
11
11
  export {};
@@ -1,6 +1,12 @@
1
1
  import React from "react";
2
2
  import { EditorContentProps } from "@tiptap/react";
3
3
  import { DataNode as AntDataNode } from "antd/lib/tree";
4
+ export interface TextEditorToolkitConfig {
5
+ visible?: boolean;
6
+ position?: "top" | "bottom";
7
+ upper?: React.ReactNode;
8
+ lower?: React.ReactNode;
9
+ }
4
10
  export interface TextEditorProps {
5
11
  value?: any;
6
12
  readingMode?: boolean;
@@ -11,14 +17,13 @@ export interface TextEditorProps {
11
17
  extraMenus?: GroupMenu[];
12
18
  isMobile?: boolean;
13
19
  placeholder?: string;
14
- toolkitPosition?: "top" | "bottom";
15
- toolkitUpper?: React.ReactNode;
16
- toolkitLower?: React.ReactNode;
20
+ toolkit?: TextEditorToolkitConfig;
17
21
  suggestionGroups?: SuggesstionGroupModel[];
18
22
  onUploadImage?: (file: File | null, base64?: string) => string;
19
23
  onEnter?: () => void;
20
24
  fontSizeUnit?: "pt" | "px";
21
25
  isSimpleText?: boolean;
26
+ mode?: "advanced" | "compact";
22
27
  }
23
28
  export interface SuggesstionGroupModel {
24
29
  char: string;
@@ -45,10 +50,12 @@ export interface TextEditorMenuProps extends EditorContentProps {
45
50
  isMobile?: boolean;
46
51
  preMenus?: GroupMenu[];
47
52
  extraMenus?: GroupMenu[];
48
- toolkitUpper?: React.ReactNode;
49
- toolkitLower?: React.ReactNode;
53
+ toolkit?: TextEditorToolkitConfig;
50
54
  addImage: (imageUrl: string) => void;
51
55
  fontSizeUnit?: "pt" | "px";
56
+ mode?: "advanced" | "compact";
57
+ isFullscreen?: boolean;
58
+ onToggleFullscreen?: () => void;
52
59
  }
53
60
  export interface GroupMenu {
54
61
  menuItems: React.ReactNode[];