@react-email/editor 0.0.0-experimental.21 → 0.0.0-experimental.24
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/columns-CUxUEHje.mjs +497 -0
- package/dist/columns-CUxUEHje.mjs.map +1 -0
- package/dist/columns-ZSaLdkg9.cjs +630 -0
- package/dist/core/index.cjs +8 -0
- package/dist/core/index.d.cts +2 -0
- package/dist/core/index.d.mts +2 -0
- package/dist/core/index.mjs +4 -0
- package/dist/core-BjmRceVw.mjs +1999 -0
- package/dist/core-BjmRceVw.mjs.map +1 -0
- package/dist/core-iuG1UrYN.cjs +2250 -0
- package/dist/extensions/index.cjs +46 -0
- package/dist/extensions/index.d.cts +389 -0
- package/dist/extensions/index.d.cts.map +1 -0
- package/dist/extensions/index.d.mts +389 -0
- package/dist/extensions/index.d.mts.map +1 -0
- package/dist/extensions/index.mjs +4 -0
- package/dist/index-CfslA7KT.d.cts +130 -0
- package/dist/index-CfslA7KT.d.cts.map +1 -0
- package/dist/index-hbHRR7oB.d.mts +130 -0
- package/dist/index-hbHRR7oB.d.mts.map +1 -0
- package/dist/set-text-alignment-Bx3bPteH.cjs +24 -0
- package/dist/set-text-alignment-DZvgnbvz.mjs +19 -0
- package/dist/set-text-alignment-DZvgnbvz.mjs.map +1 -0
- package/dist/ui/index.cjs +1646 -0
- package/dist/ui/index.d.cts +668 -0
- package/dist/ui/index.d.cts.map +1 -0
- package/dist/ui/index.d.mts +668 -0
- package/dist/ui/index.d.mts.map +1 -0
- package/dist/ui/index.mjs +1584 -0
- package/dist/ui/index.mjs.map +1 -0
- package/dist/ui/themes/default.css +20 -1
- package/dist/utils/index.cjs +3 -0
- package/dist/utils/index.d.cts +7 -0
- package/dist/utils/index.d.cts.map +1 -0
- package/dist/utils/index.d.mts +7 -0
- package/dist/utils/index.d.mts.map +1 -0
- package/dist/utils/index.mjs +3 -0
- package/package.json +41 -13
- package/dist/index.cjs +0 -4205
- package/dist/index.d.cts +0 -1164
- package/dist/index.d.cts.map +0 -1
- package/dist/index.d.mts +0 -1164
- package/dist/index.d.mts.map +0 -1
- package/dist/index.mjs +0 -4047
- package/dist/index.mjs.map +0 -1
package/dist/index.d.mts
DELETED
|
@@ -1,1164 +0,0 @@
|
|
|
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";
|
|
4
|
-
import { UseEditorOptions } from "@tiptap/react";
|
|
5
|
-
import * as React$1 from "react";
|
|
6
|
-
import { ComponentType, ReactNode, Ref } from "react";
|
|
7
|
-
import { StarterKitOptions as StarterKitOptions$1 } from "@tiptap/starter-kit";
|
|
8
|
-
import { BlockquoteOptions } from "@tiptap/extension-blockquote";
|
|
9
|
-
import { BoldOptions as BoldOptions$1 } from "@tiptap/extension-bold";
|
|
10
|
-
import { BulletListOptions } from "@tiptap/extension-bullet-list";
|
|
11
|
-
import { CodeOptions } from "@tiptap/extension-code";
|
|
12
|
-
import { CodeBlockOptions } from "@tiptap/extension-code-block";
|
|
13
|
-
import { EditorView } from "@tiptap/pm/view";
|
|
14
|
-
import { HorizontalRuleOptions } from "@tiptap/extension-horizontal-rule";
|
|
15
|
-
import { HardBreakOptions } from "@tiptap/extension-hard-break";
|
|
16
|
-
import { HeadingOptions as HeadingOptions$1 } from "@tiptap/extension-heading";
|
|
17
|
-
import { ItalicOptions } from "@tiptap/extension-italic";
|
|
18
|
-
import { LinkOptions as LinkOptions$1 } from "@tiptap/extension-link";
|
|
19
|
-
import { ListItemOptions } from "@tiptap/extension-list-item";
|
|
20
|
-
import { OrderedListOptions } from "@tiptap/extension-ordered-list";
|
|
21
|
-
import { ParagraphOptions } from "@tiptap/extension-paragraph";
|
|
22
|
-
import { PlaceholderOptions as PlaceholderOptions$1 } from "@tiptap/extension-placeholder";
|
|
23
|
-
import { StrikeOptions } from "@tiptap/extension-strike";
|
|
24
|
-
import { SuperscriptExtensionOptions } from "@tiptap/extension-superscript";
|
|
25
|
-
import { UnderlineOptions as UnderlineOptions$1 } from "@tiptap/extension-underline";
|
|
26
|
-
import { Node as Node$1 } from "@tiptap/pm/model";
|
|
27
|
-
|
|
28
|
-
//#region src/core/event-bus.d.ts
|
|
29
|
-
/**
|
|
30
|
-
* Base event map interface for the editor event bus.
|
|
31
|
-
*
|
|
32
|
-
* Components extend this via TypeScript module augmentation:
|
|
33
|
-
* ```ts
|
|
34
|
-
* declare module '@react-email/editor' {
|
|
35
|
-
* interface EditorEventMap {
|
|
36
|
-
* 'my-component:custom-event': { data: string };
|
|
37
|
-
* }
|
|
38
|
-
* }
|
|
39
|
-
* ```
|
|
40
|
-
*/
|
|
41
|
-
interface EditorEventMap {
|
|
42
|
-
'bubble-menu:add-link': undefined;
|
|
43
|
-
}
|
|
44
|
-
type EditorEventName = keyof EditorEventMap;
|
|
45
|
-
type EditorEventHandler<T extends EditorEventName> = (payload: EditorEventMap[T]) => void | Promise<void>;
|
|
46
|
-
interface EditorEventSubscription {
|
|
47
|
-
unsubscribe: () => void;
|
|
48
|
-
}
|
|
49
|
-
declare class EditorEventBus {
|
|
50
|
-
private prefixEventName;
|
|
51
|
-
dispatch<T extends EditorEventName>(eventName: T, payload: EditorEventMap[T], options?: {
|
|
52
|
-
target?: EventTarget;
|
|
53
|
-
}): void;
|
|
54
|
-
on<T extends EditorEventName>(eventName: T, handler: EditorEventHandler<T>, options?: AddEventListenerOptions & {
|
|
55
|
-
target?: EventTarget;
|
|
56
|
-
}): EditorEventSubscription;
|
|
57
|
-
}
|
|
58
|
-
declare const editorEventBus: EditorEventBus;
|
|
59
|
-
//#endregion
|
|
60
|
-
//#region src/core/is-document-visually-empty.d.ts
|
|
61
|
-
declare function isDocumentVisuallyEmpty(doc: Node$1): boolean;
|
|
62
|
-
//#endregion
|
|
63
|
-
//#region src/core/serializer/compose-react-email.d.ts
|
|
64
|
-
interface ComposeReactEmailResult {
|
|
65
|
-
html: string;
|
|
66
|
-
text: string;
|
|
67
|
-
}
|
|
68
|
-
declare const composeReactEmail: ({
|
|
69
|
-
editor,
|
|
70
|
-
preview
|
|
71
|
-
}: {
|
|
72
|
-
editor: Editor;
|
|
73
|
-
preview: string | null;
|
|
74
|
-
}) => Promise<ComposeReactEmailResult>;
|
|
75
|
-
//#endregion
|
|
76
|
-
//#region src/core/serializer/email-node.d.ts
|
|
77
|
-
type RendererComponent = (props: {
|
|
78
|
-
node: JSONContent;
|
|
79
|
-
style: React.CSSProperties;
|
|
80
|
-
children?: React.ReactNode;
|
|
81
|
-
}) => React.ReactNode;
|
|
82
|
-
interface EmailNodeConfig<Options, Storage> extends NodeConfig$1<Options, Storage> {
|
|
83
|
-
renderToReactEmail: RendererComponent;
|
|
84
|
-
}
|
|
85
|
-
type ConfigParameter$1<Options, Storage> = Partial<Omit<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailNodeConfig<Options, Storage>, 'renderToReactEmail'> & ThisType<{
|
|
86
|
-
name: string;
|
|
87
|
-
options: Options;
|
|
88
|
-
storage: Storage;
|
|
89
|
-
editor: Editor;
|
|
90
|
-
type: NodeType$1;
|
|
91
|
-
parent: (...args: any[]) => any;
|
|
92
|
-
}>;
|
|
93
|
-
declare class EmailNode<Options = Record<string, never>, Storage = Record<string, never>> extends Node<Options, Storage> {
|
|
94
|
-
config: EmailNodeConfig<Options, Storage>;
|
|
95
|
-
constructor(config: ConfigParameter$1<Options, Storage>);
|
|
96
|
-
/**
|
|
97
|
-
* Create a new Node instance
|
|
98
|
-
* @param config - Node configuration object or a function that returns a configuration object
|
|
99
|
-
*/
|
|
100
|
-
static create<O = Record<string, never>, S = Record<string, never>>(config: ConfigParameter$1<O, S> | (() => ConfigParameter$1<O, S>)): EmailNode<O, S>;
|
|
101
|
-
static from<O, S>(node: Node<O, S>, renderToReactEmail: RendererComponent): EmailNode<O, S>;
|
|
102
|
-
configure(options?: Partial<Options>): EmailNode<Options, Storage>;
|
|
103
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig extends NodeConfig$1<ExtendedOptions, ExtendedStorage> = EmailNodeConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
104
|
-
name: string;
|
|
105
|
-
options: ExtendedOptions;
|
|
106
|
-
storage: ExtendedStorage;
|
|
107
|
-
editor: Editor;
|
|
108
|
-
type: NodeType$1;
|
|
109
|
-
}>)): EmailNode<ExtendedOptions, ExtendedStorage>;
|
|
110
|
-
}
|
|
111
|
-
//#endregion
|
|
112
|
-
//#region src/core/create-paste-handler.d.ts
|
|
113
|
-
type PasteHandler = (payload: string | File, view: EditorView) => boolean;
|
|
114
|
-
type UploadImageHandler = (file: File, view: EditorView, pos: number, preserveAttributes?: {
|
|
115
|
-
width?: string;
|
|
116
|
-
height?: string;
|
|
117
|
-
alignment?: string;
|
|
118
|
-
href?: string;
|
|
119
|
-
}) => void | Promise<void>;
|
|
120
|
-
//#endregion
|
|
121
|
-
//#region src/core/use-editor.d.ts
|
|
122
|
-
type Merge<A, B> = A & Omit<B, keyof A>;
|
|
123
|
-
declare function useEditor({
|
|
124
|
-
content,
|
|
125
|
-
extensions,
|
|
126
|
-
onUpdate,
|
|
127
|
-
onPaste,
|
|
128
|
-
onUploadImage,
|
|
129
|
-
onReady,
|
|
130
|
-
editable,
|
|
131
|
-
...rest
|
|
132
|
-
}: Merge<{
|
|
133
|
-
content: Content;
|
|
134
|
-
extensions?: Extensions;
|
|
135
|
-
onUpdate?: (editor: Editor, transaction: {
|
|
136
|
-
getMeta: (key: string) => unknown;
|
|
137
|
-
}) => void;
|
|
138
|
-
onPaste?: PasteHandler;
|
|
139
|
-
onUploadImage?: UploadImageHandler;
|
|
140
|
-
onReady?: (editor: Editor | null) => void;
|
|
141
|
-
editable?: boolean;
|
|
142
|
-
}, UseEditorOptions>): {
|
|
143
|
-
editor: Editor;
|
|
144
|
-
isEditorEmpty: boolean;
|
|
145
|
-
extensions: Extensions;
|
|
146
|
-
contentError: Error | null;
|
|
147
|
-
isCollaborative: boolean;
|
|
148
|
-
};
|
|
149
|
-
//#endregion
|
|
150
|
-
//#region src/extensions/alignment-attribute.d.ts
|
|
151
|
-
interface AlignmentOptions {
|
|
152
|
-
types: string[];
|
|
153
|
-
alignments: string[];
|
|
154
|
-
}
|
|
155
|
-
declare module '@tiptap/core' {
|
|
156
|
-
interface Commands<ReturnType> {
|
|
157
|
-
alignment: {
|
|
158
|
-
/**
|
|
159
|
-
* Set the text align attribute
|
|
160
|
-
*/
|
|
161
|
-
setAlignment: (alignment: string) => ReturnType;
|
|
162
|
-
};
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
declare const AlignmentAttribute: Extension<AlignmentOptions, any>;
|
|
166
|
-
//#endregion
|
|
167
|
-
//#region src/extensions/body.d.ts
|
|
168
|
-
interface BodyOptions {
|
|
169
|
-
HTMLAttributes: Record<string, unknown>;
|
|
170
|
-
}
|
|
171
|
-
declare const Body: EmailNode<BodyOptions, Record<string, never>>;
|
|
172
|
-
//#endregion
|
|
173
|
-
//#region src/core/serializer/email-mark.d.ts
|
|
174
|
-
type SerializedMark = NonNullable<JSONContent['marks']>[number];
|
|
175
|
-
type RendererComponent$1 = (props: {
|
|
176
|
-
mark: SerializedMark;
|
|
177
|
-
node: JSONContent;
|
|
178
|
-
style: React.CSSProperties;
|
|
179
|
-
children?: React.ReactNode;
|
|
180
|
-
}) => React.ReactNode;
|
|
181
|
-
interface EmailMarkConfig<Options, Storage> extends MarkConfig<Options, Storage> {
|
|
182
|
-
renderToReactEmail: RendererComponent$1;
|
|
183
|
-
}
|
|
184
|
-
type ConfigParameter<Options, Storage> = Partial<Omit<EmailMarkConfig<Options, Storage>, 'renderToReactEmail'>> & Pick<EmailMarkConfig<Options, Storage>, 'renderToReactEmail'> & ThisType<{
|
|
185
|
-
name: string;
|
|
186
|
-
options: Options;
|
|
187
|
-
storage: Storage;
|
|
188
|
-
editor: Editor;
|
|
189
|
-
type: MarkType;
|
|
190
|
-
parent: (...args: any[]) => any;
|
|
191
|
-
}>;
|
|
192
|
-
declare class EmailMark<Options = Record<string, never>, Storage = Record<string, never>> extends Mark<Options, Storage> {
|
|
193
|
-
config: EmailMarkConfig<Options, Storage>;
|
|
194
|
-
constructor(config: ConfigParameter<Options, Storage>);
|
|
195
|
-
/**
|
|
196
|
-
* Create a new Mark instance
|
|
197
|
-
* @param config - Mark configuration object or a function that returns a configuration object
|
|
198
|
-
*/
|
|
199
|
-
static create<O = Record<string, never>, S = Record<string, never>>(config: ConfigParameter<O, S> | (() => ConfigParameter<O, S>)): EmailMark<O, S>;
|
|
200
|
-
static from<O, S>(mark: Mark<O, S>, renderToReactEmail: RendererComponent$1): EmailMark<O, S>;
|
|
201
|
-
configure(options?: Partial<Options>): EmailMark<Options, Storage>;
|
|
202
|
-
extend<ExtendedOptions = Options, ExtendedStorage = Storage, ExtendedConfig extends MarkConfig<ExtendedOptions, ExtendedStorage> = EmailMarkConfig<ExtendedOptions, ExtendedStorage>>(extendedConfig?: (() => Partial<ExtendedConfig>) | (Partial<ExtendedConfig> & ThisType<{
|
|
203
|
-
name: string;
|
|
204
|
-
options: ExtendedOptions;
|
|
205
|
-
storage: ExtendedStorage;
|
|
206
|
-
editor: Editor;
|
|
207
|
-
type: MarkType;
|
|
208
|
-
}>)): EmailMark<ExtendedOptions, ExtendedStorage>;
|
|
209
|
-
}
|
|
210
|
-
//#endregion
|
|
211
|
-
//#region src/extensions/bold.d.ts
|
|
212
|
-
type BoldOptions = BoldOptions$1;
|
|
213
|
-
declare const Bold: EmailMark<BoldOptions$1, any>;
|
|
214
|
-
//#endregion
|
|
215
|
-
//#region src/extensions/button.d.ts
|
|
216
|
-
interface EditorButtonOptions {
|
|
217
|
-
HTMLAttributes: Record<string, unknown>;
|
|
218
|
-
[key: string]: unknown;
|
|
219
|
-
}
|
|
220
|
-
declare module '@tiptap/core' {
|
|
221
|
-
interface Commands<ReturnType> {
|
|
222
|
-
button: {
|
|
223
|
-
setButton: () => ReturnType;
|
|
224
|
-
updateButton: (attributes: Record<string, unknown>) => ReturnType;
|
|
225
|
-
};
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
declare const Button: EmailNode<EditorButtonOptions, Record<string, never>>;
|
|
229
|
-
//#endregion
|
|
230
|
-
//#region src/extensions/class-attribute.d.ts
|
|
231
|
-
interface ClassAttributeOptions {
|
|
232
|
-
types: string[];
|
|
233
|
-
class: string[];
|
|
234
|
-
}
|
|
235
|
-
declare module '@tiptap/core' {
|
|
236
|
-
interface Commands<ReturnType> {
|
|
237
|
-
class: {
|
|
238
|
-
/**
|
|
239
|
-
* Set the class attribute
|
|
240
|
-
*/
|
|
241
|
-
setClass: (classList: string) => ReturnType;
|
|
242
|
-
/**
|
|
243
|
-
* Unset the class attribute
|
|
244
|
-
*/
|
|
245
|
-
unsetClass: () => ReturnType;
|
|
246
|
-
};
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
declare const ClassAttribute: Extension<ClassAttributeOptions, any>;
|
|
250
|
-
//#endregion
|
|
251
|
-
//#region src/extensions/code-block.d.ts
|
|
252
|
-
interface CodeBlockPrismOptions extends CodeBlockOptions {
|
|
253
|
-
defaultLanguage: string;
|
|
254
|
-
defaultTheme: string;
|
|
255
|
-
}
|
|
256
|
-
declare const CodeBlockPrism: EmailNode<CodeBlockPrismOptions, any>;
|
|
257
|
-
//#endregion
|
|
258
|
-
//#region src/extensions/div.d.ts
|
|
259
|
-
interface DivOptions {
|
|
260
|
-
HTMLAttributes: Record<string, unknown>;
|
|
261
|
-
}
|
|
262
|
-
declare const Div: EmailNode<DivOptions, Record<string, never>>;
|
|
263
|
-
//#endregion
|
|
264
|
-
//#region src/extensions/divider.d.ts
|
|
265
|
-
type DividerOptions = HorizontalRuleOptions;
|
|
266
|
-
declare const Divider: EmailNode<HorizontalRuleOptions, any>;
|
|
267
|
-
//#endregion
|
|
268
|
-
//#region src/extensions/global-content.d.ts
|
|
269
|
-
interface GlobalContentOptions {
|
|
270
|
-
key: string;
|
|
271
|
-
data: Record<string, unknown>;
|
|
272
|
-
}
|
|
273
|
-
declare module '@tiptap/core' {
|
|
274
|
-
interface GlobalContent<ReturnType> {
|
|
275
|
-
setGlobalContent: (key: string, value: unknown) => ReturnType;
|
|
276
|
-
}
|
|
277
|
-
interface Commands<ReturnType> {
|
|
278
|
-
globalContent: GlobalContent<ReturnType>;
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
declare function getGlobalContent(key: string, editor: Editor): unknown | null;
|
|
282
|
-
declare const GlobalContent: Node<GlobalContentOptions, any>;
|
|
283
|
-
//#endregion
|
|
284
|
-
//#region src/extensions/heading.d.ts
|
|
285
|
-
type HeadingOptions = HeadingOptions$1;
|
|
286
|
-
declare const Heading: EmailNode<HeadingOptions$1, any>;
|
|
287
|
-
//#endregion
|
|
288
|
-
//#region src/extensions/link.d.ts
|
|
289
|
-
type LinkOptions = LinkOptions$1;
|
|
290
|
-
declare const Link: EmailMark<LinkOptions$1, any>;
|
|
291
|
-
//#endregion
|
|
292
|
-
//#region src/extensions/max-nesting.d.ts
|
|
293
|
-
interface MaxNestingOptions {
|
|
294
|
-
maxDepth: number;
|
|
295
|
-
nodeTypes?: string[];
|
|
296
|
-
}
|
|
297
|
-
declare const MaxNesting: Extension<MaxNestingOptions, any>;
|
|
298
|
-
//#endregion
|
|
299
|
-
//#region src/extensions/placeholder.d.ts
|
|
300
|
-
interface PlaceholderOptions {
|
|
301
|
-
placeholder?: string | ((props: {
|
|
302
|
-
node: Node$1;
|
|
303
|
-
}) => string);
|
|
304
|
-
includeChildren?: boolean;
|
|
305
|
-
}
|
|
306
|
-
declare const Placeholder: Extension<PlaceholderOptions$1, any>;
|
|
307
|
-
//#endregion
|
|
308
|
-
//#region src/extensions/preview-text.d.ts
|
|
309
|
-
interface PreviewTextOptions {
|
|
310
|
-
HTMLAttributes: Record<string, unknown>;
|
|
311
|
-
}
|
|
312
|
-
declare const PreviewText: Node<PreviewTextOptions, any>;
|
|
313
|
-
//#endregion
|
|
314
|
-
//#region src/extensions/section.d.ts
|
|
315
|
-
interface SectionOptions {
|
|
316
|
-
HTMLAttributes: Record<string, unknown>;
|
|
317
|
-
[key: string]: unknown;
|
|
318
|
-
}
|
|
319
|
-
declare module '@tiptap/core' {
|
|
320
|
-
interface Commands<ReturnType> {
|
|
321
|
-
section: {
|
|
322
|
-
insertSection: () => ReturnType;
|
|
323
|
-
};
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
declare const Section: EmailNode<SectionOptions, Record<string, never>>;
|
|
327
|
-
//#endregion
|
|
328
|
-
//#region src/extensions/style-attribute.d.ts
|
|
329
|
-
interface StyleAttributeOptions {
|
|
330
|
-
types: string[];
|
|
331
|
-
style: string[];
|
|
332
|
-
}
|
|
333
|
-
declare module '@tiptap/core' {
|
|
334
|
-
interface Commands<ReturnType> {
|
|
335
|
-
textAlign: {
|
|
336
|
-
/**
|
|
337
|
-
* Set the style attribute
|
|
338
|
-
*/
|
|
339
|
-
setStyle: (style: string) => ReturnType;
|
|
340
|
-
/**
|
|
341
|
-
* Unset the style attribute
|
|
342
|
-
*/
|
|
343
|
-
unsetStyle: () => ReturnType;
|
|
344
|
-
};
|
|
345
|
-
}
|
|
346
|
-
}
|
|
347
|
-
declare const StyleAttribute: Extension<StyleAttributeOptions, any>;
|
|
348
|
-
//#endregion
|
|
349
|
-
//#region src/extensions/sup.d.ts
|
|
350
|
-
type SupOptions = SuperscriptExtensionOptions;
|
|
351
|
-
declare module '@tiptap/core' {
|
|
352
|
-
interface Commands<ReturnType> {
|
|
353
|
-
sup: {
|
|
354
|
-
/**
|
|
355
|
-
* Set a superscript mark
|
|
356
|
-
*/
|
|
357
|
-
setSup: () => ReturnType;
|
|
358
|
-
/**
|
|
359
|
-
* Toggle a superscript mark
|
|
360
|
-
*/
|
|
361
|
-
toggleSup: () => ReturnType;
|
|
362
|
-
/**
|
|
363
|
-
* Unset a superscript mark
|
|
364
|
-
*/
|
|
365
|
-
unsetSup: () => ReturnType;
|
|
366
|
-
};
|
|
367
|
-
}
|
|
368
|
-
}
|
|
369
|
-
declare const Sup: EmailMark<SuperscriptExtensionOptions, any>;
|
|
370
|
-
//#endregion
|
|
371
|
-
//#region src/extensions/table.d.ts
|
|
372
|
-
declare module '@tiptap/core' {
|
|
373
|
-
interface NodeConfig<Options, Storage> {
|
|
374
|
-
/**
|
|
375
|
-
* A string or function to determine the role of the table.
|
|
376
|
-
* @default 'table'
|
|
377
|
-
* @example () => 'table'
|
|
378
|
-
*/
|
|
379
|
-
tableRole?: string | ((this: {
|
|
380
|
-
name: string;
|
|
381
|
-
options: Options;
|
|
382
|
-
storage: Storage;
|
|
383
|
-
parent: ParentConfig<NodeConfig<Options>>['tableRole'];
|
|
384
|
-
}) => string);
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
|
-
interface TableOptions {
|
|
388
|
-
HTMLAttributes: Record<string, unknown>;
|
|
389
|
-
}
|
|
390
|
-
declare const Table: EmailNode<TableOptions, Record<string, never>>;
|
|
391
|
-
interface TableRowOptions extends Record<string, unknown> {
|
|
392
|
-
HTMLAttributes?: Record<string, unknown>;
|
|
393
|
-
}
|
|
394
|
-
declare const TableRow: EmailNode<TableRowOptions, Record<string, never>>;
|
|
395
|
-
interface TableCellOptions extends Record<string, unknown> {
|
|
396
|
-
HTMLAttributes?: Record<string, unknown>;
|
|
397
|
-
}
|
|
398
|
-
declare const TableCell: EmailNode<TableCellOptions, Record<string, never>>;
|
|
399
|
-
declare const TableHeader: Node<any, any>;
|
|
400
|
-
//#endregion
|
|
401
|
-
//#region src/extensions/underline.d.ts
|
|
402
|
-
type UnderlineOptions = UnderlineOptions$1;
|
|
403
|
-
declare const Underline: EmailMark<UnderlineOptions$1, any>;
|
|
404
|
-
//#endregion
|
|
405
|
-
//#region src/extensions/uppercase.d.ts
|
|
406
|
-
interface UppercaseOptions {
|
|
407
|
-
HTMLAttributes: Record<string, unknown>;
|
|
408
|
-
}
|
|
409
|
-
declare module '@tiptap/core' {
|
|
410
|
-
interface Commands<ReturnType> {
|
|
411
|
-
uppercase: {
|
|
412
|
-
setUppercase: () => ReturnType;
|
|
413
|
-
toggleUppercase: () => ReturnType;
|
|
414
|
-
unsetUppercase: () => ReturnType;
|
|
415
|
-
};
|
|
416
|
-
}
|
|
417
|
-
}
|
|
418
|
-
declare const Uppercase: EmailMark<UppercaseOptions, Record<string, never>>;
|
|
419
|
-
//#endregion
|
|
420
|
-
//#region src/extensions/blockquote.d.ts
|
|
421
|
-
declare const Blockquote: EmailNode<BlockquoteOptions, any>;
|
|
422
|
-
//#endregion
|
|
423
|
-
//#region src/extensions/bullet-list.d.ts
|
|
424
|
-
declare const BulletList: EmailNode<BulletListOptions, any>;
|
|
425
|
-
//#endregion
|
|
426
|
-
//#region src/extensions/code.d.ts
|
|
427
|
-
declare const Code: EmailMark<CodeOptions, any>;
|
|
428
|
-
//#endregion
|
|
429
|
-
//#region src/extensions/columns.d.ts
|
|
430
|
-
declare module '@tiptap/core' {
|
|
431
|
-
interface Commands<ReturnType> {
|
|
432
|
-
columns: {
|
|
433
|
-
insertColumns: (count: 2 | 3 | 4) => ReturnType;
|
|
434
|
-
};
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
|
-
declare const COLUMN_PARENT_TYPES: readonly ["twoColumns", "threeColumns", "fourColumns"];
|
|
438
|
-
declare const MAX_COLUMNS_DEPTH = 3;
|
|
439
|
-
declare function getColumnsDepth(doc: Node$1, from: number): number;
|
|
440
|
-
declare const TwoColumns: EmailNode<Record<string, never>, Record<string, never>>;
|
|
441
|
-
declare const ThreeColumns: EmailNode<Record<string, never>, Record<string, never>>;
|
|
442
|
-
declare const FourColumns: EmailNode<Record<string, never>, Record<string, never>>;
|
|
443
|
-
declare const ColumnsColumn: EmailNode<Record<string, never>, Record<string, never>>;
|
|
444
|
-
//#endregion
|
|
445
|
-
//#region src/extensions/hard-break.d.ts
|
|
446
|
-
declare const HardBreak: EmailNode<HardBreakOptions, any>;
|
|
447
|
-
//#endregion
|
|
448
|
-
//#region src/extensions/italic.d.ts
|
|
449
|
-
declare const Italic: EmailMark<ItalicOptions, any>;
|
|
450
|
-
//#endregion
|
|
451
|
-
//#region src/extensions/list-item.d.ts
|
|
452
|
-
declare const ListItem: EmailNode<ListItemOptions, any>;
|
|
453
|
-
//#endregion
|
|
454
|
-
//#region src/extensions/ordered-list.d.ts
|
|
455
|
-
declare const OrderedList: EmailNode<OrderedListOptions, any>;
|
|
456
|
-
//#endregion
|
|
457
|
-
//#region src/extensions/paragraph.d.ts
|
|
458
|
-
declare const Paragraph: EmailNode<ParagraphOptions, any>;
|
|
459
|
-
//#endregion
|
|
460
|
-
//#region src/extensions/preserved-style.d.ts
|
|
461
|
-
declare const PreservedStyle: EmailMark<Record<string, never>, Record<string, never>>;
|
|
462
|
-
/**
|
|
463
|
-
* Processes styles when unlinking:
|
|
464
|
-
* - Has background (button-like): preserve all styles
|
|
465
|
-
* - No background: strip link-indicator styles (color, text-decoration), keep the rest
|
|
466
|
-
*/
|
|
467
|
-
declare function processStylesForUnlink(styleString: string | null | undefined): string | null;
|
|
468
|
-
//#endregion
|
|
469
|
-
//#region src/extensions/strike.d.ts
|
|
470
|
-
declare const Strike: EmailMark<StrikeOptions, any>;
|
|
471
|
-
//#endregion
|
|
472
|
-
//#region src/extensions/index.d.ts
|
|
473
|
-
type StarterKitOptions = {
|
|
474
|
-
CodeBlockPrism: Partial<CodeBlockPrismOptions> | false;
|
|
475
|
-
Code: Partial<CodeOptions> | false;
|
|
476
|
-
Paragraph: Partial<ParagraphOptions> | false;
|
|
477
|
-
BulletList: Partial<BulletListOptions> | false;
|
|
478
|
-
OrderedList: Partial<OrderedListOptions> | false;
|
|
479
|
-
Blockquote: Partial<BlockquoteOptions> | false;
|
|
480
|
-
ListItem: Partial<ListItemOptions> | false;
|
|
481
|
-
HardBreak: Partial<HardBreakOptions> | false;
|
|
482
|
-
Italic: Partial<ItalicOptions> | false;
|
|
483
|
-
Placeholder: Partial<PlaceholderOptions> | false;
|
|
484
|
-
PreviewText: Partial<PreviewTextOptions> | false;
|
|
485
|
-
Bold: Partial<BoldOptions> | false;
|
|
486
|
-
Strike: Partial<StrikeOptions> | false;
|
|
487
|
-
Heading: Partial<HeadingOptions> | false;
|
|
488
|
-
Divider: Partial<DividerOptions> | false;
|
|
489
|
-
Link: Partial<LinkOptions> | false;
|
|
490
|
-
Sup: Partial<SupOptions> | false;
|
|
491
|
-
Underline: Partial<UnderlineOptions> | false;
|
|
492
|
-
Uppercase: Partial<UppercaseOptions> | false;
|
|
493
|
-
PreservedStyle: Partial<Record<string, never>> | false;
|
|
494
|
-
Table: Partial<TableOptions> | false;
|
|
495
|
-
TableRow: Partial<TableRowOptions> | false;
|
|
496
|
-
TableCell: Partial<TableCellOptions> | false;
|
|
497
|
-
TableHeader: Partial<Record<string, any>> | false;
|
|
498
|
-
Body: Partial<BodyOptions> | false;
|
|
499
|
-
Div: Partial<DivOptions> | false;
|
|
500
|
-
Button: Partial<EditorButtonOptions> | false;
|
|
501
|
-
Section: Partial<SectionOptions> | false;
|
|
502
|
-
GlobalContent: Partial<GlobalContentOptions> | false;
|
|
503
|
-
AlignmentAttribute: Partial<AlignmentOptions> | false;
|
|
504
|
-
StyleAttribute: Partial<StyleAttributeOptions> | false;
|
|
505
|
-
ClassAttribute: Partial<ClassAttributeOptions> | false;
|
|
506
|
-
MaxNesting: Partial<MaxNestingOptions> | false;
|
|
507
|
-
TiptapStarterKit: Partial<StarterKitOptions$1> | false;
|
|
508
|
-
};
|
|
509
|
-
declare const StarterKit: Extension<StarterKitOptions, any>;
|
|
510
|
-
//#endregion
|
|
511
|
-
//#region src/ui/bubble-menu/create-mark-bubble-item.d.ts
|
|
512
|
-
interface PreWiredItemProps {
|
|
513
|
-
className?: string;
|
|
514
|
-
/** Override the default icon */
|
|
515
|
-
children?: React$1.ReactNode;
|
|
516
|
-
}
|
|
517
|
-
//#endregion
|
|
518
|
-
//#region src/ui/bubble-menu/align-center.d.ts
|
|
519
|
-
declare function BubbleMenuAlignCenter({
|
|
520
|
-
className,
|
|
521
|
-
children
|
|
522
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
523
|
-
//#endregion
|
|
524
|
-
//#region src/ui/bubble-menu/align-left.d.ts
|
|
525
|
-
declare function BubbleMenuAlignLeft({
|
|
526
|
-
className,
|
|
527
|
-
children
|
|
528
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
529
|
-
//#endregion
|
|
530
|
-
//#region src/ui/bubble-menu/align-right.d.ts
|
|
531
|
-
declare function BubbleMenuAlignRight({
|
|
532
|
-
className,
|
|
533
|
-
children
|
|
534
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
535
|
-
//#endregion
|
|
536
|
-
//#region src/ui/bubble-menu/default.d.ts
|
|
537
|
-
type ExcludableItem$3 = 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'uppercase' | 'align-left' | 'align-center' | 'align-right' | 'node-selector' | 'link-selector';
|
|
538
|
-
interface BubbleMenuDefaultProps {
|
|
539
|
-
/** Items to exclude from the default layout */
|
|
540
|
-
excludeItems?: ExcludableItem$3[];
|
|
541
|
-
/** Node types that should NOT trigger the bubble menu (forwarded to Root) */
|
|
542
|
-
excludeNodes?: string[];
|
|
543
|
-
/** Placement relative to selection (forwarded to Root, default: 'bottom') */
|
|
544
|
-
placement?: 'top' | 'bottom';
|
|
545
|
-
/** Offset from selection in px (forwarded to Root, default: 8) */
|
|
546
|
-
offset?: number;
|
|
547
|
-
/** Called when the bubble menu hides (forwarded to Root) */
|
|
548
|
-
onHide?: () => void;
|
|
549
|
-
/** className applied to the Root wrapper */
|
|
550
|
-
className?: string;
|
|
551
|
-
}
|
|
552
|
-
declare function BubbleMenuDefault({
|
|
553
|
-
excludeItems,
|
|
554
|
-
excludeNodes,
|
|
555
|
-
placement,
|
|
556
|
-
offset,
|
|
557
|
-
onHide,
|
|
558
|
-
className
|
|
559
|
-
}: BubbleMenuDefaultProps): react_jsx_runtime5.JSX.Element;
|
|
560
|
-
//#endregion
|
|
561
|
-
//#region src/ui/bubble-menu/group.d.ts
|
|
562
|
-
interface BubbleMenuItemGroupProps {
|
|
563
|
-
className?: string;
|
|
564
|
-
children: React$1.ReactNode;
|
|
565
|
-
}
|
|
566
|
-
declare function BubbleMenuItemGroup({
|
|
567
|
-
className,
|
|
568
|
-
children
|
|
569
|
-
}: BubbleMenuItemGroupProps): react_jsx_runtime5.JSX.Element;
|
|
570
|
-
//#endregion
|
|
571
|
-
//#region src/ui/bubble-menu/item.d.ts
|
|
572
|
-
interface BubbleMenuItemProps extends React$1.ComponentProps<'button'> {
|
|
573
|
-
/** Used for aria-label and data-item attribute */
|
|
574
|
-
name: string;
|
|
575
|
-
/** Whether this item is currently active */
|
|
576
|
-
isActive: boolean;
|
|
577
|
-
/** Called when clicked */
|
|
578
|
-
onCommand: () => void;
|
|
579
|
-
}
|
|
580
|
-
declare function BubbleMenuItem({
|
|
581
|
-
name,
|
|
582
|
-
isActive,
|
|
583
|
-
onCommand,
|
|
584
|
-
className,
|
|
585
|
-
children,
|
|
586
|
-
...rest
|
|
587
|
-
}: BubbleMenuItemProps): react_jsx_runtime5.JSX.Element;
|
|
588
|
-
//#endregion
|
|
589
|
-
//#region src/ui/bubble-menu/link-selector.d.ts
|
|
590
|
-
interface BubbleMenuLinkSelectorProps {
|
|
591
|
-
className?: string;
|
|
592
|
-
/** Whether to show the link icon toggle button (default: true) */
|
|
593
|
-
showToggle?: boolean;
|
|
594
|
-
/** Custom URL validator. Return the valid URL string or null. */
|
|
595
|
-
validateUrl?: (value: string) => string | null;
|
|
596
|
-
/** Called after link is applied */
|
|
597
|
-
onLinkApply?: (href: string) => void;
|
|
598
|
-
/** Called after link is removed */
|
|
599
|
-
onLinkRemove?: () => void;
|
|
600
|
-
/** Plugin slot: extra actions rendered inside the link input form */
|
|
601
|
-
children?: React$1.ReactNode;
|
|
602
|
-
/** Controlled open state */
|
|
603
|
-
open?: boolean;
|
|
604
|
-
/** Called when open state changes */
|
|
605
|
-
onOpenChange?: (open: boolean) => void;
|
|
606
|
-
}
|
|
607
|
-
declare function BubbleMenuLinkSelector({
|
|
608
|
-
className,
|
|
609
|
-
showToggle,
|
|
610
|
-
validateUrl,
|
|
611
|
-
onLinkApply,
|
|
612
|
-
onLinkRemove,
|
|
613
|
-
children,
|
|
614
|
-
open: controlledOpen,
|
|
615
|
-
onOpenChange
|
|
616
|
-
}: BubbleMenuLinkSelectorProps): react_jsx_runtime5.JSX.Element | null;
|
|
617
|
-
//#endregion
|
|
618
|
-
//#region src/ui/bubble-menu/node-selector.d.ts
|
|
619
|
-
type NodeType = 'Text' | 'Title' | 'Subtitle' | 'Heading' | 'Bullet List' | 'Numbered List' | 'Quote' | 'Code';
|
|
620
|
-
interface NodeSelectorItem {
|
|
621
|
-
name: NodeType;
|
|
622
|
-
icon: React$1.ComponentType<React$1.SVGAttributes<SVGSVGElement>>;
|
|
623
|
-
command: () => void;
|
|
624
|
-
isActive: boolean;
|
|
625
|
-
}
|
|
626
|
-
interface NodeSelectorRootProps {
|
|
627
|
-
/** Block types to exclude */
|
|
628
|
-
omit?: string[];
|
|
629
|
-
/** Controlled open state */
|
|
630
|
-
open?: boolean;
|
|
631
|
-
/** Called when open state changes */
|
|
632
|
-
onOpenChange?: (open: boolean) => void;
|
|
633
|
-
className?: string;
|
|
634
|
-
children: React$1.ReactNode;
|
|
635
|
-
}
|
|
636
|
-
declare function NodeSelectorRoot({
|
|
637
|
-
omit,
|
|
638
|
-
open: controlledOpen,
|
|
639
|
-
onOpenChange,
|
|
640
|
-
className,
|
|
641
|
-
children
|
|
642
|
-
}: NodeSelectorRootProps): react_jsx_runtime5.JSX.Element | null;
|
|
643
|
-
interface NodeSelectorTriggerProps {
|
|
644
|
-
className?: string;
|
|
645
|
-
children?: React$1.ReactNode;
|
|
646
|
-
}
|
|
647
|
-
declare function NodeSelectorTrigger({
|
|
648
|
-
className,
|
|
649
|
-
children
|
|
650
|
-
}: NodeSelectorTriggerProps): react_jsx_runtime5.JSX.Element;
|
|
651
|
-
interface NodeSelectorContentProps {
|
|
652
|
-
className?: string;
|
|
653
|
-
/** Popover alignment (default: "start") */
|
|
654
|
-
align?: 'start' | 'center' | 'end';
|
|
655
|
-
/** Render-prop for full control over item rendering.
|
|
656
|
-
* Receives the filtered items and a `close` function to dismiss the popover. */
|
|
657
|
-
children?: (items: NodeSelectorItem[], close: () => void) => React$1.ReactNode;
|
|
658
|
-
}
|
|
659
|
-
declare function NodeSelectorContent({
|
|
660
|
-
className,
|
|
661
|
-
align,
|
|
662
|
-
children
|
|
663
|
-
}: NodeSelectorContentProps): react_jsx_runtime5.JSX.Element;
|
|
664
|
-
interface BubbleMenuNodeSelectorProps {
|
|
665
|
-
/** Block types to exclude */
|
|
666
|
-
omit?: string[];
|
|
667
|
-
className?: string;
|
|
668
|
-
/** Override the trigger content (default: active item name + chevron icon) */
|
|
669
|
-
triggerContent?: React$1.ReactNode;
|
|
670
|
-
/** Controlled open state */
|
|
671
|
-
open?: boolean;
|
|
672
|
-
/** Called when open state changes */
|
|
673
|
-
onOpenChange?: (open: boolean) => void;
|
|
674
|
-
}
|
|
675
|
-
declare function BubbleMenuNodeSelector({
|
|
676
|
-
omit,
|
|
677
|
-
className,
|
|
678
|
-
triggerContent,
|
|
679
|
-
open,
|
|
680
|
-
onOpenChange
|
|
681
|
-
}: BubbleMenuNodeSelectorProps): react_jsx_runtime5.JSX.Element;
|
|
682
|
-
//#endregion
|
|
683
|
-
//#region src/ui/bubble-menu/root.d.ts
|
|
684
|
-
interface BubbleMenuRootProps {
|
|
685
|
-
/** Node types that should NOT trigger the bubble menu */
|
|
686
|
-
excludeNodes?: string[];
|
|
687
|
-
/** Placement relative to selection */
|
|
688
|
-
placement?: 'top' | 'bottom';
|
|
689
|
-
/** Offset from selection in px */
|
|
690
|
-
offset?: number;
|
|
691
|
-
/** Called when the bubble menu is hidden (e.g., click outside, selection cleared) */
|
|
692
|
-
onHide?: () => void;
|
|
693
|
-
/** Additional className on the outer wrapper */
|
|
694
|
-
className?: string;
|
|
695
|
-
children: React$1.ReactNode;
|
|
696
|
-
}
|
|
697
|
-
declare function BubbleMenuRoot({
|
|
698
|
-
excludeNodes,
|
|
699
|
-
placement,
|
|
700
|
-
offset,
|
|
701
|
-
onHide,
|
|
702
|
-
className,
|
|
703
|
-
children
|
|
704
|
-
}: BubbleMenuRootProps): react_jsx_runtime5.JSX.Element | null;
|
|
705
|
-
//#endregion
|
|
706
|
-
//#region src/ui/bubble-menu/separator.d.ts
|
|
707
|
-
interface BubbleMenuSeparatorProps {
|
|
708
|
-
className?: string;
|
|
709
|
-
}
|
|
710
|
-
declare function BubbleMenuSeparator({
|
|
711
|
-
className
|
|
712
|
-
}: BubbleMenuSeparatorProps): react_jsx_runtime5.JSX.Element;
|
|
713
|
-
//#endregion
|
|
714
|
-
//#region src/ui/bubble-menu/bold.d.ts
|
|
715
|
-
declare const BubbleMenuBold: {
|
|
716
|
-
({
|
|
717
|
-
className,
|
|
718
|
-
children
|
|
719
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
720
|
-
displayName: string;
|
|
721
|
-
};
|
|
722
|
-
//#endregion
|
|
723
|
-
//#region src/ui/bubble-menu/code.d.ts
|
|
724
|
-
declare const BubbleMenuCode: {
|
|
725
|
-
({
|
|
726
|
-
className,
|
|
727
|
-
children
|
|
728
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
729
|
-
displayName: string;
|
|
730
|
-
};
|
|
731
|
-
//#endregion
|
|
732
|
-
//#region src/ui/bubble-menu/italic.d.ts
|
|
733
|
-
declare const BubbleMenuItalic: {
|
|
734
|
-
({
|
|
735
|
-
className,
|
|
736
|
-
children
|
|
737
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
738
|
-
displayName: string;
|
|
739
|
-
};
|
|
740
|
-
//#endregion
|
|
741
|
-
//#region src/ui/bubble-menu/strike.d.ts
|
|
742
|
-
declare const BubbleMenuStrike: {
|
|
743
|
-
({
|
|
744
|
-
className,
|
|
745
|
-
children
|
|
746
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
747
|
-
displayName: string;
|
|
748
|
-
};
|
|
749
|
-
//#endregion
|
|
750
|
-
//#region src/ui/bubble-menu/underline.d.ts
|
|
751
|
-
declare const BubbleMenuUnderline: {
|
|
752
|
-
({
|
|
753
|
-
className,
|
|
754
|
-
children
|
|
755
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
756
|
-
displayName: string;
|
|
757
|
-
};
|
|
758
|
-
//#endregion
|
|
759
|
-
//#region src/ui/bubble-menu/uppercase.d.ts
|
|
760
|
-
declare const BubbleMenuUppercase: {
|
|
761
|
-
({
|
|
762
|
-
className,
|
|
763
|
-
children
|
|
764
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
765
|
-
displayName: string;
|
|
766
|
-
};
|
|
767
|
-
//#endregion
|
|
768
|
-
//#region src/ui/bubble-menu/index.d.ts
|
|
769
|
-
declare const BubbleMenu: {
|
|
770
|
-
readonly Root: typeof BubbleMenuRoot;
|
|
771
|
-
readonly ItemGroup: typeof BubbleMenuItemGroup;
|
|
772
|
-
readonly Separator: typeof BubbleMenuSeparator;
|
|
773
|
-
readonly Item: typeof BubbleMenuItem;
|
|
774
|
-
readonly Bold: {
|
|
775
|
-
({
|
|
776
|
-
className,
|
|
777
|
-
children
|
|
778
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
779
|
-
displayName: string;
|
|
780
|
-
};
|
|
781
|
-
readonly Italic: {
|
|
782
|
-
({
|
|
783
|
-
className,
|
|
784
|
-
children
|
|
785
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
786
|
-
displayName: string;
|
|
787
|
-
};
|
|
788
|
-
readonly Underline: {
|
|
789
|
-
({
|
|
790
|
-
className,
|
|
791
|
-
children
|
|
792
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
793
|
-
displayName: string;
|
|
794
|
-
};
|
|
795
|
-
readonly Strike: {
|
|
796
|
-
({
|
|
797
|
-
className,
|
|
798
|
-
children
|
|
799
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
800
|
-
displayName: string;
|
|
801
|
-
};
|
|
802
|
-
readonly Code: {
|
|
803
|
-
({
|
|
804
|
-
className,
|
|
805
|
-
children
|
|
806
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
807
|
-
displayName: string;
|
|
808
|
-
};
|
|
809
|
-
readonly Uppercase: {
|
|
810
|
-
({
|
|
811
|
-
className,
|
|
812
|
-
children
|
|
813
|
-
}: PreWiredItemProps): react_jsx_runtime5.JSX.Element;
|
|
814
|
-
displayName: string;
|
|
815
|
-
};
|
|
816
|
-
readonly AlignLeft: typeof BubbleMenuAlignLeft;
|
|
817
|
-
readonly AlignCenter: typeof BubbleMenuAlignCenter;
|
|
818
|
-
readonly AlignRight: typeof BubbleMenuAlignRight;
|
|
819
|
-
readonly NodeSelector: typeof BubbleMenuNodeSelector & {
|
|
820
|
-
Root: typeof NodeSelectorRoot;
|
|
821
|
-
Trigger: typeof NodeSelectorTrigger;
|
|
822
|
-
Content: typeof NodeSelectorContent;
|
|
823
|
-
};
|
|
824
|
-
readonly LinkSelector: typeof BubbleMenuLinkSelector;
|
|
825
|
-
readonly Default: typeof BubbleMenuDefault;
|
|
826
|
-
};
|
|
827
|
-
//#endregion
|
|
828
|
-
//#region src/ui/button-bubble-menu/default.d.ts
|
|
829
|
-
type ExcludableItem$2 = 'edit-link';
|
|
830
|
-
interface ButtonBubbleMenuDefaultProps {
|
|
831
|
-
excludeItems?: ExcludableItem$2[];
|
|
832
|
-
placement?: 'top' | 'bottom';
|
|
833
|
-
offset?: number;
|
|
834
|
-
onHide?: () => void;
|
|
835
|
-
className?: string;
|
|
836
|
-
}
|
|
837
|
-
declare function ButtonBubbleMenuDefault({
|
|
838
|
-
excludeItems,
|
|
839
|
-
placement,
|
|
840
|
-
offset,
|
|
841
|
-
onHide,
|
|
842
|
-
className
|
|
843
|
-
}: ButtonBubbleMenuDefaultProps): react_jsx_runtime5.JSX.Element;
|
|
844
|
-
//#endregion
|
|
845
|
-
//#region src/ui/button-bubble-menu/edit-link.d.ts
|
|
846
|
-
interface ButtonBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
847
|
-
declare function ButtonBubbleMenuEditLink({
|
|
848
|
-
className,
|
|
849
|
-
children,
|
|
850
|
-
onClick,
|
|
851
|
-
onMouseDown,
|
|
852
|
-
...rest
|
|
853
|
-
}: ButtonBubbleMenuEditLinkProps): react_jsx_runtime5.JSX.Element;
|
|
854
|
-
//#endregion
|
|
855
|
-
//#region src/ui/button-bubble-menu/root.d.ts
|
|
856
|
-
interface ButtonBubbleMenuRootProps {
|
|
857
|
-
/** Called when the bubble menu hides */
|
|
858
|
-
onHide?: () => void;
|
|
859
|
-
/** Placement relative to cursor (default: 'top') */
|
|
860
|
-
placement?: 'top' | 'bottom';
|
|
861
|
-
/** Offset from cursor in px (default: 8) */
|
|
862
|
-
offset?: number;
|
|
863
|
-
/** className on the outer wrapper */
|
|
864
|
-
className?: string;
|
|
865
|
-
children: React$1.ReactNode;
|
|
866
|
-
}
|
|
867
|
-
declare function ButtonBubbleMenuRoot({
|
|
868
|
-
onHide,
|
|
869
|
-
placement,
|
|
870
|
-
offset,
|
|
871
|
-
className,
|
|
872
|
-
children
|
|
873
|
-
}: ButtonBubbleMenuRootProps): react_jsx_runtime5.JSX.Element | null;
|
|
874
|
-
//#endregion
|
|
875
|
-
//#region src/ui/button-bubble-menu/toolbar.d.ts
|
|
876
|
-
interface ButtonBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
877
|
-
declare function ButtonBubbleMenuToolbar({
|
|
878
|
-
children,
|
|
879
|
-
...rest
|
|
880
|
-
}: ButtonBubbleMenuToolbarProps): react_jsx_runtime5.JSX.Element | null;
|
|
881
|
-
//#endregion
|
|
882
|
-
//#region src/ui/button-bubble-menu/context.d.ts
|
|
883
|
-
interface ButtonBubbleMenuContextValue {
|
|
884
|
-
editor: Editor;
|
|
885
|
-
isEditing: boolean;
|
|
886
|
-
setIsEditing: (value: boolean) => void;
|
|
887
|
-
}
|
|
888
|
-
declare function useButtonBubbleMenuContext(): ButtonBubbleMenuContextValue;
|
|
889
|
-
//#endregion
|
|
890
|
-
//#region src/ui/button-bubble-menu/index.d.ts
|
|
891
|
-
declare const ButtonBubbleMenu: {
|
|
892
|
-
readonly Root: typeof ButtonBubbleMenuRoot;
|
|
893
|
-
readonly Toolbar: typeof ButtonBubbleMenuToolbar;
|
|
894
|
-
readonly EditLink: typeof ButtonBubbleMenuEditLink;
|
|
895
|
-
readonly Default: typeof ButtonBubbleMenuDefault;
|
|
896
|
-
};
|
|
897
|
-
//#endregion
|
|
898
|
-
//#region src/ui/image-bubble-menu/default.d.ts
|
|
899
|
-
type ExcludableItem$1 = 'edit-link';
|
|
900
|
-
interface ImageBubbleMenuDefaultProps {
|
|
901
|
-
excludeItems?: ExcludableItem$1[];
|
|
902
|
-
placement?: 'top' | 'bottom';
|
|
903
|
-
offset?: number;
|
|
904
|
-
onHide?: () => void;
|
|
905
|
-
className?: string;
|
|
906
|
-
}
|
|
907
|
-
declare function ImageBubbleMenuDefault({
|
|
908
|
-
excludeItems,
|
|
909
|
-
placement,
|
|
910
|
-
offset,
|
|
911
|
-
onHide,
|
|
912
|
-
className
|
|
913
|
-
}: ImageBubbleMenuDefaultProps): react_jsx_runtime5.JSX.Element;
|
|
914
|
-
//#endregion
|
|
915
|
-
//#region src/ui/image-bubble-menu/edit-link.d.ts
|
|
916
|
-
interface ImageBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
917
|
-
declare function ImageBubbleMenuEditLink({
|
|
918
|
-
className,
|
|
919
|
-
children,
|
|
920
|
-
onClick,
|
|
921
|
-
onMouseDown,
|
|
922
|
-
...rest
|
|
923
|
-
}: ImageBubbleMenuEditLinkProps): react_jsx_runtime5.JSX.Element;
|
|
924
|
-
//#endregion
|
|
925
|
-
//#region src/ui/image-bubble-menu/root.d.ts
|
|
926
|
-
interface ImageBubbleMenuRootProps {
|
|
927
|
-
/** Called when the bubble menu hides */
|
|
928
|
-
onHide?: () => void;
|
|
929
|
-
/** Placement relative to cursor (default: 'top') */
|
|
930
|
-
placement?: 'top' | 'bottom';
|
|
931
|
-
/** Offset from cursor in px (default: 8) */
|
|
932
|
-
offset?: number;
|
|
933
|
-
/** className on the outer wrapper */
|
|
934
|
-
className?: string;
|
|
935
|
-
children: React$1.ReactNode;
|
|
936
|
-
}
|
|
937
|
-
declare function ImageBubbleMenuRoot({
|
|
938
|
-
onHide,
|
|
939
|
-
placement,
|
|
940
|
-
offset,
|
|
941
|
-
className,
|
|
942
|
-
children
|
|
943
|
-
}: ImageBubbleMenuRootProps): react_jsx_runtime5.JSX.Element | null;
|
|
944
|
-
//#endregion
|
|
945
|
-
//#region src/ui/image-bubble-menu/toolbar.d.ts
|
|
946
|
-
interface ImageBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
947
|
-
declare function ImageBubbleMenuToolbar({
|
|
948
|
-
children,
|
|
949
|
-
...rest
|
|
950
|
-
}: ImageBubbleMenuToolbarProps): react_jsx_runtime5.JSX.Element | null;
|
|
951
|
-
//#endregion
|
|
952
|
-
//#region src/ui/image-bubble-menu/context.d.ts
|
|
953
|
-
interface ImageBubbleMenuContextValue {
|
|
954
|
-
editor: Editor;
|
|
955
|
-
isEditing: boolean;
|
|
956
|
-
setIsEditing: (value: boolean) => void;
|
|
957
|
-
}
|
|
958
|
-
declare function useImageBubbleMenuContext(): ImageBubbleMenuContextValue;
|
|
959
|
-
//#endregion
|
|
960
|
-
//#region src/ui/image-bubble-menu/index.d.ts
|
|
961
|
-
declare const ImageBubbleMenu: {
|
|
962
|
-
readonly Root: typeof ImageBubbleMenuRoot;
|
|
963
|
-
readonly Toolbar: typeof ImageBubbleMenuToolbar;
|
|
964
|
-
readonly EditLink: typeof ImageBubbleMenuEditLink;
|
|
965
|
-
readonly Default: typeof ImageBubbleMenuDefault;
|
|
966
|
-
};
|
|
967
|
-
//#endregion
|
|
968
|
-
//#region src/ui/link-bubble-menu/default.d.ts
|
|
969
|
-
type ExcludableItem = 'edit-link' | 'open-link' | 'unlink';
|
|
970
|
-
interface LinkBubbleMenuDefaultProps {
|
|
971
|
-
excludeItems?: ExcludableItem[];
|
|
972
|
-
placement?: 'top' | 'bottom';
|
|
973
|
-
offset?: number;
|
|
974
|
-
onHide?: () => void;
|
|
975
|
-
className?: string;
|
|
976
|
-
validateUrl?: (value: string) => string | null;
|
|
977
|
-
onLinkApply?: (href: string) => void;
|
|
978
|
-
onLinkRemove?: () => void;
|
|
979
|
-
}
|
|
980
|
-
declare function LinkBubbleMenuDefault({
|
|
981
|
-
excludeItems,
|
|
982
|
-
placement,
|
|
983
|
-
offset,
|
|
984
|
-
onHide,
|
|
985
|
-
className,
|
|
986
|
-
validateUrl,
|
|
987
|
-
onLinkApply,
|
|
988
|
-
onLinkRemove
|
|
989
|
-
}: LinkBubbleMenuDefaultProps): react_jsx_runtime5.JSX.Element;
|
|
990
|
-
//#endregion
|
|
991
|
-
//#region src/ui/link-bubble-menu/edit-link.d.ts
|
|
992
|
-
interface LinkBubbleMenuEditLinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
993
|
-
declare function LinkBubbleMenuEditLink({
|
|
994
|
-
className,
|
|
995
|
-
children,
|
|
996
|
-
onClick,
|
|
997
|
-
onMouseDown,
|
|
998
|
-
...rest
|
|
999
|
-
}: LinkBubbleMenuEditLinkProps): react_jsx_runtime5.JSX.Element;
|
|
1000
|
-
//#endregion
|
|
1001
|
-
//#region src/ui/link-bubble-menu/form.d.ts
|
|
1002
|
-
interface LinkBubbleMenuFormProps {
|
|
1003
|
-
className?: string;
|
|
1004
|
-
/** Custom URL validator (default: getUrlFromString) */
|
|
1005
|
-
validateUrl?: (value: string) => string | null;
|
|
1006
|
-
/** Called after link is applied */
|
|
1007
|
-
onLinkApply?: (href: string) => void;
|
|
1008
|
-
/** Called after link is removed */
|
|
1009
|
-
onLinkRemove?: () => void;
|
|
1010
|
-
/** Extra content inside the form (e.g. a variables dropdown slot) */
|
|
1011
|
-
children?: React$1.ReactNode;
|
|
1012
|
-
}
|
|
1013
|
-
declare function LinkBubbleMenuForm({
|
|
1014
|
-
className,
|
|
1015
|
-
validateUrl,
|
|
1016
|
-
onLinkApply,
|
|
1017
|
-
onLinkRemove,
|
|
1018
|
-
children
|
|
1019
|
-
}: LinkBubbleMenuFormProps): react_jsx_runtime5.JSX.Element | null;
|
|
1020
|
-
//#endregion
|
|
1021
|
-
//#region src/ui/link-bubble-menu/open-link.d.ts
|
|
1022
|
-
interface LinkBubbleMenuOpenLinkProps extends Omit<React$1.ComponentProps<'a'>, 'href' | 'target' | 'rel'> {}
|
|
1023
|
-
declare function LinkBubbleMenuOpenLink({
|
|
1024
|
-
className,
|
|
1025
|
-
children,
|
|
1026
|
-
...rest
|
|
1027
|
-
}: LinkBubbleMenuOpenLinkProps): react_jsx_runtime5.JSX.Element;
|
|
1028
|
-
//#endregion
|
|
1029
|
-
//#region src/ui/link-bubble-menu/root.d.ts
|
|
1030
|
-
interface LinkBubbleMenuRootProps {
|
|
1031
|
-
/** Called when the bubble menu hides */
|
|
1032
|
-
onHide?: () => void;
|
|
1033
|
-
/** Placement relative to cursor (default: 'top') */
|
|
1034
|
-
placement?: 'top' | 'bottom';
|
|
1035
|
-
/** Offset from cursor in px (default: 8) */
|
|
1036
|
-
offset?: number;
|
|
1037
|
-
/** className on the outer wrapper */
|
|
1038
|
-
className?: string;
|
|
1039
|
-
children: React$1.ReactNode;
|
|
1040
|
-
}
|
|
1041
|
-
declare function LinkBubbleMenuRoot({
|
|
1042
|
-
onHide,
|
|
1043
|
-
placement,
|
|
1044
|
-
offset,
|
|
1045
|
-
className,
|
|
1046
|
-
children
|
|
1047
|
-
}: LinkBubbleMenuRootProps): react_jsx_runtime5.JSX.Element | null;
|
|
1048
|
-
//#endregion
|
|
1049
|
-
//#region src/ui/link-bubble-menu/toolbar.d.ts
|
|
1050
|
-
interface LinkBubbleMenuToolbarProps extends React$1.ComponentProps<'div'> {}
|
|
1051
|
-
declare function LinkBubbleMenuToolbar({
|
|
1052
|
-
children,
|
|
1053
|
-
...rest
|
|
1054
|
-
}: LinkBubbleMenuToolbarProps): react_jsx_runtime5.JSX.Element | null;
|
|
1055
|
-
//#endregion
|
|
1056
|
-
//#region src/ui/link-bubble-menu/unlink.d.ts
|
|
1057
|
-
interface LinkBubbleMenuUnlinkProps extends Omit<React$1.ComponentProps<'button'>, 'type'> {}
|
|
1058
|
-
declare function LinkBubbleMenuUnlink({
|
|
1059
|
-
className,
|
|
1060
|
-
children,
|
|
1061
|
-
onClick,
|
|
1062
|
-
onMouseDown,
|
|
1063
|
-
...rest
|
|
1064
|
-
}: LinkBubbleMenuUnlinkProps): react_jsx_runtime5.JSX.Element;
|
|
1065
|
-
//#endregion
|
|
1066
|
-
//#region src/ui/link-bubble-menu/context.d.ts
|
|
1067
|
-
interface LinkBubbleMenuContextValue {
|
|
1068
|
-
editor: Editor;
|
|
1069
|
-
linkHref: string;
|
|
1070
|
-
isEditing: boolean;
|
|
1071
|
-
setIsEditing: (value: boolean) => void;
|
|
1072
|
-
}
|
|
1073
|
-
declare function useLinkBubbleMenuContext(): LinkBubbleMenuContextValue;
|
|
1074
|
-
//#endregion
|
|
1075
|
-
//#region src/ui/link-bubble-menu/index.d.ts
|
|
1076
|
-
declare const LinkBubbleMenu: {
|
|
1077
|
-
readonly Root: typeof LinkBubbleMenuRoot;
|
|
1078
|
-
readonly Toolbar: typeof LinkBubbleMenuToolbar;
|
|
1079
|
-
readonly Form: typeof LinkBubbleMenuForm;
|
|
1080
|
-
readonly EditLink: typeof LinkBubbleMenuEditLink;
|
|
1081
|
-
readonly Unlink: typeof LinkBubbleMenuUnlink;
|
|
1082
|
-
readonly OpenLink: typeof LinkBubbleMenuOpenLink;
|
|
1083
|
-
readonly Default: typeof LinkBubbleMenuDefault;
|
|
1084
|
-
};
|
|
1085
|
-
//#endregion
|
|
1086
|
-
//#region src/ui/slash-command/types.d.ts
|
|
1087
|
-
type SlashCommandCategory = string;
|
|
1088
|
-
interface SearchableItem {
|
|
1089
|
-
title: string;
|
|
1090
|
-
description: string;
|
|
1091
|
-
searchTerms?: string[];
|
|
1092
|
-
}
|
|
1093
|
-
interface SlashCommandItem extends SearchableItem {
|
|
1094
|
-
icon: ReactNode;
|
|
1095
|
-
category: SlashCommandCategory;
|
|
1096
|
-
command: (props: SlashCommandProps) => void;
|
|
1097
|
-
}
|
|
1098
|
-
interface SlashCommandProps {
|
|
1099
|
-
editor: Editor;
|
|
1100
|
-
range: Range;
|
|
1101
|
-
}
|
|
1102
|
-
interface CommandListRef {
|
|
1103
|
-
onKeyDown: (props: {
|
|
1104
|
-
event: KeyboardEvent;
|
|
1105
|
-
}) => boolean;
|
|
1106
|
-
}
|
|
1107
|
-
interface CommandListProps {
|
|
1108
|
-
items: SlashCommandItem[];
|
|
1109
|
-
command: (item: SlashCommandItem) => void;
|
|
1110
|
-
editor: SlashCommandProps['editor'];
|
|
1111
|
-
range: SlashCommandProps['range'];
|
|
1112
|
-
query: string;
|
|
1113
|
-
ref: Ref<CommandListRef>;
|
|
1114
|
-
}
|
|
1115
|
-
type CommandListComponent = ComponentType<CommandListProps>;
|
|
1116
|
-
//#endregion
|
|
1117
|
-
//#region src/ui/slash-command/command-list.d.ts
|
|
1118
|
-
declare function CommandList({
|
|
1119
|
-
items,
|
|
1120
|
-
command,
|
|
1121
|
-
query,
|
|
1122
|
-
ref
|
|
1123
|
-
}: CommandListProps): react_jsx_runtime5.JSX.Element;
|
|
1124
|
-
//#endregion
|
|
1125
|
-
//#region src/ui/slash-command/commands.d.ts
|
|
1126
|
-
declare const TEXT: SlashCommandItem;
|
|
1127
|
-
declare const H1: SlashCommandItem;
|
|
1128
|
-
declare const H2: SlashCommandItem;
|
|
1129
|
-
declare const H3: SlashCommandItem;
|
|
1130
|
-
declare const BULLET_LIST: SlashCommandItem;
|
|
1131
|
-
declare const NUMBERED_LIST: SlashCommandItem;
|
|
1132
|
-
declare const QUOTE: SlashCommandItem;
|
|
1133
|
-
declare const CODE: SlashCommandItem;
|
|
1134
|
-
declare const BUTTON: SlashCommandItem;
|
|
1135
|
-
declare const DIVIDER: SlashCommandItem;
|
|
1136
|
-
declare const SECTION: SlashCommandItem;
|
|
1137
|
-
declare const TWO_COLUMNS: SlashCommandItem;
|
|
1138
|
-
declare const THREE_COLUMNS: SlashCommandItem;
|
|
1139
|
-
declare const FOUR_COLUMNS: SlashCommandItem;
|
|
1140
|
-
declare const defaultSlashCommands: SlashCommandItem[];
|
|
1141
|
-
//#endregion
|
|
1142
|
-
//#region src/ui/slash-command/create-slash-command.d.ts
|
|
1143
|
-
declare function createSlashCommand(options?: {
|
|
1144
|
-
items?: SlashCommandItem[];
|
|
1145
|
-
filterItems?: (items: SlashCommandItem[], query: string, editor: Editor) => SlashCommandItem[];
|
|
1146
|
-
component?: CommandListComponent;
|
|
1147
|
-
}): _tiptap_core0.Extension<any, any>;
|
|
1148
|
-
//#endregion
|
|
1149
|
-
//#region src/ui/slash-command/search.d.ts
|
|
1150
|
-
declare function scoreItem(item: SearchableItem, query: string): number;
|
|
1151
|
-
declare function filterAndRankItems<T extends SearchableItem>(items: T[], query: string): T[];
|
|
1152
|
-
//#endregion
|
|
1153
|
-
//#region src/ui/slash-command/utils.d.ts
|
|
1154
|
-
declare function isInsideNode(editor: Editor, type: string): boolean;
|
|
1155
|
-
declare function isAtMaxColumnsDepth(editor: Editor): boolean;
|
|
1156
|
-
//#endregion
|
|
1157
|
-
//#region src/ui/slash-command/index.d.ts
|
|
1158
|
-
declare const SlashCommand: _tiptap_core0.Extension<any, any>;
|
|
1159
|
-
//#endregion
|
|
1160
|
-
//#region src/utils/set-text-alignment.d.ts
|
|
1161
|
-
declare function setTextAlignment(editor: Editor, alignment: string): void;
|
|
1162
|
-
//#endregion
|
|
1163
|
-
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, Underline, UnderlineOptions, Uppercase, UppercaseOptions, composeReactEmail, createSlashCommand, defaultSlashCommands, editorEventBus, filterAndRankItems, getColumnsDepth, getGlobalContent, isAtMaxColumnsDepth, isDocumentVisuallyEmpty, isInsideNode, processStylesForUnlink, scoreItem, setTextAlignment, useButtonBubbleMenuContext, useEditor, useImageBubbleMenuContext, useLinkBubbleMenuContext };
|
|
1164
|
-
//# sourceMappingURL=index.d.mts.map
|