@react-email/editor 0.0.0-experimental.16 → 0.0.0-experimental.17
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 +474 -194
- package/dist/index.d.cts +212 -155
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +210 -153
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +473 -198
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,21 +1,24 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
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
|
|
1
|
+
import * as react_jsx_runtime22 from "react/jsx-runtime";
|
|
2
|
+
import * as _tiptap_core6 from "@tiptap/core";
|
|
3
|
+
import { Content, Editor, Extendable, Extension, Extensions, JSONContent, Mark, MarkConfig, MarkType, Node, NodeConfig as NodeConfig$1, NodeType as NodeType$1, ParentConfig, Range } from "@tiptap/core";
|
|
4
|
+
import * as _tiptap_extensions1 from "@tiptap/extensions";
|
|
5
5
|
import { UseEditorOptions } from "@tiptap/react";
|
|
6
6
|
import * as React$1 from "react";
|
|
7
7
|
import { ComponentType, ReactNode, Ref } from "react";
|
|
8
|
-
import
|
|
8
|
+
import { StarterKitOptions as StarterKitOptions$1 } from "@tiptap/starter-kit";
|
|
9
9
|
import * as _tiptap_extension_blockquote0 from "@tiptap/extension-blockquote";
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
10
|
+
import * as _tiptap_extension_bullet_list0 from "@tiptap/extension-bullet-list";
|
|
11
|
+
import * as _tiptap_extension_code0 from "@tiptap/extension-code";
|
|
12
12
|
import { CodeBlockOptions } from "@tiptap/extension-code-block";
|
|
13
13
|
import { EditorView } from "@tiptap/pm/view";
|
|
14
|
-
import * as
|
|
14
|
+
import * as _tiptap_extension_horizontal_rule0 from "@tiptap/extension-horizontal-rule";
|
|
15
|
+
import * as _tiptap_extension_hard_break0 from "@tiptap/extension-hard-break";
|
|
16
|
+
import * as _tiptap_extension_heading0 from "@tiptap/extension-heading";
|
|
15
17
|
import * as _tiptap_extension_italic0 from "@tiptap/extension-italic";
|
|
16
|
-
import * as
|
|
18
|
+
import * as _tiptap_extension_link0 from "@tiptap/extension-link";
|
|
19
|
+
import * as _tiptap_extension_list_item0 from "@tiptap/extension-list-item";
|
|
17
20
|
import * as _tiptap_extension_ordered_list0 from "@tiptap/extension-ordered-list";
|
|
18
|
-
import * as
|
|
21
|
+
import * as _tiptap_extension_paragraph0 from "@tiptap/extension-paragraph";
|
|
19
22
|
import * as _tiptap_extension_strike0 from "@tiptap/extension-strike";
|
|
20
23
|
import { Node as Node$1 } from "@tiptap/pm/model";
|
|
21
24
|
|
|
@@ -70,21 +73,21 @@ type RendererComponent = (props: {
|
|
|
70
73
|
style: React.CSSProperties;
|
|
71
74
|
children?: React.ReactNode;
|
|
72
75
|
}) => React.ReactNode;
|
|
73
|
-
interface EmailNodeConfig<Options, Storage> extends NodeConfig$1<Options, Storage> {
|
|
76
|
+
interface EmailNodeConfig<Options$1, Storage> extends NodeConfig$1<Options$1, Storage> {
|
|
74
77
|
renderToReactEmail: RendererComponent;
|
|
75
78
|
}
|
|
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>);
|
|
79
|
+
type ConfigParameter$1<Options$1, Storage> = Partial<Omit<EmailNodeConfig<Options$1, Storage>, 'renderToReactEmail'>> & Pick<EmailNodeConfig<Options$1, Storage>, 'renderToReactEmail'>;
|
|
80
|
+
declare class EmailNode<Options$1 = Record<string, never>, Storage = Record<string, never>> extends Node<Options$1, Storage> {
|
|
81
|
+
config: EmailNodeConfig<Options$1, Storage>;
|
|
82
|
+
constructor(config: ConfigParameter$1<Options$1, Storage>);
|
|
80
83
|
/**
|
|
81
84
|
* Create a new Node instance
|
|
82
85
|
* @param config - Node configuration object or a function that returns a configuration object
|
|
83
86
|
*/
|
|
84
87
|
static create<O = Record<string, never>, S = Record<string, never>>(config: ConfigParameter$1<O, S> | (() => ConfigParameter$1<O, S>)): EmailNode<O, S>;
|
|
85
88
|
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<{
|
|
89
|
+
configure(options?: Partial<Options$1>): EmailNode<Options$1, Storage>;
|
|
90
|
+
extend<ExtendedOptions = Options$1, ExtendedStorage = Storage, ExtendedConfig extends NodeConfig$1<ExtendedOptions, ExtendedStorage> = EmailNodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
88
91
|
name: string;
|
|
89
92
|
options: ExtendedOptions;
|
|
90
93
|
storage: ExtendedStorage;
|
|
@@ -108,21 +111,21 @@ type RendererComponent$1 = (props: {
|
|
|
108
111
|
style: React.CSSProperties;
|
|
109
112
|
children?: React.ReactNode;
|
|
110
113
|
}) => React.ReactNode;
|
|
111
|
-
interface EmailMarkConfig<Options, Storage> extends MarkConfig<Options, Storage> {
|
|
114
|
+
interface EmailMarkConfig<Options$1, Storage> extends MarkConfig<Options$1, Storage> {
|
|
112
115
|
renderToReactEmail: RendererComponent$1;
|
|
113
116
|
}
|
|
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>);
|
|
117
|
+
type ConfigParameter<Options$1, Storage> = Partial<Omit<EmailMarkConfig<Options$1, Storage>, 'renderToReactEmail'>> & Pick<EmailMarkConfig<Options$1, Storage>, 'renderToReactEmail'>;
|
|
118
|
+
declare class EmailMark<Options$1 = Record<string, never>, Storage = Record<string, never>> extends Mark<Options$1, Storage> {
|
|
119
|
+
config: EmailMarkConfig<Options$1, Storage>;
|
|
120
|
+
constructor(config: ConfigParameter<Options$1, Storage>);
|
|
118
121
|
/**
|
|
119
122
|
* Create a new Mark instance
|
|
120
123
|
* @param config - Mark configuration object or a function that returns a configuration object
|
|
121
124
|
*/
|
|
122
125
|
static create<O = Record<string, never>, S = Record<string, never>>(config: ConfigParameter<O, S> | (() => ConfigParameter<O, S>)): EmailMark<O, S>;
|
|
123
126
|
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<{
|
|
127
|
+
configure(options?: Partial<Options$1>): EmailMark<Options$1, Storage>;
|
|
128
|
+
extend<ExtendedOptions = Options$1, ExtendedStorage = Storage, ExtendedConfig extends MarkConfig<ExtendedOptions, ExtendedStorage> = EmailMarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
126
129
|
name: string;
|
|
127
130
|
options: ExtendedOptions;
|
|
128
131
|
storage: ExtendedStorage;
|
|
@@ -170,9 +173,57 @@ declare module '@tiptap/core' {
|
|
|
170
173
|
*/
|
|
171
174
|
declare const Bold: EmailMark<BoldOptions, Record<string, never>>;
|
|
172
175
|
//#endregion
|
|
176
|
+
//#region src/extensions/sup.d.ts
|
|
177
|
+
interface SupOptions {
|
|
178
|
+
/**
|
|
179
|
+
* HTML attributes to add to the sup element.
|
|
180
|
+
* @default {}
|
|
181
|
+
* @example { class: 'foo' }
|
|
182
|
+
*/
|
|
183
|
+
HTMLAttributes: Record<string, unknown>;
|
|
184
|
+
}
|
|
185
|
+
declare module '@tiptap/core' {
|
|
186
|
+
interface Commands<ReturnType> {
|
|
187
|
+
sup: {
|
|
188
|
+
/**
|
|
189
|
+
* Set a superscript mark
|
|
190
|
+
*/
|
|
191
|
+
setSup: () => ReturnType;
|
|
192
|
+
/**
|
|
193
|
+
* Toggle a superscript mark
|
|
194
|
+
*/
|
|
195
|
+
toggleSup: () => ReturnType;
|
|
196
|
+
/**
|
|
197
|
+
* Unset a superscript mark
|
|
198
|
+
*/
|
|
199
|
+
unsetSup: () => ReturnType;
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* This extension allows you to mark text as superscript.
|
|
205
|
+
* @see https://tiptap.dev/api/marks/superscript
|
|
206
|
+
*/
|
|
207
|
+
declare const Sup: EmailMark<SupOptions, Record<string, never>>;
|
|
208
|
+
//#endregion
|
|
209
|
+
//#region src/extensions/uppercase.d.ts
|
|
210
|
+
interface UppercaseOptions {
|
|
211
|
+
HTMLAttributes: Record<string, unknown>;
|
|
212
|
+
}
|
|
213
|
+
declare module '@tiptap/core' {
|
|
214
|
+
interface Commands<ReturnType> {
|
|
215
|
+
uppercase: {
|
|
216
|
+
setUppercase: () => ReturnType;
|
|
217
|
+
toggleUppercase: () => ReturnType;
|
|
218
|
+
unsetUppercase: () => ReturnType;
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
declare const Uppercase: EmailMark<UppercaseOptions, Record<string, never>>;
|
|
223
|
+
//#endregion
|
|
173
224
|
//#region src/extensions/table.d.ts
|
|
174
225
|
declare module '@tiptap/core' {
|
|
175
|
-
interface NodeConfig<Options, Storage> {
|
|
226
|
+
interface NodeConfig<Options$1, Storage> {
|
|
176
227
|
/**
|
|
177
228
|
* A string or function to determine the role of the table.
|
|
178
229
|
* @default 'table'
|
|
@@ -180,9 +231,9 @@ declare module '@tiptap/core' {
|
|
|
180
231
|
*/
|
|
181
232
|
tableRole?: string | ((this: {
|
|
182
233
|
name: string;
|
|
183
|
-
options: Options;
|
|
234
|
+
options: Options$1;
|
|
184
235
|
storage: Storage;
|
|
185
|
-
parent: ParentConfig<NodeConfig<Options>>['tableRole'];
|
|
236
|
+
parent: ParentConfig<NodeConfig<Options$1>>['tableRole'];
|
|
186
237
|
}) => string);
|
|
187
238
|
}
|
|
188
239
|
}
|
|
@@ -200,6 +251,18 @@ interface TableCellOptions extends Record<string, unknown> {
|
|
|
200
251
|
declare const TableCell: EmailNode<TableCellOptions, Record<string, never>>;
|
|
201
252
|
declare const TableHeader: Node<any, any>;
|
|
202
253
|
//#endregion
|
|
254
|
+
//#region src/extensions/body.d.ts
|
|
255
|
+
interface BodyOptions {
|
|
256
|
+
HTMLAttributes: Record<string, unknown>;
|
|
257
|
+
}
|
|
258
|
+
declare const Body: EmailNode<BodyOptions, Record<string, never>>;
|
|
259
|
+
//#endregion
|
|
260
|
+
//#region src/extensions/div.d.ts
|
|
261
|
+
interface DivOptions {
|
|
262
|
+
HTMLAttributes: Record<string, unknown>;
|
|
263
|
+
}
|
|
264
|
+
declare const Div: EmailNode<DivOptions, Record<string, never>>;
|
|
265
|
+
//#endregion
|
|
203
266
|
//#region src/extensions/button.d.ts
|
|
204
267
|
interface EditorButtonOptions {
|
|
205
268
|
HTMLAttributes: Record<string, unknown>;
|
|
@@ -215,6 +278,36 @@ declare module '@tiptap/core' {
|
|
|
215
278
|
}
|
|
216
279
|
declare const Button: EmailNode<EditorButtonOptions, Record<string, never>>;
|
|
217
280
|
//#endregion
|
|
281
|
+
//#region src/extensions/section.d.ts
|
|
282
|
+
interface SectionOptions {
|
|
283
|
+
HTMLAttributes: Record<string, unknown>;
|
|
284
|
+
[key: string]: unknown;
|
|
285
|
+
}
|
|
286
|
+
declare module '@tiptap/core' {
|
|
287
|
+
interface Commands<ReturnType> {
|
|
288
|
+
section: {
|
|
289
|
+
insertSection: () => ReturnType;
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
declare const Section: EmailNode<SectionOptions, Record<string, never>>;
|
|
294
|
+
//#endregion
|
|
295
|
+
//#region src/extensions/global-content.d.ts
|
|
296
|
+
interface GlobalContentOptions {
|
|
297
|
+
key: string;
|
|
298
|
+
data: Record<string, unknown>;
|
|
299
|
+
}
|
|
300
|
+
declare module '@tiptap/core' {
|
|
301
|
+
interface GlobalContent<ReturnType> {
|
|
302
|
+
setGlobalContent: (key: string, value: unknown) => ReturnType;
|
|
303
|
+
}
|
|
304
|
+
interface Commands<ReturnType> {
|
|
305
|
+
globalContent: GlobalContent<ReturnType>;
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
declare function getGlobalContent(key: string, editor: Editor): unknown | null;
|
|
309
|
+
declare const GlobalContent: Node<GlobalContentOptions, any>;
|
|
310
|
+
//#endregion
|
|
218
311
|
//#region src/extensions/alignment-attribute.d.ts
|
|
219
312
|
interface AlignmentOptions {
|
|
220
313
|
types: string[];
|
|
@@ -284,17 +377,11 @@ declare const MaxNesting: Extension<MaxNestingOptions, any>;
|
|
|
284
377
|
//#region src/extensions/blockquote.d.ts
|
|
285
378
|
declare const Blockquote: EmailNode<_tiptap_extension_blockquote0.BlockquoteOptions, any>;
|
|
286
379
|
//#endregion
|
|
287
|
-
//#region src/extensions/body.d.ts
|
|
288
|
-
interface BodyOptions {
|
|
289
|
-
HTMLAttributes: Record<string, unknown>;
|
|
290
|
-
}
|
|
291
|
-
declare const Body: EmailNode<BodyOptions, Record<string, never>>;
|
|
292
|
-
//#endregion
|
|
293
380
|
//#region src/extensions/bullet-list.d.ts
|
|
294
|
-
declare const BulletList: EmailNode<
|
|
381
|
+
declare const BulletList: EmailNode<_tiptap_extension_bullet_list0.BulletListOptions, any>;
|
|
295
382
|
//#endregion
|
|
296
383
|
//#region src/extensions/code.d.ts
|
|
297
|
-
declare const Code: EmailMark<
|
|
384
|
+
declare const Code: EmailMark<_tiptap_extension_code0.CodeOptions, any>;
|
|
298
385
|
//#endregion
|
|
299
386
|
//#region src/extensions/columns.d.ts
|
|
300
387
|
declare module '@tiptap/core' {
|
|
@@ -312,26 +399,20 @@ declare const ThreeColumns: EmailNode<Record<string, never>, Record<string, neve
|
|
|
312
399
|
declare const FourColumns: EmailNode<Record<string, never>, Record<string, never>>;
|
|
313
400
|
declare const ColumnsColumn: EmailNode<Record<string, never>, Record<string, never>>;
|
|
314
401
|
//#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
402
|
//#region src/extensions/hard-break.d.ts
|
|
322
|
-
declare const HardBreak: EmailNode<
|
|
403
|
+
declare const HardBreak: EmailNode<_tiptap_extension_hard_break0.HardBreakOptions, any>;
|
|
323
404
|
//#endregion
|
|
324
405
|
//#region src/extensions/italic.d.ts
|
|
325
406
|
declare const Italic: EmailMark<_tiptap_extension_italic0.ItalicOptions, any>;
|
|
326
407
|
//#endregion
|
|
327
408
|
//#region src/extensions/list-item.d.ts
|
|
328
|
-
declare const ListItem: EmailNode<
|
|
409
|
+
declare const ListItem: EmailNode<_tiptap_extension_list_item0.ListItemOptions, any>;
|
|
329
410
|
//#endregion
|
|
330
411
|
//#region src/extensions/ordered-list.d.ts
|
|
331
412
|
declare const OrderedList: EmailNode<_tiptap_extension_ordered_list0.OrderedListOptions, any>;
|
|
332
413
|
//#endregion
|
|
333
414
|
//#region src/extensions/paragraph.d.ts
|
|
334
|
-
declare const Paragraph: EmailNode<
|
|
415
|
+
declare const Paragraph: EmailNode<_tiptap_extension_paragraph0.ParagraphOptions, any>;
|
|
335
416
|
//#endregion
|
|
336
417
|
//#region src/extensions/placeholder.d.ts
|
|
337
418
|
interface PlaceholderOptions {
|
|
@@ -340,7 +421,7 @@ interface PlaceholderOptions {
|
|
|
340
421
|
}) => string);
|
|
341
422
|
includeChildren?: boolean;
|
|
342
423
|
}
|
|
343
|
-
declare const Placeholder:
|
|
424
|
+
declare const Placeholder: _tiptap_core6.Extension<_tiptap_extensions1.PlaceholderOptions, any>;
|
|
344
425
|
//#endregion
|
|
345
426
|
//#region src/extensions/preserved-style.d.ts
|
|
346
427
|
declare const PreservedStyle: EmailMark<Record<string, never>, Record<string, never>>;
|
|
@@ -351,73 +432,49 @@ declare const PreservedStyle: EmailMark<Record<string, never>, Record<string, ne
|
|
|
351
432
|
*/
|
|
352
433
|
declare function processStylesForUnlink(styleString: string | null | undefined): string | null;
|
|
353
434
|
//#endregion
|
|
354
|
-
//#region src/extensions/section.d.ts
|
|
355
|
-
interface SectionOptions {
|
|
356
|
-
HTMLAttributes: Record<string, unknown>;
|
|
357
|
-
[key: string]: unknown;
|
|
358
|
-
}
|
|
359
|
-
declare module '@tiptap/core' {
|
|
360
|
-
interface Commands<ReturnType> {
|
|
361
|
-
section: {
|
|
362
|
-
insertSection: () => ReturnType;
|
|
363
|
-
};
|
|
364
|
-
}
|
|
365
|
-
}
|
|
366
|
-
declare const Section: EmailNode<SectionOptions, Record<string, never>>;
|
|
367
|
-
//#endregion
|
|
368
435
|
//#region src/extensions/strike.d.ts
|
|
369
436
|
declare const Strike: EmailMark<_tiptap_extension_strike0.StrikeOptions, any>;
|
|
370
437
|
//#endregion
|
|
371
|
-
//#region src/extensions/sup.d.ts
|
|
372
|
-
interface SupOptions {
|
|
373
|
-
/**
|
|
374
|
-
* HTML attributes to add to the sup element.
|
|
375
|
-
* @default {}
|
|
376
|
-
* @example { class: 'foo' }
|
|
377
|
-
*/
|
|
378
|
-
HTMLAttributes: Record<string, unknown>;
|
|
379
|
-
}
|
|
380
|
-
declare module '@tiptap/core' {
|
|
381
|
-
interface Commands<ReturnType> {
|
|
382
|
-
sup: {
|
|
383
|
-
/**
|
|
384
|
-
* Set a superscript mark
|
|
385
|
-
*/
|
|
386
|
-
setSup: () => ReturnType;
|
|
387
|
-
/**
|
|
388
|
-
* Toggle a superscript mark
|
|
389
|
-
*/
|
|
390
|
-
toggleSup: () => ReturnType;
|
|
391
|
-
/**
|
|
392
|
-
* Unset a superscript mark
|
|
393
|
-
*/
|
|
394
|
-
unsetSup: () => ReturnType;
|
|
395
|
-
};
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
/**
|
|
399
|
-
* This extension allows you to mark text as superscript.
|
|
400
|
-
* @see https://tiptap.dev/api/marks/superscript
|
|
401
|
-
*/
|
|
402
|
-
declare const Sup: EmailMark<SupOptions, Record<string, never>>;
|
|
403
|
-
//#endregion
|
|
404
|
-
//#region src/extensions/uppercase.d.ts
|
|
405
|
-
interface UppercaseOptions {
|
|
406
|
-
HTMLAttributes: Record<string, unknown>;
|
|
407
|
-
}
|
|
408
|
-
declare module '@tiptap/core' {
|
|
409
|
-
interface Commands<ReturnType> {
|
|
410
|
-
uppercase: {
|
|
411
|
-
setUppercase: () => ReturnType;
|
|
412
|
-
toggleUppercase: () => ReturnType;
|
|
413
|
-
unsetUppercase: () => ReturnType;
|
|
414
|
-
};
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
declare const Uppercase: EmailMark<UppercaseOptions, Record<string, never>>;
|
|
418
|
-
//#endregion
|
|
419
438
|
//#region src/extensions/index.d.ts
|
|
420
|
-
|
|
439
|
+
type StarterKitExtensionMap = typeof starterKitExtensions;
|
|
440
|
+
declare const starterKitExtensions: {
|
|
441
|
+
CodeBlockPrism: EmailNode<CodeBlockPrismOptions, any>;
|
|
442
|
+
Code: EmailMark<_tiptap_extension_code0.CodeOptions, any>;
|
|
443
|
+
Paragraph: EmailNode<_tiptap_extension_paragraph0.ParagraphOptions, any>;
|
|
444
|
+
BulletList: EmailNode<_tiptap_extension_bullet_list0.BulletListOptions, any>;
|
|
445
|
+
OrderedList: EmailNode<_tiptap_extension_ordered_list0.OrderedListOptions, any>;
|
|
446
|
+
Blockquote: EmailNode<_tiptap_extension_blockquote0.BlockquoteOptions, any>;
|
|
447
|
+
ListItem: EmailNode<_tiptap_extension_list_item0.ListItemOptions, any>;
|
|
448
|
+
HardBreak: EmailNode<_tiptap_extension_hard_break0.HardBreakOptions, any>;
|
|
449
|
+
Italic: EmailMark<_tiptap_extension_italic0.ItalicOptions, any>;
|
|
450
|
+
Placeholder: Extension<_tiptap_extensions1.PlaceholderOptions, any>;
|
|
451
|
+
PreviewText: _tiptap_core6.Node<PreviewTextOptions, any>;
|
|
452
|
+
Bold: EmailMark<BoldOptions, Record<string, never>>;
|
|
453
|
+
Strike: EmailMark<_tiptap_extension_strike0.StrikeOptions, any>;
|
|
454
|
+
Heading: EmailNode<_tiptap_extension_heading0.HeadingOptions, any>;
|
|
455
|
+
Divider: EmailNode<_tiptap_extension_horizontal_rule0.HorizontalRuleOptions, any>;
|
|
456
|
+
Link: EmailMark<_tiptap_extension_link0.LinkOptions, any>;
|
|
457
|
+
Sup: EmailMark<SupOptions, Record<string, never>>;
|
|
458
|
+
Uppercase: EmailMark<UppercaseOptions, Record<string, never>>;
|
|
459
|
+
PreservedStyle: EmailMark<Record<string, never>, Record<string, never>>;
|
|
460
|
+
Table: EmailNode<TableOptions, Record<string, never>>;
|
|
461
|
+
TableRow: EmailNode<TableRowOptions, Record<string, never>>;
|
|
462
|
+
TableCell: EmailNode<TableCellOptions, Record<string, never>>;
|
|
463
|
+
TableHeader: _tiptap_core6.Node<any, any>;
|
|
464
|
+
Body: EmailNode<BodyOptions, Record<string, never>>;
|
|
465
|
+
Div: EmailNode<DivOptions, Record<string, never>>;
|
|
466
|
+
Button: EmailNode<EditorButtonOptions, Record<string, never>>;
|
|
467
|
+
Section: EmailNode<SectionOptions, Record<string, never>>;
|
|
468
|
+
GlobalContent: _tiptap_core6.Node<GlobalContentOptions, any>;
|
|
469
|
+
AlignmentAttribute: Extension<AlignmentOptions, any>;
|
|
470
|
+
StyleAttribute: Extension<StyleAttributeOptions, any>;
|
|
471
|
+
ClassAttribute: Extension<ClassAttributeOptions, any>;
|
|
472
|
+
MaxNesting: Extension<MaxNestingOptions, any>;
|
|
473
|
+
};
|
|
474
|
+
type StarterKitOptions = { [Key in keyof StarterKitExtensionMap]: StarterKitExtensionMap[Key] extends Extendable<infer Options> ? Partial<Options> | false : never } & {
|
|
475
|
+
TiptapStarterKit: Partial<StarterKitOptions$1> | false;
|
|
476
|
+
};
|
|
477
|
+
declare const StarterKit: Extension<StarterKitOptions, any>;
|
|
421
478
|
//#endregion
|
|
422
479
|
//#region src/core/create-paste-handler.d.ts
|
|
423
480
|
type PasteHandler = (payload: string | File, view: EditorView) => boolean;
|
|
@@ -451,7 +508,7 @@ declare function useEditor({
|
|
|
451
508
|
} & UseEditorOptions): {
|
|
452
509
|
editor: Editor;
|
|
453
510
|
isEditorEmpty: boolean;
|
|
454
|
-
extensions: (
|
|
511
|
+
extensions: (_tiptap_core6.AnyExtension | _tiptap_core6.Extension<StarterKitOptions, any> | _tiptap_core6.Extension<_tiptap_extensions1.UndoRedoOptions, any>)[];
|
|
455
512
|
contentError: Error | null;
|
|
456
513
|
isCollaborative: boolean;
|
|
457
514
|
};
|
|
@@ -467,19 +524,19 @@ interface PreWiredItemProps {
|
|
|
467
524
|
declare function BubbleMenuAlignCenter({
|
|
468
525
|
className,
|
|
469
526
|
children
|
|
470
|
-
}: PreWiredItemProps):
|
|
527
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
471
528
|
//#endregion
|
|
472
529
|
//#region src/ui/bubble-menu/align-left.d.ts
|
|
473
530
|
declare function BubbleMenuAlignLeft({
|
|
474
531
|
className,
|
|
475
532
|
children
|
|
476
|
-
}: PreWiredItemProps):
|
|
533
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
477
534
|
//#endregion
|
|
478
535
|
//#region src/ui/bubble-menu/align-right.d.ts
|
|
479
536
|
declare function BubbleMenuAlignRight({
|
|
480
537
|
className,
|
|
481
538
|
children
|
|
482
|
-
}: PreWiredItemProps):
|
|
539
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
483
540
|
//#endregion
|
|
484
541
|
//#region src/ui/bubble-menu/default.d.ts
|
|
485
542
|
type ExcludableItem$3 = 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'uppercase' | 'align-left' | 'align-center' | 'align-right' | 'node-selector' | 'link-selector';
|
|
@@ -504,7 +561,7 @@ declare function BubbleMenuDefault({
|
|
|
504
561
|
offset,
|
|
505
562
|
onHide,
|
|
506
563
|
className
|
|
507
|
-
}: BubbleMenuDefaultProps):
|
|
564
|
+
}: BubbleMenuDefaultProps): react_jsx_runtime22.JSX.Element;
|
|
508
565
|
//#endregion
|
|
509
566
|
//#region src/ui/bubble-menu/group.d.ts
|
|
510
567
|
interface BubbleMenuItemGroupProps {
|
|
@@ -514,7 +571,7 @@ interface BubbleMenuItemGroupProps {
|
|
|
514
571
|
declare function BubbleMenuItemGroup({
|
|
515
572
|
className,
|
|
516
573
|
children
|
|
517
|
-
}: BubbleMenuItemGroupProps):
|
|
574
|
+
}: BubbleMenuItemGroupProps): react_jsx_runtime22.JSX.Element;
|
|
518
575
|
//#endregion
|
|
519
576
|
//#region src/ui/bubble-menu/item.d.ts
|
|
520
577
|
interface BubbleMenuItemProps extends React$1.ComponentProps<'button'> {
|
|
@@ -532,7 +589,7 @@ declare function BubbleMenuItem({
|
|
|
532
589
|
className,
|
|
533
590
|
children,
|
|
534
591
|
...rest
|
|
535
|
-
}: BubbleMenuItemProps):
|
|
592
|
+
}: BubbleMenuItemProps): react_jsx_runtime22.JSX.Element;
|
|
536
593
|
//#endregion
|
|
537
594
|
//#region src/ui/bubble-menu/link-selector.d.ts
|
|
538
595
|
interface BubbleMenuLinkSelectorProps {
|
|
@@ -561,7 +618,7 @@ declare function BubbleMenuLinkSelector({
|
|
|
561
618
|
children,
|
|
562
619
|
open: controlledOpen,
|
|
563
620
|
onOpenChange
|
|
564
|
-
}: BubbleMenuLinkSelectorProps):
|
|
621
|
+
}: BubbleMenuLinkSelectorProps): react_jsx_runtime22.JSX.Element | null;
|
|
565
622
|
//#endregion
|
|
566
623
|
//#region src/ui/bubble-menu/node-selector.d.ts
|
|
567
624
|
type NodeType = 'Text' | 'Title' | 'Subtitle' | 'Heading' | 'Bullet List' | 'Numbered List' | 'Quote' | 'Code';
|
|
@@ -587,7 +644,7 @@ declare function NodeSelectorRoot({
|
|
|
587
644
|
onOpenChange,
|
|
588
645
|
className,
|
|
589
646
|
children
|
|
590
|
-
}: NodeSelectorRootProps):
|
|
647
|
+
}: NodeSelectorRootProps): react_jsx_runtime22.JSX.Element | null;
|
|
591
648
|
interface NodeSelectorTriggerProps {
|
|
592
649
|
className?: string;
|
|
593
650
|
children?: React$1.ReactNode;
|
|
@@ -595,7 +652,7 @@ interface NodeSelectorTriggerProps {
|
|
|
595
652
|
declare function NodeSelectorTrigger({
|
|
596
653
|
className,
|
|
597
654
|
children
|
|
598
|
-
}: NodeSelectorTriggerProps):
|
|
655
|
+
}: NodeSelectorTriggerProps): react_jsx_runtime22.JSX.Element;
|
|
599
656
|
interface NodeSelectorContentProps {
|
|
600
657
|
className?: string;
|
|
601
658
|
/** Popover alignment (default: "start") */
|
|
@@ -608,7 +665,7 @@ declare function NodeSelectorContent({
|
|
|
608
665
|
className,
|
|
609
666
|
align,
|
|
610
667
|
children
|
|
611
|
-
}: NodeSelectorContentProps):
|
|
668
|
+
}: NodeSelectorContentProps): react_jsx_runtime22.JSX.Element;
|
|
612
669
|
interface BubbleMenuNodeSelectorProps {
|
|
613
670
|
/** Block types to exclude */
|
|
614
671
|
omit?: string[];
|
|
@@ -626,7 +683,7 @@ declare function BubbleMenuNodeSelector({
|
|
|
626
683
|
triggerContent,
|
|
627
684
|
open,
|
|
628
685
|
onOpenChange
|
|
629
|
-
}: BubbleMenuNodeSelectorProps):
|
|
686
|
+
}: BubbleMenuNodeSelectorProps): react_jsx_runtime22.JSX.Element;
|
|
630
687
|
//#endregion
|
|
631
688
|
//#region src/ui/bubble-menu/root.d.ts
|
|
632
689
|
interface BubbleMenuRootProps {
|
|
@@ -649,7 +706,7 @@ declare function BubbleMenuRoot({
|
|
|
649
706
|
onHide,
|
|
650
707
|
className,
|
|
651
708
|
children
|
|
652
|
-
}: BubbleMenuRootProps):
|
|
709
|
+
}: BubbleMenuRootProps): react_jsx_runtime22.JSX.Element | null;
|
|
653
710
|
//#endregion
|
|
654
711
|
//#region src/ui/bubble-menu/separator.d.ts
|
|
655
712
|
interface BubbleMenuSeparatorProps {
|
|
@@ -657,14 +714,14 @@ interface BubbleMenuSeparatorProps {
|
|
|
657
714
|
}
|
|
658
715
|
declare function BubbleMenuSeparator({
|
|
659
716
|
className
|
|
660
|
-
}: BubbleMenuSeparatorProps):
|
|
717
|
+
}: BubbleMenuSeparatorProps): react_jsx_runtime22.JSX.Element;
|
|
661
718
|
//#endregion
|
|
662
719
|
//#region src/ui/bubble-menu/bold.d.ts
|
|
663
720
|
declare const BubbleMenuBold: {
|
|
664
721
|
({
|
|
665
722
|
className,
|
|
666
723
|
children
|
|
667
|
-
}: PreWiredItemProps):
|
|
724
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
668
725
|
displayName: string;
|
|
669
726
|
};
|
|
670
727
|
//#endregion
|
|
@@ -673,7 +730,7 @@ declare const BubbleMenuCode: {
|
|
|
673
730
|
({
|
|
674
731
|
className,
|
|
675
732
|
children
|
|
676
|
-
}: PreWiredItemProps):
|
|
733
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
677
734
|
displayName: string;
|
|
678
735
|
};
|
|
679
736
|
//#endregion
|
|
@@ -682,7 +739,7 @@ declare const BubbleMenuItalic: {
|
|
|
682
739
|
({
|
|
683
740
|
className,
|
|
684
741
|
children
|
|
685
|
-
}: PreWiredItemProps):
|
|
742
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
686
743
|
displayName: string;
|
|
687
744
|
};
|
|
688
745
|
//#endregion
|
|
@@ -691,7 +748,7 @@ declare const BubbleMenuStrike: {
|
|
|
691
748
|
({
|
|
692
749
|
className,
|
|
693
750
|
children
|
|
694
|
-
}: PreWiredItemProps):
|
|
751
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
695
752
|
displayName: string;
|
|
696
753
|
};
|
|
697
754
|
//#endregion
|
|
@@ -700,7 +757,7 @@ declare const BubbleMenuUnderline: {
|
|
|
700
757
|
({
|
|
701
758
|
className,
|
|
702
759
|
children
|
|
703
|
-
}: PreWiredItemProps):
|
|
760
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
704
761
|
displayName: string;
|
|
705
762
|
};
|
|
706
763
|
//#endregion
|
|
@@ -709,7 +766,7 @@ declare const BubbleMenuUppercase: {
|
|
|
709
766
|
({
|
|
710
767
|
className,
|
|
711
768
|
children
|
|
712
|
-
}: PreWiredItemProps):
|
|
769
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
713
770
|
displayName: string;
|
|
714
771
|
};
|
|
715
772
|
//#endregion
|
|
@@ -723,42 +780,42 @@ declare const BubbleMenu: {
|
|
|
723
780
|
({
|
|
724
781
|
className,
|
|
725
782
|
children
|
|
726
|
-
}: PreWiredItemProps):
|
|
783
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
727
784
|
displayName: string;
|
|
728
785
|
};
|
|
729
786
|
readonly Italic: {
|
|
730
787
|
({
|
|
731
788
|
className,
|
|
732
789
|
children
|
|
733
|
-
}: PreWiredItemProps):
|
|
790
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
734
791
|
displayName: string;
|
|
735
792
|
};
|
|
736
793
|
readonly Underline: {
|
|
737
794
|
({
|
|
738
795
|
className,
|
|
739
796
|
children
|
|
740
|
-
}: PreWiredItemProps):
|
|
797
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
741
798
|
displayName: string;
|
|
742
799
|
};
|
|
743
800
|
readonly Strike: {
|
|
744
801
|
({
|
|
745
802
|
className,
|
|
746
803
|
children
|
|
747
|
-
}: PreWiredItemProps):
|
|
804
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
748
805
|
displayName: string;
|
|
749
806
|
};
|
|
750
807
|
readonly Code: {
|
|
751
808
|
({
|
|
752
809
|
className,
|
|
753
810
|
children
|
|
754
|
-
}: PreWiredItemProps):
|
|
811
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
755
812
|
displayName: string;
|
|
756
813
|
};
|
|
757
814
|
readonly Uppercase: {
|
|
758
815
|
({
|
|
759
816
|
className,
|
|
760
817
|
children
|
|
761
|
-
}: PreWiredItemProps):
|
|
818
|
+
}: PreWiredItemProps): react_jsx_runtime22.JSX.Element;
|
|
762
819
|
displayName: string;
|
|
763
820
|
};
|
|
764
821
|
readonly AlignLeft: typeof BubbleMenuAlignLeft;
|
|
@@ -788,7 +845,7 @@ declare function ButtonBubbleMenuDefault({
|
|
|
788
845
|
offset,
|
|
789
846
|
onHide,
|
|
790
847
|
className
|
|
791
|
-
}: ButtonBubbleMenuDefaultProps):
|
|
848
|
+
}: ButtonBubbleMenuDefaultProps): react_jsx_runtime22.JSX.Element;
|
|
792
849
|
//#endregion
|
|
793
850
|
//#region src/ui/button-bubble-menu/edit-link.d.ts
|
|
794
851
|
interface ButtonBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -798,7 +855,7 @@ declare function ButtonBubbleMenuEditLink({
|
|
|
798
855
|
onClick,
|
|
799
856
|
onMouseDown,
|
|
800
857
|
...rest
|
|
801
|
-
}: ButtonBubbleMenuEditLinkProps):
|
|
858
|
+
}: ButtonBubbleMenuEditLinkProps): react_jsx_runtime22.JSX.Element;
|
|
802
859
|
//#endregion
|
|
803
860
|
//#region src/ui/button-bubble-menu/root.d.ts
|
|
804
861
|
interface ButtonBubbleMenuRootProps {
|
|
@@ -818,14 +875,14 @@ declare function ButtonBubbleMenuRoot({
|
|
|
818
875
|
offset,
|
|
819
876
|
className,
|
|
820
877
|
children
|
|
821
|
-
}: ButtonBubbleMenuRootProps):
|
|
878
|
+
}: ButtonBubbleMenuRootProps): react_jsx_runtime22.JSX.Element | null;
|
|
822
879
|
//#endregion
|
|
823
880
|
//#region src/ui/button-bubble-menu/toolbar.d.ts
|
|
824
881
|
interface ButtonBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
825
882
|
declare function ButtonBubbleMenuToolbar({
|
|
826
883
|
children,
|
|
827
884
|
...rest
|
|
828
|
-
}: ButtonBubbleMenuToolbarProps):
|
|
885
|
+
}: ButtonBubbleMenuToolbarProps): react_jsx_runtime22.JSX.Element | null;
|
|
829
886
|
//#endregion
|
|
830
887
|
//#region src/ui/button-bubble-menu/context.d.ts
|
|
831
888
|
interface ButtonBubbleMenuContextValue {
|
|
@@ -858,7 +915,7 @@ declare function ImageBubbleMenuDefault({
|
|
|
858
915
|
offset,
|
|
859
916
|
onHide,
|
|
860
917
|
className
|
|
861
|
-
}: ImageBubbleMenuDefaultProps):
|
|
918
|
+
}: ImageBubbleMenuDefaultProps): react_jsx_runtime22.JSX.Element;
|
|
862
919
|
//#endregion
|
|
863
920
|
//#region src/ui/image-bubble-menu/edit-link.d.ts
|
|
864
921
|
interface ImageBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -868,7 +925,7 @@ declare function ImageBubbleMenuEditLink({
|
|
|
868
925
|
onClick,
|
|
869
926
|
onMouseDown,
|
|
870
927
|
...rest
|
|
871
|
-
}: ImageBubbleMenuEditLinkProps):
|
|
928
|
+
}: ImageBubbleMenuEditLinkProps): react_jsx_runtime22.JSX.Element;
|
|
872
929
|
//#endregion
|
|
873
930
|
//#region src/ui/image-bubble-menu/root.d.ts
|
|
874
931
|
interface ImageBubbleMenuRootProps {
|
|
@@ -888,14 +945,14 @@ declare function ImageBubbleMenuRoot({
|
|
|
888
945
|
offset,
|
|
889
946
|
className,
|
|
890
947
|
children
|
|
891
|
-
}: ImageBubbleMenuRootProps):
|
|
948
|
+
}: ImageBubbleMenuRootProps): react_jsx_runtime22.JSX.Element | null;
|
|
892
949
|
//#endregion
|
|
893
950
|
//#region src/ui/image-bubble-menu/toolbar.d.ts
|
|
894
951
|
interface ImageBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
895
952
|
declare function ImageBubbleMenuToolbar({
|
|
896
953
|
children,
|
|
897
954
|
...rest
|
|
898
|
-
}: ImageBubbleMenuToolbarProps):
|
|
955
|
+
}: ImageBubbleMenuToolbarProps): react_jsx_runtime22.JSX.Element | null;
|
|
899
956
|
//#endregion
|
|
900
957
|
//#region src/ui/image-bubble-menu/context.d.ts
|
|
901
958
|
interface ImageBubbleMenuContextValue {
|
|
@@ -934,7 +991,7 @@ declare function LinkBubbleMenuDefault({
|
|
|
934
991
|
validateUrl,
|
|
935
992
|
onLinkApply,
|
|
936
993
|
onLinkRemove
|
|
937
|
-
}: LinkBubbleMenuDefaultProps):
|
|
994
|
+
}: LinkBubbleMenuDefaultProps): react_jsx_runtime22.JSX.Element;
|
|
938
995
|
//#endregion
|
|
939
996
|
//#region src/ui/link-bubble-menu/edit-link.d.ts
|
|
940
997
|
interface LinkBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -944,7 +1001,7 @@ declare function LinkBubbleMenuEditLink({
|
|
|
944
1001
|
onClick,
|
|
945
1002
|
onMouseDown,
|
|
946
1003
|
...rest
|
|
947
|
-
}: LinkBubbleMenuEditLinkProps):
|
|
1004
|
+
}: LinkBubbleMenuEditLinkProps): react_jsx_runtime22.JSX.Element;
|
|
948
1005
|
//#endregion
|
|
949
1006
|
//#region src/ui/link-bubble-menu/form.d.ts
|
|
950
1007
|
interface LinkBubbleMenuFormProps {
|
|
@@ -964,7 +1021,7 @@ declare function LinkBubbleMenuForm({
|
|
|
964
1021
|
onLinkApply,
|
|
965
1022
|
onLinkRemove,
|
|
966
1023
|
children
|
|
967
|
-
}: LinkBubbleMenuFormProps):
|
|
1024
|
+
}: LinkBubbleMenuFormProps): react_jsx_runtime22.JSX.Element | null;
|
|
968
1025
|
//#endregion
|
|
969
1026
|
//#region src/ui/link-bubble-menu/open-link.d.ts
|
|
970
1027
|
interface LinkBubbleMenuOpenLinkProps extends Omit<React$1.ComponentProps<'a'>, 'href' | 'target' | 'rel'> {}
|
|
@@ -972,7 +1029,7 @@ declare function LinkBubbleMenuOpenLink({
|
|
|
972
1029
|
className,
|
|
973
1030
|
children,
|
|
974
1031
|
...rest
|
|
975
|
-
}: LinkBubbleMenuOpenLinkProps):
|
|
1032
|
+
}: LinkBubbleMenuOpenLinkProps): react_jsx_runtime22.JSX.Element;
|
|
976
1033
|
//#endregion
|
|
977
1034
|
//#region src/ui/link-bubble-menu/root.d.ts
|
|
978
1035
|
interface LinkBubbleMenuRootProps {
|
|
@@ -992,14 +1049,14 @@ declare function LinkBubbleMenuRoot({
|
|
|
992
1049
|
offset,
|
|
993
1050
|
className,
|
|
994
1051
|
children
|
|
995
|
-
}: LinkBubbleMenuRootProps):
|
|
1052
|
+
}: LinkBubbleMenuRootProps): react_jsx_runtime22.JSX.Element | null;
|
|
996
1053
|
//#endregion
|
|
997
1054
|
//#region src/ui/link-bubble-menu/toolbar.d.ts
|
|
998
1055
|
interface LinkBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
999
1056
|
declare function LinkBubbleMenuToolbar({
|
|
1000
1057
|
children,
|
|
1001
1058
|
...rest
|
|
1002
|
-
}: LinkBubbleMenuToolbarProps):
|
|
1059
|
+
}: LinkBubbleMenuToolbarProps): react_jsx_runtime22.JSX.Element | null;
|
|
1003
1060
|
//#endregion
|
|
1004
1061
|
//#region src/ui/link-bubble-menu/unlink.d.ts
|
|
1005
1062
|
interface LinkBubbleMenuUnlinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -1009,7 +1066,7 @@ declare function LinkBubbleMenuUnlink({
|
|
|
1009
1066
|
onClick,
|
|
1010
1067
|
onMouseDown,
|
|
1011
1068
|
...rest
|
|
1012
|
-
}: LinkBubbleMenuUnlinkProps):
|
|
1069
|
+
}: LinkBubbleMenuUnlinkProps): react_jsx_runtime22.JSX.Element;
|
|
1013
1070
|
//#endregion
|
|
1014
1071
|
//#region src/ui/link-bubble-menu/context.d.ts
|
|
1015
1072
|
interface LinkBubbleMenuContextValue {
|
|
@@ -1068,7 +1125,7 @@ declare function CommandList({
|
|
|
1068
1125
|
command,
|
|
1069
1126
|
query,
|
|
1070
1127
|
ref
|
|
1071
|
-
}: CommandListProps):
|
|
1128
|
+
}: CommandListProps): react_jsx_runtime22.JSX.Element;
|
|
1072
1129
|
//#endregion
|
|
1073
1130
|
//#region src/ui/slash-command/commands.d.ts
|
|
1074
1131
|
declare const TEXT: SlashCommandItem;
|
|
@@ -1092,7 +1149,7 @@ declare function createSlashCommand(options?: {
|
|
|
1092
1149
|
items?: SlashCommandItem[];
|
|
1093
1150
|
filterItems?: (items: SlashCommandItem[], query: string, editor: Editor) => SlashCommandItem[];
|
|
1094
1151
|
component?: CommandListComponent;
|
|
1095
|
-
}):
|
|
1152
|
+
}): _tiptap_core6.Extension<any, any>;
|
|
1096
1153
|
//#endregion
|
|
1097
1154
|
//#region src/ui/slash-command/search.d.ts
|
|
1098
1155
|
declare function scoreItem(item: SearchableItem, query: string): number;
|
|
@@ -1103,10 +1160,10 @@ declare function isInsideNode(editor: Editor, type: string): boolean;
|
|
|
1103
1160
|
declare function isAtMaxColumnsDepth(editor: Editor): boolean;
|
|
1104
1161
|
//#endregion
|
|
1105
1162
|
//#region src/ui/slash-command/index.d.ts
|
|
1106
|
-
declare const SlashCommand:
|
|
1163
|
+
declare const SlashCommand: _tiptap_core6.Extension<any, any>;
|
|
1107
1164
|
//#endregion
|
|
1108
1165
|
//#region src/utils/set-text-alignment.d.ts
|
|
1109
1166
|
declare function setTextAlignment(editor: Editor, alignment: string): void;
|
|
1110
1167
|
//#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,
|
|
1168
|
+
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, GlobalContent, GlobalContentOptions, 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, 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
1169
|
//# sourceMappingURL=index.d.mts.map
|