framepexls-ui-lib 2.2.7 → 2.2.11
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/AccessibilityFab.js +2 -0
- package/dist/AccessibilityFab.mjs +2 -0
- package/dist/AvatarSquare.d.mts +4 -1
- package/dist/AvatarSquare.d.ts +4 -1
- package/dist/AvatarSquare.js +7 -1
- package/dist/AvatarSquare.mjs +7 -1
- package/dist/Checkbox.js +2 -2
- package/dist/Checkbox.mjs +2 -2
- package/dist/ComboSelect.js +4 -3
- package/dist/ComboSelect.mjs +4 -3
- package/dist/DateTimeField.js +3 -2
- package/dist/DateTimeField.mjs +3 -2
- package/dist/Dropdown.js +3 -0
- package/dist/Dropdown.mjs +3 -0
- package/dist/HeliipLoader.js +77 -5
- package/dist/HeliipLoader.mjs +77 -5
- package/dist/MarkdownEditor.d.mts +71 -3
- package/dist/MarkdownEditor.d.ts +71 -3
- package/dist/MarkdownEditor.js +2370 -65
- package/dist/MarkdownEditor.mjs +2388 -66
- package/dist/MediaSelector.d.mts +4 -1
- package/dist/MediaSelector.d.ts +4 -1
- package/dist/MediaSelector.js +134 -23
- package/dist/MediaSelector.mjs +135 -24
- package/dist/Select.js +2 -0
- package/dist/Select.mjs +2 -0
- package/dist/Sidebar.d.mts +2 -1
- package/dist/Sidebar.d.ts +2 -1
- package/dist/Sidebar.js +82 -19
- package/dist/Sidebar.mjs +82 -19
- package/dist/SupportChatWidget.js +88 -42
- package/dist/SupportChatWidget.mjs +89 -42
- package/dist/TimePanel.js +2 -1
- package/dist/TimePanel.mjs +2 -1
- package/dist/TimePopover.js +4 -3
- package/dist/TimePopover.mjs +4 -3
- package/dist/TimeRangeField.js +3 -2
- package/dist/TimeRangeField.mjs +3 -2
- package/dist/UploadCard.js +7 -7
- package/dist/UploadCard.mjs +7 -7
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +4 -0
- package/dist/index.mjs +3 -1
- package/dist/theme/FontSizeController.js +1 -1
- package/dist/theme/FontSizeController.mjs +1 -1
- package/dist/theme/ThemeController.js +2 -1
- package/dist/theme/ThemeController.mjs +2 -1
- package/dist/theme.css +47 -0
- package/package.json +8 -8
package/dist/MarkdownEditor.d.ts
CHANGED
|
@@ -4,16 +4,84 @@ type Template = {
|
|
|
4
4
|
label: string;
|
|
5
5
|
content: string;
|
|
6
6
|
};
|
|
7
|
+
type MarkdownRange = {
|
|
8
|
+
start: number;
|
|
9
|
+
end: number;
|
|
10
|
+
kind?: string;
|
|
11
|
+
activeOffset?: number;
|
|
12
|
+
};
|
|
13
|
+
type MarkdownRenderOptions = {
|
|
14
|
+
includeRanges?: boolean;
|
|
15
|
+
selectedRange?: MarkdownRange | null;
|
|
16
|
+
};
|
|
17
|
+
declare function renderMarkdown(value: string, options?: MarkdownRenderOptions): string;
|
|
7
18
|
type MarkdownEditorProps = {
|
|
8
19
|
value: string;
|
|
9
20
|
onChange: (next: string) => void;
|
|
10
21
|
placeholder?: string;
|
|
11
22
|
rows?: number;
|
|
12
|
-
height?: number;
|
|
23
|
+
height?: number | string;
|
|
24
|
+
fullscreenHeight?: number | string;
|
|
13
25
|
className?: string;
|
|
14
26
|
templates?: Template[];
|
|
15
27
|
disabled?: boolean;
|
|
28
|
+
showPreview?: boolean;
|
|
29
|
+
enablePreview?: boolean;
|
|
30
|
+
enableFullscreen?: boolean;
|
|
31
|
+
enableDiagrams?: boolean;
|
|
32
|
+
maxImageBytes?: number;
|
|
33
|
+
maxVideoBytes?: number;
|
|
34
|
+
labels?: Partial<{
|
|
35
|
+
editor: string;
|
|
36
|
+
preview: string;
|
|
37
|
+
emptyPreview: string;
|
|
38
|
+
headings: string;
|
|
39
|
+
paragraph: string;
|
|
40
|
+
h1: string;
|
|
41
|
+
h2: string;
|
|
42
|
+
h3: string;
|
|
43
|
+
quote: string;
|
|
44
|
+
undo: string;
|
|
45
|
+
redo: string;
|
|
46
|
+
bold: string;
|
|
47
|
+
italic: string;
|
|
48
|
+
code: string;
|
|
49
|
+
bullets: string;
|
|
50
|
+
numbers: string;
|
|
51
|
+
link: string;
|
|
52
|
+
color: string;
|
|
53
|
+
insert: string;
|
|
54
|
+
imageUrl: string;
|
|
55
|
+
imageUpload: string;
|
|
56
|
+
videoUrl: string;
|
|
57
|
+
videoUpload: string;
|
|
58
|
+
table: string;
|
|
59
|
+
lineBreak: string;
|
|
60
|
+
diagram: string;
|
|
61
|
+
umlClass: string;
|
|
62
|
+
umlSequence: string;
|
|
63
|
+
divider: string;
|
|
64
|
+
blocksView: string;
|
|
65
|
+
markdownView: string;
|
|
66
|
+
previewView: string;
|
|
67
|
+
sampleButton: string;
|
|
68
|
+
showPreview: string;
|
|
69
|
+
hidePreview: string;
|
|
70
|
+
fullscreen: string;
|
|
71
|
+
exitFullscreen: string;
|
|
72
|
+
}>;
|
|
16
73
|
};
|
|
17
|
-
declare function
|
|
74
|
+
declare function MarkdownPreview({ value, className, emptyLabel, selectable, selectedRange, onSelectRange, onOpenSelectionMenu, showBlockControls, onOpenBlockMenu, }: {
|
|
75
|
+
value: string | null | undefined;
|
|
76
|
+
className?: string;
|
|
77
|
+
emptyLabel?: string;
|
|
78
|
+
selectable?: boolean;
|
|
79
|
+
selectedRange?: MarkdownRange | null;
|
|
80
|
+
onSelectRange?: (range: MarkdownRange) => void;
|
|
81
|
+
onOpenSelectionMenu?: (event: React__default.MouseEvent, range: MarkdownRange) => void;
|
|
82
|
+
showBlockControls?: boolean;
|
|
83
|
+
onOpenBlockMenu?: (event: React__default.MouseEvent, range: MarkdownRange) => void;
|
|
84
|
+
}): React__default.JSX.Element;
|
|
85
|
+
declare function MarkdownEditor({ value, onChange, placeholder, rows, height, className, templates, disabled, fullscreenHeight, showPreview, enablePreview, enableFullscreen, enableDiagrams, labels, maxImageBytes, maxVideoBytes, }: MarkdownEditorProps): React__default.JSX.Element;
|
|
18
86
|
|
|
19
|
-
export { type MarkdownEditorProps, MarkdownEditor as default };
|
|
87
|
+
export { type MarkdownEditorProps, MarkdownPreview, MarkdownEditor as default, renderMarkdown };
|