@react-email/editor 0.0.0-experimental.17 → 0.0.0-experimental.19
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 +24 -20
- package/dist/index.d.cts +328 -302
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +322 -296
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +30 -30
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
3
|
-
import { Content, Editor,
|
|
4
|
-
import * as _tiptap_extensions1 from "@tiptap/extensions";
|
|
1
|
+
import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
2
|
+
import * as _tiptap_core0 from "@tiptap/core";
|
|
3
|
+
import { Content, Editor, Extension, Extensions, JSONContent, Mark, MarkConfig, MarkType, Node, NodeConfig as NodeConfig$1, NodeType as NodeType$1, ParentConfig, Range } from "@tiptap/core";
|
|
5
4
|
import { UseEditorOptions } from "@tiptap/react";
|
|
6
5
|
import * as React$1 from "react";
|
|
7
6
|
import { ComponentType, ReactNode, Ref } from "react";
|
|
8
7
|
import { StarterKitOptions as StarterKitOptions$1 } from "@tiptap/starter-kit";
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
8
|
+
import { BlockquoteOptions } from "@tiptap/extension-blockquote";
|
|
9
|
+
import { BulletListOptions } from "@tiptap/extension-bullet-list";
|
|
10
|
+
import { CodeOptions } from "@tiptap/extension-code";
|
|
12
11
|
import { CodeBlockOptions } from "@tiptap/extension-code-block";
|
|
13
12
|
import { EditorView } from "@tiptap/pm/view";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
13
|
+
import { HorizontalRuleOptions } from "@tiptap/extension-horizontal-rule";
|
|
14
|
+
import { HardBreakOptions } from "@tiptap/extension-hard-break";
|
|
15
|
+
import { HeadingOptions as HeadingOptions$1 } from "@tiptap/extension-heading";
|
|
16
|
+
import { ItalicOptions } from "@tiptap/extension-italic";
|
|
17
|
+
import { LinkOptions as LinkOptions$1 } from "@tiptap/extension-link";
|
|
18
|
+
import { ListItemOptions } from "@tiptap/extension-list-item";
|
|
19
|
+
import { OrderedListOptions } from "@tiptap/extension-ordered-list";
|
|
20
|
+
import { ParagraphOptions } from "@tiptap/extension-paragraph";
|
|
21
|
+
import { PlaceholderOptions as PlaceholderOptions$1 } from "@tiptap/extension-placeholder";
|
|
22
|
+
import { StrikeOptions } from "@tiptap/extension-strike";
|
|
23
23
|
import { Node as Node$1 } from "@tiptap/pm/model";
|
|
24
24
|
|
|
25
25
|
//#region src/core/event-bus.d.ts
|
|
@@ -54,6 +54,9 @@ declare class EditorEventBus {
|
|
|
54
54
|
}
|
|
55
55
|
declare const editorEventBus: EditorEventBus;
|
|
56
56
|
//#endregion
|
|
57
|
+
//#region src/core/is-document-visually-empty.d.ts
|
|
58
|
+
declare function isDocumentVisuallyEmpty(doc: Node$1): boolean;
|
|
59
|
+
//#endregion
|
|
57
60
|
//#region src/core/serializer/compose-react-email.d.ts
|
|
58
61
|
interface ComposeReactEmailResult {
|
|
59
62
|
html: string;
|
|
@@ -73,21 +76,28 @@ type RendererComponent = (props: {
|
|
|
73
76
|
style: React.CSSProperties;
|
|
74
77
|
children?: React.ReactNode;
|
|
75
78
|
}) => React.ReactNode;
|
|
76
|
-
interface EmailNodeConfig<Options
|
|
79
|
+
interface EmailNodeConfig<Options, Storage> extends NodeConfig$1<Options, Storage> {
|
|
77
80
|
renderToReactEmail: RendererComponent;
|
|
78
81
|
}
|
|
79
|
-
type ConfigParameter$1<Options
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
82
|
+
type ConfigParameter$1<Options, Storage> = Partial<Omit<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'> & ThisType<{
|
|
83
|
+
name: string;
|
|
84
|
+
options: Options;
|
|
85
|
+
storage: Storage;
|
|
86
|
+
editor: Editor;
|
|
87
|
+
type: NodeType$1;
|
|
88
|
+
parent: (...args: any[]) => any;
|
|
89
|
+
}>;
|
|
90
|
+
declare class EmailNode<Options = Record<string, never>, Storage = Record<string, never>> extends Node<Options, Storage> {
|
|
91
|
+
config: EmailNodeConfig<Options, Storage>;
|
|
92
|
+
constructor(config: ConfigParameter$1<Options, Storage>);
|
|
83
93
|
/**
|
|
84
94
|
* Create a new Node instance
|
|
85
95
|
* @param config - Node configuration object or a function that returns a configuration object
|
|
86
96
|
*/
|
|
87
97
|
static create<O = Record<string, never>, S = Record<string, never>>(config: ConfigParameter$1<O, S> | (() => ConfigParameter$1<O, S>)): EmailNode<O, S>;
|
|
88
98
|
static from<O, S>(node: Node<O, S>, renderToReactEmail: RendererComponent): EmailNode<O, S>;
|
|
89
|
-
configure(options?: Partial<Options
|
|
90
|
-
extend<ExtendedOptions = Options
|
|
99
|
+
configure(options?: Partial<Options>): EmailNode<Options, Storage>;
|
|
100
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig extends NodeConfig$1<ExtendedOptions, ExtendedStorage> = EmailNodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
91
101
|
name: string;
|
|
92
102
|
options: ExtendedOptions;
|
|
93
103
|
storage: ExtendedStorage;
|
|
@@ -96,12 +106,65 @@ declare class EmailNode<Options$1 = Record<string, never>, Storage = Record<stri
|
|
|
96
106
|
}>)): EmailNode<ExtendedOptions, ExtendedStorage>;
|
|
97
107
|
}
|
|
98
108
|
//#endregion
|
|
99
|
-
//#region src/
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
109
|
+
//#region src/core/create-paste-handler.d.ts
|
|
110
|
+
type PasteHandler = (payload: string | File, view: EditorView) => boolean;
|
|
111
|
+
type UploadImageHandler = (file: File, view: EditorView, pos: number, preserveAttributes?: {
|
|
112
|
+
width?: string;
|
|
113
|
+
height?: string;
|
|
114
|
+
alignment?: string;
|
|
115
|
+
href?: string;
|
|
116
|
+
}) => void | Promise<void>;
|
|
117
|
+
//#endregion
|
|
118
|
+
//#region src/core/use-editor.d.ts
|
|
119
|
+
declare function useEditor({
|
|
120
|
+
content,
|
|
121
|
+
extensions,
|
|
122
|
+
onUpdate,
|
|
123
|
+
onPaste,
|
|
124
|
+
onUploadImage,
|
|
125
|
+
onReady,
|
|
126
|
+
editable,
|
|
127
|
+
...rest
|
|
128
|
+
}: {
|
|
129
|
+
content: Content;
|
|
130
|
+
extensions?: Extensions;
|
|
131
|
+
onUpdate?: (editor: Editor, transaction: {
|
|
132
|
+
getMeta: (key: string) => unknown;
|
|
133
|
+
}) => void;
|
|
134
|
+
onPaste?: PasteHandler;
|
|
135
|
+
onUploadImage?: UploadImageHandler;
|
|
136
|
+
onReady?: (editor: Editor | null) => void;
|
|
137
|
+
editable?: boolean;
|
|
138
|
+
} & UseEditorOptions): {
|
|
139
|
+
editor: Editor;
|
|
140
|
+
isEditorEmpty: boolean;
|
|
141
|
+
extensions: Extensions;
|
|
142
|
+
contentError: Error | null;
|
|
143
|
+
isCollaborative: boolean;
|
|
144
|
+
};
|
|
145
|
+
//#endregion
|
|
146
|
+
//#region src/extensions/alignment-attribute.d.ts
|
|
147
|
+
interface AlignmentOptions {
|
|
148
|
+
types: string[];
|
|
149
|
+
alignments: string[];
|
|
103
150
|
}
|
|
104
|
-
declare
|
|
151
|
+
declare module '@tiptap/core' {
|
|
152
|
+
interface Commands<ReturnType> {
|
|
153
|
+
alignment: {
|
|
154
|
+
/**
|
|
155
|
+
* Set the text align attribute
|
|
156
|
+
*/
|
|
157
|
+
setAlignment: (alignment: string) => ReturnType;
|
|
158
|
+
};
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
declare const AlignmentAttribute: Extension<AlignmentOptions, any>;
|
|
162
|
+
//#endregion
|
|
163
|
+
//#region src/extensions/body.d.ts
|
|
164
|
+
interface BodyOptions {
|
|
165
|
+
HTMLAttributes: Record<string, unknown>;
|
|
166
|
+
}
|
|
167
|
+
declare const Body: EmailNode<BodyOptions, Record<string, never>>;
|
|
105
168
|
//#endregion
|
|
106
169
|
//#region src/core/serializer/email-mark.d.ts
|
|
107
170
|
type SerializedMark = NonNullable<JSONContent['marks']>[number];
|
|
@@ -111,21 +174,28 @@ type RendererComponent$1 = (props: {
|
|
|
111
174
|
style: React.CSSProperties;
|
|
112
175
|
children?: React.ReactNode;
|
|
113
176
|
}) => React.ReactNode;
|
|
114
|
-
interface EmailMarkConfig<Options
|
|
177
|
+
interface EmailMarkConfig<Options, Storage> extends MarkConfig<Options, Storage> {
|
|
115
178
|
renderToReactEmail: RendererComponent$1;
|
|
116
179
|
}
|
|
117
|
-
type ConfigParameter<Options
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
180
|
+
type ConfigParameter<Options, Storage> = Partial<Omit<EmailMarkConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailMarkConfig<Options, Storage>, 'renderToReactEmail'> & ThisType<{
|
|
181
|
+
name: string;
|
|
182
|
+
options: Options;
|
|
183
|
+
storage: Storage;
|
|
184
|
+
editor: Editor;
|
|
185
|
+
type: MarkType;
|
|
186
|
+
parent: (...args: any[]) => any;
|
|
187
|
+
}>;
|
|
188
|
+
declare class EmailMark<Options = Record<string, never>, Storage = Record<string, never>> extends Mark<Options, Storage> {
|
|
189
|
+
config: EmailMarkConfig<Options, Storage>;
|
|
190
|
+
constructor(config: ConfigParameter<Options, Storage>);
|
|
121
191
|
/**
|
|
122
192
|
* Create a new Mark instance
|
|
123
193
|
* @param config - Mark configuration object or a function that returns a configuration object
|
|
124
194
|
*/
|
|
125
195
|
static create<O = Record<string, never>, S = Record<string, never>>(config: ConfigParameter<O, S> | (() => ConfigParameter<O, S>)): EmailMark<O, S>;
|
|
126
196
|
static from<O, S>(mark: Mark<O, S>, renderToReactEmail: RendererComponent$1): EmailMark<O, S>;
|
|
127
|
-
configure(options?: Partial<Options
|
|
128
|
-
extend<ExtendedOptions = Options
|
|
197
|
+
configure(options?: Partial<Options>): EmailMark<Options, Storage>;
|
|
198
|
+
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig extends MarkConfig<ExtendedOptions, ExtendedStorage> = EmailMarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
129
199
|
name: string;
|
|
130
200
|
options: ExtendedOptions;
|
|
131
201
|
storage: ExtendedStorage;
|
|
@@ -134,12 +204,6 @@ declare class EmailMark<Options$1 = Record<string, never>, Storage = Record<stri
|
|
|
134
204
|
}>)): EmailMark<ExtendedOptions, ExtendedStorage>;
|
|
135
205
|
}
|
|
136
206
|
//#endregion
|
|
137
|
-
//#region src/extensions/preview-text.d.ts
|
|
138
|
-
interface PreviewTextOptions {
|
|
139
|
-
HTMLAttributes: Record<string, unknown>;
|
|
140
|
-
}
|
|
141
|
-
declare const PreviewText: Node<PreviewTextOptions, any>;
|
|
142
|
-
//#endregion
|
|
143
207
|
//#region src/extensions/bold.d.ts
|
|
144
208
|
interface BoldOptions {
|
|
145
209
|
/**
|
|
@@ -173,89 +237,48 @@ declare module '@tiptap/core' {
|
|
|
173
237
|
*/
|
|
174
238
|
declare const Bold: EmailMark<BoldOptions, Record<string, never>>;
|
|
175
239
|
//#endregion
|
|
176
|
-
//#region src/extensions/
|
|
177
|
-
interface
|
|
178
|
-
/**
|
|
179
|
-
* HTML attributes to add to the sup element.
|
|
180
|
-
* @default {}
|
|
181
|
-
* @example { class: 'foo' }
|
|
182
|
-
*/
|
|
240
|
+
//#region src/extensions/button.d.ts
|
|
241
|
+
interface EditorButtonOptions {
|
|
183
242
|
HTMLAttributes: Record<string, unknown>;
|
|
243
|
+
[key: string]: unknown;
|
|
184
244
|
}
|
|
185
245
|
declare module '@tiptap/core' {
|
|
186
246
|
interface Commands<ReturnType> {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
*/
|
|
191
|
-
setSup: () => ReturnType;
|
|
192
|
-
/**
|
|
193
|
-
* Toggle a superscript mark
|
|
194
|
-
*/
|
|
195
|
-
toggleSup: () => ReturnType;
|
|
196
|
-
/**
|
|
197
|
-
* Unset a superscript mark
|
|
198
|
-
*/
|
|
199
|
-
unsetSup: () => ReturnType;
|
|
247
|
+
button: {
|
|
248
|
+
setButton: () => ReturnType;
|
|
249
|
+
updateButton: (attributes: Record<string, unknown>) => ReturnType;
|
|
200
250
|
};
|
|
201
251
|
}
|
|
202
252
|
}
|
|
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>>;
|
|
253
|
+
declare const Button: EmailNode<EditorButtonOptions, Record<string, never>>;
|
|
208
254
|
//#endregion
|
|
209
|
-
//#region src/extensions/
|
|
210
|
-
interface
|
|
211
|
-
|
|
255
|
+
//#region src/extensions/class-attribute.d.ts
|
|
256
|
+
interface ClassAttributeOptions {
|
|
257
|
+
types: string[];
|
|
258
|
+
class: string[];
|
|
212
259
|
}
|
|
213
260
|
declare module '@tiptap/core' {
|
|
214
261
|
interface Commands<ReturnType> {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
262
|
+
class: {
|
|
263
|
+
/**
|
|
264
|
+
* Set the class attribute
|
|
265
|
+
*/
|
|
266
|
+
setClass: (classList: string) => ReturnType;
|
|
267
|
+
/**
|
|
268
|
+
* Unset the class attribute
|
|
269
|
+
*/
|
|
270
|
+
unsetClass: () => ReturnType;
|
|
219
271
|
};
|
|
220
272
|
}
|
|
221
273
|
}
|
|
222
|
-
declare const
|
|
223
|
-
//#endregion
|
|
224
|
-
//#region src/extensions/table.d.ts
|
|
225
|
-
declare module '@tiptap/core' {
|
|
226
|
-
interface NodeConfig<Options$1, Storage> {
|
|
227
|
-
/**
|
|
228
|
-
* A string or function to determine the role of the table.
|
|
229
|
-
* @default 'table'
|
|
230
|
-
* @example () => 'table'
|
|
231
|
-
*/
|
|
232
|
-
tableRole?: string | ((this: {
|
|
233
|
-
name: string;
|
|
234
|
-
options: Options$1;
|
|
235
|
-
storage: Storage;
|
|
236
|
-
parent: ParentConfig<NodeConfig<Options$1>>['tableRole'];
|
|
237
|
-
}) => string);
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
interface TableOptions {
|
|
241
|
-
HTMLAttributes: Record<string, unknown>;
|
|
242
|
-
}
|
|
243
|
-
declare const Table: EmailNode<TableOptions, Record<string, never>>;
|
|
244
|
-
interface TableRowOptions extends Record<string, unknown> {
|
|
245
|
-
HTMLAttributes?: Record<string, unknown>;
|
|
246
|
-
}
|
|
247
|
-
declare const TableRow: EmailNode<TableRowOptions, Record<string, never>>;
|
|
248
|
-
interface TableCellOptions extends Record<string, unknown> {
|
|
249
|
-
HTMLAttributes?: Record<string, unknown>;
|
|
250
|
-
}
|
|
251
|
-
declare const TableCell: EmailNode<TableCellOptions, Record<string, never>>;
|
|
252
|
-
declare const TableHeader: Node<any, any>;
|
|
274
|
+
declare const ClassAttribute: Extension<ClassAttributeOptions, any>;
|
|
253
275
|
//#endregion
|
|
254
|
-
//#region src/extensions/
|
|
255
|
-
interface
|
|
256
|
-
|
|
276
|
+
//#region src/extensions/code-block.d.ts
|
|
277
|
+
interface CodeBlockPrismOptions extends CodeBlockOptions {
|
|
278
|
+
defaultLanguage: string;
|
|
279
|
+
defaultTheme: string;
|
|
257
280
|
}
|
|
258
|
-
declare const
|
|
281
|
+
declare const CodeBlockPrism: EmailNode<CodeBlockPrismOptions, any>;
|
|
259
282
|
//#endregion
|
|
260
283
|
//#region src/extensions/div.d.ts
|
|
261
284
|
interface DivOptions {
|
|
@@ -263,34 +286,9 @@ interface DivOptions {
|
|
|
263
286
|
}
|
|
264
287
|
declare const Div: EmailNode<DivOptions, Record<string, never>>;
|
|
265
288
|
//#endregion
|
|
266
|
-
//#region src/extensions/
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
[key: string]: unknown;
|
|
270
|
-
}
|
|
271
|
-
declare module '@tiptap/core' {
|
|
272
|
-
interface Commands<ReturnType> {
|
|
273
|
-
button: {
|
|
274
|
-
setButton: () => ReturnType;
|
|
275
|
-
updateButton: (attributes: Record<string, unknown>) => ReturnType;
|
|
276
|
-
};
|
|
277
|
-
}
|
|
278
|
-
}
|
|
279
|
-
declare const Button: EmailNode<EditorButtonOptions, Record<string, never>>;
|
|
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>>;
|
|
289
|
+
//#region src/extensions/divider.d.ts
|
|
290
|
+
type DividerOptions = HorizontalRuleOptions;
|
|
291
|
+
declare const Divider: EmailNode<HorizontalRuleOptions, any>;
|
|
294
292
|
//#endregion
|
|
295
293
|
//#region src/extensions/global-content.d.ts
|
|
296
294
|
interface GlobalContentOptions {
|
|
@@ -308,22 +306,49 @@ declare module '@tiptap/core' {
|
|
|
308
306
|
declare function getGlobalContent(key: string, editor: Editor): unknown | null;
|
|
309
307
|
declare const GlobalContent: Node<GlobalContentOptions, any>;
|
|
310
308
|
//#endregion
|
|
311
|
-
//#region src/extensions/
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
309
|
+
//#region src/extensions/heading.d.ts
|
|
310
|
+
type HeadingOptions = HeadingOptions$1;
|
|
311
|
+
declare const Heading: EmailNode<HeadingOptions$1, any>;
|
|
312
|
+
//#endregion
|
|
313
|
+
//#region src/extensions/link.d.ts
|
|
314
|
+
type LinkOptions = LinkOptions$1;
|
|
315
|
+
declare const Link: EmailMark<LinkOptions$1, any>;
|
|
316
|
+
//#endregion
|
|
317
|
+
//#region src/extensions/max-nesting.d.ts
|
|
318
|
+
interface MaxNestingOptions {
|
|
319
|
+
maxDepth: number;
|
|
320
|
+
nodeTypes?: string[];
|
|
321
|
+
}
|
|
322
|
+
declare const MaxNesting: Extension<MaxNestingOptions, any>;
|
|
323
|
+
//#endregion
|
|
324
|
+
//#region src/extensions/placeholder.d.ts
|
|
325
|
+
interface PlaceholderOptions {
|
|
326
|
+
placeholder?: string | ((props: {
|
|
327
|
+
node: Node$1;
|
|
328
|
+
}) => string);
|
|
329
|
+
includeChildren?: boolean;
|
|
330
|
+
}
|
|
331
|
+
declare const Placeholder: Extension<PlaceholderOptions$1, any>;
|
|
332
|
+
//#endregion
|
|
333
|
+
//#region src/extensions/preview-text.d.ts
|
|
334
|
+
interface PreviewTextOptions {
|
|
335
|
+
HTMLAttributes: Record<string, unknown>;
|
|
336
|
+
}
|
|
337
|
+
declare const PreviewText: Node<PreviewTextOptions, any>;
|
|
338
|
+
//#endregion
|
|
339
|
+
//#region src/extensions/section.d.ts
|
|
340
|
+
interface SectionOptions {
|
|
341
|
+
HTMLAttributes: Record<string, unknown>;
|
|
342
|
+
[key: string]: unknown;
|
|
315
343
|
}
|
|
316
344
|
declare module '@tiptap/core' {
|
|
317
345
|
interface Commands<ReturnType> {
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
* Set the text align attribute
|
|
321
|
-
*/
|
|
322
|
-
setAlignment: (alignment: string) => ReturnType;
|
|
346
|
+
section: {
|
|
347
|
+
insertSection: () => ReturnType;
|
|
323
348
|
};
|
|
324
349
|
}
|
|
325
350
|
}
|
|
326
|
-
declare const
|
|
351
|
+
declare const Section: EmailNode<SectionOptions, Record<string, never>>;
|
|
327
352
|
//#endregion
|
|
328
353
|
//#region src/extensions/style-attribute.d.ts
|
|
329
354
|
interface StyleAttributeOptions {
|
|
@@ -346,42 +371,92 @@ declare module '@tiptap/core' {
|
|
|
346
371
|
}
|
|
347
372
|
declare const StyleAttribute: Extension<StyleAttributeOptions, any>;
|
|
348
373
|
//#endregion
|
|
349
|
-
//#region src/extensions/
|
|
350
|
-
interface
|
|
351
|
-
|
|
352
|
-
|
|
374
|
+
//#region src/extensions/sup.d.ts
|
|
375
|
+
interface SupOptions {
|
|
376
|
+
/**
|
|
377
|
+
* HTML attributes to add to the sup element.
|
|
378
|
+
* @default {}
|
|
379
|
+
* @example { class: 'foo' }
|
|
380
|
+
*/
|
|
381
|
+
HTMLAttributes: Record<string, unknown>;
|
|
353
382
|
}
|
|
354
383
|
declare module '@tiptap/core' {
|
|
355
384
|
interface Commands<ReturnType> {
|
|
356
|
-
|
|
385
|
+
sup: {
|
|
357
386
|
/**
|
|
358
|
-
* Set
|
|
387
|
+
* Set a superscript mark
|
|
359
388
|
*/
|
|
360
|
-
|
|
389
|
+
setSup: () => ReturnType;
|
|
361
390
|
/**
|
|
362
|
-
*
|
|
391
|
+
* Toggle a superscript mark
|
|
363
392
|
*/
|
|
364
|
-
|
|
393
|
+
toggleSup: () => ReturnType;
|
|
394
|
+
/**
|
|
395
|
+
* Unset a superscript mark
|
|
396
|
+
*/
|
|
397
|
+
unsetSup: () => ReturnType;
|
|
365
398
|
};
|
|
366
399
|
}
|
|
367
400
|
}
|
|
368
|
-
|
|
401
|
+
/**
|
|
402
|
+
* This extension allows you to mark text as superscript.
|
|
403
|
+
* @see https://tiptap.dev/api/marks/superscript
|
|
404
|
+
*/
|
|
405
|
+
declare const Sup: EmailMark<SupOptions, Record<string, never>>;
|
|
369
406
|
//#endregion
|
|
370
|
-
//#region src/extensions/
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
407
|
+
//#region src/extensions/table.d.ts
|
|
408
|
+
declare module '@tiptap/core' {
|
|
409
|
+
interface NodeConfig<Options, Storage> {
|
|
410
|
+
/**
|
|
411
|
+
* A string or function to determine the role of the table.
|
|
412
|
+
* @default 'table'
|
|
413
|
+
* @example () => 'table'
|
|
414
|
+
*/
|
|
415
|
+
tableRole?: string | ((this: {
|
|
416
|
+
name: string;
|
|
417
|
+
options: Options;
|
|
418
|
+
storage: Storage;
|
|
419
|
+
parent: ParentConfig<NodeConfig<Options>>['tableRole'];
|
|
420
|
+
}) => string);
|
|
421
|
+
}
|
|
374
422
|
}
|
|
375
|
-
|
|
423
|
+
interface TableOptions {
|
|
424
|
+
HTMLAttributes: Record<string, unknown>;
|
|
425
|
+
}
|
|
426
|
+
declare const Table: EmailNode<TableOptions, Record<string, never>>;
|
|
427
|
+
interface TableRowOptions extends Record<string, unknown> {
|
|
428
|
+
HTMLAttributes?: Record<string, unknown>;
|
|
429
|
+
}
|
|
430
|
+
declare const TableRow: EmailNode<TableRowOptions, Record<string, never>>;
|
|
431
|
+
interface TableCellOptions extends Record<string, unknown> {
|
|
432
|
+
HTMLAttributes?: Record<string, unknown>;
|
|
433
|
+
}
|
|
434
|
+
declare const TableCell: EmailNode<TableCellOptions, Record<string, never>>;
|
|
435
|
+
declare const TableHeader: Node<any, any>;
|
|
436
|
+
//#endregion
|
|
437
|
+
//#region src/extensions/uppercase.d.ts
|
|
438
|
+
interface UppercaseOptions {
|
|
439
|
+
HTMLAttributes: Record<string, unknown>;
|
|
440
|
+
}
|
|
441
|
+
declare module '@tiptap/core' {
|
|
442
|
+
interface Commands<ReturnType> {
|
|
443
|
+
uppercase: {
|
|
444
|
+
setUppercase: () => ReturnType;
|
|
445
|
+
toggleUppercase: () => ReturnType;
|
|
446
|
+
unsetUppercase: () => ReturnType;
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
}
|
|
450
|
+
declare const Uppercase: EmailMark<UppercaseOptions, Record<string, never>>;
|
|
376
451
|
//#endregion
|
|
377
452
|
//#region src/extensions/blockquote.d.ts
|
|
378
|
-
declare const Blockquote: EmailNode<
|
|
453
|
+
declare const Blockquote: EmailNode<BlockquoteOptions, any>;
|
|
379
454
|
//#endregion
|
|
380
455
|
//#region src/extensions/bullet-list.d.ts
|
|
381
|
-
declare const BulletList: EmailNode<
|
|
456
|
+
declare const BulletList: EmailNode<BulletListOptions, any>;
|
|
382
457
|
//#endregion
|
|
383
458
|
//#region src/extensions/code.d.ts
|
|
384
|
-
declare const Code: EmailMark<
|
|
459
|
+
declare const Code: EmailMark<CodeOptions, any>;
|
|
385
460
|
//#endregion
|
|
386
461
|
//#region src/extensions/columns.d.ts
|
|
387
462
|
declare module '@tiptap/core' {
|
|
@@ -400,28 +475,19 @@ declare const FourColumns: EmailNode<Record<string, never>, Record<string, never
|
|
|
400
475
|
declare const ColumnsColumn: EmailNode<Record<string, never>, Record<string, never>>;
|
|
401
476
|
//#endregion
|
|
402
477
|
//#region src/extensions/hard-break.d.ts
|
|
403
|
-
declare const HardBreak: EmailNode<
|
|
478
|
+
declare const HardBreak: EmailNode<HardBreakOptions, any>;
|
|
404
479
|
//#endregion
|
|
405
480
|
//#region src/extensions/italic.d.ts
|
|
406
|
-
declare const Italic: EmailMark<
|
|
481
|
+
declare const Italic: EmailMark<ItalicOptions, any>;
|
|
407
482
|
//#endregion
|
|
408
483
|
//#region src/extensions/list-item.d.ts
|
|
409
|
-
declare const ListItem: EmailNode<
|
|
484
|
+
declare const ListItem: EmailNode<ListItemOptions, any>;
|
|
410
485
|
//#endregion
|
|
411
486
|
//#region src/extensions/ordered-list.d.ts
|
|
412
|
-
declare const OrderedList: EmailNode<
|
|
487
|
+
declare const OrderedList: EmailNode<OrderedListOptions, any>;
|
|
413
488
|
//#endregion
|
|
414
489
|
//#region src/extensions/paragraph.d.ts
|
|
415
|
-
declare const Paragraph: EmailNode<
|
|
416
|
-
//#endregion
|
|
417
|
-
//#region src/extensions/placeholder.d.ts
|
|
418
|
-
interface PlaceholderOptions {
|
|
419
|
-
placeholder?: string | ((props: {
|
|
420
|
-
node: Node$1;
|
|
421
|
-
}) => string);
|
|
422
|
-
includeChildren?: boolean;
|
|
423
|
-
}
|
|
424
|
-
declare const Placeholder: _tiptap_core6.Extension<_tiptap_extensions1.PlaceholderOptions, any>;
|
|
490
|
+
declare const Paragraph: EmailNode<ParagraphOptions, any>;
|
|
425
491
|
//#endregion
|
|
426
492
|
//#region src/extensions/preserved-style.d.ts
|
|
427
493
|
declare const PreservedStyle: EmailMark<Record<string, never>, Record<string, never>>;
|
|
@@ -433,86 +499,46 @@ declare const PreservedStyle: EmailMark<Record<string, never>, Record<string, ne
|
|
|
433
499
|
declare function processStylesForUnlink(styleString: string | null | undefined): string | null;
|
|
434
500
|
//#endregion
|
|
435
501
|
//#region src/extensions/strike.d.ts
|
|
436
|
-
declare const Strike: EmailMark<
|
|
502
|
+
declare const Strike: EmailMark<StrikeOptions, any>;
|
|
437
503
|
//#endregion
|
|
438
504
|
//#region src/extensions/index.d.ts
|
|
439
|
-
type
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
MaxNesting: Extension<MaxNestingOptions, any>;
|
|
473
|
-
};
|
|
474
|
-
type StarterKitOptions = { [Key in keyof StarterKitExtensionMap]: StarterKitExtensionMap[Key] extends Extendable<infer Options> ? Partial<Options> | false : never } & {
|
|
505
|
+
type StarterKitOptions = {
|
|
506
|
+
CodeBlockPrism: Partial<CodeBlockPrismOptions> | false;
|
|
507
|
+
Code: Partial<CodeOptions> | false;
|
|
508
|
+
Paragraph: Partial<ParagraphOptions> | false;
|
|
509
|
+
BulletList: Partial<BulletListOptions> | false;
|
|
510
|
+
OrderedList: Partial<OrderedListOptions> | false;
|
|
511
|
+
Blockquote: Partial<BlockquoteOptions> | false;
|
|
512
|
+
ListItem: Partial<ListItemOptions> | false;
|
|
513
|
+
HardBreak: Partial<HardBreakOptions> | false;
|
|
514
|
+
Italic: Partial<ItalicOptions> | false;
|
|
515
|
+
Placeholder: Partial<PlaceholderOptions> | false;
|
|
516
|
+
PreviewText: Partial<PreviewTextOptions> | false;
|
|
517
|
+
Bold: Partial<BoldOptions> | false;
|
|
518
|
+
Strike: Partial<StrikeOptions> | false;
|
|
519
|
+
Heading: Partial<HeadingOptions> | false;
|
|
520
|
+
Divider: Partial<DividerOptions> | false;
|
|
521
|
+
Link: Partial<LinkOptions> | false;
|
|
522
|
+
Sup: Partial<SupOptions> | false;
|
|
523
|
+
Uppercase: Partial<UppercaseOptions> | false;
|
|
524
|
+
PreservedStyle: Partial<Record<string, never>> | false;
|
|
525
|
+
Table: Partial<TableOptions> | false;
|
|
526
|
+
TableRow: Partial<TableRowOptions> | false;
|
|
527
|
+
TableCell: Partial<TableCellOptions> | false;
|
|
528
|
+
TableHeader: Partial<Record<string, any>> | false;
|
|
529
|
+
Body: Partial<BodyOptions> | false;
|
|
530
|
+
Div: Partial<DivOptions> | false;
|
|
531
|
+
Button: Partial<EditorButtonOptions> | false;
|
|
532
|
+
Section: Partial<SectionOptions> | false;
|
|
533
|
+
GlobalContent: Partial<GlobalContentOptions> | false;
|
|
534
|
+
AlignmentAttribute: Partial<AlignmentOptions> | false;
|
|
535
|
+
StyleAttribute: Partial<StyleAttributeOptions> | false;
|
|
536
|
+
ClassAttribute: Partial<ClassAttributeOptions> | false;
|
|
537
|
+
MaxNesting: Partial<MaxNestingOptions> | false;
|
|
475
538
|
TiptapStarterKit: Partial<StarterKitOptions$1> | false;
|
|
476
539
|
};
|
|
477
540
|
declare const StarterKit: Extension<StarterKitOptions, any>;
|
|
478
541
|
//#endregion
|
|
479
|
-
//#region src/core/create-paste-handler.d.ts
|
|
480
|
-
type PasteHandler = (payload: string | File, view: EditorView) => boolean;
|
|
481
|
-
type UploadImageHandler = (file: File, view: EditorView, pos: number, preserveAttributes?: {
|
|
482
|
-
width?: string;
|
|
483
|
-
height?: string;
|
|
484
|
-
alignment?: string;
|
|
485
|
-
href?: string;
|
|
486
|
-
}) => void | Promise<void>;
|
|
487
|
-
//#endregion
|
|
488
|
-
//#region src/core/use-editor.d.ts
|
|
489
|
-
declare function useEditor({
|
|
490
|
-
content,
|
|
491
|
-
extensions,
|
|
492
|
-
onUpdate,
|
|
493
|
-
onPaste,
|
|
494
|
-
onUploadImage,
|
|
495
|
-
onReady,
|
|
496
|
-
editable,
|
|
497
|
-
...rest
|
|
498
|
-
}: {
|
|
499
|
-
content: Content;
|
|
500
|
-
extensions?: Extensions;
|
|
501
|
-
onUpdate?: (editor: Editor, transaction: {
|
|
502
|
-
getMeta: (key: string) => unknown;
|
|
503
|
-
}) => void;
|
|
504
|
-
onPaste?: PasteHandler;
|
|
505
|
-
onUploadImage?: UploadImageHandler;
|
|
506
|
-
onReady?: (editor: Editor | null) => void;
|
|
507
|
-
editable?: boolean;
|
|
508
|
-
} & UseEditorOptions): {
|
|
509
|
-
editor: Editor;
|
|
510
|
-
isEditorEmpty: boolean;
|
|
511
|
-
extensions: (_tiptap_core6.AnyExtension | _tiptap_core6.Extension<StarterKitOptions, any> | _tiptap_core6.Extension<_tiptap_extensions1.UndoRedoOptions, any>)[];
|
|
512
|
-
contentError: Error | null;
|
|
513
|
-
isCollaborative: boolean;
|
|
514
|
-
};
|
|
515
|
-
//#endregion
|
|
516
542
|
//#region src/ui/bubble-menu/create-mark-bubble-item.d.ts
|
|
517
543
|
interface PreWiredItemProps {
|
|
518
544
|
className?: string;
|
|
@@ -524,19 +550,19 @@ interface PreWiredItemProps {
|
|
|
524
550
|
declare function BubbleMenuAlignCenter({
|
|
525
551
|
className,
|
|
526
552
|
children
|
|
527
|
-
}: PreWiredItemProps):
|
|
553
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
528
554
|
//#endregion
|
|
529
555
|
//#region src/ui/bubble-menu/align-left.d.ts
|
|
530
556
|
declare function BubbleMenuAlignLeft({
|
|
531
557
|
className,
|
|
532
558
|
children
|
|
533
|
-
}: PreWiredItemProps):
|
|
559
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
534
560
|
//#endregion
|
|
535
561
|
//#region src/ui/bubble-menu/align-right.d.ts
|
|
536
562
|
declare function BubbleMenuAlignRight({
|
|
537
563
|
className,
|
|
538
564
|
children
|
|
539
|
-
}: PreWiredItemProps):
|
|
565
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
540
566
|
//#endregion
|
|
541
567
|
//#region src/ui/bubble-menu/default.d.ts
|
|
542
568
|
type ExcludableItem$3 = 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'uppercase' | 'align-left' | 'align-center' | 'align-right' | 'node-selector' | 'link-selector';
|
|
@@ -561,7 +587,7 @@ declare function BubbleMenuDefault({
|
|
|
561
587
|
offset,
|
|
562
588
|
onHide,
|
|
563
589
|
className
|
|
564
|
-
}: BubbleMenuDefaultProps):
|
|
590
|
+
}: BubbleMenuDefaultProps): react_jsx_runtime5.JSX.Element;
|
|
565
591
|
//#endregion
|
|
566
592
|
//#region src/ui/bubble-menu/group.d.ts
|
|
567
593
|
interface BubbleMenuItemGroupProps {
|
|
@@ -571,7 +597,7 @@ interface BubbleMenuItemGroupProps {
|
|
|
571
597
|
declare function BubbleMenuItemGroup({
|
|
572
598
|
className,
|
|
573
599
|
children
|
|
574
|
-
}: BubbleMenuItemGroupProps):
|
|
600
|
+
}: BubbleMenuItemGroupProps): react_jsx_runtime5.JSX.Element;
|
|
575
601
|
//#endregion
|
|
576
602
|
//#region src/ui/bubble-menu/item.d.ts
|
|
577
603
|
interface BubbleMenuItemProps extends React$1.ComponentProps<'button'> {
|
|
@@ -589,7 +615,7 @@ declare function BubbleMenuItem({
|
|
|
589
615
|
className,
|
|
590
616
|
children,
|
|
591
617
|
...rest
|
|
592
|
-
}: BubbleMenuItemProps):
|
|
618
|
+
}: BubbleMenuItemProps): react_jsx_runtime5.JSX.Element;
|
|
593
619
|
//#endregion
|
|
594
620
|
//#region src/ui/bubble-menu/link-selector.d.ts
|
|
595
621
|
interface BubbleMenuLinkSelectorProps {
|
|
@@ -618,7 +644,7 @@ declare function BubbleMenuLinkSelector({
|
|
|
618
644
|
children,
|
|
619
645
|
open: controlledOpen,
|
|
620
646
|
onOpenChange
|
|
621
|
-
}: BubbleMenuLinkSelectorProps):
|
|
647
|
+
}: BubbleMenuLinkSelectorProps): react_jsx_runtime5.JSX.Element | null;
|
|
622
648
|
//#endregion
|
|
623
649
|
//#region src/ui/bubble-menu/node-selector.d.ts
|
|
624
650
|
type NodeType = 'Text' | 'Title' | 'Subtitle' | 'Heading' | 'Bullet List' | 'Numbered List' | 'Quote' | 'Code';
|
|
@@ -644,7 +670,7 @@ declare function NodeSelectorRoot({
|
|
|
644
670
|
onOpenChange,
|
|
645
671
|
className,
|
|
646
672
|
children
|
|
647
|
-
}: NodeSelectorRootProps):
|
|
673
|
+
}: NodeSelectorRootProps): react_jsx_runtime5.JSX.Element | null;
|
|
648
674
|
interface NodeSelectorTriggerProps {
|
|
649
675
|
className?: string;
|
|
650
676
|
children?: React$1.ReactNode;
|
|
@@ -652,7 +678,7 @@ interface NodeSelectorTriggerProps {
|
|
|
652
678
|
declare function NodeSelectorTrigger({
|
|
653
679
|
className,
|
|
654
680
|
children
|
|
655
|
-
}: NodeSelectorTriggerProps):
|
|
681
|
+
}: NodeSelectorTriggerProps): react_jsx_runtime5.JSX.Element;
|
|
656
682
|
interface NodeSelectorContentProps {
|
|
657
683
|
className?: string;
|
|
658
684
|
/** Popover alignment (default: "start") */
|
|
@@ -665,7 +691,7 @@ declare function NodeSelectorContent({
|
|
|
665
691
|
className,
|
|
666
692
|
align,
|
|
667
693
|
children
|
|
668
|
-
}: NodeSelectorContentProps):
|
|
694
|
+
}: NodeSelectorContentProps): react_jsx_runtime5.JSX.Element;
|
|
669
695
|
interface BubbleMenuNodeSelectorProps {
|
|
670
696
|
/** Block types to exclude */
|
|
671
697
|
omit?: string[];
|
|
@@ -683,7 +709,7 @@ declare function BubbleMenuNodeSelector({
|
|
|
683
709
|
triggerContent,
|
|
684
710
|
open,
|
|
685
711
|
onOpenChange
|
|
686
|
-
}: BubbleMenuNodeSelectorProps):
|
|
712
|
+
}: BubbleMenuNodeSelectorProps): react_jsx_runtime5.JSX.Element;
|
|
687
713
|
//#endregion
|
|
688
714
|
//#region src/ui/bubble-menu/root.d.ts
|
|
689
715
|
interface BubbleMenuRootProps {
|
|
@@ -706,7 +732,7 @@ declare function BubbleMenuRoot({
|
|
|
706
732
|
onHide,
|
|
707
733
|
className,
|
|
708
734
|
children
|
|
709
|
-
}: BubbleMenuRootProps):
|
|
735
|
+
}: BubbleMenuRootProps): react_jsx_runtime5.JSX.Element | null;
|
|
710
736
|
//#endregion
|
|
711
737
|
//#region src/ui/bubble-menu/separator.d.ts
|
|
712
738
|
interface BubbleMenuSeparatorProps {
|
|
@@ -714,14 +740,14 @@ interface BubbleMenuSeparatorProps {
|
|
|
714
740
|
}
|
|
715
741
|
declare function BubbleMenuSeparator({
|
|
716
742
|
className
|
|
717
|
-
}: BubbleMenuSeparatorProps):
|
|
743
|
+
}: BubbleMenuSeparatorProps): react_jsx_runtime5.JSX.Element;
|
|
718
744
|
//#endregion
|
|
719
745
|
//#region src/ui/bubble-menu/bold.d.ts
|
|
720
746
|
declare const BubbleMenuBold: {
|
|
721
747
|
({
|
|
722
748
|
className,
|
|
723
749
|
children
|
|
724
|
-
}: PreWiredItemProps):
|
|
750
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
725
751
|
displayName: string;
|
|
726
752
|
};
|
|
727
753
|
//#endregion
|
|
@@ -730,7 +756,7 @@ declare const BubbleMenuCode: {
|
|
|
730
756
|
({
|
|
731
757
|
className,
|
|
732
758
|
children
|
|
733
|
-
}: PreWiredItemProps):
|
|
759
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
734
760
|
displayName: string;
|
|
735
761
|
};
|
|
736
762
|
//#endregion
|
|
@@ -739,7 +765,7 @@ declare const BubbleMenuItalic: {
|
|
|
739
765
|
({
|
|
740
766
|
className,
|
|
741
767
|
children
|
|
742
|
-
}: PreWiredItemProps):
|
|
768
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
743
769
|
displayName: string;
|
|
744
770
|
};
|
|
745
771
|
//#endregion
|
|
@@ -748,7 +774,7 @@ declare const BubbleMenuStrike: {
|
|
|
748
774
|
({
|
|
749
775
|
className,
|
|
750
776
|
children
|
|
751
|
-
}: PreWiredItemProps):
|
|
777
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
752
778
|
displayName: string;
|
|
753
779
|
};
|
|
754
780
|
//#endregion
|
|
@@ -757,7 +783,7 @@ declare const BubbleMenuUnderline: {
|
|
|
757
783
|
({
|
|
758
784
|
className,
|
|
759
785
|
children
|
|
760
|
-
}: PreWiredItemProps):
|
|
786
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
761
787
|
displayName: string;
|
|
762
788
|
};
|
|
763
789
|
//#endregion
|
|
@@ -766,7 +792,7 @@ declare const BubbleMenuUppercase: {
|
|
|
766
792
|
({
|
|
767
793
|
className,
|
|
768
794
|
children
|
|
769
|
-
}: PreWiredItemProps):
|
|
795
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
770
796
|
displayName: string;
|
|
771
797
|
};
|
|
772
798
|
//#endregion
|
|
@@ -780,42 +806,42 @@ declare const BubbleMenu: {
|
|
|
780
806
|
({
|
|
781
807
|
className,
|
|
782
808
|
children
|
|
783
|
-
}: PreWiredItemProps):
|
|
809
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
784
810
|
displayName: string;
|
|
785
811
|
};
|
|
786
812
|
readonly Italic: {
|
|
787
813
|
({
|
|
788
814
|
className,
|
|
789
815
|
children
|
|
790
|
-
}: PreWiredItemProps):
|
|
816
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
791
817
|
displayName: string;
|
|
792
818
|
};
|
|
793
819
|
readonly Underline: {
|
|
794
820
|
({
|
|
795
821
|
className,
|
|
796
822
|
children
|
|
797
|
-
}: PreWiredItemProps):
|
|
823
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
798
824
|
displayName: string;
|
|
799
825
|
};
|
|
800
826
|
readonly Strike: {
|
|
801
827
|
({
|
|
802
828
|
className,
|
|
803
829
|
children
|
|
804
|
-
}: PreWiredItemProps):
|
|
830
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
805
831
|
displayName: string;
|
|
806
832
|
};
|
|
807
833
|
readonly Code: {
|
|
808
834
|
({
|
|
809
835
|
className,
|
|
810
836
|
children
|
|
811
|
-
}: PreWiredItemProps):
|
|
837
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
812
838
|
displayName: string;
|
|
813
839
|
};
|
|
814
840
|
readonly Uppercase: {
|
|
815
841
|
({
|
|
816
842
|
className,
|
|
817
843
|
children
|
|
818
|
-
}: PreWiredItemProps):
|
|
844
|
+
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
819
845
|
displayName: string;
|
|
820
846
|
};
|
|
821
847
|
readonly AlignLeft: typeof BubbleMenuAlignLeft;
|
|
@@ -845,7 +871,7 @@ declare function ButtonBubbleMenuDefault({
|
|
|
845
871
|
offset,
|
|
846
872
|
onHide,
|
|
847
873
|
className
|
|
848
|
-
}: ButtonBubbleMenuDefaultProps):
|
|
874
|
+
}: ButtonBubbleMenuDefaultProps): react_jsx_runtime5.JSX.Element;
|
|
849
875
|
//#endregion
|
|
850
876
|
//#region src/ui/button-bubble-menu/edit-link.d.ts
|
|
851
877
|
interface ButtonBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -855,7 +881,7 @@ declare function ButtonBubbleMenuEditLink({
|
|
|
855
881
|
onClick,
|
|
856
882
|
onMouseDown,
|
|
857
883
|
...rest
|
|
858
|
-
}: ButtonBubbleMenuEditLinkProps):
|
|
884
|
+
}: ButtonBubbleMenuEditLinkProps): react_jsx_runtime5.JSX.Element;
|
|
859
885
|
//#endregion
|
|
860
886
|
//#region src/ui/button-bubble-menu/root.d.ts
|
|
861
887
|
interface ButtonBubbleMenuRootProps {
|
|
@@ -875,14 +901,14 @@ declare function ButtonBubbleMenuRoot({
|
|
|
875
901
|
offset,
|
|
876
902
|
className,
|
|
877
903
|
children
|
|
878
|
-
}: ButtonBubbleMenuRootProps):
|
|
904
|
+
}: ButtonBubbleMenuRootProps): react_jsx_runtime5.JSX.Element | null;
|
|
879
905
|
//#endregion
|
|
880
906
|
//#region src/ui/button-bubble-menu/toolbar.d.ts
|
|
881
907
|
interface ButtonBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
882
908
|
declare function ButtonBubbleMenuToolbar({
|
|
883
909
|
children,
|
|
884
910
|
...rest
|
|
885
|
-
}: ButtonBubbleMenuToolbarProps):
|
|
911
|
+
}: ButtonBubbleMenuToolbarProps): react_jsx_runtime5.JSX.Element | null;
|
|
886
912
|
//#endregion
|
|
887
913
|
//#region src/ui/button-bubble-menu/context.d.ts
|
|
888
914
|
interface ButtonBubbleMenuContextValue {
|
|
@@ -915,7 +941,7 @@ declare function ImageBubbleMenuDefault({
|
|
|
915
941
|
offset,
|
|
916
942
|
onHide,
|
|
917
943
|
className
|
|
918
|
-
}: ImageBubbleMenuDefaultProps):
|
|
944
|
+
}: ImageBubbleMenuDefaultProps): react_jsx_runtime5.JSX.Element;
|
|
919
945
|
//#endregion
|
|
920
946
|
//#region src/ui/image-bubble-menu/edit-link.d.ts
|
|
921
947
|
interface ImageBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -925,7 +951,7 @@ declare function ImageBubbleMenuEditLink({
|
|
|
925
951
|
onClick,
|
|
926
952
|
onMouseDown,
|
|
927
953
|
...rest
|
|
928
|
-
}: ImageBubbleMenuEditLinkProps):
|
|
954
|
+
}: ImageBubbleMenuEditLinkProps): react_jsx_runtime5.JSX.Element;
|
|
929
955
|
//#endregion
|
|
930
956
|
//#region src/ui/image-bubble-menu/root.d.ts
|
|
931
957
|
interface ImageBubbleMenuRootProps {
|
|
@@ -945,14 +971,14 @@ declare function ImageBubbleMenuRoot({
|
|
|
945
971
|
offset,
|
|
946
972
|
className,
|
|
947
973
|
children
|
|
948
|
-
}: ImageBubbleMenuRootProps):
|
|
974
|
+
}: ImageBubbleMenuRootProps): react_jsx_runtime5.JSX.Element | null;
|
|
949
975
|
//#endregion
|
|
950
976
|
//#region src/ui/image-bubble-menu/toolbar.d.ts
|
|
951
977
|
interface ImageBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
952
978
|
declare function ImageBubbleMenuToolbar({
|
|
953
979
|
children,
|
|
954
980
|
...rest
|
|
955
|
-
}: ImageBubbleMenuToolbarProps):
|
|
981
|
+
}: ImageBubbleMenuToolbarProps): react_jsx_runtime5.JSX.Element | null;
|
|
956
982
|
//#endregion
|
|
957
983
|
//#region src/ui/image-bubble-menu/context.d.ts
|
|
958
984
|
interface ImageBubbleMenuContextValue {
|
|
@@ -991,7 +1017,7 @@ declare function LinkBubbleMenuDefault({
|
|
|
991
1017
|
validateUrl,
|
|
992
1018
|
onLinkApply,
|
|
993
1019
|
onLinkRemove
|
|
994
|
-
}: LinkBubbleMenuDefaultProps):
|
|
1020
|
+
}: LinkBubbleMenuDefaultProps): react_jsx_runtime5.JSX.Element;
|
|
995
1021
|
//#endregion
|
|
996
1022
|
//#region src/ui/link-bubble-menu/edit-link.d.ts
|
|
997
1023
|
interface LinkBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -1001,7 +1027,7 @@ declare function LinkBubbleMenuEditLink({
|
|
|
1001
1027
|
onClick,
|
|
1002
1028
|
onMouseDown,
|
|
1003
1029
|
...rest
|
|
1004
|
-
}: LinkBubbleMenuEditLinkProps):
|
|
1030
|
+
}: LinkBubbleMenuEditLinkProps): react_jsx_runtime5.JSX.Element;
|
|
1005
1031
|
//#endregion
|
|
1006
1032
|
//#region src/ui/link-bubble-menu/form.d.ts
|
|
1007
1033
|
interface LinkBubbleMenuFormProps {
|
|
@@ -1021,7 +1047,7 @@ declare function LinkBubbleMenuForm({
|
|
|
1021
1047
|
onLinkApply,
|
|
1022
1048
|
onLinkRemove,
|
|
1023
1049
|
children
|
|
1024
|
-
}: LinkBubbleMenuFormProps):
|
|
1050
|
+
}: LinkBubbleMenuFormProps): react_jsx_runtime5.JSX.Element | null;
|
|
1025
1051
|
//#endregion
|
|
1026
1052
|
//#region src/ui/link-bubble-menu/open-link.d.ts
|
|
1027
1053
|
interface LinkBubbleMenuOpenLinkProps extends Omit<React$1.ComponentProps<'a'>, 'href' | 'target' | 'rel'> {}
|
|
@@ -1029,7 +1055,7 @@ declare function LinkBubbleMenuOpenLink({
|
|
|
1029
1055
|
className,
|
|
1030
1056
|
children,
|
|
1031
1057
|
...rest
|
|
1032
|
-
}: LinkBubbleMenuOpenLinkProps):
|
|
1058
|
+
}: LinkBubbleMenuOpenLinkProps): react_jsx_runtime5.JSX.Element;
|
|
1033
1059
|
//#endregion
|
|
1034
1060
|
//#region src/ui/link-bubble-menu/root.d.ts
|
|
1035
1061
|
interface LinkBubbleMenuRootProps {
|
|
@@ -1049,14 +1075,14 @@ declare function LinkBubbleMenuRoot({
|
|
|
1049
1075
|
offset,
|
|
1050
1076
|
className,
|
|
1051
1077
|
children
|
|
1052
|
-
}: LinkBubbleMenuRootProps):
|
|
1078
|
+
}: LinkBubbleMenuRootProps): react_jsx_runtime5.JSX.Element | null;
|
|
1053
1079
|
//#endregion
|
|
1054
1080
|
//#region src/ui/link-bubble-menu/toolbar.d.ts
|
|
1055
1081
|
interface LinkBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
1056
1082
|
declare function LinkBubbleMenuToolbar({
|
|
1057
1083
|
children,
|
|
1058
1084
|
...rest
|
|
1059
|
-
}: LinkBubbleMenuToolbarProps):
|
|
1085
|
+
}: LinkBubbleMenuToolbarProps): react_jsx_runtime5.JSX.Element | null;
|
|
1060
1086
|
//#endregion
|
|
1061
1087
|
//#region src/ui/link-bubble-menu/unlink.d.ts
|
|
1062
1088
|
interface LinkBubbleMenuUnlinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
@@ -1066,7 +1092,7 @@ declare function LinkBubbleMenuUnlink({
|
|
|
1066
1092
|
onClick,
|
|
1067
1093
|
onMouseDown,
|
|
1068
1094
|
...rest
|
|
1069
|
-
}: LinkBubbleMenuUnlinkProps):
|
|
1095
|
+
}: LinkBubbleMenuUnlinkProps): react_jsx_runtime5.JSX.Element;
|
|
1070
1096
|
//#endregion
|
|
1071
1097
|
//#region src/ui/link-bubble-menu/context.d.ts
|
|
1072
1098
|
interface LinkBubbleMenuContextValue {
|
|
@@ -1125,7 +1151,7 @@ declare function CommandList({
|
|
|
1125
1151
|
command,
|
|
1126
1152
|
query,
|
|
1127
1153
|
ref
|
|
1128
|
-
}: CommandListProps):
|
|
1154
|
+
}: CommandListProps): react_jsx_runtime5.JSX.Element;
|
|
1129
1155
|
//#endregion
|
|
1130
1156
|
//#region src/ui/slash-command/commands.d.ts
|
|
1131
1157
|
declare const TEXT: SlashCommandItem;
|
|
@@ -1149,7 +1175,7 @@ declare function createSlashCommand(options?: {
|
|
|
1149
1175
|
items?: SlashCommandItem[];
|
|
1150
1176
|
filterItems?: (items: SlashCommandItem[], query: string, editor: Editor) => SlashCommandItem[];
|
|
1151
1177
|
component?: CommandListComponent;
|
|
1152
|
-
}):
|
|
1178
|
+
}): _tiptap_core0.Extension<any, any>;
|
|
1153
1179
|
//#endregion
|
|
1154
1180
|
//#region src/ui/slash-command/search.d.ts
|
|
1155
1181
|
declare function scoreItem(item: SearchableItem, query: string): number;
|
|
@@ -1160,10 +1186,10 @@ declare function isInsideNode(editor: Editor, type: string): boolean;
|
|
|
1160
1186
|
declare function isAtMaxColumnsDepth(editor: Editor): boolean;
|
|
1161
1187
|
//#endregion
|
|
1162
1188
|
//#region src/ui/slash-command/index.d.ts
|
|
1163
|
-
declare const SlashCommand:
|
|
1189
|
+
declare const SlashCommand: _tiptap_core0.Extension<any, any>;
|
|
1164
1190
|
//#endregion
|
|
1165
1191
|
//#region src/utils/set-text-alignment.d.ts
|
|
1166
1192
|
declare function setTextAlignment(editor: Editor, alignment: string): void;
|
|
1167
1193
|
//#endregion
|
|
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 };
|
|
1194
|
+
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, isDocumentVisuallyEmpty, isInsideNode, processStylesForUnlink, scoreItem, setTextAlignment, useButtonBubbleMenuContext, useEditor, useImageBubbleMenuContext, useLinkBubbleMenuContext };
|
|
1169
1195
|
//# sourceMappingURL=index.d.mts.map
|