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.
@@ -0,0 +1,3 @@
1
+ import { LazyLoadImageProps } from "./LazyLoadImage.types";
2
+ declare const LazyLoadImage: ({ fallbackUrl, src, ...imgProps }: LazyLoadImageProps) => import("react/jsx-runtime").JSX.Element;
3
+ export default LazyLoadImage;
@@ -0,0 +1,3 @@
1
+ export interface LazyLoadImageProps extends React.DetailedHTMLProps<React.ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement> {
2
+ fallbackUrl?: string;
3
+ }
@@ -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?: ThemeType;
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 ThemeType = {
38
- getApi: string;
39
- updateApi: string;
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,10 @@
1
+ import { NodeViewContentProps } from "@tiptap/react";
2
+ declare const _default: (props: NodeViewContentProps & {
3
+ node: {
4
+ attrs: {
5
+ id: string;
6
+ label: string;
7
+ };
8
+ };
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ type MentionProps = {
3
+ node: any;
4
+ };
5
+ declare const Mention: React.FC<MentionProps>;
6
+ export default Mention;
@@ -0,0 +1,2 @@
1
+ import { Node } from "@tiptap/core";
2
+ export declare const MentionExtension: Node<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;
@@ -0,0 +1,2 @@
1
+ import { SuggesstionGroupModel } from "../TextEditor.types";
2
+ export declare const suggestions: (suggestionGroups: SuggesstionGroupModel[]) => any[];
@@ -14,16 +14,32 @@ export interface TextEditorProps {
14
14
  toolkitPosition?: "top" | "bottom";
15
15
  toolkitUpper?: React.ReactNode;
16
16
  toolkitLower?: React.ReactNode;
17
- suggestionItems?: SuggesstionItem[];
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 SuggesstionItem {
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
- url?: string;
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;