@spteck/react-controls-v2 2.5.16 → 2.6.0
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/assets/fluentEmojis.json.d.ts +55521 -0
- package/dist/components/EmojiPicker/EmojiPicker.d.ts +4 -0
- package/dist/components/EmojiPicker/IEmojiPickerProps.d.ts +64 -0
- package/dist/components/EmojiPicker/SkinToneSelector.d.ts +8 -0
- package/dist/components/EmojiPicker/emojiData.d.ts +17 -0
- package/dist/components/EmojiPicker/index.d.ts +4 -0
- package/dist/components/EmojiPicker/useEmojiPickerStyles.d.ts +18 -0
- package/dist/components/RichTextEditor/IRichTextEditorProps.d.ts +61 -3
- package/dist/components/RichTextEditor/Icons.d.ts +15 -0
- package/dist/components/RichTextEditor/RichTextEditor.d.ts +59 -0
- package/dist/components/RichTextEditor/RichTextEditorBgColorPickerControl.d.ts +4 -0
- package/dist/components/RichTextEditor/RichTextEditorContext.d.ts +10 -0
- package/dist/components/RichTextEditor/RichTextEditorDragHandle.d.ts +15 -0
- package/dist/components/RichTextEditor/RichTextEditorEmojiPickerControl.d.ts +4 -0
- package/dist/components/RichTextEditor/RichTextEditorImageUploadControl.d.ts +19 -0
- package/dist/components/RichTextEditor/RichTextEditorResizableImage.d.ts +22 -0
- package/dist/components/RichTextEditor/RichTextEditorResizableImageView.d.ts +16 -0
- package/dist/components/RichTextEditor/RichTextEditorTableControls.d.ts +26 -0
- package/dist/components/RichTextEditor/controls.d.ts +84 -31
- package/dist/components/RichTextEditor/extensions.d.ts +17 -4
- package/dist/components/RichTextEditor/index.d.ts +12 -2
- package/dist/components/RichTextEditor/renderContentAsEmailHtml.d.ts +26 -0
- package/dist/components/RichTextEditor/useRichTextEditor.d.ts +36 -0
- package/dist/components/RichTextEditor/useRichTextEditorStyles.d.ts +3 -1
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useFluentEmoji.d.ts +12 -0
- package/dist/index.cjs +55 -30
- package/dist/index.d.ts +2 -1
- package/dist/index.js +53464 -3578
- package/package.json +6 -3
|
@@ -1,125 +1,178 @@
|
|
|
1
|
+
import { IRichTextEditorControlBaseProps } from './IRichTextEditorProps';
|
|
1
2
|
export declare const BoldControl: {
|
|
2
|
-
(props:
|
|
3
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
3
4
|
displayName: string;
|
|
4
5
|
};
|
|
5
6
|
export declare const ItalicControl: {
|
|
6
|
-
(props:
|
|
7
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
displayName: string;
|
|
8
9
|
};
|
|
9
10
|
export declare const UnderlineControl: {
|
|
10
|
-
(props:
|
|
11
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
11
12
|
displayName: string;
|
|
12
13
|
};
|
|
13
14
|
export declare const StrikeThroughControl: {
|
|
14
|
-
(props:
|
|
15
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
displayName: string;
|
|
16
17
|
};
|
|
17
18
|
export declare const ClearFormattingControl: {
|
|
18
|
-
(props:
|
|
19
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
19
20
|
displayName: string;
|
|
20
21
|
};
|
|
21
22
|
export declare const UnlinkControl: {
|
|
22
|
-
(props:
|
|
23
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
23
24
|
displayName: string;
|
|
24
25
|
};
|
|
25
26
|
export declare const BulletListControl: {
|
|
26
|
-
(props:
|
|
27
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
27
28
|
displayName: string;
|
|
28
29
|
};
|
|
29
30
|
export declare const OrderedListControl: {
|
|
30
|
-
(props:
|
|
31
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
31
32
|
displayName: string;
|
|
32
33
|
};
|
|
33
34
|
export declare const H1Control: {
|
|
34
|
-
(props:
|
|
35
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
35
36
|
displayName: string;
|
|
36
37
|
};
|
|
37
38
|
export declare const H2Control: {
|
|
38
|
-
(props:
|
|
39
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
39
40
|
displayName: string;
|
|
40
41
|
};
|
|
41
42
|
export declare const H3Control: {
|
|
42
|
-
(props:
|
|
43
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
43
44
|
displayName: string;
|
|
44
45
|
};
|
|
45
46
|
export declare const H4Control: {
|
|
46
|
-
(props:
|
|
47
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
47
48
|
displayName: string;
|
|
48
49
|
};
|
|
49
50
|
export declare const H5Control: {
|
|
50
|
-
(props:
|
|
51
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
51
52
|
displayName: string;
|
|
52
53
|
};
|
|
53
54
|
export declare const H6Control: {
|
|
54
|
-
(props:
|
|
55
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
55
56
|
displayName: string;
|
|
56
57
|
};
|
|
57
58
|
export declare const BlockquoteControl: {
|
|
58
|
-
(props:
|
|
59
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
59
60
|
displayName: string;
|
|
60
61
|
};
|
|
61
62
|
export declare const AlignLeftControl: {
|
|
62
|
-
(props:
|
|
63
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
63
64
|
displayName: string;
|
|
64
65
|
};
|
|
65
66
|
export declare const AlignRightControl: {
|
|
66
|
-
(props:
|
|
67
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
67
68
|
displayName: string;
|
|
68
69
|
};
|
|
69
70
|
export declare const AlignCenterControl: {
|
|
70
|
-
(props:
|
|
71
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
71
72
|
displayName: string;
|
|
72
73
|
};
|
|
73
74
|
export declare const AlignJustifyControl: {
|
|
74
|
-
(props:
|
|
75
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
75
76
|
displayName: string;
|
|
76
77
|
};
|
|
77
78
|
export declare const SubscriptControl: {
|
|
78
|
-
(props:
|
|
79
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
79
80
|
displayName: string;
|
|
80
81
|
};
|
|
81
82
|
export declare const SuperscriptControl: {
|
|
82
|
-
(props:
|
|
83
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
83
84
|
displayName: string;
|
|
84
85
|
};
|
|
85
86
|
export declare const CodeControl: {
|
|
86
|
-
(props:
|
|
87
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
87
88
|
displayName: string;
|
|
88
89
|
};
|
|
89
90
|
export declare const CodeBlockControl: {
|
|
90
|
-
(props:
|
|
91
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
91
92
|
displayName: string;
|
|
92
93
|
};
|
|
93
94
|
export declare const HighlightControl: {
|
|
94
|
-
(props:
|
|
95
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
95
96
|
displayName: string;
|
|
96
97
|
};
|
|
97
98
|
export declare const HrControl: {
|
|
98
|
-
(props:
|
|
99
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
99
100
|
displayName: string;
|
|
100
101
|
};
|
|
101
102
|
export declare const UnsetColorControl: {
|
|
102
|
-
(props:
|
|
103
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
103
104
|
displayName: string;
|
|
104
105
|
};
|
|
105
106
|
export declare const UndoControl: {
|
|
106
|
-
(props:
|
|
107
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
107
108
|
displayName: string;
|
|
108
109
|
};
|
|
109
110
|
export declare const RedoControl: {
|
|
110
|
-
(props:
|
|
111
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
111
112
|
displayName: string;
|
|
112
113
|
};
|
|
113
114
|
export declare const TaskListControl: {
|
|
114
|
-
(props:
|
|
115
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
115
116
|
displayName: string;
|
|
116
117
|
};
|
|
117
118
|
export declare const TaskListSinkControl: {
|
|
118
|
-
(props:
|
|
119
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
119
120
|
displayName: string;
|
|
120
121
|
};
|
|
121
122
|
export declare const TaskListLiftControl: {
|
|
122
|
-
(props:
|
|
123
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
124
|
+
displayName: string;
|
|
125
|
+
};
|
|
126
|
+
export declare const InsertTableControl: {
|
|
127
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
128
|
+
displayName: string;
|
|
129
|
+
};
|
|
130
|
+
export declare const DeleteTableControl: {
|
|
131
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
132
|
+
displayName: string;
|
|
133
|
+
};
|
|
134
|
+
export declare const AddColumnBeforeControl: {
|
|
135
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
136
|
+
displayName: string;
|
|
137
|
+
};
|
|
138
|
+
export declare const AddColumnAfterControl: {
|
|
139
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
140
|
+
displayName: string;
|
|
141
|
+
};
|
|
142
|
+
export declare const DeleteColumnControl: {
|
|
143
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
144
|
+
displayName: string;
|
|
145
|
+
};
|
|
146
|
+
export declare const AddRowBeforeControl: {
|
|
147
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
148
|
+
displayName: string;
|
|
149
|
+
};
|
|
150
|
+
export declare const AddRowAfterControl: {
|
|
151
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
152
|
+
displayName: string;
|
|
153
|
+
};
|
|
154
|
+
export declare const DeleteRowControl: {
|
|
155
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
156
|
+
displayName: string;
|
|
157
|
+
};
|
|
158
|
+
export declare const MergeOrSplitCellControl: {
|
|
159
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
160
|
+
displayName: string;
|
|
161
|
+
};
|
|
162
|
+
export declare const ToggleHeaderColumnControl: {
|
|
163
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
164
|
+
displayName: string;
|
|
165
|
+
};
|
|
166
|
+
export declare const ToggleHeaderRowControl: {
|
|
167
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
168
|
+
displayName: string;
|
|
169
|
+
};
|
|
170
|
+
export declare const ToggleTableColumnLinesControl: {
|
|
171
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
172
|
+
displayName: string;
|
|
173
|
+
};
|
|
174
|
+
export declare const ToggleTableRowLinesControl: {
|
|
175
|
+
(props: IRichTextEditorControlBaseProps): import("react/jsx-runtime").JSX.Element;
|
|
123
176
|
displayName: string;
|
|
124
177
|
};
|
|
125
178
|
//# sourceMappingURL=controls.d.ts.map
|
|
@@ -1,12 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TableKit } from '@tiptap/extension-table/kit';
|
|
2
|
+
export { TableKit };
|
|
2
3
|
/**
|
|
3
4
|
* Custom Link extension that adds Mod-k keyboard shortcut
|
|
4
5
|
* to trigger the link editor popover.
|
|
5
6
|
*/
|
|
6
7
|
export declare const Link: import('@tiptap/core').Mark<import('@tiptap/extension-link').LinkOptions, any>;
|
|
7
8
|
/**
|
|
8
|
-
*
|
|
9
|
-
*
|
|
9
|
+
* Extends the TaskItem extension with additional keyboard shortcuts
|
|
10
|
+
* (`Mod-]` to indent / `Mod-[` to outdent) as alternatives to the
|
|
11
|
+
* built-in Tab / Shift-Tab shortcuts.
|
|
12
|
+
*
|
|
13
|
+
* Usage:
|
|
14
|
+
* ```ts
|
|
15
|
+
* import TaskItem from '@tiptap/extension-task-item';
|
|
16
|
+
* import { getTaskListExtension } from '@spteck/react-controls-v2';
|
|
17
|
+
*
|
|
18
|
+
* extensions: [
|
|
19
|
+
* TaskList,
|
|
20
|
+
* getTaskListExtension(TaskItem).configure({ nested: true }),
|
|
21
|
+
* ]
|
|
22
|
+
* ```
|
|
10
23
|
*/
|
|
11
|
-
export declare function getTaskListExtension(
|
|
24
|
+
export declare function getTaskListExtension(TaskItem: any): any;
|
|
12
25
|
//# sourceMappingURL=extensions.d.ts.map
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export { RichTextEditor } from './RichTextEditor';
|
|
2
|
+
export { useRichTextEditor } from './useRichTextEditor';
|
|
3
|
+
export type { IUseRichTextEditorOptions } from './useRichTextEditor';
|
|
2
4
|
export { RichTextEditorControl, RichTextEditorControlBase, createControl } from './RichTextEditorControl';
|
|
3
5
|
export { RichTextEditorToolbar } from './RichTextEditorToolbar';
|
|
4
6
|
export { RichTextEditorContent } from './RichTextEditorContent';
|
|
@@ -8,8 +10,16 @@ export { RichTextEditorColorControl } from './RichTextEditorColorControl';
|
|
|
8
10
|
export { RichTextEditorColorPickerControl } from './RichTextEditorColorPickerControl';
|
|
9
11
|
export { RichTextEditorSourceCodeControl } from './RichTextEditorSourceCodeControl';
|
|
10
12
|
export { RichTextEditorFontFamilyControl } from './RichTextEditorFontFamilyControl';
|
|
11
|
-
export {
|
|
13
|
+
export { RichTextEditorImageUploadControl } from './RichTextEditorImageUploadControl';
|
|
14
|
+
export { RichTextEditorBgColorPickerControl } from './RichTextEditorBgColorPickerControl';
|
|
15
|
+
export { RichTextEditorDragHandle } from './RichTextEditorDragHandle';
|
|
16
|
+
export { RichTextEditorTableControls } from './RichTextEditorTableControls';
|
|
17
|
+
export { default as RichTextEditorImage } from '@tiptap/extension-image';
|
|
18
|
+
export { RichTextEditorResizableImage } from './RichTextEditorResizableImage';
|
|
19
|
+
export { Link, getTaskListExtension, TableKit } from './extensions';
|
|
20
|
+
export { renderContentAsEmailHtml } from './renderContentAsEmailHtml';
|
|
21
|
+
export type { IRenderContentAsEmailHtmlOptions } from './renderContentAsEmailHtml';
|
|
12
22
|
export * from './controls';
|
|
13
|
-
export type { IRichTextEditorProps, IRichTextEditorLabels, IRichTextEditorToolbarProps, IRichTextEditorControlsGroupProps, IRichTextEditorControlProps, IRichTextEditorControlBaseProps, IRichTextEditorContentProps, IRichTextEditorLinkControlProps, IRichTextEditorColorControlProps, IRichTextEditorColorPickerControlProps, IRichTextEditorFontFamilyControlProps, ICreateControlProps, RichTextEditorVariant, } from './IRichTextEditorProps';
|
|
23
|
+
export type { IRichTextEditorProps, IRichTextEditorLabels, IRichTextEditorToolbarProps, IRichTextEditorControlsGroupProps, IRichTextEditorControlProps, IRichTextEditorControlBaseProps, IRichTextEditorContentProps, IRichTextEditorLinkControlProps, IRichTextEditorColorControlProps, IRichTextEditorColorPickerControlProps, IRichTextEditorBgColorPickerControlProps, IRichTextEditorDragHandleProps, IRichTextEditorFontFamilyControlProps, ICreateControlProps, RichTextEditorVariant, } from './IRichTextEditorProps';
|
|
14
24
|
export type { IRichTextEditorContextValue } from './RichTextEditorContext';
|
|
15
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for renderContentAsEmailHtml
|
|
3
|
+
*/
|
|
4
|
+
export interface IRenderContentAsEmailHtmlOptions {
|
|
5
|
+
/** Font family applied to the email body (default: 'Arial, Helvetica, sans-serif') */
|
|
6
|
+
fontFamily?: string;
|
|
7
|
+
/** Background color of the content card (default: '#ffffff') */
|
|
8
|
+
backgroundColor?: string;
|
|
9
|
+
/** Background color of the outer email wrapper (default: '#f5f5f5') */
|
|
10
|
+
wrapperBackground?: string;
|
|
11
|
+
/** Max width of the content column in pixels (default: 600) */
|
|
12
|
+
maxWidth?: number;
|
|
13
|
+
/** Padding inside the content card (default: '32px 40px') */
|
|
14
|
+
contentPadding?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Converts TipTap HTML output into a complete, inline-styled, email-client-safe
|
|
18
|
+
* HTML document. The resulting string can be used directly as the `html` body
|
|
19
|
+
* of an email message.
|
|
20
|
+
*
|
|
21
|
+
* @param contentHtml Raw HTML produced by `editor.getHTML()`
|
|
22
|
+
* @param options Optional overrides for fonts, colors, and dimensions
|
|
23
|
+
* @returns A complete `<!DOCTYPE html>` email document string
|
|
24
|
+
*/
|
|
25
|
+
export declare function renderContentAsEmailHtml(contentHtml: string, options?: IRenderContentAsEmailHtmlOptions): string;
|
|
26
|
+
//# sourceMappingURL=renderContentAsEmailHtml.d.ts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Editor } from '@tiptap/core';
|
|
2
|
+
export interface IUseRichTextEditorOptions {
|
|
3
|
+
/** Initial HTML content for the editor */
|
|
4
|
+
content?: string;
|
|
5
|
+
/** Placeholder text displayed when the editor is empty */
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
/** Whether the editor content is editable @default true */
|
|
8
|
+
editable?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Creates a fully configured RichTextEditor instance with all built-in
|
|
12
|
+
* extensions pre-loaded. Clients only need to declare which toolbar
|
|
13
|
+
* controls to render — no TipTap imports required.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* import { RichTextEditor, useRichTextEditor } from '@spteck/react-controls-v2';
|
|
18
|
+
*
|
|
19
|
+
* const MyEditor = () => {
|
|
20
|
+
* const editor = useRichTextEditor({ content: '<p>Hello!</p>' });
|
|
21
|
+
* return (
|
|
22
|
+
* <RichTextEditor editor={editor}>
|
|
23
|
+
* <RichTextEditor.Toolbar>
|
|
24
|
+
* <RichTextEditor.ControlsGroup>
|
|
25
|
+
* <RichTextEditor.Bold />
|
|
26
|
+
* <RichTextEditor.Italic />
|
|
27
|
+
* </RichTextEditor.ControlsGroup>
|
|
28
|
+
* </RichTextEditor.Toolbar>
|
|
29
|
+
* <RichTextEditor.Content />
|
|
30
|
+
* </RichTextEditor>
|
|
31
|
+
* );
|
|
32
|
+
* };
|
|
33
|
+
* ```
|
|
34
|
+
*/
|
|
35
|
+
export declare function useRichTextEditor(options?: IUseRichTextEditorOptions): Editor | null;
|
|
36
|
+
//# sourceMappingURL=useRichTextEditor.d.ts.map
|
|
@@ -19,10 +19,12 @@ export interface IRichTextEditorStyles {
|
|
|
19
19
|
colorSwatch: string;
|
|
20
20
|
colorSwatchGrid: string;
|
|
21
21
|
colorPickerActions: string;
|
|
22
|
-
taskList: string;
|
|
23
22
|
fontFamilyList: string;
|
|
24
23
|
fontFamilyItem: string;
|
|
25
24
|
fontFamilyItemActive: string;
|
|
25
|
+
dragHandle: string;
|
|
26
|
+
tableHideColumnLines: string;
|
|
27
|
+
tableHideRowLines: string;
|
|
26
28
|
}
|
|
27
29
|
export declare const useRichTextEditorStyles: (variant?: RichTextEditorVariant) => IRichTextEditorStyles;
|
|
28
30
|
//# sourceMappingURL=useRichTextEditorStyles.d.ts.map
|
package/dist/hooks/index.d.ts
CHANGED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type TeamsReactionImageStyle = '3D' | 'Color' | 'Flat' | 'HighContrast';
|
|
2
|
+
export interface IUseFluentEmojiResult {
|
|
3
|
+
getEmoji: (reactionType: string, style?: TeamsReactionImageStyle) => string | undefined;
|
|
4
|
+
getAvailableEmojis: () => string[];
|
|
5
|
+
hasEmoji: (reactionType: string, style?: TeamsReactionImageStyle) => boolean;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Resolves a Teams/Graph reactionType such as `yes`, `yes-tone2`, `heart`, or
|
|
9
|
+
* a raw Unicode emoji glyph to a Fluent emoji image URL.
|
|
10
|
+
*/
|
|
11
|
+
export declare const useFluentEmoji: () => IUseFluentEmojiResult;
|
|
12
|
+
//# sourceMappingURL=useFluentEmoji.d.ts.map
|