@react-email/editor 0.0.0-experimental.14 → 0.0.0-experimental.16
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/index.cjs +1221 -213
- package/dist/index.d.cts +274 -80
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +275 -81
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1183 -218
- package/dist/index.mjs.map +1 -1
- package/dist/ui/bubble-menu/bubble-menu.css +32 -17
- package/dist/ui/slash-command/slash-command.css +44 -0
- package/dist/ui/themes/default.css +241 -31
- package/package.json +20 -4
package/dist/index.d.mts
CHANGED
|
@@ -1,41 +1,24 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
1
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
2
|
+
import * as _tiptap_core18 from "@tiptap/core";
|
|
3
|
+
import { Content, Editor, Extension, Extensions, JSONContent, Mark, MarkConfig, MarkType, Node, NodeConfig as NodeConfig$1, NodeType as NodeType$1, ParentConfig, Range } from "@tiptap/core";
|
|
4
|
+
import * as _tiptap_extensions2 from "@tiptap/extensions";
|
|
5
|
+
import { UseEditorOptions } from "@tiptap/react";
|
|
6
|
+
import * as React$1 from "react";
|
|
7
|
+
import { ComponentType, ReactNode, Ref } from "react";
|
|
3
8
|
import * as _tiptap_starter_kit0 from "@tiptap/starter-kit";
|
|
4
|
-
import * as
|
|
9
|
+
import * as _tiptap_extension_blockquote0 from "@tiptap/extension-blockquote";
|
|
10
|
+
import * as _tiptap_extension_bullet_list1 from "@tiptap/extension-bullet-list";
|
|
11
|
+
import * as _tiptap_extension_code1 from "@tiptap/extension-code";
|
|
5
12
|
import { CodeBlockOptions } from "@tiptap/extension-code-block";
|
|
6
|
-
import
|
|
7
|
-
import * as
|
|
13
|
+
import { EditorView } from "@tiptap/pm/view";
|
|
14
|
+
import * as _tiptap_extension_hard_break1 from "@tiptap/extension-hard-break";
|
|
15
|
+
import * as _tiptap_extension_italic0 from "@tiptap/extension-italic";
|
|
16
|
+
import * as _tiptap_extension_list_item1 from "@tiptap/extension-list-item";
|
|
17
|
+
import * as _tiptap_extension_ordered_list0 from "@tiptap/extension-ordered-list";
|
|
18
|
+
import * as _tiptap_extension_paragraph1 from "@tiptap/extension-paragraph";
|
|
19
|
+
import * as _tiptap_extension_strike0 from "@tiptap/extension-strike";
|
|
8
20
|
import { Node as Node$1 } from "@tiptap/pm/model";
|
|
9
21
|
|
|
10
|
-
//#region src/core/email-node.d.ts
|
|
11
|
-
type RendererComponent = (props: {
|
|
12
|
-
node: JSONContent;
|
|
13
|
-
style: React.CSSProperties;
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
}) => React.ReactNode;
|
|
16
|
-
interface EmailNodeConfig<Options, Storage> extends NodeConfig$1<Options, Storage> {
|
|
17
|
-
renderToReactEmail: RendererComponent;
|
|
18
|
-
}
|
|
19
|
-
type ConfigParameter<Options, Storage> = Partial<Omit<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'>;
|
|
20
|
-
declare class EmailNode<Options = Record<string, never>, Storage = Record<string, never>> extends Node<Options, Storage> {
|
|
21
|
-
config: EmailNodeConfig<Options, Storage>;
|
|
22
|
-
constructor(config: ConfigParameter<Options, Storage>);
|
|
23
|
-
/**
|
|
24
|
-
* Create a new Node instance
|
|
25
|
-
* @param config - Node configuration object or a function that returns a configuration object
|
|
26
|
-
*/
|
|
27
|
-
static create<O = Record<string, never>, S = Record<string, never>>(config: ConfigParameter<O, S> | (() => ConfigParameter<O, S>)): EmailNode<O, S>;
|
|
28
|
-
static from<O, S>(node: Node<O, S>, renderToReactEmail: RendererComponent): EmailNode<O, S>;
|
|
29
|
-
configure(options?: Partial<Options>): EmailNode<Options, Storage>;
|
|
30
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig extends NodeConfig$1<ExtendedOptions, ExtendedStorage> = EmailNodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
31
|
-
name: string;
|
|
32
|
-
options: ExtendedOptions;
|
|
33
|
-
storage: ExtendedStorage;
|
|
34
|
-
editor: Editor;
|
|
35
|
-
type: NodeType$1;
|
|
36
|
-
}>)): EmailNode<ExtendedOptions, ExtendedStorage>;
|
|
37
|
-
}
|
|
38
|
-
//#endregion
|
|
39
22
|
//#region src/core/event-bus.d.ts
|
|
40
23
|
/**
|
|
41
24
|
* Base event map interface for the editor event bus.
|
|
@@ -68,6 +51,48 @@ declare class EditorEventBus {
|
|
|
68
51
|
}
|
|
69
52
|
declare const editorEventBus: EditorEventBus;
|
|
70
53
|
//#endregion
|
|
54
|
+
//#region src/core/serializer/compose-react-email.d.ts
|
|
55
|
+
interface ComposeReactEmailResult {
|
|
56
|
+
html: string;
|
|
57
|
+
text: string;
|
|
58
|
+
}
|
|
59
|
+
declare const composeReactEmail: ({
|
|
60
|
+
editor,
|
|
61
|
+
preview
|
|
62
|
+
}: {
|
|
63
|
+
editor: Editor;
|
|
64
|
+
preview: string | null;
|
|
65
|
+
}) => Promise<ComposeReactEmailResult>;
|
|
66
|
+
//#endregion
|
|
67
|
+
//#region src/core/serializer/email-node.d.ts
|
|
68
|
+
type RendererComponent = (props: {
|
|
69
|
+
node: JSONContent;
|
|
70
|
+
style: React.CSSProperties;
|
|
71
|
+
children?: React.ReactNode;
|
|
72
|
+
}) => React.ReactNode;
|
|
73
|
+
interface EmailNodeConfig<Options, Storage> extends NodeConfig$1<Options, Storage> {
|
|
74
|
+
renderToReactEmail: RendererComponent;
|
|
75
|
+
}
|
|
76
|
+
type ConfigParameter$1<Options, Storage> = Partial<Omit<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'>;
|
|
77
|
+
declare class EmailNode<Options = Record<string, never>, Storage = Record<string, never>> extends Node<Options, Storage> {
|
|
78
|
+
config: EmailNodeConfig<Options, Storage>;
|
|
79
|
+
constructor(config: ConfigParameter$1<Options, Storage>);
|
|
80
|
+
/**
|
|
81
|
+
* Create a new Node instance
|
|
82
|
+
* @param config - Node configuration object or a function that returns a configuration object
|
|
83
|
+
*/
|
|
84
|
+
static create<O = Record<string, never>, S = Record<string, never>>(config: ConfigParameter$1<O, S> | (() => ConfigParameter$1<O, S>)): EmailNode<O, S>;
|
|
85
|
+
static from<O, S>(node: Node<O, S>, renderToReactEmail: RendererComponent): EmailNode<O, S>;
|
|
86
|
+
configure(options?: Partial<Options>): EmailNode<Options, Storage>;
|
|
87
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig extends NodeConfig$1<ExtendedOptions, ExtendedStorage> = EmailNodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
88
|
+
name: string;
|
|
89
|
+
options: ExtendedOptions;
|
|
90
|
+
storage: ExtendedStorage;
|
|
91
|
+
editor: Editor;
|
|
92
|
+
type: NodeType$1;
|
|
93
|
+
}>)): EmailNode<ExtendedOptions, ExtendedStorage>;
|
|
94
|
+
}
|
|
95
|
+
//#endregion
|
|
71
96
|
//#region src/extensions/code-block.d.ts
|
|
72
97
|
interface CodeBlockPrismOptions extends CodeBlockOptions {
|
|
73
98
|
defaultLanguage: string;
|
|
@@ -75,6 +100,37 @@ interface CodeBlockPrismOptions extends CodeBlockOptions {
|
|
|
75
100
|
}
|
|
76
101
|
declare const CodeBlockPrism: EmailNode<CodeBlockPrismOptions, any>;
|
|
77
102
|
//#endregion
|
|
103
|
+
//#region src/core/serializer/email-mark.d.ts
|
|
104
|
+
type SerializedMark = NonNullable<JSONContent['marks']>[number];
|
|
105
|
+
type RendererComponent$1 = (props: {
|
|
106
|
+
mark: SerializedMark;
|
|
107
|
+
node: JSONContent;
|
|
108
|
+
style: React.CSSProperties;
|
|
109
|
+
children?: React.ReactNode;
|
|
110
|
+
}) => React.ReactNode;
|
|
111
|
+
interface EmailMarkConfig<Options, Storage> extends MarkConfig<Options, Storage> {
|
|
112
|
+
renderToReactEmail: RendererComponent$1;
|
|
113
|
+
}
|
|
114
|
+
type ConfigParameter<Options, Storage> = Partial<Omit<EmailMarkConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailMarkConfig<Options, Storage>, 'renderToReactEmail'>;
|
|
115
|
+
declare class EmailMark<Options = Record<string, never>, Storage = Record<string, never>> extends Mark<Options, Storage> {
|
|
116
|
+
config: EmailMarkConfig<Options, Storage>;
|
|
117
|
+
constructor(config: ConfigParameter<Options, Storage>);
|
|
118
|
+
/**
|
|
119
|
+
* Create a new Mark instance
|
|
120
|
+
* @param config - Mark configuration object or a function that returns a configuration object
|
|
121
|
+
*/
|
|
122
|
+
static create<O = Record<string, never>, S = Record<string, never>>(config: ConfigParameter<O, S> | (() => ConfigParameter<O, S>)): EmailMark<O, S>;
|
|
123
|
+
static from<O, S>(mark: Mark<O, S>, renderToReactEmail: RendererComponent$1): EmailMark<O, S>;
|
|
124
|
+
configure(options?: Partial<Options>): EmailMark<Options, Storage>;
|
|
125
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig extends MarkConfig<ExtendedOptions, ExtendedStorage> = EmailMarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
126
|
+
name: string;
|
|
127
|
+
options: ExtendedOptions;
|
|
128
|
+
storage: ExtendedStorage;
|
|
129
|
+
editor: Editor;
|
|
130
|
+
type: MarkType;
|
|
131
|
+
}>)): EmailMark<ExtendedOptions, ExtendedStorage>;
|
|
132
|
+
}
|
|
133
|
+
//#endregion
|
|
78
134
|
//#region src/extensions/preview-text.d.ts
|
|
79
135
|
interface PreviewTextOptions {
|
|
80
136
|
HTMLAttributes: Record<string, unknown>;
|
|
@@ -112,7 +168,7 @@ declare module '@tiptap/core' {
|
|
|
112
168
|
* This extension allows you to mark text as bold.
|
|
113
169
|
* @see https://tiptap.dev/api/marks/bold
|
|
114
170
|
*/
|
|
115
|
-
declare const Bold:
|
|
171
|
+
declare const Bold: EmailMark<BoldOptions, Record<string, never>>;
|
|
116
172
|
//#endregion
|
|
117
173
|
//#region src/extensions/table.d.ts
|
|
118
174
|
declare module '@tiptap/core' {
|
|
@@ -225,12 +281,21 @@ interface MaxNestingOptions {
|
|
|
225
281
|
}
|
|
226
282
|
declare const MaxNesting: Extension<MaxNestingOptions, any>;
|
|
227
283
|
//#endregion
|
|
284
|
+
//#region src/extensions/blockquote.d.ts
|
|
285
|
+
declare const Blockquote: EmailNode<_tiptap_extension_blockquote0.BlockquoteOptions, any>;
|
|
286
|
+
//#endregion
|
|
228
287
|
//#region src/extensions/body.d.ts
|
|
229
288
|
interface BodyOptions {
|
|
230
289
|
HTMLAttributes: Record<string, unknown>;
|
|
231
290
|
}
|
|
232
291
|
declare const Body: EmailNode<BodyOptions, Record<string, never>>;
|
|
233
292
|
//#endregion
|
|
293
|
+
//#region src/extensions/bullet-list.d.ts
|
|
294
|
+
declare const BulletList: EmailNode<_tiptap_extension_bullet_list1.BulletListOptions, any>;
|
|
295
|
+
//#endregion
|
|
296
|
+
//#region src/extensions/code.d.ts
|
|
297
|
+
declare const Code: EmailMark<_tiptap_extension_code1.CodeOptions, any>;
|
|
298
|
+
//#endregion
|
|
234
299
|
//#region src/extensions/columns.d.ts
|
|
235
300
|
declare module '@tiptap/core' {
|
|
236
301
|
interface Commands<ReturnType> {
|
|
@@ -253,6 +318,21 @@ interface DivOptions {
|
|
|
253
318
|
}
|
|
254
319
|
declare const Div: EmailNode<DivOptions, Record<string, never>>;
|
|
255
320
|
//#endregion
|
|
321
|
+
//#region src/extensions/hard-break.d.ts
|
|
322
|
+
declare const HardBreak: EmailNode<_tiptap_extension_hard_break1.HardBreakOptions, any>;
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region src/extensions/italic.d.ts
|
|
325
|
+
declare const Italic: EmailMark<_tiptap_extension_italic0.ItalicOptions, any>;
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region src/extensions/list-item.d.ts
|
|
328
|
+
declare const ListItem: EmailNode<_tiptap_extension_list_item1.ListItemOptions, any>;
|
|
329
|
+
//#endregion
|
|
330
|
+
//#region src/extensions/ordered-list.d.ts
|
|
331
|
+
declare const OrderedList: EmailNode<_tiptap_extension_ordered_list0.OrderedListOptions, any>;
|
|
332
|
+
//#endregion
|
|
333
|
+
//#region src/extensions/paragraph.d.ts
|
|
334
|
+
declare const Paragraph: EmailNode<_tiptap_extension_paragraph1.ParagraphOptions, any>;
|
|
335
|
+
//#endregion
|
|
256
336
|
//#region src/extensions/placeholder.d.ts
|
|
257
337
|
interface PlaceholderOptions {
|
|
258
338
|
placeholder?: string | ((props: {
|
|
@@ -260,10 +340,10 @@ interface PlaceholderOptions {
|
|
|
260
340
|
}) => string);
|
|
261
341
|
includeChildren?: boolean;
|
|
262
342
|
}
|
|
263
|
-
declare const Placeholder:
|
|
343
|
+
declare const Placeholder: _tiptap_core18.Extension<_tiptap_extensions2.PlaceholderOptions, any>;
|
|
264
344
|
//#endregion
|
|
265
345
|
//#region src/extensions/preserved-style.d.ts
|
|
266
|
-
declare const PreservedStyle:
|
|
346
|
+
declare const PreservedStyle: EmailMark<Record<string, never>, Record<string, never>>;
|
|
267
347
|
/**
|
|
268
348
|
* Processes styles when unlinking:
|
|
269
349
|
* - Has background (button-like): preserve all styles
|
|
@@ -285,6 +365,9 @@ declare module '@tiptap/core' {
|
|
|
285
365
|
}
|
|
286
366
|
declare const Section: EmailNode<SectionOptions, Record<string, never>>;
|
|
287
367
|
//#endregion
|
|
368
|
+
//#region src/extensions/strike.d.ts
|
|
369
|
+
declare const Strike: EmailMark<_tiptap_extension_strike0.StrikeOptions, any>;
|
|
370
|
+
//#endregion
|
|
288
371
|
//#region src/extensions/sup.d.ts
|
|
289
372
|
interface SupOptions {
|
|
290
373
|
/**
|
|
@@ -316,7 +399,7 @@ declare module '@tiptap/core' {
|
|
|
316
399
|
* This extension allows you to mark text as superscript.
|
|
317
400
|
* @see https://tiptap.dev/api/marks/superscript
|
|
318
401
|
*/
|
|
319
|
-
declare const Sup:
|
|
402
|
+
declare const Sup: EmailMark<SupOptions, Record<string, never>>;
|
|
320
403
|
//#endregion
|
|
321
404
|
//#region src/extensions/uppercase.d.ts
|
|
322
405
|
interface UppercaseOptions {
|
|
@@ -331,10 +414,47 @@ declare module '@tiptap/core' {
|
|
|
331
414
|
};
|
|
332
415
|
}
|
|
333
416
|
}
|
|
334
|
-
declare const Uppercase:
|
|
417
|
+
declare const Uppercase: EmailMark<UppercaseOptions, Record<string, never>>;
|
|
335
418
|
//#endregion
|
|
336
419
|
//#region src/extensions/index.d.ts
|
|
337
|
-
declare const coreExtensions: (
|
|
420
|
+
declare const coreExtensions: (_tiptap_core18.Extension<_tiptap_starter_kit0.StarterKitOptions, any> | _tiptap_core18.Node<any, any> | EmailNode<CodeBlockPrismOptions, any> | EmailMark<_tiptap_extension_code1.CodeOptions, any> | EmailNode<_tiptap_extension_paragraph1.ParagraphOptions, any> | EmailNode<_tiptap_extension_bullet_list1.BulletListOptions, any> | EmailNode<_tiptap_extension_list_item1.ListItemOptions, any> | EmailNode<_tiptap_extension_hard_break1.HardBreakOptions, any> | _tiptap_core18.Extension<_tiptap_extensions2.PlaceholderOptions, any> | _tiptap_core18.Node<PreviewTextOptions, any> | EmailMark<BoldOptions, Record<string, never>> | EmailMark<Record<string, never>, Record<string, never>> | EmailNode<TableOptions, Record<string, never>> | EmailNode<TableRowOptions, Record<string, never>> | EmailNode<EditorButtonOptions, Record<string, never>> | _tiptap_core18.Extension<AlignmentOptions, any> | _tiptap_core18.Extension<StyleAttributeOptions, any> | _tiptap_core18.Extension<ClassAttributeOptions, any> | _tiptap_core18.Extension<MaxNestingOptions, any>)[];
|
|
421
|
+
//#endregion
|
|
422
|
+
//#region src/core/create-paste-handler.d.ts
|
|
423
|
+
type PasteHandler = (payload: string | File, view: EditorView) => boolean;
|
|
424
|
+
type UploadImageHandler = (file: File, view: EditorView, pos: number, preserveAttributes?: {
|
|
425
|
+
width?: string;
|
|
426
|
+
height?: string;
|
|
427
|
+
alignment?: string;
|
|
428
|
+
href?: string;
|
|
429
|
+
}) => void | Promise<void>;
|
|
430
|
+
//#endregion
|
|
431
|
+
//#region src/core/use-editor.d.ts
|
|
432
|
+
declare function useEditor({
|
|
433
|
+
content,
|
|
434
|
+
extensions,
|
|
435
|
+
onUpdate,
|
|
436
|
+
onPaste,
|
|
437
|
+
onUploadImage,
|
|
438
|
+
onReady,
|
|
439
|
+
editable,
|
|
440
|
+
...rest
|
|
441
|
+
}: {
|
|
442
|
+
content: Content;
|
|
443
|
+
extensions?: Extensions;
|
|
444
|
+
onUpdate?: (editor: Editor, transaction: {
|
|
445
|
+
getMeta: (key: string) => unknown;
|
|
446
|
+
}) => void;
|
|
447
|
+
onPaste?: PasteHandler;
|
|
448
|
+
onUploadImage?: UploadImageHandler;
|
|
449
|
+
onReady?: (editor: Editor | null) => void;
|
|
450
|
+
editable?: boolean;
|
|
451
|
+
} & UseEditorOptions): {
|
|
452
|
+
editor: Editor;
|
|
453
|
+
isEditorEmpty: boolean;
|
|
454
|
+
extensions: (_tiptap_core18.Extension<_tiptap_starter_kit0.StarterKitOptions, any> | _tiptap_core18.Node<any, any> | EmailNode<CodeBlockPrismOptions, any> | EmailMark<_tiptap_extension_code1.CodeOptions, any> | EmailNode<_tiptap_extension_paragraph1.ParagraphOptions, any> | EmailNode<_tiptap_extension_bullet_list1.BulletListOptions, any> | EmailNode<_tiptap_extension_list_item1.ListItemOptions, any> | EmailNode<_tiptap_extension_hard_break1.HardBreakOptions, any> | _tiptap_core18.Extension<_tiptap_extensions2.PlaceholderOptions, any> | _tiptap_core18.Node<PreviewTextOptions, any> | EmailMark<BoldOptions, Record<string, never>> | EmailMark<Record<string, never>, Record<string, never>> | EmailNode<TableOptions, Record<string, never>> | EmailNode<TableRowOptions, Record<string, never>> | EmailNode<EditorButtonOptions, Record<string, never>> | _tiptap_core18.Extension<AlignmentOptions, any> | _tiptap_core18.Extension<StyleAttributeOptions, any> | _tiptap_core18.Extension<ClassAttributeOptions, any> | _tiptap_core18.Extension<MaxNestingOptions, any> | _tiptap_core18.Extension<_tiptap_extensions2.UndoRedoOptions, any> | _tiptap_core18.AnyExtension)[];
|
|
455
|
+
contentError: Error | null;
|
|
456
|
+
isCollaborative: boolean;
|
|
457
|
+
};
|
|
338
458
|
//#endregion
|
|
339
459
|
//#region src/ui/bubble-menu/create-mark-bubble-item.d.ts
|
|
340
460
|
interface PreWiredItemProps {
|
|
@@ -347,19 +467,19 @@ interface PreWiredItemProps {
|
|
|
347
467
|
declare function BubbleMenuAlignCenter({
|
|
348
468
|
className,
|
|
349
469
|
children
|
|
350
|
-
}: PreWiredItemProps):
|
|
470
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
351
471
|
//#endregion
|
|
352
472
|
//#region src/ui/bubble-menu/align-left.d.ts
|
|
353
473
|
declare function BubbleMenuAlignLeft({
|
|
354
474
|
className,
|
|
355
475
|
children
|
|
356
|
-
}: PreWiredItemProps):
|
|
476
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
357
477
|
//#endregion
|
|
358
478
|
//#region src/ui/bubble-menu/align-right.d.ts
|
|
359
479
|
declare function BubbleMenuAlignRight({
|
|
360
480
|
className,
|
|
361
481
|
children
|
|
362
|
-
}: PreWiredItemProps):
|
|
482
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
363
483
|
//#endregion
|
|
364
484
|
//#region src/ui/bubble-menu/default.d.ts
|
|
365
485
|
type ExcludableItem$3 = 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'uppercase' | 'align-left' | 'align-center' | 'align-right' | 'node-selector' | 'link-selector';
|
|
@@ -384,7 +504,7 @@ declare function BubbleMenuDefault({
|
|
|
384
504
|
offset,
|
|
385
505
|
onHide,
|
|
386
506
|
className
|
|
387
|
-
}: BubbleMenuDefaultProps):
|
|
507
|
+
}: BubbleMenuDefaultProps): react_jsx_runtime7.JSX.Element;
|
|
388
508
|
//#endregion
|
|
389
509
|
//#region src/ui/bubble-menu/group.d.ts
|
|
390
510
|
interface BubbleMenuItemGroupProps {
|
|
@@ -394,7 +514,7 @@ interface BubbleMenuItemGroupProps {
|
|
|
394
514
|
declare function BubbleMenuItemGroup({
|
|
395
515
|
className,
|
|
396
516
|
children
|
|
397
|
-
}: BubbleMenuItemGroupProps):
|
|
517
|
+
}: BubbleMenuItemGroupProps): react_jsx_runtime7.JSX.Element;
|
|
398
518
|
//#endregion
|
|
399
519
|
//#region src/ui/bubble-menu/item.d.ts
|
|
400
520
|
interface BubbleMenuItemProps extends React$1.ComponentProps<'button'> {
|
|
@@ -412,7 +532,7 @@ declare function BubbleMenuItem({
|
|
|
412
532
|
className,
|
|
413
533
|
children,
|
|
414
534
|
...rest
|
|
415
|
-
}: BubbleMenuItemProps):
|
|
535
|
+
}: BubbleMenuItemProps): react_jsx_runtime7.JSX.Element;
|
|
416
536
|
//#endregion
|
|
417
537
|
//#region src/ui/bubble-menu/link-selector.d.ts
|
|
418
538
|
interface BubbleMenuLinkSelectorProps {
|
|
@@ -441,7 +561,7 @@ declare function BubbleMenuLinkSelector({
|
|
|
441
561
|
children,
|
|
442
562
|
open: controlledOpen,
|
|
443
563
|
onOpenChange
|
|
444
|
-
}: BubbleMenuLinkSelectorProps):
|
|
564
|
+
}: BubbleMenuLinkSelectorProps): react_jsx_runtime7.JSX.Element | null;
|
|
445
565
|
//#endregion
|
|
446
566
|
//#region src/ui/bubble-menu/node-selector.d.ts
|
|
447
567
|
type NodeType = 'Text' | 'Title' | 'Subtitle' | 'Heading' | 'Bullet List' | 'Numbered List' | 'Quote' | 'Code';
|
|
@@ -467,7 +587,7 @@ declare function NodeSelectorRoot({
|
|
|
467
587
|
onOpenChange,
|
|
468
588
|
className,
|
|
469
589
|
children
|
|
470
|
-
}: NodeSelectorRootProps):
|
|
590
|
+
}: NodeSelectorRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
471
591
|
interface NodeSelectorTriggerProps {
|
|
472
592
|
className?: string;
|
|
473
593
|
children?: React$1.ReactNode;
|
|
@@ -475,7 +595,7 @@ interface NodeSelectorTriggerProps {
|
|
|
475
595
|
declare function NodeSelectorTrigger({
|
|
476
596
|
className,
|
|
477
597
|
children
|
|
478
|
-
}: NodeSelectorTriggerProps):
|
|
598
|
+
}: NodeSelectorTriggerProps): react_jsx_runtime7.JSX.Element;
|
|
479
599
|
interface NodeSelectorContentProps {
|
|
480
600
|
className?: string;
|
|
481
601
|
/** Popover alignment (default: "start") */
|
|
@@ -488,7 +608,7 @@ declare function NodeSelectorContent({
|
|
|
488
608
|
className,
|
|
489
609
|
align,
|
|
490
610
|
children
|
|
491
|
-
}: NodeSelectorContentProps):
|
|
611
|
+
}: NodeSelectorContentProps): react_jsx_runtime7.JSX.Element;
|
|
492
612
|
interface BubbleMenuNodeSelectorProps {
|
|
493
613
|
/** Block types to exclude */
|
|
494
614
|
omit?: string[];
|
|
@@ -506,7 +626,7 @@ declare function BubbleMenuNodeSelector({
|
|
|
506
626
|
triggerContent,
|
|
507
627
|
open,
|
|
508
628
|
onOpenChange
|
|
509
|
-
}: BubbleMenuNodeSelectorProps):
|
|
629
|
+
}: BubbleMenuNodeSelectorProps): react_jsx_runtime7.JSX.Element;
|
|
510
630
|
//#endregion
|
|
511
631
|
//#region src/ui/bubble-menu/root.d.ts
|
|
512
632
|
interface BubbleMenuRootProps {
|
|
@@ -529,7 +649,7 @@ declare function BubbleMenuRoot({
|
|
|
529
649
|
onHide,
|
|
530
650
|
className,
|
|
531
651
|
children
|
|
532
|
-
}: BubbleMenuRootProps):
|
|
652
|
+
}: BubbleMenuRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
533
653
|
//#endregion
|
|
534
654
|
//#region src/ui/bubble-menu/separator.d.ts
|
|
535
655
|
interface BubbleMenuSeparatorProps {
|
|
@@ -537,14 +657,14 @@ interface BubbleMenuSeparatorProps {
|
|
|
537
657
|
}
|
|
538
658
|
declare function BubbleMenuSeparator({
|
|
539
659
|
className
|
|
540
|
-
}: BubbleMenuSeparatorProps):
|
|
660
|
+
}: BubbleMenuSeparatorProps): react_jsx_runtime7.JSX.Element;
|
|
541
661
|
//#endregion
|
|
542
662
|
//#region src/ui/bubble-menu/bold.d.ts
|
|
543
663
|
declare const BubbleMenuBold: {
|
|
544
664
|
({
|
|
545
665
|
className,
|
|
546
666
|
children
|
|
547
|
-
}: PreWiredItemProps):
|
|
667
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
548
668
|
displayName: string;
|
|
549
669
|
};
|
|
550
670
|
//#endregion
|
|
@@ -553,7 +673,7 @@ declare const BubbleMenuCode: {
|
|
|
553
673
|
({
|
|
554
674
|
className,
|
|
555
675
|
children
|
|
556
|
-
}: PreWiredItemProps):
|
|
676
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
557
677
|
displayName: string;
|
|
558
678
|
};
|
|
559
679
|
//#endregion
|
|
@@ -562,7 +682,7 @@ declare const BubbleMenuItalic: {
|
|
|
562
682
|
({
|
|
563
683
|
className,
|
|
564
684
|
children
|
|
565
|
-
}: PreWiredItemProps):
|
|
685
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
566
686
|
displayName: string;
|
|
567
687
|
};
|
|
568
688
|
//#endregion
|
|
@@ -571,7 +691,7 @@ declare const BubbleMenuStrike: {
|
|
|
571
691
|
({
|
|
572
692
|
className,
|
|
573
693
|
children
|
|
574
|
-
}: PreWiredItemProps):
|
|
694
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
575
695
|
displayName: string;
|
|
576
696
|
};
|
|
577
697
|
//#endregion
|
|
@@ -580,7 +700,7 @@ declare const BubbleMenuUnderline: {
|
|
|
580
700
|
({
|
|
581
701
|
className,
|
|
582
702
|
children
|
|
583
|
-
}: PreWiredItemProps):
|
|
703
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
584
704
|
displayName: string;
|
|
585
705
|
};
|
|
586
706
|
//#endregion
|
|
@@ -589,7 +709,7 @@ declare const BubbleMenuUppercase: {
|
|
|
589
709
|
({
|
|
590
710
|
className,
|
|
591
711
|
children
|
|
592
|
-
}: PreWiredItemProps):
|
|
712
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
593
713
|
displayName: string;
|
|
594
714
|
};
|
|
595
715
|
//#endregion
|
|
@@ -603,42 +723,42 @@ declare const BubbleMenu: {
|
|
|
603
723
|
({
|
|
604
724
|
className,
|
|
605
725
|
children
|
|
606
|
-
}: PreWiredItemProps):
|
|
726
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
607
727
|
displayName: string;
|
|
608
728
|
};
|
|
609
729
|
readonly Italic: {
|
|
610
730
|
({
|
|
611
731
|
className,
|
|
612
732
|
children
|
|
613
|
-
}: PreWiredItemProps):
|
|
733
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
614
734
|
displayName: string;
|
|
615
735
|
};
|
|
616
736
|
readonly Underline: {
|
|
617
737
|
({
|
|
618
738
|
className,
|
|
619
739
|
children
|
|
620
|
-
}: PreWiredItemProps):
|
|
740
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
621
741
|
displayName: string;
|
|
622
742
|
};
|
|
623
743
|
readonly Strike: {
|
|
624
744
|
({
|
|
625
745
|
className,
|
|
626
746
|
children
|
|
627
|
-
}: PreWiredItemProps):
|
|
747
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
628
748
|
displayName: string;
|
|
629
749
|
};
|
|
630
750
|
readonly Code: {
|
|
631
751
|
({
|
|
632
752
|
className,
|
|
633
753
|
children
|
|
634
|
-
}: PreWiredItemProps):
|
|
754
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
635
755
|
displayName: string;
|
|
636
756
|
};
|
|
637
757
|
readonly Uppercase: {
|
|
638
758
|
({
|
|
639
759
|
className,
|
|
640
760
|
children
|
|
641
|
-
}: PreWiredItemProps):
|
|
761
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
642
762
|
displayName: string;
|
|
643
763
|
};
|
|
644
764
|
readonly AlignLeft: typeof BubbleMenuAlignLeft;
|
|
@@ -668,7 +788,7 @@ declare function ButtonBubbleMenuDefault({
|
|
|
668
788
|
offset,
|
|
669
789
|
onHide,
|
|
670
790
|
className
|
|
671
|
-
}: ButtonBubbleMenuDefaultProps):
|
|
791
|
+
}: ButtonBubbleMenuDefaultProps): react_jsx_runtime7.JSX.Element;
|
|
672
792
|
//#endregion
|
|
673
793
|
//#region src/ui/button-bubble-menu/edit-link.d.ts
|
|
674
794
|
interface ButtonBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -678,7 +798,7 @@ declare function ButtonBubbleMenuEditLink({
|
|
|
678
798
|
onClick,
|
|
679
799
|
onMouseDown,
|
|
680
800
|
...rest
|
|
681
|
-
}: ButtonBubbleMenuEditLinkProps):
|
|
801
|
+
}: ButtonBubbleMenuEditLinkProps): react_jsx_runtime7.JSX.Element;
|
|
682
802
|
//#endregion
|
|
683
803
|
//#region src/ui/button-bubble-menu/root.d.ts
|
|
684
804
|
interface ButtonBubbleMenuRootProps {
|
|
@@ -698,14 +818,14 @@ declare function ButtonBubbleMenuRoot({
|
|
|
698
818
|
offset,
|
|
699
819
|
className,
|
|
700
820
|
children
|
|
701
|
-
}: ButtonBubbleMenuRootProps):
|
|
821
|
+
}: ButtonBubbleMenuRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
702
822
|
//#endregion
|
|
703
823
|
//#region src/ui/button-bubble-menu/toolbar.d.ts
|
|
704
824
|
interface ButtonBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
705
825
|
declare function ButtonBubbleMenuToolbar({
|
|
706
826
|
children,
|
|
707
827
|
...rest
|
|
708
|
-
}: ButtonBubbleMenuToolbarProps):
|
|
828
|
+
}: ButtonBubbleMenuToolbarProps): react_jsx_runtime7.JSX.Element | null;
|
|
709
829
|
//#endregion
|
|
710
830
|
//#region src/ui/button-bubble-menu/context.d.ts
|
|
711
831
|
interface ButtonBubbleMenuContextValue {
|
|
@@ -738,7 +858,7 @@ declare function ImageBubbleMenuDefault({
|
|
|
738
858
|
offset,
|
|
739
859
|
onHide,
|
|
740
860
|
className
|
|
741
|
-
}: ImageBubbleMenuDefaultProps):
|
|
861
|
+
}: ImageBubbleMenuDefaultProps): react_jsx_runtime7.JSX.Element;
|
|
742
862
|
//#endregion
|
|
743
863
|
//#region src/ui/image-bubble-menu/edit-link.d.ts
|
|
744
864
|
interface ImageBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -748,7 +868,7 @@ declare function ImageBubbleMenuEditLink({
|
|
|
748
868
|
onClick,
|
|
749
869
|
onMouseDown,
|
|
750
870
|
...rest
|
|
751
|
-
}: ImageBubbleMenuEditLinkProps):
|
|
871
|
+
}: ImageBubbleMenuEditLinkProps): react_jsx_runtime7.JSX.Element;
|
|
752
872
|
//#endregion
|
|
753
873
|
//#region src/ui/image-bubble-menu/root.d.ts
|
|
754
874
|
interface ImageBubbleMenuRootProps {
|
|
@@ -768,14 +888,14 @@ declare function ImageBubbleMenuRoot({
|
|
|
768
888
|
offset,
|
|
769
889
|
className,
|
|
770
890
|
children
|
|
771
|
-
}: ImageBubbleMenuRootProps):
|
|
891
|
+
}: ImageBubbleMenuRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
772
892
|
//#endregion
|
|
773
893
|
//#region src/ui/image-bubble-menu/toolbar.d.ts
|
|
774
894
|
interface ImageBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
775
895
|
declare function ImageBubbleMenuToolbar({
|
|
776
896
|
children,
|
|
777
897
|
...rest
|
|
778
|
-
}: ImageBubbleMenuToolbarProps):
|
|
898
|
+
}: ImageBubbleMenuToolbarProps): react_jsx_runtime7.JSX.Element | null;
|
|
779
899
|
//#endregion
|
|
780
900
|
//#region src/ui/image-bubble-menu/context.d.ts
|
|
781
901
|
interface ImageBubbleMenuContextValue {
|
|
@@ -814,7 +934,7 @@ declare function LinkBubbleMenuDefault({
|
|
|
814
934
|
validateUrl,
|
|
815
935
|
onLinkApply,
|
|
816
936
|
onLinkRemove
|
|
817
|
-
}: LinkBubbleMenuDefaultProps):
|
|
937
|
+
}: LinkBubbleMenuDefaultProps): react_jsx_runtime7.JSX.Element;
|
|
818
938
|
//#endregion
|
|
819
939
|
//#region src/ui/link-bubble-menu/edit-link.d.ts
|
|
820
940
|
interface LinkBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -824,7 +944,7 @@ declare function LinkBubbleMenuEditLink({
|
|
|
824
944
|
onClick,
|
|
825
945
|
onMouseDown,
|
|
826
946
|
...rest
|
|
827
|
-
}: LinkBubbleMenuEditLinkProps):
|
|
947
|
+
}: LinkBubbleMenuEditLinkProps): react_jsx_runtime7.JSX.Element;
|
|
828
948
|
//#endregion
|
|
829
949
|
//#region src/ui/link-bubble-menu/form.d.ts
|
|
830
950
|
interface LinkBubbleMenuFormProps {
|
|
@@ -844,7 +964,7 @@ declare function LinkBubbleMenuForm({
|
|
|
844
964
|
onLinkApply,
|
|
845
965
|
onLinkRemove,
|
|
846
966
|
children
|
|
847
|
-
}: LinkBubbleMenuFormProps):
|
|
967
|
+
}: LinkBubbleMenuFormProps): react_jsx_runtime7.JSX.Element | null;
|
|
848
968
|
//#endregion
|
|
849
969
|
//#region src/ui/link-bubble-menu/open-link.d.ts
|
|
850
970
|
interface LinkBubbleMenuOpenLinkProps extends Omit<React$1.ComponentProps<'a'>, 'href' | 'target' | 'rel'> {}
|
|
@@ -852,7 +972,7 @@ declare function LinkBubbleMenuOpenLink({
|
|
|
852
972
|
className,
|
|
853
973
|
children,
|
|
854
974
|
...rest
|
|
855
|
-
}: LinkBubbleMenuOpenLinkProps):
|
|
975
|
+
}: LinkBubbleMenuOpenLinkProps): react_jsx_runtime7.JSX.Element;
|
|
856
976
|
//#endregion
|
|
857
977
|
//#region src/ui/link-bubble-menu/root.d.ts
|
|
858
978
|
interface LinkBubbleMenuRootProps {
|
|
@@ -872,14 +992,14 @@ declare function LinkBubbleMenuRoot({
|
|
|
872
992
|
offset,
|
|
873
993
|
className,
|
|
874
994
|
children
|
|
875
|
-
}: LinkBubbleMenuRootProps):
|
|
995
|
+
}: LinkBubbleMenuRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
876
996
|
//#endregion
|
|
877
997
|
//#region src/ui/link-bubble-menu/toolbar.d.ts
|
|
878
998
|
interface LinkBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
879
999
|
declare function LinkBubbleMenuToolbar({
|
|
880
1000
|
children,
|
|
881
1001
|
...rest
|
|
882
|
-
}: LinkBubbleMenuToolbarProps):
|
|
1002
|
+
}: LinkBubbleMenuToolbarProps): react_jsx_runtime7.JSX.Element | null;
|
|
883
1003
|
//#endregion
|
|
884
1004
|
//#region src/ui/link-bubble-menu/unlink.d.ts
|
|
885
1005
|
interface LinkBubbleMenuUnlinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -889,7 +1009,7 @@ declare function LinkBubbleMenuUnlink({
|
|
|
889
1009
|
onClick,
|
|
890
1010
|
onMouseDown,
|
|
891
1011
|
...rest
|
|
892
|
-
}: LinkBubbleMenuUnlinkProps):
|
|
1012
|
+
}: LinkBubbleMenuUnlinkProps): react_jsx_runtime7.JSX.Element;
|
|
893
1013
|
//#endregion
|
|
894
1014
|
//#region src/ui/link-bubble-menu/context.d.ts
|
|
895
1015
|
interface LinkBubbleMenuContextValue {
|
|
@@ -911,8 +1031,82 @@ declare const LinkBubbleMenu: {
|
|
|
911
1031
|
readonly Default: typeof LinkBubbleMenuDefault;
|
|
912
1032
|
};
|
|
913
1033
|
//#endregion
|
|
1034
|
+
//#region src/ui/slash-command/types.d.ts
|
|
1035
|
+
type SlashCommandCategory = string;
|
|
1036
|
+
interface SearchableItem {
|
|
1037
|
+
title: string;
|
|
1038
|
+
description: string;
|
|
1039
|
+
searchTerms?: string[];
|
|
1040
|
+
}
|
|
1041
|
+
interface SlashCommandItem extends SearchableItem {
|
|
1042
|
+
icon: ReactNode;
|
|
1043
|
+
category: SlashCommandCategory;
|
|
1044
|
+
command: (props: SlashCommandProps) => void;
|
|
1045
|
+
}
|
|
1046
|
+
interface SlashCommandProps {
|
|
1047
|
+
editor: Editor;
|
|
1048
|
+
range: Range;
|
|
1049
|
+
}
|
|
1050
|
+
interface CommandListRef {
|
|
1051
|
+
onKeyDown: (props: {
|
|
1052
|
+
event: KeyboardEvent;
|
|
1053
|
+
}) => boolean;
|
|
1054
|
+
}
|
|
1055
|
+
interface CommandListProps {
|
|
1056
|
+
items: SlashCommandItem[];
|
|
1057
|
+
command: (item: SlashCommandItem) => void;
|
|
1058
|
+
editor: SlashCommandProps['editor'];
|
|
1059
|
+
range: SlashCommandProps['range'];
|
|
1060
|
+
query: string;
|
|
1061
|
+
ref: Ref<CommandListRef>;
|
|
1062
|
+
}
|
|
1063
|
+
type CommandListComponent = ComponentType<CommandListProps>;
|
|
1064
|
+
//#endregion
|
|
1065
|
+
//#region src/ui/slash-command/command-list.d.ts
|
|
1066
|
+
declare function CommandList({
|
|
1067
|
+
items,
|
|
1068
|
+
command,
|
|
1069
|
+
query,
|
|
1070
|
+
ref
|
|
1071
|
+
}: CommandListProps): react_jsx_runtime7.JSX.Element;
|
|
1072
|
+
//#endregion
|
|
1073
|
+
//#region src/ui/slash-command/commands.d.ts
|
|
1074
|
+
declare const TEXT: SlashCommandItem;
|
|
1075
|
+
declare const H1: SlashCommandItem;
|
|
1076
|
+
declare const H2: SlashCommandItem;
|
|
1077
|
+
declare const H3: SlashCommandItem;
|
|
1078
|
+
declare const BULLET_LIST: SlashCommandItem;
|
|
1079
|
+
declare const NUMBERED_LIST: SlashCommandItem;
|
|
1080
|
+
declare const QUOTE: SlashCommandItem;
|
|
1081
|
+
declare const CODE: SlashCommandItem;
|
|
1082
|
+
declare const BUTTON: SlashCommandItem;
|
|
1083
|
+
declare const DIVIDER: SlashCommandItem;
|
|
1084
|
+
declare const SECTION: SlashCommandItem;
|
|
1085
|
+
declare const TWO_COLUMNS: SlashCommandItem;
|
|
1086
|
+
declare const THREE_COLUMNS: SlashCommandItem;
|
|
1087
|
+
declare const FOUR_COLUMNS: SlashCommandItem;
|
|
1088
|
+
declare const defaultSlashCommands: SlashCommandItem[];
|
|
1089
|
+
//#endregion
|
|
1090
|
+
//#region src/ui/slash-command/create-slash-command.d.ts
|
|
1091
|
+
declare function createSlashCommand(options?: {
|
|
1092
|
+
items?: SlashCommandItem[];
|
|
1093
|
+
filterItems?: (items: SlashCommandItem[], query: string, editor: Editor) => SlashCommandItem[];
|
|
1094
|
+
component?: CommandListComponent;
|
|
1095
|
+
}): _tiptap_core18.Extension<any, any>;
|
|
1096
|
+
//#endregion
|
|
1097
|
+
//#region src/ui/slash-command/search.d.ts
|
|
1098
|
+
declare function scoreItem(item: SearchableItem, query: string): number;
|
|
1099
|
+
declare function filterAndRankItems<T extends SearchableItem>(items: T[], query: string): T[];
|
|
1100
|
+
//#endregion
|
|
1101
|
+
//#region src/ui/slash-command/utils.d.ts
|
|
1102
|
+
declare function isInsideNode(editor: Editor, type: string): boolean;
|
|
1103
|
+
declare function isAtMaxColumnsDepth(editor: Editor): boolean;
|
|
1104
|
+
//#endregion
|
|
1105
|
+
//#region src/ui/slash-command/index.d.ts
|
|
1106
|
+
declare const SlashCommand: _tiptap_core18.Extension<any, any>;
|
|
1107
|
+
//#endregion
|
|
914
1108
|
//#region src/utils/set-text-alignment.d.ts
|
|
915
1109
|
declare function setTextAlignment(editor: Editor, alignment: string): void;
|
|
916
1110
|
//#endregion
|
|
917
|
-
export { AlignmentAttribute, AlignmentOptions, Body, BodyOptions, Bold, BoldOptions, BubbleMenu, BubbleMenuAlignCenter, BubbleMenuAlignLeft, BubbleMenuAlignRight, BubbleMenuBold, BubbleMenuCode, BubbleMenuDefault, type BubbleMenuDefaultProps, BubbleMenuItalic, BubbleMenuItem, BubbleMenuItemGroup, type BubbleMenuItemGroupProps, type BubbleMenuItemProps, BubbleMenuLinkSelector, type BubbleMenuLinkSelectorProps, BubbleMenuNodeSelector, type BubbleMenuNodeSelectorProps, BubbleMenuRoot, type BubbleMenuRootProps, BubbleMenuSeparator, type BubbleMenuSeparatorProps, BubbleMenuStrike, BubbleMenuUnderline, BubbleMenuUppercase, Button, ButtonBubbleMenu, ButtonBubbleMenuDefault, type ButtonBubbleMenuDefaultProps, ButtonBubbleMenuEditLink, type ButtonBubbleMenuEditLinkProps, ButtonBubbleMenuRoot, type ButtonBubbleMenuRootProps, ButtonBubbleMenuToolbar, type ButtonBubbleMenuToolbarProps, COLUMN_PARENT_TYPES, ClassAttribute, ClassAttributeOptions, CodeBlockPrism, CodeBlockPrismOptions, ColumnsColumn, Div, DivOptions, EditorButtonOptions, EditorEventHandler, EditorEventMap, EditorEventName, EditorEventSubscription, EmailNode, EmailNodeConfig, FourColumns, ImageBubbleMenu, ImageBubbleMenuDefault, type ImageBubbleMenuDefaultProps, ImageBubbleMenuEditLink, type ImageBubbleMenuEditLinkProps, ImageBubbleMenuRoot, type ImageBubbleMenuRootProps, ImageBubbleMenuToolbar, type ImageBubbleMenuToolbarProps, LinkBubbleMenu, LinkBubbleMenuDefault, type LinkBubbleMenuDefaultProps, LinkBubbleMenuEditLink, type LinkBubbleMenuEditLinkProps, LinkBubbleMenuForm, type LinkBubbleMenuFormProps, LinkBubbleMenuOpenLink, type LinkBubbleMenuOpenLinkProps, LinkBubbleMenuRoot, type LinkBubbleMenuRootProps, LinkBubbleMenuToolbar, type LinkBubbleMenuToolbarProps, LinkBubbleMenuUnlink, type LinkBubbleMenuUnlinkProps, MAX_COLUMNS_DEPTH, MaxNesting, MaxNestingOptions, NodeSelectorContent, type NodeSelectorContentProps, type NodeSelectorItem, NodeSelectorRoot, type NodeSelectorRootProps, NodeSelectorTrigger, type NodeSelectorTriggerProps, type NodeType, Placeholder, PlaceholderOptions, type PreWiredItemProps, PreservedStyle, PreviewText, PreviewTextOptions, RendererComponent, Section, StyleAttribute, StyleAttributeOptions, Sup, SupOptions, Table, TableCell, TableCellOptions, TableHeader, TableOptions, TableRow, TableRowOptions, ThreeColumns, TwoColumns, Uppercase, UppercaseOptions, coreExtensions, editorEventBus, getColumnsDepth, processStylesForUnlink, setTextAlignment, useButtonBubbleMenuContext, useImageBubbleMenuContext, useLinkBubbleMenuContext };
|
|
1111
|
+
export { AlignmentAttribute, AlignmentOptions, BULLET_LIST, BUTTON, Blockquote, Body, BodyOptions, Bold, BoldOptions, BubbleMenu, BubbleMenuAlignCenter, BubbleMenuAlignLeft, BubbleMenuAlignRight, BubbleMenuBold, BubbleMenuCode, BubbleMenuDefault, type BubbleMenuDefaultProps, BubbleMenuItalic, BubbleMenuItem, BubbleMenuItemGroup, type BubbleMenuItemGroupProps, type BubbleMenuItemProps, BubbleMenuLinkSelector, type BubbleMenuLinkSelectorProps, BubbleMenuNodeSelector, type BubbleMenuNodeSelectorProps, BubbleMenuRoot, type BubbleMenuRootProps, BubbleMenuSeparator, type BubbleMenuSeparatorProps, BubbleMenuStrike, BubbleMenuUnderline, BubbleMenuUppercase, BulletList, Button, ButtonBubbleMenu, ButtonBubbleMenuDefault, type ButtonBubbleMenuDefaultProps, ButtonBubbleMenuEditLink, type ButtonBubbleMenuEditLinkProps, ButtonBubbleMenuRoot, type ButtonBubbleMenuRootProps, ButtonBubbleMenuToolbar, type ButtonBubbleMenuToolbarProps, CODE, COLUMN_PARENT_TYPES, ClassAttribute, ClassAttributeOptions, Code, CodeBlockPrism, CodeBlockPrismOptions, ColumnsColumn, CommandList, type CommandListComponent, type CommandListProps, type CommandListRef, DIVIDER, Div, DivOptions, EditorButtonOptions, EditorEventHandler, EditorEventMap, EditorEventName, EditorEventSubscription, EmailNode, EmailNodeConfig, FOUR_COLUMNS, FourColumns, H1, H2, H3, HardBreak, ImageBubbleMenu, ImageBubbleMenuDefault, type ImageBubbleMenuDefaultProps, ImageBubbleMenuEditLink, type ImageBubbleMenuEditLinkProps, ImageBubbleMenuRoot, type ImageBubbleMenuRootProps, ImageBubbleMenuToolbar, type ImageBubbleMenuToolbarProps, Italic, LinkBubbleMenu, LinkBubbleMenuDefault, type LinkBubbleMenuDefaultProps, LinkBubbleMenuEditLink, type LinkBubbleMenuEditLinkProps, LinkBubbleMenuForm, type LinkBubbleMenuFormProps, LinkBubbleMenuOpenLink, type LinkBubbleMenuOpenLinkProps, LinkBubbleMenuRoot, type LinkBubbleMenuRootProps, LinkBubbleMenuToolbar, type LinkBubbleMenuToolbarProps, LinkBubbleMenuUnlink, type LinkBubbleMenuUnlinkProps, ListItem, MAX_COLUMNS_DEPTH, MaxNesting, MaxNestingOptions, NUMBERED_LIST, NodeSelectorContent, type NodeSelectorContentProps, type NodeSelectorItem, NodeSelectorRoot, type NodeSelectorRootProps, NodeSelectorTrigger, type NodeSelectorTriggerProps, type NodeType, OrderedList, Paragraph, Placeholder, PlaceholderOptions, type PreWiredItemProps, PreservedStyle, PreviewText, PreviewTextOptions, QUOTE, RendererComponent, SECTION, type SearchableItem, Section, SlashCommand, type SlashCommandItem, type SlashCommandProps, Strike, StyleAttribute, StyleAttributeOptions, Sup, SupOptions, TEXT, THREE_COLUMNS, TWO_COLUMNS, Table, TableCell, TableCellOptions, TableHeader, TableOptions, TableRow, TableRowOptions, ThreeColumns, TwoColumns, Uppercase, UppercaseOptions, composeReactEmail, coreExtensions, createSlashCommand, defaultSlashCommands, editorEventBus, filterAndRankItems, getColumnsDepth, isAtMaxColumnsDepth, isInsideNode, processStylesForUnlink, scoreItem, setTextAlignment, useButtonBubbleMenuContext, useEditor, useImageBubbleMenuContext, useLinkBubbleMenuContext };
|
|
918
1112
|
//# sourceMappingURL=index.d.mts.map
|