beca-ui 2.0.20-beta.33 → 2.0.20-beta.35
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.
- package/dist/beca-ui.js +58597 -60621
- package/dist/components/LazyLoadImage/LazyLoadImage.d.ts +3 -0
- package/dist/components/LazyLoadImage/LazyLoadImage.types.d.ts +3 -0
- package/dist/components/LazyLoadImage/index.d.ts +1 -0
- package/dist/components/MainLayout/Header/Header.types.d.ts +5 -4
- package/dist/components/TextEditor/FontSize/index.d.ts +0 -8
- package/dist/components/TextEditor/Suggestions/EditorSuggestionsInlineRender.d.ts +10 -0
- package/dist/components/TextEditor/Suggestions/Mention.d.ts +6 -0
- package/dist/components/TextEditor/Suggestions/MentionExtension.d.ts +2 -0
- package/dist/components/TextEditor/Suggestions/MentionList.d.ts +8 -0
- package/dist/components/TextEditor/Suggestions/Suggestions.d.ts +2 -0
- package/dist/components/TextEditor/TextEditor.types.d.ts +19 -3
- package/dist/main.css +1 -1
- package/package.json +37 -37
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as LazyLoadImage } from "./LazyLoadImage";
|
|
@@ -27,17 +27,18 @@ export interface HeaderProps extends ApplicationsCardProps {
|
|
|
27
27
|
LinkComponent: any;
|
|
28
28
|
isSwitchTheme?: boolean;
|
|
29
29
|
onSwitchedTheme?: (theme: Theme) => void;
|
|
30
|
-
theme?:
|
|
30
|
+
theme?: ThemeModel;
|
|
31
31
|
onChangeLocale?: (locale: LANGUAGE) => void;
|
|
32
32
|
lang: LANGUAGE;
|
|
33
33
|
scrolled?: boolean;
|
|
34
34
|
personalProfile: PersonalProfileModel;
|
|
35
35
|
config?: MainLayoutConfig;
|
|
36
36
|
}
|
|
37
|
-
export type
|
|
38
|
-
getApi
|
|
39
|
-
updateApi
|
|
37
|
+
export type ThemeModel = {
|
|
38
|
+
getApi?: string;
|
|
39
|
+
updateApi?: string;
|
|
40
40
|
params?: any;
|
|
41
|
+
mode?: Theme;
|
|
41
42
|
};
|
|
42
43
|
export interface NotificationType {
|
|
43
44
|
title?: string;
|
|
@@ -1,10 +1,2 @@
|
|
|
1
1
|
import { Extension } from "@tiptap/react";
|
|
2
|
-
declare module "@tiptap/core" {
|
|
3
|
-
interface Commands<ReturnType> {
|
|
4
|
-
fontSize: {
|
|
5
|
-
setFontSize: (fontSize: number) => ReturnType;
|
|
6
|
-
unsetFontSize: () => ReturnType;
|
|
7
|
-
};
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
2
|
export declare const FontSize: Extension<any, any>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SuggesstionGroupModel, SuggesstionItemModel } from "../TextEditor.types";
|
|
2
|
+
interface MentionListProps {
|
|
3
|
+
items: SuggesstionItemModel[];
|
|
4
|
+
group: SuggesstionGroupModel;
|
|
5
|
+
command: (commandProps: any) => void;
|
|
6
|
+
}
|
|
7
|
+
declare const _default: import("react").ForwardRefExoticComponent<MentionListProps & import("react").RefAttributes<unknown>>;
|
|
8
|
+
export default _default;
|
|
@@ -14,16 +14,32 @@ export interface TextEditorProps {
|
|
|
14
14
|
toolkitPosition?: "top" | "bottom";
|
|
15
15
|
toolkitUpper?: React.ReactNode;
|
|
16
16
|
toolkitLower?: React.ReactNode;
|
|
17
|
-
|
|
17
|
+
suggestionGroups?: SuggesstionGroupModel[];
|
|
18
18
|
onUploadImage?: (file: File | null, base64?: string) => string;
|
|
19
19
|
onEnter?: () => void;
|
|
20
20
|
fontSizeUnit?: "pt" | "px";
|
|
21
|
+
isSimpleText?: boolean;
|
|
21
22
|
}
|
|
22
|
-
export interface
|
|
23
|
+
export interface SuggesstionGroupModel {
|
|
24
|
+
char: string;
|
|
25
|
+
/**
|
|
26
|
+
* Show prefix char in the mention list
|
|
27
|
+
*/
|
|
28
|
+
showChar?: boolean;
|
|
29
|
+
avatar?: {
|
|
30
|
+
visible?: boolean;
|
|
31
|
+
fallbackUrl: string;
|
|
32
|
+
};
|
|
33
|
+
items: SuggesstionItemModel[];
|
|
34
|
+
}
|
|
35
|
+
export interface SuggesstionItemDataModel {
|
|
23
36
|
id: React.Key;
|
|
24
37
|
label: string;
|
|
38
|
+
description?: string;
|
|
25
39
|
imageUrl?: string;
|
|
26
|
-
|
|
40
|
+
}
|
|
41
|
+
export interface SuggesstionItemModel extends SuggesstionItemDataModel {
|
|
42
|
+
onClick?: (item: SuggesstionItemDataModel) => void;
|
|
27
43
|
}
|
|
28
44
|
export interface TextEditorMenuProps extends EditorContentProps {
|
|
29
45
|
isMobile?: boolean;
|