@react-email/editor 0.0.0-experimental.16 → 0.0.0-experimental.18

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,20 +1,23 @@
1
- import * as _tiptap_core18 from "@tiptap/core";
1
+ import * as _tiptap_core0 from "@tiptap/core";
2
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
- import * as _tiptap_starter_kit0 from "@tiptap/starter-kit";
4
- import { CodeBlockOptions } from "@tiptap/extension-code-block";
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";
12
- import { Node as Node$1 } from "@tiptap/pm/model";
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
3
  import { UseEditorOptions } from "@tiptap/react";
4
+ import { Node as Node$1 } from "@tiptap/pm/model";
17
5
  import { EditorView } from "@tiptap/pm/view";
6
+ import { BlockquoteOptions } from "@tiptap/extension-blockquote";
7
+ import { BulletListOptions } from "@tiptap/extension-bullet-list";
8
+ import { CodeOptions } from "@tiptap/extension-code";
9
+ import { HardBreakOptions } from "@tiptap/extension-hard-break";
10
+ import { ItalicOptions } from "@tiptap/extension-italic";
11
+ import { ListItemOptions } from "@tiptap/extension-list-item";
12
+ import { OrderedListOptions } from "@tiptap/extension-ordered-list";
13
+ import { ParagraphOptions } from "@tiptap/extension-paragraph";
14
+ import { StrikeOptions } from "@tiptap/extension-strike";
15
+ import { StarterKitOptions as StarterKitOptions$1 } from "@tiptap/starter-kit";
16
+ import { CodeBlockOptions } from "@tiptap/extension-code-block";
17
+ import { HorizontalRuleOptions } from "@tiptap/extension-horizontal-rule";
18
+ import { HeadingOptions as HeadingOptions$1 } from "@tiptap/extension-heading";
19
+ import { LinkOptions as LinkOptions$1 } from "@tiptap/extension-link";
20
+ import { PlaceholderOptions as PlaceholderOptions$1 } from "@tiptap/extension-placeholder";
18
21
  import * as react_jsx_runtime8 from "react/jsx-runtime";
19
22
  import * as React$1 from "react";
20
23
  import { ComponentType, ReactNode, Ref } from "react";
@@ -73,7 +76,14 @@ type RendererComponent = (props: {
73
76
  interface EmailNodeConfig<Options, Storage> extends NodeConfig$1<Options, Storage> {
74
77
  renderToReactEmail: RendererComponent;
75
78
  }
76
- type ConfigParameter$1<Options, Storage> = Partial<Omit<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'>;
79
+ type ConfigParameter$1<Options, Storage> = Partial<Omit<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'> & ThisType<{
80
+ name: string;
81
+ options: Options;
82
+ storage: Storage;
83
+ editor: Editor;
84
+ type: NodeType$1;
85
+ parent: (...args: any[]) => any;
86
+ }>;
77
87
  declare class EmailNode<Options = Record<string, never>, Storage = Record<string, never>> extends Node<Options, Storage> {
78
88
  config: EmailNodeConfig<Options, Storage>;
79
89
  constructor(config: ConfigParameter$1<Options, Storage>);
@@ -93,12 +103,65 @@ declare class EmailNode<Options = Record<string, never>, Storage = Record<string
93
103
  }>)): EmailNode<ExtendedOptions, ExtendedStorage>;
94
104
  }
95
105
  //#endregion
96
- //#region src/extensions/code-block.d.ts
97
- interface CodeBlockPrismOptions extends CodeBlockOptions {
98
- defaultLanguage: string;
99
- defaultTheme: string;
106
+ //#region src/core/create-paste-handler.d.ts
107
+ type PasteHandler = (payload: string | File, view: EditorView) => boolean;
108
+ type UploadImageHandler = (file: File, view: EditorView, pos: number, preserveAttributes?: {
109
+ width?: string;
110
+ height?: string;
111
+ alignment?: string;
112
+ href?: string;
113
+ }) => void | Promise<void>;
114
+ //#endregion
115
+ //#region src/core/use-editor.d.ts
116
+ declare function useEditor({
117
+ content,
118
+ extensions,
119
+ onUpdate,
120
+ onPaste,
121
+ onUploadImage,
122
+ onReady,
123
+ editable,
124
+ ...rest
125
+ }: {
126
+ content: Content;
127
+ extensions?: Extensions;
128
+ onUpdate?: (editor: Editor, transaction: {
129
+ getMeta: (key: string) => unknown;
130
+ }) => void;
131
+ onPaste?: PasteHandler;
132
+ onUploadImage?: UploadImageHandler;
133
+ onReady?: (editor: Editor | null) => void;
134
+ editable?: boolean;
135
+ } & UseEditorOptions): {
136
+ editor: Editor;
137
+ isEditorEmpty: boolean;
138
+ extensions: Extensions;
139
+ contentError: Error | null;
140
+ isCollaborative: boolean;
141
+ };
142
+ //#endregion
143
+ //#region src/extensions/alignment-attribute.d.ts
144
+ interface AlignmentOptions {
145
+ types: string[];
146
+ alignments: string[];
100
147
  }
101
- declare const CodeBlockPrism: EmailNode<CodeBlockPrismOptions, any>;
148
+ declare module '@tiptap/core' {
149
+ interface Commands<ReturnType> {
150
+ alignment: {
151
+ /**
152
+ * Set the text align attribute
153
+ */
154
+ setAlignment: (alignment: string) => ReturnType;
155
+ };
156
+ }
157
+ }
158
+ declare const AlignmentAttribute: Extension<AlignmentOptions, any>;
159
+ //#endregion
160
+ //#region src/extensions/body.d.ts
161
+ interface BodyOptions {
162
+ HTMLAttributes: Record<string, unknown>;
163
+ }
164
+ declare const Body: EmailNode<BodyOptions, Record<string, never>>;
102
165
  //#endregion
103
166
  //#region src/core/serializer/email-mark.d.ts
104
167
  type SerializedMark = NonNullable<JSONContent['marks']>[number];
@@ -111,7 +174,14 @@ type RendererComponent$1 = (props: {
111
174
  interface EmailMarkConfig<Options, Storage> extends MarkConfig<Options, Storage> {
112
175
  renderToReactEmail: RendererComponent$1;
113
176
  }
114
- type ConfigParameter<Options, Storage> = Partial<Omit<EmailMarkConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailMarkConfig<Options, Storage>, 'renderToReactEmail'>;
177
+ type ConfigParameter<Options, Storage> = Partial<Omit<EmailMarkConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailMarkConfig<Options, Storage>, 'renderToReactEmail'> & ThisType<{
178
+ name: string;
179
+ options: Options;
180
+ storage: Storage;
181
+ editor: Editor;
182
+ type: MarkType;
183
+ parent: (...args: any[]) => any;
184
+ }>;
115
185
  declare class EmailMark<Options = Record<string, never>, Storage = Record<string, never>> extends Mark<Options, Storage> {
116
186
  config: EmailMarkConfig<Options, Storage>;
117
187
  constructor(config: ConfigParameter<Options, Storage>);
@@ -131,12 +201,6 @@ declare class EmailMark<Options = Record<string, never>, Storage = Record<string
131
201
  }>)): EmailMark<ExtendedOptions, ExtendedStorage>;
132
202
  }
133
203
  //#endregion
134
- //#region src/extensions/preview-text.d.ts
135
- interface PreviewTextOptions {
136
- HTMLAttributes: Record<string, unknown>;
137
- }
138
- declare const PreviewText: Node<PreviewTextOptions, any>;
139
- //#endregion
140
204
  //#region src/extensions/bold.d.ts
141
205
  interface BoldOptions {
142
206
  /**
@@ -170,36 +234,6 @@ declare module '@tiptap/core' {
170
234
  */
171
235
  declare const Bold: EmailMark<BoldOptions, Record<string, never>>;
172
236
  //#endregion
173
- //#region src/extensions/table.d.ts
174
- declare module '@tiptap/core' {
175
- interface NodeConfig<Options, Storage> {
176
- /**
177
- * A string or function to determine the role of the table.
178
- * @default 'table'
179
- * @example () => 'table'
180
- */
181
- tableRole?: string | ((this: {
182
- name: string;
183
- options: Options;
184
- storage: Storage;
185
- parent: ParentConfig<NodeConfig<Options>>['tableRole'];
186
- }) => string);
187
- }
188
- }
189
- interface TableOptions {
190
- HTMLAttributes: Record<string, unknown>;
191
- }
192
- declare const Table: EmailNode<TableOptions, Record<string, never>>;
193
- interface TableRowOptions extends Record<string, unknown> {
194
- HTMLAttributes?: Record<string, unknown>;
195
- }
196
- declare const TableRow: EmailNode<TableRowOptions, Record<string, never>>;
197
- interface TableCellOptions extends Record<string, unknown> {
198
- HTMLAttributes?: Record<string, unknown>;
199
- }
200
- declare const TableCell: EmailNode<TableCellOptions, Record<string, never>>;
201
- declare const TableHeader: Node<any, any>;
202
- //#endregion
203
237
  //#region src/extensions/button.d.ts
204
238
  interface EditorButtonOptions {
205
239
  HTMLAttributes: Record<string, unknown>;
@@ -215,44 +249,6 @@ declare module '@tiptap/core' {
215
249
  }
216
250
  declare const Button: EmailNode<EditorButtonOptions, Record<string, never>>;
217
251
  //#endregion
218
- //#region src/extensions/alignment-attribute.d.ts
219
- interface AlignmentOptions {
220
- types: string[];
221
- alignments: string[];
222
- }
223
- declare module '@tiptap/core' {
224
- interface Commands<ReturnType> {
225
- alignment: {
226
- /**
227
- * Set the text align attribute
228
- */
229
- setAlignment: (alignment: string) => ReturnType;
230
- };
231
- }
232
- }
233
- declare const AlignmentAttribute: Extension<AlignmentOptions, any>;
234
- //#endregion
235
- //#region src/extensions/style-attribute.d.ts
236
- interface StyleAttributeOptions {
237
- types: string[];
238
- style: string[];
239
- }
240
- declare module '@tiptap/core' {
241
- interface Commands<ReturnType> {
242
- textAlign: {
243
- /**
244
- * Set the style attribute
245
- */
246
- setStyle: (style: string) => ReturnType;
247
- /**
248
- * Unset the style attribute
249
- */
250
- unsetStyle: () => ReturnType;
251
- };
252
- }
253
- }
254
- declare const StyleAttribute: Extension<StyleAttributeOptions, any>;
255
- //#endregion
256
252
  //#region src/extensions/class-attribute.d.ts
257
253
  interface ClassAttributeOptions {
258
254
  types: string[];
@@ -274,64 +270,53 @@ declare module '@tiptap/core' {
274
270
  }
275
271
  declare const ClassAttribute: Extension<ClassAttributeOptions, any>;
276
272
  //#endregion
277
- //#region src/extensions/max-nesting.d.ts
278
- interface MaxNestingOptions {
279
- maxDepth: number;
280
- nodeTypes?: string[];
273
+ //#region src/extensions/code-block.d.ts
274
+ interface CodeBlockPrismOptions extends CodeBlockOptions {
275
+ defaultLanguage: string;
276
+ defaultTheme: string;
281
277
  }
282
- declare const MaxNesting: Extension<MaxNestingOptions, any>;
283
- //#endregion
284
- //#region src/extensions/blockquote.d.ts
285
- declare const Blockquote: EmailNode<_tiptap_extension_blockquote0.BlockquoteOptions, any>;
278
+ declare const CodeBlockPrism: EmailNode<CodeBlockPrismOptions, any>;
286
279
  //#endregion
287
- //#region src/extensions/body.d.ts
288
- interface BodyOptions {
280
+ //#region src/extensions/div.d.ts
281
+ interface DivOptions {
289
282
  HTMLAttributes: Record<string, unknown>;
290
283
  }
291
- declare const Body: EmailNode<BodyOptions, Record<string, never>>;
292
- //#endregion
293
- //#region src/extensions/bullet-list.d.ts
294
- declare const BulletList: EmailNode<_tiptap_extension_bullet_list1.BulletListOptions, any>;
284
+ declare const Div: EmailNode<DivOptions, Record<string, never>>;
295
285
  //#endregion
296
- //#region src/extensions/code.d.ts
297
- declare const Code: EmailMark<_tiptap_extension_code1.CodeOptions, any>;
286
+ //#region src/extensions/divider.d.ts
287
+ type DividerOptions = HorizontalRuleOptions;
288
+ declare const Divider: EmailNode<HorizontalRuleOptions, any>;
298
289
  //#endregion
299
- //#region src/extensions/columns.d.ts
290
+ //#region src/extensions/global-content.d.ts
291
+ interface GlobalContentOptions {
292
+ key: string;
293
+ data: Record<string, unknown>;
294
+ }
300
295
  declare module '@tiptap/core' {
296
+ interface GlobalContent<ReturnType> {
297
+ setGlobalContent: (key: string, value: unknown) => ReturnType;
298
+ }
301
299
  interface Commands<ReturnType> {
302
- columns: {
303
- insertColumns: (count: 2 | 3 | 4) => ReturnType;
304
- };
300
+ globalContent: GlobalContent<ReturnType>;
305
301
  }
306
302
  }
307
- declare const COLUMN_PARENT_TYPES: readonly ["twoColumns", "threeColumns", "fourColumns"];
308
- declare const MAX_COLUMNS_DEPTH = 3;
309
- declare function getColumnsDepth(doc: Node$1, from: number): number;
310
- declare const TwoColumns: EmailNode<Record<string, never>, Record<string, never>>;
311
- declare const ThreeColumns: EmailNode<Record<string, never>, Record<string, never>>;
312
- declare const FourColumns: EmailNode<Record<string, never>, Record<string, never>>;
313
- declare const ColumnsColumn: EmailNode<Record<string, never>, Record<string, never>>;
303
+ declare function getGlobalContent(key: string, editor: Editor): unknown | null;
304
+ declare const GlobalContent: Node<GlobalContentOptions, any>;
314
305
  //#endregion
315
- //#region src/extensions/div.d.ts
316
- interface DivOptions {
317
- HTMLAttributes: Record<string, unknown>;
318
- }
319
- declare const Div: EmailNode<DivOptions, Record<string, never>>;
320
- //#endregion
321
- //#region src/extensions/hard-break.d.ts
322
- declare const HardBreak: EmailNode<_tiptap_extension_hard_break1.HardBreakOptions, any>;
306
+ //#region src/extensions/heading.d.ts
307
+ type HeadingOptions = HeadingOptions$1;
308
+ declare const Heading: EmailNode<HeadingOptions$1, any>;
323
309
  //#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>;
310
+ //#region src/extensions/link.d.ts
311
+ type LinkOptions = LinkOptions$1;
312
+ declare const Link: EmailMark<LinkOptions$1, any>;
332
313
  //#endregion
333
- //#region src/extensions/paragraph.d.ts
334
- declare const Paragraph: EmailNode<_tiptap_extension_paragraph1.ParagraphOptions, any>;
314
+ //#region src/extensions/max-nesting.d.ts
315
+ interface MaxNestingOptions {
316
+ maxDepth: number;
317
+ nodeTypes?: string[];
318
+ }
319
+ declare const MaxNesting: Extension<MaxNestingOptions, any>;
335
320
  //#endregion
336
321
  //#region src/extensions/placeholder.d.ts
337
322
  interface PlaceholderOptions {
@@ -340,16 +325,13 @@ interface PlaceholderOptions {
340
325
  }) => string);
341
326
  includeChildren?: boolean;
342
327
  }
343
- declare const Placeholder: _tiptap_core18.Extension<_tiptap_extensions2.PlaceholderOptions, any>;
328
+ declare const Placeholder: Extension<PlaceholderOptions$1, any>;
344
329
  //#endregion
345
- //#region src/extensions/preserved-style.d.ts
346
- declare const PreservedStyle: EmailMark<Record<string, never>, Record<string, never>>;
347
- /**
348
- * Processes styles when unlinking:
349
- * - Has background (button-like): preserve all styles
350
- * - No background: strip link-indicator styles (color, text-decoration), keep the rest
351
- */
352
- declare function processStylesForUnlink(styleString: string | null | undefined): string | null;
330
+ //#region src/extensions/preview-text.d.ts
331
+ interface PreviewTextOptions {
332
+ HTMLAttributes: Record<string, unknown>;
333
+ }
334
+ declare const PreviewText: Node<PreviewTextOptions, any>;
353
335
  //#endregion
354
336
  //#region src/extensions/section.d.ts
355
337
  interface SectionOptions {
@@ -365,8 +347,26 @@ declare module '@tiptap/core' {
365
347
  }
366
348
  declare const Section: EmailNode<SectionOptions, Record<string, never>>;
367
349
  //#endregion
368
- //#region src/extensions/strike.d.ts
369
- declare const Strike: EmailMark<_tiptap_extension_strike0.StrikeOptions, any>;
350
+ //#region src/extensions/style-attribute.d.ts
351
+ interface StyleAttributeOptions {
352
+ types: string[];
353
+ style: string[];
354
+ }
355
+ declare module '@tiptap/core' {
356
+ interface Commands<ReturnType> {
357
+ textAlign: {
358
+ /**
359
+ * Set the style attribute
360
+ */
361
+ setStyle: (style: string) => ReturnType;
362
+ /**
363
+ * Unset the style attribute
364
+ */
365
+ unsetStyle: () => ReturnType;
366
+ };
367
+ }
368
+ }
369
+ declare const StyleAttribute: Extension<StyleAttributeOptions, any>;
370
370
  //#endregion
371
371
  //#region src/extensions/sup.d.ts
372
372
  interface SupOptions {
@@ -401,6 +401,36 @@ declare module '@tiptap/core' {
401
401
  */
402
402
  declare const Sup: EmailMark<SupOptions, Record<string, never>>;
403
403
  //#endregion
404
+ //#region src/extensions/table.d.ts
405
+ declare module '@tiptap/core' {
406
+ interface NodeConfig<Options, Storage> {
407
+ /**
408
+ * A string or function to determine the role of the table.
409
+ * @default 'table'
410
+ * @example () => 'table'
411
+ */
412
+ tableRole?: string | ((this: {
413
+ name: string;
414
+ options: Options;
415
+ storage: Storage;
416
+ parent: ParentConfig<NodeConfig<Options>>['tableRole'];
417
+ }) => string);
418
+ }
419
+ }
420
+ interface TableOptions {
421
+ HTMLAttributes: Record<string, unknown>;
422
+ }
423
+ declare const Table: EmailNode<TableOptions, Record<string, never>>;
424
+ interface TableRowOptions extends Record<string, unknown> {
425
+ HTMLAttributes?: Record<string, unknown>;
426
+ }
427
+ declare const TableRow: EmailNode<TableRowOptions, Record<string, never>>;
428
+ interface TableCellOptions extends Record<string, unknown> {
429
+ HTMLAttributes?: Record<string, unknown>;
430
+ }
431
+ declare const TableCell: EmailNode<TableCellOptions, Record<string, never>>;
432
+ declare const TableHeader: Node<any, any>;
433
+ //#endregion
404
434
  //#region src/extensions/uppercase.d.ts
405
435
  interface UppercaseOptions {
406
436
  HTMLAttributes: Record<string, unknown>;
@@ -416,45 +446,95 @@ declare module '@tiptap/core' {
416
446
  }
417
447
  declare const Uppercase: EmailMark<UppercaseOptions, Record<string, never>>;
418
448
  //#endregion
419
- //#region src/extensions/index.d.ts
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>)[];
449
+ //#region src/extensions/blockquote.d.ts
450
+ declare const Blockquote: EmailNode<BlockquoteOptions, any>;
421
451
  //#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>;
452
+ //#region src/extensions/bullet-list.d.ts
453
+ declare const BulletList: EmailNode<BulletListOptions, any>;
430
454
  //#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;
455
+ //#region src/extensions/code.d.ts
456
+ declare const Code: EmailMark<CodeOptions, any>;
457
+ //#endregion
458
+ //#region src/extensions/columns.d.ts
459
+ declare module '@tiptap/core' {
460
+ interface Commands<ReturnType> {
461
+ columns: {
462
+ insertColumns: (count: 2 | 3 | 4) => ReturnType;
463
+ };
464
+ }
465
+ }
466
+ declare const COLUMN_PARENT_TYPES: readonly ["twoColumns", "threeColumns", "fourColumns"];
467
+ declare const MAX_COLUMNS_DEPTH = 3;
468
+ declare function getColumnsDepth(doc: Node$1, from: number): number;
469
+ declare const TwoColumns: EmailNode<Record<string, never>, Record<string, never>>;
470
+ declare const ThreeColumns: EmailNode<Record<string, never>, Record<string, never>>;
471
+ declare const FourColumns: EmailNode<Record<string, never>, Record<string, never>>;
472
+ declare const ColumnsColumn: EmailNode<Record<string, never>, Record<string, never>>;
473
+ //#endregion
474
+ //#region src/extensions/hard-break.d.ts
475
+ declare const HardBreak: EmailNode<HardBreakOptions, any>;
476
+ //#endregion
477
+ //#region src/extensions/italic.d.ts
478
+ declare const Italic: EmailMark<ItalicOptions, any>;
479
+ //#endregion
480
+ //#region src/extensions/list-item.d.ts
481
+ declare const ListItem: EmailNode<ListItemOptions, any>;
482
+ //#endregion
483
+ //#region src/extensions/ordered-list.d.ts
484
+ declare const OrderedList: EmailNode<OrderedListOptions, any>;
485
+ //#endregion
486
+ //#region src/extensions/paragraph.d.ts
487
+ declare const Paragraph: EmailNode<ParagraphOptions, any>;
488
+ //#endregion
489
+ //#region src/extensions/preserved-style.d.ts
490
+ declare const PreservedStyle: EmailMark<Record<string, never>, Record<string, never>>;
491
+ /**
492
+ * Processes styles when unlinking:
493
+ * - Has background (button-like): preserve all styles
494
+ * - No background: strip link-indicator styles (color, text-decoration), keep the rest
495
+ */
496
+ declare function processStylesForUnlink(styleString: string | null | undefined): string | null;
497
+ //#endregion
498
+ //#region src/extensions/strike.d.ts
499
+ declare const Strike: EmailMark<StrikeOptions, any>;
500
+ //#endregion
501
+ //#region src/extensions/index.d.ts
502
+ type StarterKitOptions = {
503
+ CodeBlockPrism: Partial<CodeBlockPrismOptions> | false;
504
+ Code: Partial<CodeOptions> | false;
505
+ Paragraph: Partial<ParagraphOptions> | false;
506
+ BulletList: Partial<BulletListOptions> | false;
507
+ OrderedList: Partial<OrderedListOptions> | false;
508
+ Blockquote: Partial<BlockquoteOptions> | false;
509
+ ListItem: Partial<ListItemOptions> | false;
510
+ HardBreak: Partial<HardBreakOptions> | false;
511
+ Italic: Partial<ItalicOptions> | false;
512
+ Placeholder: Partial<PlaceholderOptions> | false;
513
+ PreviewText: Partial<PreviewTextOptions> | false;
514
+ Bold: Partial<BoldOptions> | false;
515
+ Strike: Partial<StrikeOptions> | false;
516
+ Heading: Partial<HeadingOptions> | false;
517
+ Divider: Partial<DividerOptions> | false;
518
+ Link: Partial<LinkOptions> | false;
519
+ Sup: Partial<SupOptions> | false;
520
+ Uppercase: Partial<UppercaseOptions> | false;
521
+ PreservedStyle: Partial<Record<string, never>> | false;
522
+ Table: Partial<TableOptions> | false;
523
+ TableRow: Partial<TableRowOptions> | false;
524
+ TableCell: Partial<TableCellOptions> | false;
525
+ TableHeader: Partial<Record<string, any>> | false;
526
+ Body: Partial<BodyOptions> | false;
527
+ Div: Partial<DivOptions> | false;
528
+ Button: Partial<EditorButtonOptions> | false;
529
+ Section: Partial<SectionOptions> | false;
530
+ GlobalContent: Partial<GlobalContentOptions> | false;
531
+ AlignmentAttribute: Partial<AlignmentOptions> | false;
532
+ StyleAttribute: Partial<StyleAttributeOptions> | false;
533
+ ClassAttribute: Partial<ClassAttributeOptions> | false;
534
+ MaxNesting: Partial<MaxNestingOptions> | false;
535
+ TiptapStarterKit: Partial<StarterKitOptions$1> | false;
457
536
  };
537
+ declare const StarterKit: Extension<StarterKitOptions, any>;
458
538
  //#endregion
459
539
  //#region src/ui/bubble-menu/create-mark-bubble-item.d.ts
460
540
  interface PreWiredItemProps {
@@ -1092,7 +1172,7 @@ declare function createSlashCommand(options?: {
1092
1172
  items?: SlashCommandItem[];
1093
1173
  filterItems?: (items: SlashCommandItem[], query: string, editor: Editor) => SlashCommandItem[];
1094
1174
  component?: CommandListComponent;
1095
- }): _tiptap_core18.Extension<any, any>;
1175
+ }): _tiptap_core0.Extension<any, any>;
1096
1176
  //#endregion
1097
1177
  //#region src/ui/slash-command/search.d.ts
1098
1178
  declare function scoreItem(item: SearchableItem, query: string): number;
@@ -1103,10 +1183,10 @@ declare function isInsideNode(editor: Editor, type: string): boolean;
1103
1183
  declare function isAtMaxColumnsDepth(editor: Editor): boolean;
1104
1184
  //#endregion
1105
1185
  //#region src/ui/slash-command/index.d.ts
1106
- declare const SlashCommand: _tiptap_core18.Extension<any, any>;
1186
+ declare const SlashCommand: _tiptap_core0.Extension<any, any>;
1107
1187
  //#endregion
1108
1188
  //#region src/utils/set-text-alignment.d.ts
1109
1189
  declare function setTextAlignment(editor: Editor, alignment: string): void;
1110
1190
  //#endregion
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 };
1191
+ 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, Divider, DividerOptions, EditorButtonOptions, EditorEventHandler, EditorEventMap, EditorEventName, EditorEventSubscription, EmailNode, EmailNodeConfig, FOUR_COLUMNS, FourColumns, GlobalContent, GlobalContentOptions, H1, H2, H3, HardBreak, Heading, HeadingOptions, ImageBubbleMenu, ImageBubbleMenuDefault, type ImageBubbleMenuDefaultProps, ImageBubbleMenuEditLink, type ImageBubbleMenuEditLinkProps, ImageBubbleMenuRoot, type ImageBubbleMenuRootProps, ImageBubbleMenuToolbar, type ImageBubbleMenuToolbarProps, Italic, Link, LinkBubbleMenu, LinkBubbleMenuDefault, type LinkBubbleMenuDefaultProps, LinkBubbleMenuEditLink, type LinkBubbleMenuEditLinkProps, LinkBubbleMenuForm, type LinkBubbleMenuFormProps, LinkBubbleMenuOpenLink, type LinkBubbleMenuOpenLinkProps, LinkBubbleMenuRoot, type LinkBubbleMenuRootProps, LinkBubbleMenuToolbar, type LinkBubbleMenuToolbarProps, LinkBubbleMenuUnlink, type LinkBubbleMenuUnlinkProps, LinkOptions, 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, SectionOptions, SlashCommand, type SlashCommandItem, type SlashCommandProps, StarterKit, StarterKitOptions, Strike, StyleAttribute, StyleAttributeOptions, Sup, SupOptions, TEXT, THREE_COLUMNS, TWO_COLUMNS, Table, TableCell, TableCellOptions, TableHeader, TableOptions, TableRow, TableRowOptions, ThreeColumns, TwoColumns, Uppercase, UppercaseOptions, composeReactEmail, createSlashCommand, defaultSlashCommands, editorEventBus, filterAndRankItems, getColumnsDepth, getGlobalContent, isAtMaxColumnsDepth, isInsideNode, processStylesForUnlink, scoreItem, setTextAlignment, useButtonBubbleMenuContext, useEditor, useImageBubbleMenuContext, useLinkBubbleMenuContext };
1112
1192
  //# sourceMappingURL=index.d.cts.map