@react-email/editor 0.0.0-experimental.15 → 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.d.cts CHANGED
@@ -1,42 +1,24 @@
1
- import * as _tiptap_core10 from "@tiptap/core";
2
- import { Editor, Extension, JSONContent, Mark, Node, NodeConfig as NodeConfig$1, NodeType as NodeType$1, ParentConfig, Range } from "@tiptap/core";
1
+ import * as _tiptap_core18 from "@tiptap/core";
2
+ import { Content, Editor, Extension, Extensions, JSONContent, Mark, MarkConfig, MarkType, Node, NodeConfig as NodeConfig$1, NodeType as NodeType$1, ParentConfig, Range } from "@tiptap/core";
3
3
  import * as _tiptap_starter_kit0 from "@tiptap/starter-kit";
4
4
  import { CodeBlockOptions } from "@tiptap/extension-code-block";
5
- import * as _tiptap_extension_placeholder0 from "@tiptap/extension-placeholder";
5
+ import * as _tiptap_extension_code1 from "@tiptap/extension-code";
6
+ import * as _tiptap_extension_paragraph1 from "@tiptap/extension-paragraph";
7
+ import * as _tiptap_extension_bullet_list1 from "@tiptap/extension-bullet-list";
8
+ import * as _tiptap_extension_list_item1 from "@tiptap/extension-list-item";
9
+ import * as _tiptap_extension_hard_break1 from "@tiptap/extension-hard-break";
10
+ import * as _tiptap_extensions2 from "@tiptap/extensions";
11
+ import * as _tiptap_extension_blockquote0 from "@tiptap/extension-blockquote";
6
12
  import { Node as Node$1 } from "@tiptap/pm/model";
7
- import * as react_jsx_runtime23 from "react/jsx-runtime";
13
+ import * as _tiptap_extension_italic0 from "@tiptap/extension-italic";
14
+ import * as _tiptap_extension_ordered_list0 from "@tiptap/extension-ordered-list";
15
+ import * as _tiptap_extension_strike0 from "@tiptap/extension-strike";
16
+ import { UseEditorOptions } from "@tiptap/react";
17
+ import { EditorView } from "@tiptap/pm/view";
18
+ import * as react_jsx_runtime8 from "react/jsx-runtime";
8
19
  import * as React$1 from "react";
9
- import { ComponentType, Ref } from "react";
20
+ import { ComponentType, ReactNode, Ref } from "react";
10
21
 
11
- //#region src/core/email-node.d.ts
12
- type RendererComponent = (props: {
13
- node: JSONContent;
14
- style: React.CSSProperties;
15
- children?: React.ReactNode;
16
- }) => React.ReactNode;
17
- interface EmailNodeConfig<Options, Storage> extends NodeConfig$1<Options, Storage> {
18
- renderToReactEmail: RendererComponent;
19
- }
20
- type ConfigParameter<Options, Storage> = Partial<Omit<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'>;
21
- declare class EmailNode<Options = Record<string, never>, Storage = Record<string, never>> extends Node<Options, Storage> {
22
- config: EmailNodeConfig<Options, Storage>;
23
- constructor(config: ConfigParameter<Options, Storage>);
24
- /**
25
- * Create a new Node instance
26
- * @param config - Node configuration object or a function that returns a configuration object
27
- */
28
- static create<O = Record<string, never>, S = Record<string, never>>(config: ConfigParameter<O, S> | (() => ConfigParameter<O, S>)): EmailNode<O, S>;
29
- static from<O, S>(node: Node<O, S>, renderToReactEmail: RendererComponent): EmailNode<O, S>;
30
- configure(options?: Partial<Options>): EmailNode<Options, Storage>;
31
- extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig extends NodeConfig$1<ExtendedOptions, ExtendedStorage> = EmailNodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
32
- name: string;
33
- options: ExtendedOptions;
34
- storage: ExtendedStorage;
35
- editor: Editor;
36
- type: NodeType$1;
37
- }>)): EmailNode<ExtendedOptions, ExtendedStorage>;
38
- }
39
- //#endregion
40
22
  //#region src/core/event-bus.d.ts
41
23
  /**
42
24
  * Base event map interface for the editor event bus.
@@ -69,6 +51,48 @@ declare class EditorEventBus {
69
51
  }
70
52
  declare const editorEventBus: EditorEventBus;
71
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
72
96
  //#region src/extensions/code-block.d.ts
73
97
  interface CodeBlockPrismOptions extends CodeBlockOptions {
74
98
  defaultLanguage: string;
@@ -76,6 +100,37 @@ interface CodeBlockPrismOptions extends CodeBlockOptions {
76
100
  }
77
101
  declare const CodeBlockPrism: EmailNode<CodeBlockPrismOptions, any>;
78
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
79
134
  //#region src/extensions/preview-text.d.ts
80
135
  interface PreviewTextOptions {
81
136
  HTMLAttributes: Record<string, unknown>;
@@ -113,7 +168,7 @@ declare module '@tiptap/core' {
113
168
  * This extension allows you to mark text as bold.
114
169
  * @see https://tiptap.dev/api/marks/bold
115
170
  */
116
- declare const Bold: Mark<BoldOptions, any>;
171
+ declare const Bold: EmailMark<BoldOptions, Record<string, never>>;
117
172
  //#endregion
118
173
  //#region src/extensions/table.d.ts
119
174
  declare module '@tiptap/core' {
@@ -226,12 +281,21 @@ interface MaxNestingOptions {
226
281
  }
227
282
  declare const MaxNesting: Extension<MaxNestingOptions, any>;
228
283
  //#endregion
284
+ //#region src/extensions/blockquote.d.ts
285
+ declare const Blockquote: EmailNode<_tiptap_extension_blockquote0.BlockquoteOptions, any>;
286
+ //#endregion
229
287
  //#region src/extensions/body.d.ts
230
288
  interface BodyOptions {
231
289
  HTMLAttributes: Record<string, unknown>;
232
290
  }
233
291
  declare const Body: EmailNode<BodyOptions, Record<string, never>>;
234
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
235
299
  //#region src/extensions/columns.d.ts
236
300
  declare module '@tiptap/core' {
237
301
  interface Commands<ReturnType> {
@@ -254,6 +318,21 @@ interface DivOptions {
254
318
  }
255
319
  declare const Div: EmailNode<DivOptions, Record<string, never>>;
256
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
257
336
  //#region src/extensions/placeholder.d.ts
258
337
  interface PlaceholderOptions {
259
338
  placeholder?: string | ((props: {
@@ -261,10 +340,10 @@ interface PlaceholderOptions {
261
340
  }) => string);
262
341
  includeChildren?: boolean;
263
342
  }
264
- declare const Placeholder: _tiptap_core10.Extension<_tiptap_extension_placeholder0.PlaceholderOptions, any>;
343
+ declare const Placeholder: _tiptap_core18.Extension<_tiptap_extensions2.PlaceholderOptions, any>;
265
344
  //#endregion
266
345
  //#region src/extensions/preserved-style.d.ts
267
- declare const PreservedStyle: Mark<any, any>;
346
+ declare const PreservedStyle: EmailMark<Record<string, never>, Record<string, never>>;
268
347
  /**
269
348
  * Processes styles when unlinking:
270
349
  * - Has background (button-like): preserve all styles
@@ -286,6 +365,9 @@ declare module '@tiptap/core' {
286
365
  }
287
366
  declare const Section: EmailNode<SectionOptions, Record<string, never>>;
288
367
  //#endregion
368
+ //#region src/extensions/strike.d.ts
369
+ declare const Strike: EmailMark<_tiptap_extension_strike0.StrikeOptions, any>;
370
+ //#endregion
289
371
  //#region src/extensions/sup.d.ts
290
372
  interface SupOptions {
291
373
  /**
@@ -317,7 +399,7 @@ declare module '@tiptap/core' {
317
399
  * This extension allows you to mark text as superscript.
318
400
  * @see https://tiptap.dev/api/marks/superscript
319
401
  */
320
- declare const Sup: Mark<SupOptions, any>;
402
+ declare const Sup: EmailMark<SupOptions, Record<string, never>>;
321
403
  //#endregion
322
404
  //#region src/extensions/uppercase.d.ts
323
405
  interface UppercaseOptions {
@@ -332,10 +414,47 @@ declare module '@tiptap/core' {
332
414
  };
333
415
  }
334
416
  }
335
- declare const Uppercase: Mark<UppercaseOptions, any>;
417
+ declare const Uppercase: EmailMark<UppercaseOptions, Record<string, never>>;
336
418
  //#endregion
337
419
  //#region src/extensions/index.d.ts
338
- declare const coreExtensions: (_tiptap_core10.Extension<_tiptap_starter_kit0.StarterKitOptions, any> | _tiptap_core10.Node<any, any> | EmailNode<CodeBlockPrismOptions, any> | _tiptap_core10.Extension<_tiptap_extension_placeholder0.PlaceholderOptions, any> | _tiptap_core10.Node<PreviewTextOptions, any> | _tiptap_core10.Mark<BoldOptions, any> | _tiptap_core10.Mark<any, any> | EmailNode<TableOptions, Record<string, never>> | EmailNode<TableRowOptions, Record<string, never>> | EmailNode<EditorButtonOptions, Record<string, never>> | _tiptap_core10.Extension<AlignmentOptions, any> | _tiptap_core10.Extension<StyleAttributeOptions, any> | _tiptap_core10.Extension<ClassAttributeOptions, any> | _tiptap_core10.Extension<MaxNestingOptions, any>)[];
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
+ };
339
458
  //#endregion
340
459
  //#region src/ui/bubble-menu/create-mark-bubble-item.d.ts
341
460
  interface PreWiredItemProps {
@@ -348,19 +467,19 @@ interface PreWiredItemProps {
348
467
  declare function BubbleMenuAlignCenter({
349
468
  className,
350
469
  children
351
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
470
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
352
471
  //#endregion
353
472
  //#region src/ui/bubble-menu/align-left.d.ts
354
473
  declare function BubbleMenuAlignLeft({
355
474
  className,
356
475
  children
357
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
476
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
358
477
  //#endregion
359
478
  //#region src/ui/bubble-menu/align-right.d.ts
360
479
  declare function BubbleMenuAlignRight({
361
480
  className,
362
481
  children
363
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
482
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
364
483
  //#endregion
365
484
  //#region src/ui/bubble-menu/default.d.ts
366
485
  type ExcludableItem$3 = 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'uppercase' | 'align-left' | 'align-center' | 'align-right' | 'node-selector' | 'link-selector';
@@ -385,7 +504,7 @@ declare function BubbleMenuDefault({
385
504
  offset,
386
505
  onHide,
387
506
  className
388
- }: BubbleMenuDefaultProps): react_jsx_runtime23.JSX.Element;
507
+ }: BubbleMenuDefaultProps): react_jsx_runtime8.JSX.Element;
389
508
  //#endregion
390
509
  //#region src/ui/bubble-menu/group.d.ts
391
510
  interface BubbleMenuItemGroupProps {
@@ -395,7 +514,7 @@ interface BubbleMenuItemGroupProps {
395
514
  declare function BubbleMenuItemGroup({
396
515
  className,
397
516
  children
398
- }: BubbleMenuItemGroupProps): react_jsx_runtime23.JSX.Element;
517
+ }: BubbleMenuItemGroupProps): react_jsx_runtime8.JSX.Element;
399
518
  //#endregion
400
519
  //#region src/ui/bubble-menu/item.d.ts
401
520
  interface BubbleMenuItemProps extends React$1.ComponentProps<'button'> {
@@ -413,7 +532,7 @@ declare function BubbleMenuItem({
413
532
  className,
414
533
  children,
415
534
  ...rest
416
- }: BubbleMenuItemProps): react_jsx_runtime23.JSX.Element;
535
+ }: BubbleMenuItemProps): react_jsx_runtime8.JSX.Element;
417
536
  //#endregion
418
537
  //#region src/ui/bubble-menu/link-selector.d.ts
419
538
  interface BubbleMenuLinkSelectorProps {
@@ -442,7 +561,7 @@ declare function BubbleMenuLinkSelector({
442
561
  children,
443
562
  open: controlledOpen,
444
563
  onOpenChange
445
- }: BubbleMenuLinkSelectorProps): react_jsx_runtime23.JSX.Element | null;
564
+ }: BubbleMenuLinkSelectorProps): react_jsx_runtime8.JSX.Element | null;
446
565
  //#endregion
447
566
  //#region src/ui/bubble-menu/node-selector.d.ts
448
567
  type NodeType = 'Text' | 'Title' | 'Subtitle' | 'Heading' | 'Bullet List' | 'Numbered List' | 'Quote' | 'Code';
@@ -468,7 +587,7 @@ declare function NodeSelectorRoot({
468
587
  onOpenChange,
469
588
  className,
470
589
  children
471
- }: NodeSelectorRootProps): react_jsx_runtime23.JSX.Element | null;
590
+ }: NodeSelectorRootProps): react_jsx_runtime8.JSX.Element | null;
472
591
  interface NodeSelectorTriggerProps {
473
592
  className?: string;
474
593
  children?: React$1.ReactNode;
@@ -476,7 +595,7 @@ interface NodeSelectorTriggerProps {
476
595
  declare function NodeSelectorTrigger({
477
596
  className,
478
597
  children
479
- }: NodeSelectorTriggerProps): react_jsx_runtime23.JSX.Element;
598
+ }: NodeSelectorTriggerProps): react_jsx_runtime8.JSX.Element;
480
599
  interface NodeSelectorContentProps {
481
600
  className?: string;
482
601
  /** Popover alignment (default: "start") */
@@ -489,7 +608,7 @@ declare function NodeSelectorContent({
489
608
  className,
490
609
  align,
491
610
  children
492
- }: NodeSelectorContentProps): react_jsx_runtime23.JSX.Element;
611
+ }: NodeSelectorContentProps): react_jsx_runtime8.JSX.Element;
493
612
  interface BubbleMenuNodeSelectorProps {
494
613
  /** Block types to exclude */
495
614
  omit?: string[];
@@ -507,7 +626,7 @@ declare function BubbleMenuNodeSelector({
507
626
  triggerContent,
508
627
  open,
509
628
  onOpenChange
510
- }: BubbleMenuNodeSelectorProps): react_jsx_runtime23.JSX.Element;
629
+ }: BubbleMenuNodeSelectorProps): react_jsx_runtime8.JSX.Element;
511
630
  //#endregion
512
631
  //#region src/ui/bubble-menu/root.d.ts
513
632
  interface BubbleMenuRootProps {
@@ -530,7 +649,7 @@ declare function BubbleMenuRoot({
530
649
  onHide,
531
650
  className,
532
651
  children
533
- }: BubbleMenuRootProps): react_jsx_runtime23.JSX.Element | null;
652
+ }: BubbleMenuRootProps): react_jsx_runtime8.JSX.Element | null;
534
653
  //#endregion
535
654
  //#region src/ui/bubble-menu/separator.d.ts
536
655
  interface BubbleMenuSeparatorProps {
@@ -538,14 +657,14 @@ interface BubbleMenuSeparatorProps {
538
657
  }
539
658
  declare function BubbleMenuSeparator({
540
659
  className
541
- }: BubbleMenuSeparatorProps): react_jsx_runtime23.JSX.Element;
660
+ }: BubbleMenuSeparatorProps): react_jsx_runtime8.JSX.Element;
542
661
  //#endregion
543
662
  //#region src/ui/bubble-menu/bold.d.ts
544
663
  declare const BubbleMenuBold: {
545
664
  ({
546
665
  className,
547
666
  children
548
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
667
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
549
668
  displayName: string;
550
669
  };
551
670
  //#endregion
@@ -554,7 +673,7 @@ declare const BubbleMenuCode: {
554
673
  ({
555
674
  className,
556
675
  children
557
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
676
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
558
677
  displayName: string;
559
678
  };
560
679
  //#endregion
@@ -563,7 +682,7 @@ declare const BubbleMenuItalic: {
563
682
  ({
564
683
  className,
565
684
  children
566
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
685
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
567
686
  displayName: string;
568
687
  };
569
688
  //#endregion
@@ -572,7 +691,7 @@ declare const BubbleMenuStrike: {
572
691
  ({
573
692
  className,
574
693
  children
575
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
694
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
576
695
  displayName: string;
577
696
  };
578
697
  //#endregion
@@ -581,7 +700,7 @@ declare const BubbleMenuUnderline: {
581
700
  ({
582
701
  className,
583
702
  children
584
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
703
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
585
704
  displayName: string;
586
705
  };
587
706
  //#endregion
@@ -590,7 +709,7 @@ declare const BubbleMenuUppercase: {
590
709
  ({
591
710
  className,
592
711
  children
593
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
712
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
594
713
  displayName: string;
595
714
  };
596
715
  //#endregion
@@ -604,42 +723,42 @@ declare const BubbleMenu: {
604
723
  ({
605
724
  className,
606
725
  children
607
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
726
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
608
727
  displayName: string;
609
728
  };
610
729
  readonly Italic: {
611
730
  ({
612
731
  className,
613
732
  children
614
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
733
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
615
734
  displayName: string;
616
735
  };
617
736
  readonly Underline: {
618
737
  ({
619
738
  className,
620
739
  children
621
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
740
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
622
741
  displayName: string;
623
742
  };
624
743
  readonly Strike: {
625
744
  ({
626
745
  className,
627
746
  children
628
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
747
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
629
748
  displayName: string;
630
749
  };
631
750
  readonly Code: {
632
751
  ({
633
752
  className,
634
753
  children
635
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
754
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
636
755
  displayName: string;
637
756
  };
638
757
  readonly Uppercase: {
639
758
  ({
640
759
  className,
641
760
  children
642
- }: PreWiredItemProps): react_jsx_runtime23.JSX.Element;
761
+ }: PreWiredItemProps): react_jsx_runtime8.JSX.Element;
643
762
  displayName: string;
644
763
  };
645
764
  readonly AlignLeft: typeof BubbleMenuAlignLeft;
@@ -669,7 +788,7 @@ declare function ButtonBubbleMenuDefault({
669
788
  offset,
670
789
  onHide,
671
790
  className
672
- }: ButtonBubbleMenuDefaultProps): react_jsx_runtime23.JSX.Element;
791
+ }: ButtonBubbleMenuDefaultProps): react_jsx_runtime8.JSX.Element;
673
792
  //#endregion
674
793
  //#region src/ui/button-bubble-menu/edit-link.d.ts
675
794
  interface ButtonBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
@@ -679,7 +798,7 @@ declare function ButtonBubbleMenuEditLink({
679
798
  onClick,
680
799
  onMouseDown,
681
800
  ...rest
682
- }: ButtonBubbleMenuEditLinkProps): react_jsx_runtime23.JSX.Element;
801
+ }: ButtonBubbleMenuEditLinkProps): react_jsx_runtime8.JSX.Element;
683
802
  //#endregion
684
803
  //#region src/ui/button-bubble-menu/root.d.ts
685
804
  interface ButtonBubbleMenuRootProps {
@@ -699,14 +818,14 @@ declare function ButtonBubbleMenuRoot({
699
818
  offset,
700
819
  className,
701
820
  children
702
- }: ButtonBubbleMenuRootProps): react_jsx_runtime23.JSX.Element | null;
821
+ }: ButtonBubbleMenuRootProps): react_jsx_runtime8.JSX.Element | null;
703
822
  //#endregion
704
823
  //#region src/ui/button-bubble-menu/toolbar.d.ts
705
824
  interface ButtonBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
706
825
  declare function ButtonBubbleMenuToolbar({
707
826
  children,
708
827
  ...rest
709
- }: ButtonBubbleMenuToolbarProps): react_jsx_runtime23.JSX.Element | null;
828
+ }: ButtonBubbleMenuToolbarProps): react_jsx_runtime8.JSX.Element | null;
710
829
  //#endregion
711
830
  //#region src/ui/button-bubble-menu/context.d.ts
712
831
  interface ButtonBubbleMenuContextValue {
@@ -739,7 +858,7 @@ declare function ImageBubbleMenuDefault({
739
858
  offset,
740
859
  onHide,
741
860
  className
742
- }: ImageBubbleMenuDefaultProps): react_jsx_runtime23.JSX.Element;
861
+ }: ImageBubbleMenuDefaultProps): react_jsx_runtime8.JSX.Element;
743
862
  //#endregion
744
863
  //#region src/ui/image-bubble-menu/edit-link.d.ts
745
864
  interface ImageBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
@@ -749,7 +868,7 @@ declare function ImageBubbleMenuEditLink({
749
868
  onClick,
750
869
  onMouseDown,
751
870
  ...rest
752
- }: ImageBubbleMenuEditLinkProps): react_jsx_runtime23.JSX.Element;
871
+ }: ImageBubbleMenuEditLinkProps): react_jsx_runtime8.JSX.Element;
753
872
  //#endregion
754
873
  //#region src/ui/image-bubble-menu/root.d.ts
755
874
  interface ImageBubbleMenuRootProps {
@@ -769,14 +888,14 @@ declare function ImageBubbleMenuRoot({
769
888
  offset,
770
889
  className,
771
890
  children
772
- }: ImageBubbleMenuRootProps): react_jsx_runtime23.JSX.Element | null;
891
+ }: ImageBubbleMenuRootProps): react_jsx_runtime8.JSX.Element | null;
773
892
  //#endregion
774
893
  //#region src/ui/image-bubble-menu/toolbar.d.ts
775
894
  interface ImageBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
776
895
  declare function ImageBubbleMenuToolbar({
777
896
  children,
778
897
  ...rest
779
- }: ImageBubbleMenuToolbarProps): react_jsx_runtime23.JSX.Element | null;
898
+ }: ImageBubbleMenuToolbarProps): react_jsx_runtime8.JSX.Element | null;
780
899
  //#endregion
781
900
  //#region src/ui/image-bubble-menu/context.d.ts
782
901
  interface ImageBubbleMenuContextValue {
@@ -815,7 +934,7 @@ declare function LinkBubbleMenuDefault({
815
934
  validateUrl,
816
935
  onLinkApply,
817
936
  onLinkRemove
818
- }: LinkBubbleMenuDefaultProps): react_jsx_runtime23.JSX.Element;
937
+ }: LinkBubbleMenuDefaultProps): react_jsx_runtime8.JSX.Element;
819
938
  //#endregion
820
939
  //#region src/ui/link-bubble-menu/edit-link.d.ts
821
940
  interface LinkBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
@@ -825,7 +944,7 @@ declare function LinkBubbleMenuEditLink({
825
944
  onClick,
826
945
  onMouseDown,
827
946
  ...rest
828
- }: LinkBubbleMenuEditLinkProps): react_jsx_runtime23.JSX.Element;
947
+ }: LinkBubbleMenuEditLinkProps): react_jsx_runtime8.JSX.Element;
829
948
  //#endregion
830
949
  //#region src/ui/link-bubble-menu/form.d.ts
831
950
  interface LinkBubbleMenuFormProps {
@@ -845,7 +964,7 @@ declare function LinkBubbleMenuForm({
845
964
  onLinkApply,
846
965
  onLinkRemove,
847
966
  children
848
- }: LinkBubbleMenuFormProps): react_jsx_runtime23.JSX.Element | null;
967
+ }: LinkBubbleMenuFormProps): react_jsx_runtime8.JSX.Element | null;
849
968
  //#endregion
850
969
  //#region src/ui/link-bubble-menu/open-link.d.ts
851
970
  interface LinkBubbleMenuOpenLinkProps extends Omit<React$1.ComponentProps<'a'>, 'href' | 'target' | 'rel'> {}
@@ -853,7 +972,7 @@ declare function LinkBubbleMenuOpenLink({
853
972
  className,
854
973
  children,
855
974
  ...rest
856
- }: LinkBubbleMenuOpenLinkProps): react_jsx_runtime23.JSX.Element;
975
+ }: LinkBubbleMenuOpenLinkProps): react_jsx_runtime8.JSX.Element;
857
976
  //#endregion
858
977
  //#region src/ui/link-bubble-menu/root.d.ts
859
978
  interface LinkBubbleMenuRootProps {
@@ -873,14 +992,14 @@ declare function LinkBubbleMenuRoot({
873
992
  offset,
874
993
  className,
875
994
  children
876
- }: LinkBubbleMenuRootProps): react_jsx_runtime23.JSX.Element | null;
995
+ }: LinkBubbleMenuRootProps): react_jsx_runtime8.JSX.Element | null;
877
996
  //#endregion
878
997
  //#region src/ui/link-bubble-menu/toolbar.d.ts
879
998
  interface LinkBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
880
999
  declare function LinkBubbleMenuToolbar({
881
1000
  children,
882
1001
  ...rest
883
- }: LinkBubbleMenuToolbarProps): react_jsx_runtime23.JSX.Element | null;
1002
+ }: LinkBubbleMenuToolbarProps): react_jsx_runtime8.JSX.Element | null;
884
1003
  //#endregion
885
1004
  //#region src/ui/link-bubble-menu/unlink.d.ts
886
1005
  interface LinkBubbleMenuUnlinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
@@ -890,7 +1009,7 @@ declare function LinkBubbleMenuUnlink({
890
1009
  onClick,
891
1010
  onMouseDown,
892
1011
  ...rest
893
- }: LinkBubbleMenuUnlinkProps): react_jsx_runtime23.JSX.Element;
1012
+ }: LinkBubbleMenuUnlinkProps): react_jsx_runtime8.JSX.Element;
894
1013
  //#endregion
895
1014
  //#region src/ui/link-bubble-menu/context.d.ts
896
1015
  interface LinkBubbleMenuContextValue {
@@ -920,9 +1039,7 @@ interface SearchableItem {
920
1039
  searchTerms?: string[];
921
1040
  }
922
1041
  interface SlashCommandItem extends SearchableItem {
923
- icon: ComponentType<{
924
- size?: number;
925
- }>;
1042
+ icon: ReactNode;
926
1043
  category: SlashCommandCategory;
927
1044
  command: (props: SlashCommandProps) => void;
928
1045
  }
@@ -951,7 +1068,7 @@ declare function CommandList({
951
1068
  command,
952
1069
  query,
953
1070
  ref
954
- }: CommandListProps): react_jsx_runtime23.JSX.Element;
1071
+ }: CommandListProps): react_jsx_runtime8.JSX.Element;
955
1072
  //#endregion
956
1073
  //#region src/ui/slash-command/commands.d.ts
957
1074
  declare const TEXT: SlashCommandItem;
@@ -975,7 +1092,7 @@ declare function createSlashCommand(options?: {
975
1092
  items?: SlashCommandItem[];
976
1093
  filterItems?: (items: SlashCommandItem[], query: string, editor: Editor) => SlashCommandItem[];
977
1094
  component?: CommandListComponent;
978
- }): _tiptap_core10.Extension<any, any>;
1095
+ }): _tiptap_core18.Extension<any, any>;
979
1096
  //#endregion
980
1097
  //#region src/ui/slash-command/search.d.ts
981
1098
  declare function scoreItem(item: SearchableItem, query: string): number;
@@ -986,10 +1103,10 @@ declare function isInsideNode(editor: Editor, type: string): boolean;
986
1103
  declare function isAtMaxColumnsDepth(editor: Editor): boolean;
987
1104
  //#endregion
988
1105
  //#region src/ui/slash-command/index.d.ts
989
- declare const SlashCommand: _tiptap_core10.Extension<any, any>;
1106
+ declare const SlashCommand: _tiptap_core18.Extension<any, any>;
990
1107
  //#endregion
991
1108
  //#region src/utils/set-text-alignment.d.ts
992
1109
  declare function setTextAlignment(editor: Editor, alignment: string): void;
993
1110
  //#endregion
994
- export { AlignmentAttribute, AlignmentOptions, BULLET_LIST, BUTTON, 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, CODE, COLUMN_PARENT_TYPES, ClassAttribute, ClassAttributeOptions, 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, 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, NUMBERED_LIST, NodeSelectorContent, type NodeSelectorContentProps, type NodeSelectorItem, NodeSelectorRoot, type NodeSelectorRootProps, NodeSelectorTrigger, type NodeSelectorTriggerProps, type NodeType, Placeholder, PlaceholderOptions, type PreWiredItemProps, PreservedStyle, PreviewText, PreviewTextOptions, QUOTE, RendererComponent, SECTION, type SearchableItem, Section, SlashCommand, type SlashCommandItem, type SlashCommandProps, StyleAttribute, StyleAttributeOptions, Sup, SupOptions, TEXT, THREE_COLUMNS, TWO_COLUMNS, Table, TableCell, TableCellOptions, TableHeader, TableOptions, TableRow, TableRowOptions, ThreeColumns, TwoColumns, Uppercase, UppercaseOptions, coreExtensions, createSlashCommand, defaultSlashCommands, editorEventBus, filterAndRankItems, getColumnsDepth, isAtMaxColumnsDepth, isInsideNode, processStylesForUnlink, scoreItem, 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 };
995
1112
  //# sourceMappingURL=index.d.cts.map