@maily-to/core 2.0.0-beta.7 → 2.0.0-beta.9
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/blocks/index.cjs +8 -1
- package/dist/blocks/index.d.cts +1 -38
- package/dist/blocks/index.d.mts +14 -6
- package/dist/blocks/index.d.mts.map +1 -1
- package/dist/blocks/index.mjs +2 -2
- package/dist/extensions/index.cjs +266 -286
- package/dist/extensions/index.d.cts +1 -379
- package/dist/extensions/index.d.mts +127 -224
- package/dist/extensions/index.d.mts.map +1 -1
- package/dist/extensions/index.mjs +238 -271
- package/dist/index.cjs +8826 -11828
- package/dist/index.d.cts +1 -165
- package/dist/index.d.mts +701 -121
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +8460 -11567
- package/dist/{slash-command-BmWRVPbv.d.mts → slash-command-BrwA1bHs.d.mts} +10 -11
- package/dist/slash-command-BrwA1bHs.d.mts.map +1 -0
- package/dist/theme-D1CI7_8s.d.mts +70 -0
- package/dist/theme-D1CI7_8s.d.mts.map +1 -0
- package/dist/typography-BdOKvXfQ.mjs +911 -0
- package/dist/typography-D-VnwOSw.cjs +970 -0
- package/dist/typography-DW7VApAR.cjs +1072 -0
- package/dist/use-maily-editor-Atvy2kSO.cjs +3993 -0
- package/dist/use-maily-editor-CByaDhmT.cjs +4955 -0
- package/dist/use-maily-editor-idL0RNsG.mjs +4504 -0
- package/package.json +82 -74
- package/readme.md +169 -128
- package/src/styles/index.css +2537 -0
- package/dist/blocks/index.d.cts.map +0 -1
- package/dist/chunk-CfYAbeIz.mjs +0 -13
- package/dist/extensions/index.d.cts.map +0 -1
- package/dist/extensions/index.mjs.map +0 -1
- package/dist/index.css +0 -2312
- package/dist/index.d.cts.map +0 -1
- package/dist/index.mjs.map +0 -1
- package/dist/slash-command-BmWRVPbv.d.mts.map +0 -1
- package/dist/slash-command-CK0-1FwR.d.cts +0 -39
- package/dist/slash-command-CK0-1FwR.d.cts.map +0 -1
- package/dist/spacer-DBtsr3hu.cjs +0 -5768
- package/dist/spacer-DzZWX-wB.mjs +0 -5456
- package/dist/spacer-DzZWX-wB.mjs.map +0 -1
- package/dist/typography-CWL13acR.cjs +0 -400
- package/dist/typography-DhrUe809.mjs +0 -282
- package/dist/typography-DhrUe809.mjs.map +0 -1
- package/dist/variable-C9S9ZoHv.d.cts +0 -108
- package/dist/variable-C9S9ZoHv.d.cts.map +0 -1
- package/dist/variable-DVwGrg2a.d.mts +0 -108
- package/dist/variable-DVwGrg2a.d.mts.map +0 -1
|
@@ -1,379 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import { o as VariableOptions, r as Variables } from "../variable-C9S9ZoHv.cjs";
|
|
3
|
-
import * as _tiptap_core0 from "@tiptap/core";
|
|
4
|
-
import { Editor, Extension, Node } from "@tiptap/core";
|
|
5
|
-
import * as _tiptap_extension_blockquote0 from "@tiptap/extension-blockquote";
|
|
6
|
-
import { AllowedButtonKind, AllowedFieldMode, AllowedTextAlignment, BorderStyleConfig, ColumnAttributes, ColumnsAttributes, FontFamilyItem, FontStyleAttributes, FooterAttributes, HtmlCodeBlockAttributes, LinkCardAttributes, RepeatAttributes, SectionAttributes, SpacerAttributes, TextDirection, VisibilityRule } from "@maily-to/shared";
|
|
7
|
-
import * as _tiptap_extension_horizontal_rule0 from "@tiptap/extension-horizontal-rule";
|
|
8
|
-
import * as _tiptap_extension_code_block_lowlight0 from "@tiptap/extension-code-block-lowlight";
|
|
9
|
-
import { ImageOptions } from "@tiptap/extension-image";
|
|
10
|
-
import { SuggestionOptions } from "@tiptap/suggestion";
|
|
11
|
-
import { PluginKey } from "@tiptap/pm/state";
|
|
12
|
-
|
|
13
|
-
//#region src/extensions/blockquote/blockquote.d.ts
|
|
14
|
-
declare const BlockquoteExtension: _tiptap_core0.Node<_tiptap_extension_blockquote0.BlockquoteOptions, any>;
|
|
15
|
-
//#endregion
|
|
16
|
-
//#region src/extensions/button/button.d.ts
|
|
17
|
-
type ButtonAttributes = {
|
|
18
|
-
dir: TextDirection | null;
|
|
19
|
-
url: string;
|
|
20
|
-
kind: AllowedButtonKind;
|
|
21
|
-
alignment: AllowedTextAlignment | null;
|
|
22
|
-
backgroundColor: string | null;
|
|
23
|
-
color: string | null;
|
|
24
|
-
paddingMode: AllowedFieldMode;
|
|
25
|
-
paddingTop: number;
|
|
26
|
-
paddingRight: number;
|
|
27
|
-
paddingBottom: number;
|
|
28
|
-
paddingLeft: number;
|
|
29
|
-
} & BorderStyleConfig & FontStyleAttributes;
|
|
30
|
-
declare module '@tiptap/core' {
|
|
31
|
-
interface Commands<ReturnType> {
|
|
32
|
-
button: {
|
|
33
|
-
setButton: (attrs?: Partial<ButtonAttributes>) => ReturnType;
|
|
34
|
-
updateButtonAttributes: (attrs: Partial<ButtonAttributes>) => ReturnType;
|
|
35
|
-
};
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
declare const ButtonExtension: Node<any, any>;
|
|
39
|
-
//#endregion
|
|
40
|
-
//#region src/extensions/columns/column.d.ts
|
|
41
|
-
type ColumnOptions = {
|
|
42
|
-
HTMLAttributes: Record<string, any>;
|
|
43
|
-
};
|
|
44
|
-
declare module '@tiptap/core' {
|
|
45
|
-
interface Commands<ReturnType> {
|
|
46
|
-
column: {
|
|
47
|
-
updateColumn: (attrs: Partial<ColumnAttributes>) => ReturnType;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
declare const ColumnExtension: Node<ColumnOptions, any>;
|
|
52
|
-
//#endregion
|
|
53
|
-
//#region src/extensions/columns/columns.d.ts
|
|
54
|
-
type ColumnsOptions = {
|
|
55
|
-
HTMLAttributes: Record<string, any>;
|
|
56
|
-
};
|
|
57
|
-
declare module '@tiptap/core' {
|
|
58
|
-
interface Commands<ReturnType> {
|
|
59
|
-
columns: {
|
|
60
|
-
setColumns: (columnCount?: number) => ReturnType;
|
|
61
|
-
updateColumns: (attrs: Partial<ColumnsAttributes>) => ReturnType;
|
|
62
|
-
addColumn: () => ReturnType;
|
|
63
|
-
removeColumn: () => ReturnType;
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
declare const ColumnsExtension: Node<ColumnsOptions, any>;
|
|
68
|
-
//#endregion
|
|
69
|
-
//#region src/extensions/font-style/font-style.d.ts
|
|
70
|
-
type FontStyleOptions = {
|
|
71
|
-
types: string[];
|
|
72
|
-
fontFamilies: FontFamilyItem[];
|
|
73
|
-
};
|
|
74
|
-
declare module '@tiptap/core' {
|
|
75
|
-
interface Commands<ReturnType> {
|
|
76
|
-
fontStyle: {
|
|
77
|
-
setFontStyle: (attrs: Partial<FontStyleAttributes>) => ReturnType;
|
|
78
|
-
unsetFontStyle: () => ReturnType;
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
declare const FontStyleExtension: Extension<FontStyleOptions, any>;
|
|
83
|
-
//#endregion
|
|
84
|
-
//#region src/extensions/footer/footer.d.ts
|
|
85
|
-
type FooterOptions = {
|
|
86
|
-
HTMLAttributes: Record<string, any>;
|
|
87
|
-
};
|
|
88
|
-
declare module '@tiptap/core' {
|
|
89
|
-
interface Commands<ReturnType> {
|
|
90
|
-
footer: {
|
|
91
|
-
setFooter: () => ReturnType;
|
|
92
|
-
updateFooterAttributes: (attrs: Partial<FooterAttributes>) => ReturnType;
|
|
93
|
-
};
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
declare const FooterExtension: Node<FooterOptions, any>;
|
|
97
|
-
//#endregion
|
|
98
|
-
//#region src/extensions/horizontal-rule/horizontal-rule.d.ts
|
|
99
|
-
declare const HorizontalRuleExtension: _tiptap_core0.Node<_tiptap_extension_horizontal_rule0.HorizontalRuleOptions, any>;
|
|
100
|
-
//#endregion
|
|
101
|
-
//#region src/extensions/html-code-block/html-code-block.d.ts
|
|
102
|
-
declare module '@tiptap/core' {
|
|
103
|
-
interface Commands<ReturnType> {
|
|
104
|
-
htmlCodeBlock: {
|
|
105
|
-
setHtmlCodeBlock: (attributes?: {
|
|
106
|
-
language: string;
|
|
107
|
-
}) => ReturnType;
|
|
108
|
-
updateHtmlCodeBlock: (attrs: Partial<HtmlCodeBlockAttributes>) => ReturnType;
|
|
109
|
-
};
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
declare const HtmlCodeBlockExtension: _tiptap_core0.Node<_tiptap_extension_code_block_lowlight0.CodeBlockLowlightOptions, any>;
|
|
113
|
-
//#endregion
|
|
114
|
-
//#region src/extensions/image-upload/image-upload.d.ts
|
|
115
|
-
declare const IMAGE_UPLOAD_STATUSES: {
|
|
116
|
-
readonly IDLE: 'idle';
|
|
117
|
-
readonly LOADING: 'loading';
|
|
118
|
-
readonly ERROR: 'error';
|
|
119
|
-
readonly LOADED: 'loaded';
|
|
120
|
-
};
|
|
121
|
-
type ImageUploadStatus = (typeof IMAGE_UPLOAD_STATUSES)[keyof typeof IMAGE_UPLOAD_STATUSES];
|
|
122
|
-
type ImageUploadStorage = {
|
|
123
|
-
uploads: Map<string, ImageUploadStatus>;
|
|
124
|
-
};
|
|
125
|
-
declare module '@tiptap/core' {
|
|
126
|
-
interface Storage {
|
|
127
|
-
imageUpload: ImageUploadStorage;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
type ImageUploadContext = {
|
|
131
|
-
position: number;
|
|
132
|
-
removeImage: () => void;
|
|
133
|
-
};
|
|
134
|
-
type ImageUploadOptions = {
|
|
135
|
-
onImageUpload?: (file: File, context: ImageUploadContext) => Promise<string>;
|
|
136
|
-
onImageUploadError?: (error: unknown, file: File, context: ImageUploadContext) => void;
|
|
137
|
-
};
|
|
138
|
-
declare const ImageUploadExtension: Extension<ImageUploadOptions, ImageUploadStorage>;
|
|
139
|
-
//#endregion
|
|
140
|
-
//#region src/extensions/inline-image/inline-image.d.ts
|
|
141
|
-
type InlineImageAttributes = {
|
|
142
|
-
src: string;
|
|
143
|
-
alt: string | null;
|
|
144
|
-
title: string | null;
|
|
145
|
-
width: number;
|
|
146
|
-
height: number;
|
|
147
|
-
externalLink: string | null;
|
|
148
|
-
};
|
|
149
|
-
type InlineImageOptions = {
|
|
150
|
-
HTMLAttributes: Record<string, any>;
|
|
151
|
-
};
|
|
152
|
-
declare module '@tiptap/core' {
|
|
153
|
-
interface Commands<ReturnType> {
|
|
154
|
-
inlineImage: {
|
|
155
|
-
setInlineImage: (attrs: Partial<InlineImageAttributes>) => ReturnType;
|
|
156
|
-
updateInlineImageAttributes: (attrs: Partial<InlineImageAttributes>) => ReturnType;
|
|
157
|
-
};
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
declare const InlineImageExtension: Node<InlineImageOptions, any>;
|
|
161
|
-
//#endregion
|
|
162
|
-
//#region src/extensions/link-card/link-card.d.ts
|
|
163
|
-
type LinkCardOptions = {
|
|
164
|
-
HTMLAttributes: Record<string, any>;
|
|
165
|
-
};
|
|
166
|
-
declare module '@tiptap/core' {
|
|
167
|
-
interface Commands<ReturnType> {
|
|
168
|
-
linkCard: {
|
|
169
|
-
setLinkCard: (attrs?: Partial<LinkCardAttributes>) => ReturnType;
|
|
170
|
-
updateLinkCardAttributes: (attrs: Partial<LinkCardAttributes>) => ReturnType;
|
|
171
|
-
};
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
declare const LinkCardExtension: Node<LinkCardOptions, any>;
|
|
175
|
-
//#endregion
|
|
176
|
-
//#region src/extensions/repeat/repeat.d.ts
|
|
177
|
-
type RepeatOptions = {
|
|
178
|
-
HTMLAttributes: Record<string, any>;
|
|
179
|
-
};
|
|
180
|
-
declare module '@tiptap/core' {
|
|
181
|
-
interface Commands<ReturnType> {
|
|
182
|
-
repeat: {
|
|
183
|
-
setRepeat: (attrs?: Partial<RepeatAttributes>) => ReturnType;
|
|
184
|
-
updateRepeat: (attrs: Partial<RepeatAttributes>) => ReturnType;
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
declare const RepeatExtension: Node<RepeatOptions, any>;
|
|
189
|
-
//#endregion
|
|
190
|
-
//#region src/extensions/resizable-image/resizable-image.d.ts
|
|
191
|
-
declare const ResizableImageExtension: _tiptap_core0.Node<ImageOptions, any>;
|
|
192
|
-
//#endregion
|
|
193
|
-
//#region src/extensions/section/section.d.ts
|
|
194
|
-
type SectionOptions = {
|
|
195
|
-
HTMLAttributes: Record<string, any>;
|
|
196
|
-
};
|
|
197
|
-
declare module '@tiptap/core' {
|
|
198
|
-
interface Commands<ReturnType> {
|
|
199
|
-
section: {
|
|
200
|
-
setSection: () => ReturnType;
|
|
201
|
-
updateSection: (attrs: Partial<SectionAttributes>) => ReturnType;
|
|
202
|
-
};
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
declare const SectionExtension: Node<SectionOptions, any>;
|
|
206
|
-
//#endregion
|
|
207
|
-
//#region src/extensions/slash-command/slash-command.d.ts
|
|
208
|
-
declare module '@tiptap/core' {
|
|
209
|
-
interface Storage {
|
|
210
|
-
slashCommand: SlashCommandStorage;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
type SlashCommandStorage = {
|
|
214
|
-
commands: SlashCommandGroupItem[];
|
|
215
|
-
};
|
|
216
|
-
type SlashCommandOptions = {
|
|
217
|
-
suggestion: Omit<SuggestionOptions, 'editor'>;
|
|
218
|
-
commands: SlashCommandGroupItem[];
|
|
219
|
-
};
|
|
220
|
-
declare const SlashCommandExtension: Extension<SlashCommandOptions, SlashCommandStorage>;
|
|
221
|
-
//#endregion
|
|
222
|
-
//#region src/extensions/spacer/spacer.d.ts
|
|
223
|
-
type SpacerOptions = {
|
|
224
|
-
HTMLAttributes: Record<string, any>;
|
|
225
|
-
};
|
|
226
|
-
declare module '@tiptap/core' {
|
|
227
|
-
interface Commands<ReturnType> {
|
|
228
|
-
spacer: {
|
|
229
|
-
setSpacer: (attrs?: Partial<SpacerAttributes>) => ReturnType;
|
|
230
|
-
updateSpacerAttributes: (attrs: Partial<SpacerAttributes>) => ReturnType;
|
|
231
|
-
unsetSpacer: () => ReturnType;
|
|
232
|
-
};
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
declare const SpacerExtension: Node<SpacerOptions, any>;
|
|
236
|
-
//#endregion
|
|
237
|
-
//#region src/extensions/variable/variable.d.ts
|
|
238
|
-
type CoreVariableOptions = VariableOptions & {
|
|
239
|
-
variables?: Variables;
|
|
240
|
-
};
|
|
241
|
-
type CoreVariableStorage = {
|
|
242
|
-
variables?: Variables;
|
|
243
|
-
};
|
|
244
|
-
declare module '@tiptap/core' {
|
|
245
|
-
interface Storage {
|
|
246
|
-
variable: CoreVariableStorage;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
declare const VariableExtension: _tiptap_core0.Node<CoreVariableOptions, CoreVariableStorage>;
|
|
250
|
-
//#endregion
|
|
251
|
-
//#region src/extensions/visibility/visibility.d.ts
|
|
252
|
-
type VisibilityAttributes = {
|
|
253
|
-
visibilityRule: VisibilityRule | null;
|
|
254
|
-
};
|
|
255
|
-
type VisibilityOptions = {
|
|
256
|
-
types: string[];
|
|
257
|
-
};
|
|
258
|
-
declare module '@tiptap/core' {
|
|
259
|
-
interface Commands<ReturnType> {
|
|
260
|
-
visibility: {
|
|
261
|
-
setVisibility: (attrs: Partial<VisibilityAttributes>) => ReturnType;
|
|
262
|
-
unsetVisibility: () => ReturnType;
|
|
263
|
-
};
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
declare const VisibilityExtension: Extension<VisibilityOptions, any>;
|
|
267
|
-
//#endregion
|
|
268
|
-
//#region ../extension-ai-actions/dist/index.d.mts
|
|
269
|
-
declare module '@tiptap/core' {
|
|
270
|
-
interface Commands<ReturnType> {
|
|
271
|
-
aiActions: {
|
|
272
|
-
/**
|
|
273
|
-
* Run a named AI action on the current text selection.
|
|
274
|
-
* The action string is forwarded to the user-provided `transform`
|
|
275
|
-
* callback so it can decide which prompt / model to use.
|
|
276
|
-
*/
|
|
277
|
-
runAIAction: (action: string) => ReturnType; /** Abort any in-flight AI action and reset loading state. */
|
|
278
|
-
cancelAIAction: () => ReturnType;
|
|
279
|
-
};
|
|
280
|
-
}
|
|
281
|
-
}
|
|
282
|
-
type AIActionsTransformParams = {
|
|
283
|
-
/** The plain-text content of the current selection. */text: string; /** The action identifier passed to `runAIAction`. */
|
|
284
|
-
action: string;
|
|
285
|
-
};
|
|
286
|
-
type AIActionsTransformContext = {
|
|
287
|
-
/** Abort signal — cancelled when `cancelAIAction` is called. */signal: AbortSignal; /** The Tiptap editor instance. */
|
|
288
|
-
editor: Editor;
|
|
289
|
-
/**
|
|
290
|
-
* Streaming callback — call with the **full accumulated text so far**
|
|
291
|
-
* to progressively replace the original selection. Each call replaces
|
|
292
|
-
* the entire range, so always pass the complete text, not a delta.
|
|
293
|
-
*/
|
|
294
|
-
write: (text: string) => void;
|
|
295
|
-
};
|
|
296
|
-
type AIActionsOptions = {
|
|
297
|
-
/**
|
|
298
|
-
* Transform the selected text using an AI action.
|
|
299
|
-
*
|
|
300
|
-
* @param params - the selected text and action name
|
|
301
|
-
* @param ctx - context with editor instance, abort signal, and
|
|
302
|
-
* streaming `write` callback
|
|
303
|
-
*
|
|
304
|
-
* **Return value:**
|
|
305
|
-
* - Return a `string` to replace the selection in one shot.
|
|
306
|
-
* - Return `void` / `undefined` if you used `write()` for streaming
|
|
307
|
-
* (the last `write()` value is used as the final text).
|
|
308
|
-
*/
|
|
309
|
-
transform: (params: AIActionsTransformParams, ctx: AIActionsTransformContext) => Promise<string | void>;
|
|
310
|
-
};
|
|
311
|
-
type AIActionsStorage = {
|
|
312
|
-
/** `true` while an AI action is in flight. */isLoading: boolean; /** The name of the currently running action, or `null`. */
|
|
313
|
-
activeAction: string | null;
|
|
314
|
-
};
|
|
315
|
-
declare module '@tiptap/core' {
|
|
316
|
-
interface ExtensionStorage {
|
|
317
|
-
aiActions: AIActionsStorage;
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
declare const AIActions: Extension<AIActionsOptions, AIActionsStorage>; //#endregion
|
|
321
|
-
//#endregion
|
|
322
|
-
//#region ../extension-inline-suggestion/dist/index.d.mts
|
|
323
|
-
//#region src/inline-suggestion.d.ts
|
|
324
|
-
declare module '@tiptap/core' {
|
|
325
|
-
interface Commands<ReturnType> {
|
|
326
|
-
inlineSuggestion: {
|
|
327
|
-
/** Debounce-fetch a suggestion for the current node's text. */fetchSuggestion: () => ReturnType; /** Accept and insert the current suggestion into the document. */
|
|
328
|
-
insertSuggestion: () => ReturnType; /** Dismiss the current suggestion without inserting it. */
|
|
329
|
-
dismissSuggestion: () => ReturnType;
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
}
|
|
333
|
-
declare const inlineSuggestionPluginKey: PluginKey;
|
|
334
|
-
type SuggestContext = {
|
|
335
|
-
/** The Tiptap editor instance. */editor: Editor; /** Abort signal — cancelled when a newer request supersedes this one. */
|
|
336
|
-
signal: AbortSignal;
|
|
337
|
-
};
|
|
338
|
-
type InlineSuggestionOptions = {
|
|
339
|
-
/**
|
|
340
|
-
* Fetch inline suggestions.
|
|
341
|
-
*
|
|
342
|
-
* @param text - existing text in the current node
|
|
343
|
-
* @param ctx - context with editor instance and abort signal
|
|
344
|
-
* @returns the suggestion string to show
|
|
345
|
-
*/
|
|
346
|
-
suggest: (text: string, ctx: SuggestContext) => Promise<string>;
|
|
347
|
-
/**
|
|
348
|
-
* Debounce time for fetching suggestions in milliseconds.
|
|
349
|
-
* @default 250
|
|
350
|
-
*/
|
|
351
|
-
debounceTime?: number;
|
|
352
|
-
/**
|
|
353
|
-
* Key that triggers fetching a suggestion.
|
|
354
|
-
* Set to null to disable key-based triggering (use fetchSuggestion command manually).
|
|
355
|
-
* @default " " (space)
|
|
356
|
-
*/
|
|
357
|
-
triggerKey?: string | null;
|
|
358
|
-
/**
|
|
359
|
-
* Key that accepts/inserts the current suggestion.
|
|
360
|
-
* @default "Tab"
|
|
361
|
-
*/
|
|
362
|
-
acceptKey?: string;
|
|
363
|
-
};
|
|
364
|
-
type InlineSuggestionStorage = {
|
|
365
|
-
/** The suggestion text currently shown as a ghost decoration. */currentSuggestion?: string; /** Node range (`from`/`to`) where the decoration is rendered. */
|
|
366
|
-
nodeDetails?: {
|
|
367
|
-
from: number;
|
|
368
|
-
to: number;
|
|
369
|
-
};
|
|
370
|
-
};
|
|
371
|
-
declare module '@tiptap/core' {
|
|
372
|
-
interface ExtensionStorage {
|
|
373
|
-
inlineSuggestion: InlineSuggestionStorage;
|
|
374
|
-
}
|
|
375
|
-
}
|
|
376
|
-
declare const InlineSuggestion: Extension<InlineSuggestionOptions, InlineSuggestionStorage>; //#endregion
|
|
377
|
-
//#endregion
|
|
378
|
-
export { AIActions, type AIActionsOptions, type AIActionsStorage, type AIActionsTransformContext, type AIActionsTransformParams, BlockquoteExtension, ButtonExtension, ColumnExtension, ColumnsExtension, FontStyleExtension, FooterExtension, HorizontalRuleExtension, HtmlCodeBlockExtension, type ImageUploadContext, ImageUploadExtension, type ImageUploadOptions, InlineImageExtension, InlineSuggestion, type InlineSuggestionOptions, type InlineSuggestionStorage, LinkCardExtension, RepeatExtension, ResizableImageExtension, SectionExtension, SlashCommandExtension, SpacerExtension, VariableExtension, VisibilityExtension, inlineSuggestionPluginKey };
|
|
379
|
-
//# sourceMappingURL=index.d.cts.map
|
|
1
|
+
export type * from './index.d.mts'
|