@react-email/editor 0.0.0-experimental.37 → 0.0.0-experimental.39
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/{extension-XZBBjuHO.mjs → extension-CnC8y63H.mjs} +3 -7
- package/dist/extension-CnC8y63H.mjs.map +1 -0
- package/dist/{extension-B8yvCdun.cjs → extension-dGpPpEvD.cjs} +2 -6
- package/dist/index-C4KcMQ0R.d.cts.map +1 -1
- package/dist/index-CxX7W63O.d.mts.map +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.css +27 -54
- package/dist/index.css.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +7 -7
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/index.cjs +1 -1
- package/dist/plugins/index.d.cts.map +1 -1
- package/dist/plugins/index.d.mts.map +1 -1
- package/dist/plugins/index.mjs +1 -1
- package/dist/{root-BMxsq1NF.mjs → root-CkYaJZpj.mjs} +645 -730
- package/dist/root-CkYaJZpj.mjs.map +1 -0
- package/dist/{root-CNVO39XG.cjs → root-Gu08xybW.cjs} +723 -832
- package/dist/{set-text-alignment-GMXOPMlJ.mjs → set-text-alignment-OA8IMWmO.mjs} +1 -1
- package/dist/{set-text-alignment-GMXOPMlJ.mjs.map → set-text-alignment-OA8IMWmO.mjs.map} +1 -1
- package/dist/ui/bubble-menu/bubble-menu.css +139 -0
- package/dist/ui/index.cjs +32 -57
- package/dist/ui/index.d.cts +280 -364
- package/dist/ui/index.d.cts.map +1 -1
- package/dist/ui/index.d.mts +280 -364
- package/dist/ui/index.d.mts.map +1 -1
- package/dist/ui/index.mjs +17 -35
- package/dist/ui/index.mjs.map +1 -1
- package/dist/ui/themes/default.css +27 -54
- package/dist/utils/index.cjs +1 -1
- package/dist/utils/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/extension-XZBBjuHO.mjs.map +0 -1
- package/dist/root-BMxsq1NF.mjs.map +0 -1
- package/dist/ui/button-bubble-menu/button-bubble-menu.css +0 -63
- package/dist/ui/image-bubble-menu/image-bubble-menu.css +0 -29
- package/dist/ui/link-bubble-menu/link-bubble-menu.css +0 -68
- /package/dist/{set-text-alignment-aNb7Ml9N.cjs → set-text-alignment-Cv72txmv.cjs} +0 -0
package/dist/ui/index.d.cts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { Editor, Range } from "@tiptap/core";
|
|
2
|
+
import { EditorView } from "@tiptap/pm/view";
|
|
2
3
|
import * as React from "react";
|
|
3
4
|
import { ReactNode } from "react";
|
|
4
|
-
import * as
|
|
5
|
+
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
6
|
+
import { EditorState, PluginKey } from "@tiptap/pm/state";
|
|
5
7
|
|
|
6
8
|
//#region src/ui/bubble-menu/create-mark-bubble-item.d.ts
|
|
7
9
|
interface PreWiredItemProps {
|
|
@@ -14,46 +16,104 @@ interface PreWiredItemProps {
|
|
|
14
16
|
declare function BubbleMenuAlignCenter({
|
|
15
17
|
className,
|
|
16
18
|
children
|
|
17
|
-
}: PreWiredItemProps):
|
|
19
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
18
20
|
//#endregion
|
|
19
21
|
//#region src/ui/bubble-menu/align-left.d.ts
|
|
20
22
|
declare function BubbleMenuAlignLeft({
|
|
21
23
|
className,
|
|
22
24
|
children
|
|
23
|
-
}: PreWiredItemProps):
|
|
25
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
24
26
|
//#endregion
|
|
25
27
|
//#region src/ui/bubble-menu/align-right.d.ts
|
|
26
28
|
declare function BubbleMenuAlignRight({
|
|
27
29
|
className,
|
|
28
30
|
children
|
|
29
|
-
}: PreWiredItemProps):
|
|
31
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region src/ui/bubble-menu/button-default.d.ts
|
|
34
|
+
interface BubbleMenuButtonDefaultProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
35
|
+
placement?: 'top' | 'bottom';
|
|
36
|
+
offset?: number;
|
|
37
|
+
onHide?: () => void;
|
|
38
|
+
validateUrl?: (value: string) => string | null;
|
|
39
|
+
onLinkApply?: (href: string) => void;
|
|
40
|
+
onLinkRemove?: () => void;
|
|
41
|
+
}
|
|
42
|
+
declare function BubbleMenuButtonDefault({
|
|
43
|
+
placement,
|
|
44
|
+
offset,
|
|
45
|
+
onHide,
|
|
46
|
+
className,
|
|
47
|
+
validateUrl,
|
|
48
|
+
onLinkApply,
|
|
49
|
+
onLinkRemove,
|
|
50
|
+
...rest
|
|
51
|
+
}: BubbleMenuButtonDefaultProps): react_jsx_runtime7.JSX.Element;
|
|
52
|
+
//#endregion
|
|
53
|
+
//#region src/ui/bubble-menu/button-edit-link.d.ts
|
|
54
|
+
interface BubbleMenuButtonEditLinkProps extends Omit<React.ComponentProps<'button'>, 'type'> {}
|
|
55
|
+
declare function BubbleMenuButtonEditLink({
|
|
56
|
+
className,
|
|
57
|
+
children,
|
|
58
|
+
onClick,
|
|
59
|
+
onMouseDown,
|
|
60
|
+
...rest
|
|
61
|
+
}: BubbleMenuButtonEditLinkProps): react_jsx_runtime7.JSX.Element;
|
|
62
|
+
//#endregion
|
|
63
|
+
//#region src/ui/bubble-menu/button-form.d.ts
|
|
64
|
+
interface BubbleMenuButtonFormProps {
|
|
65
|
+
className?: string;
|
|
66
|
+
validateUrl?: (value: string) => string | null;
|
|
67
|
+
onLinkApply?: (href: string) => void;
|
|
68
|
+
onLinkRemove?: () => void;
|
|
69
|
+
}
|
|
70
|
+
declare function BubbleMenuButtonForm({
|
|
71
|
+
className,
|
|
72
|
+
validateUrl,
|
|
73
|
+
onLinkApply,
|
|
74
|
+
onLinkRemove
|
|
75
|
+
}: BubbleMenuButtonFormProps): react_jsx_runtime7.JSX.Element | null;
|
|
76
|
+
//#endregion
|
|
77
|
+
//#region src/ui/bubble-menu/button-toolbar.d.ts
|
|
78
|
+
interface BubbleMenuButtonToolbarProps extends React.ComponentProps<'div'> {}
|
|
79
|
+
declare function BubbleMenuButtonToolbar({
|
|
80
|
+
children,
|
|
81
|
+
...rest
|
|
82
|
+
}: BubbleMenuButtonToolbarProps): react_jsx_runtime7.JSX.Element | null;
|
|
83
|
+
//#endregion
|
|
84
|
+
//#region src/ui/bubble-menu/button-unlink.d.ts
|
|
85
|
+
interface BubbleMenuButtonUnlinkProps extends Omit<React.ComponentProps<'button'>, 'type'> {
|
|
86
|
+
onLinkRemove?: () => void;
|
|
87
|
+
}
|
|
88
|
+
declare function BubbleMenuButtonUnlink({
|
|
89
|
+
className,
|
|
90
|
+
children,
|
|
91
|
+
onClick,
|
|
92
|
+
onMouseDown,
|
|
93
|
+
onLinkRemove,
|
|
94
|
+
...rest
|
|
95
|
+
}: BubbleMenuButtonUnlinkProps): react_jsx_runtime7.JSX.Element;
|
|
30
96
|
//#endregion
|
|
31
97
|
//#region src/ui/bubble-menu/default.d.ts
|
|
32
98
|
type ExcludableItem$2 = 'bold' | 'italic' | 'underline' | 'strike' | 'code' | 'uppercase' | 'align-left' | 'align-center' | 'align-right' | 'node-selector' | 'link-selector';
|
|
33
99
|
interface BubbleMenuDefaultProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
34
|
-
/** Items to exclude from the default layout */
|
|
35
100
|
excludeItems?: ExcludableItem$2[];
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
/** Mark types that should NOT trigger the bubble menu (forwarded to Root) */
|
|
39
|
-
excludeMarks?: string[];
|
|
40
|
-
/** Placement relative to selection (forwarded to Root, default: 'bottom') */
|
|
101
|
+
hideWhenActiveNodes?: string[];
|
|
102
|
+
hideWhenActiveMarks?: string[];
|
|
41
103
|
placement?: 'top' | 'bottom';
|
|
42
|
-
/** Offset from selection in px (forwarded to Root, default: 8) */
|
|
43
104
|
offset?: number;
|
|
44
|
-
/** Called when the bubble menu hides (forwarded to Root) */
|
|
45
105
|
onHide?: () => void;
|
|
46
106
|
}
|
|
47
107
|
declare function BubbleMenuDefault({
|
|
48
108
|
excludeItems,
|
|
49
|
-
|
|
50
|
-
|
|
109
|
+
hideWhenActiveNodes,
|
|
110
|
+
hideWhenActiveMarks,
|
|
51
111
|
placement,
|
|
52
112
|
offset,
|
|
53
113
|
onHide,
|
|
54
114
|
className,
|
|
55
115
|
...rest
|
|
56
|
-
}: BubbleMenuDefaultProps):
|
|
116
|
+
}: BubbleMenuDefaultProps): react_jsx_runtime7.JSX.Element;
|
|
57
117
|
//#endregion
|
|
58
118
|
//#region src/ui/bubble-menu/group.d.ts
|
|
59
119
|
interface BubbleMenuItemGroupProps {
|
|
@@ -63,7 +123,41 @@ interface BubbleMenuItemGroupProps {
|
|
|
63
123
|
declare function BubbleMenuItemGroup({
|
|
64
124
|
className,
|
|
65
125
|
children
|
|
66
|
-
}: BubbleMenuItemGroupProps):
|
|
126
|
+
}: BubbleMenuItemGroupProps): react_jsx_runtime7.JSX.Element;
|
|
127
|
+
//#endregion
|
|
128
|
+
//#region src/ui/bubble-menu/image-default.d.ts
|
|
129
|
+
type ExcludableItem$1 = 'edit-link';
|
|
130
|
+
interface BubbleMenuImageDefaultProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
131
|
+
excludeItems?: ExcludableItem$1[];
|
|
132
|
+
placement?: 'top' | 'bottom';
|
|
133
|
+
offset?: number;
|
|
134
|
+
onHide?: () => void;
|
|
135
|
+
}
|
|
136
|
+
declare function BubbleMenuImageDefault({
|
|
137
|
+
excludeItems,
|
|
138
|
+
placement,
|
|
139
|
+
offset,
|
|
140
|
+
onHide,
|
|
141
|
+
className,
|
|
142
|
+
...rest
|
|
143
|
+
}: BubbleMenuImageDefaultProps): react_jsx_runtime7.JSX.Element;
|
|
144
|
+
//#endregion
|
|
145
|
+
//#region src/ui/bubble-menu/image-edit-link.d.ts
|
|
146
|
+
interface BubbleMenuImageEditLinkProps extends Omit<React.ComponentProps<'button'>, 'type'> {}
|
|
147
|
+
declare function BubbleMenuImageEditLink({
|
|
148
|
+
className,
|
|
149
|
+
children,
|
|
150
|
+
onClick,
|
|
151
|
+
onMouseDown,
|
|
152
|
+
...rest
|
|
153
|
+
}: BubbleMenuImageEditLinkProps): react_jsx_runtime7.JSX.Element;
|
|
154
|
+
//#endregion
|
|
155
|
+
//#region src/ui/bubble-menu/image-toolbar.d.ts
|
|
156
|
+
interface BubbleMenuImageToolbarProps extends React.ComponentProps<'div'> {}
|
|
157
|
+
declare function BubbleMenuImageToolbar({
|
|
158
|
+
children,
|
|
159
|
+
...rest
|
|
160
|
+
}: BubbleMenuImageToolbarProps): react_jsx_runtime7.JSX.Element | null;
|
|
67
161
|
//#endregion
|
|
68
162
|
//#region src/ui/bubble-menu/item.d.ts
|
|
69
163
|
interface BubbleMenuItemProps extends React.ComponentProps<'button'> {
|
|
@@ -81,7 +175,64 @@ declare function BubbleMenuItem({
|
|
|
81
175
|
className,
|
|
82
176
|
children,
|
|
83
177
|
...rest
|
|
84
|
-
}: BubbleMenuItemProps):
|
|
178
|
+
}: BubbleMenuItemProps): react_jsx_runtime7.JSX.Element;
|
|
179
|
+
//#endregion
|
|
180
|
+
//#region src/ui/bubble-menu/link-default.d.ts
|
|
181
|
+
type ExcludableItem = 'edit-link' | 'open-link' | 'unlink';
|
|
182
|
+
interface BubbleMenuLinkDefaultProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
183
|
+
excludeItems?: ExcludableItem[];
|
|
184
|
+
placement?: 'top' | 'bottom';
|
|
185
|
+
offset?: number;
|
|
186
|
+
onHide?: () => void;
|
|
187
|
+
validateUrl?: (value: string) => string | null;
|
|
188
|
+
onLinkApply?: (href: string) => void;
|
|
189
|
+
onLinkRemove?: () => void;
|
|
190
|
+
}
|
|
191
|
+
declare function BubbleMenuLinkDefault({
|
|
192
|
+
excludeItems,
|
|
193
|
+
placement,
|
|
194
|
+
offset,
|
|
195
|
+
onHide,
|
|
196
|
+
className,
|
|
197
|
+
validateUrl,
|
|
198
|
+
onLinkApply,
|
|
199
|
+
onLinkRemove,
|
|
200
|
+
...rest
|
|
201
|
+
}: BubbleMenuLinkDefaultProps): react_jsx_runtime7.JSX.Element;
|
|
202
|
+
//#endregion
|
|
203
|
+
//#region src/ui/bubble-menu/link-edit-link.d.ts
|
|
204
|
+
interface BubbleMenuLinkEditLinkProps extends Omit<React.ComponentProps<'button'>, 'type'> {}
|
|
205
|
+
declare function BubbleMenuLinkEditLink({
|
|
206
|
+
className,
|
|
207
|
+
children,
|
|
208
|
+
onClick,
|
|
209
|
+
onMouseDown,
|
|
210
|
+
...rest
|
|
211
|
+
}: BubbleMenuLinkEditLinkProps): react_jsx_runtime7.JSX.Element;
|
|
212
|
+
//#endregion
|
|
213
|
+
//#region src/ui/bubble-menu/link-form.d.ts
|
|
214
|
+
interface BubbleMenuLinkFormProps {
|
|
215
|
+
className?: string;
|
|
216
|
+
validateUrl?: (value: string) => string | null;
|
|
217
|
+
onLinkApply?: (href: string) => void;
|
|
218
|
+
onLinkRemove?: () => void;
|
|
219
|
+
children?: React.ReactNode;
|
|
220
|
+
}
|
|
221
|
+
declare function BubbleMenuLinkForm({
|
|
222
|
+
className,
|
|
223
|
+
validateUrl,
|
|
224
|
+
onLinkApply,
|
|
225
|
+
onLinkRemove,
|
|
226
|
+
children
|
|
227
|
+
}: BubbleMenuLinkFormProps): react_jsx_runtime7.JSX.Element | null;
|
|
228
|
+
//#endregion
|
|
229
|
+
//#region src/ui/bubble-menu/link-open-link.d.ts
|
|
230
|
+
interface BubbleMenuLinkOpenLinkProps extends Omit<React.ComponentProps<'a'>, 'href' | 'target' | 'rel'> {}
|
|
231
|
+
declare function BubbleMenuLinkOpenLink({
|
|
232
|
+
className,
|
|
233
|
+
children,
|
|
234
|
+
...rest
|
|
235
|
+
}: BubbleMenuLinkOpenLinkProps): react_jsx_runtime7.JSX.Element;
|
|
85
236
|
//#endregion
|
|
86
237
|
//#region src/ui/bubble-menu/link-selector.d.ts
|
|
87
238
|
interface BubbleMenuLinkSelectorProps {
|
|
@@ -110,7 +261,24 @@ declare function BubbleMenuLinkSelector({
|
|
|
110
261
|
children,
|
|
111
262
|
open: controlledOpen,
|
|
112
263
|
onOpenChange
|
|
113
|
-
}: BubbleMenuLinkSelectorProps):
|
|
264
|
+
}: BubbleMenuLinkSelectorProps): react_jsx_runtime7.JSX.Element | null;
|
|
265
|
+
//#endregion
|
|
266
|
+
//#region src/ui/bubble-menu/link-toolbar.d.ts
|
|
267
|
+
interface BubbleMenuLinkToolbarProps extends React.ComponentProps<'div'> {}
|
|
268
|
+
declare function BubbleMenuLinkToolbar({
|
|
269
|
+
children,
|
|
270
|
+
...rest
|
|
271
|
+
}: BubbleMenuLinkToolbarProps): react_jsx_runtime7.JSX.Element | null;
|
|
272
|
+
//#endregion
|
|
273
|
+
//#region src/ui/bubble-menu/link-unlink.d.ts
|
|
274
|
+
interface BubbleMenuLinkUnlinkProps extends Omit<React.ComponentProps<'button'>, 'type'> {}
|
|
275
|
+
declare function BubbleMenuLinkUnlink({
|
|
276
|
+
className,
|
|
277
|
+
children,
|
|
278
|
+
onClick,
|
|
279
|
+
onMouseDown,
|
|
280
|
+
...rest
|
|
281
|
+
}: BubbleMenuLinkUnlinkProps): react_jsx_runtime7.JSX.Element;
|
|
114
282
|
//#endregion
|
|
115
283
|
//#region src/ui/bubble-menu/node-selector.d.ts
|
|
116
284
|
type NodeType = 'Text' | 'Title' | 'Subtitle' | 'Heading' | 'Bullet List' | 'Numbered List' | 'Quote' | 'Code';
|
|
@@ -136,7 +304,7 @@ declare function NodeSelectorRoot({
|
|
|
136
304
|
onOpenChange,
|
|
137
305
|
className,
|
|
138
306
|
children
|
|
139
|
-
}: NodeSelectorRootProps):
|
|
307
|
+
}: NodeSelectorRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
140
308
|
interface NodeSelectorTriggerProps {
|
|
141
309
|
className?: string;
|
|
142
310
|
children?: React.ReactNode;
|
|
@@ -144,7 +312,7 @@ interface NodeSelectorTriggerProps {
|
|
|
144
312
|
declare function NodeSelectorTrigger({
|
|
145
313
|
className,
|
|
146
314
|
children
|
|
147
|
-
}: NodeSelectorTriggerProps):
|
|
315
|
+
}: NodeSelectorTriggerProps): react_jsx_runtime7.JSX.Element;
|
|
148
316
|
interface NodeSelectorContentProps {
|
|
149
317
|
className?: string;
|
|
150
318
|
/** Popover alignment (default: "start") */
|
|
@@ -157,7 +325,7 @@ declare function NodeSelectorContent({
|
|
|
157
325
|
className,
|
|
158
326
|
align,
|
|
159
327
|
children
|
|
160
|
-
}: NodeSelectorContentProps):
|
|
328
|
+
}: NodeSelectorContentProps): react_jsx_runtime7.JSX.Element;
|
|
161
329
|
interface BubbleMenuNodeSelectorProps {
|
|
162
330
|
/** Block types to exclude */
|
|
163
331
|
omit?: string[];
|
|
@@ -175,32 +343,46 @@ declare function BubbleMenuNodeSelector({
|
|
|
175
343
|
triggerContent,
|
|
176
344
|
open,
|
|
177
345
|
onOpenChange
|
|
178
|
-
}: BubbleMenuNodeSelectorProps):
|
|
346
|
+
}: BubbleMenuNodeSelectorProps): react_jsx_runtime7.JSX.Element;
|
|
347
|
+
//#endregion
|
|
348
|
+
//#region src/ui/bubble-menu/triggers.d.ts
|
|
349
|
+
interface ShouldShowParams {
|
|
350
|
+
editor: Editor;
|
|
351
|
+
view: EditorView;
|
|
352
|
+
state: EditorState;
|
|
353
|
+
from: number;
|
|
354
|
+
to: number;
|
|
355
|
+
}
|
|
356
|
+
type ShouldShowFn = (params: ShouldShowParams) => boolean;
|
|
357
|
+
declare const bubbleMenuTriggers: {
|
|
358
|
+
textSelection(hideWhenActiveNodes?: string[], hideWhenActiveMarks?: string[]): ShouldShowFn;
|
|
359
|
+
node(name: string): ShouldShowFn;
|
|
360
|
+
nodeWithoutSelection(name: string): ShouldShowFn;
|
|
361
|
+
};
|
|
179
362
|
//#endregion
|
|
180
363
|
//#region src/ui/bubble-menu/root.d.ts
|
|
181
364
|
interface BubbleMenuRootProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
/** Placement relative to selection */
|
|
365
|
+
shouldShow?: ShouldShowFn;
|
|
366
|
+
pluginKey?: PluginKey;
|
|
367
|
+
hideWhenActiveNodes?: string[];
|
|
368
|
+
hideWhenActiveMarks?: string[];
|
|
187
369
|
placement?: 'top' | 'bottom';
|
|
188
|
-
/** Offset from selection in px */
|
|
189
370
|
offset?: number;
|
|
190
|
-
/** Called when the bubble menu is hidden (e.g., click outside, selection cleared) */
|
|
191
371
|
onHide?: () => void;
|
|
192
372
|
children: React.ReactNode;
|
|
193
373
|
}
|
|
194
374
|
declare function BubbleMenuRoot({
|
|
195
|
-
|
|
196
|
-
|
|
375
|
+
shouldShow,
|
|
376
|
+
pluginKey,
|
|
377
|
+
hideWhenActiveNodes,
|
|
378
|
+
hideWhenActiveMarks,
|
|
197
379
|
placement,
|
|
198
380
|
offset,
|
|
199
381
|
onHide,
|
|
200
382
|
className,
|
|
201
383
|
children,
|
|
202
384
|
...rest
|
|
203
|
-
}: BubbleMenuRootProps):
|
|
385
|
+
}: BubbleMenuRootProps): react_jsx_runtime7.JSX.Element | null;
|
|
204
386
|
//#endregion
|
|
205
387
|
//#region src/ui/bubble-menu/separator.d.ts
|
|
206
388
|
interface BubbleMenuSeparatorProps {
|
|
@@ -208,14 +390,14 @@ interface BubbleMenuSeparatorProps {
|
|
|
208
390
|
}
|
|
209
391
|
declare function BubbleMenuSeparator({
|
|
210
392
|
className
|
|
211
|
-
}: BubbleMenuSeparatorProps):
|
|
393
|
+
}: BubbleMenuSeparatorProps): react_jsx_runtime7.JSX.Element;
|
|
212
394
|
//#endregion
|
|
213
395
|
//#region src/ui/bubble-menu/bold.d.ts
|
|
214
396
|
declare const BubbleMenuBold: {
|
|
215
397
|
({
|
|
216
398
|
className,
|
|
217
399
|
children
|
|
218
|
-
}: PreWiredItemProps):
|
|
400
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
219
401
|
displayName: string;
|
|
220
402
|
};
|
|
221
403
|
//#endregion
|
|
@@ -224,16 +406,24 @@ declare const BubbleMenuCode: {
|
|
|
224
406
|
({
|
|
225
407
|
className,
|
|
226
408
|
children
|
|
227
|
-
}: PreWiredItemProps):
|
|
409
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
228
410
|
displayName: string;
|
|
229
411
|
};
|
|
230
412
|
//#endregion
|
|
413
|
+
//#region src/ui/bubble-menu/context.d.ts
|
|
414
|
+
interface BubbleMenuContextValue {
|
|
415
|
+
editor: Editor;
|
|
416
|
+
isEditing: boolean;
|
|
417
|
+
setIsEditing: (value: boolean) => void;
|
|
418
|
+
}
|
|
419
|
+
declare function useBubbleMenuContext(): BubbleMenuContextValue;
|
|
420
|
+
//#endregion
|
|
231
421
|
//#region src/ui/bubble-menu/italic.d.ts
|
|
232
422
|
declare const BubbleMenuItalic: {
|
|
233
423
|
({
|
|
234
424
|
className,
|
|
235
425
|
children
|
|
236
|
-
}: PreWiredItemProps):
|
|
426
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
237
427
|
displayName: string;
|
|
238
428
|
};
|
|
239
429
|
//#endregion
|
|
@@ -242,7 +432,7 @@ declare const BubbleMenuStrike: {
|
|
|
242
432
|
({
|
|
243
433
|
className,
|
|
244
434
|
children
|
|
245
|
-
}: PreWiredItemProps):
|
|
435
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
246
436
|
displayName: string;
|
|
247
437
|
};
|
|
248
438
|
//#endregion
|
|
@@ -251,7 +441,7 @@ declare const BubbleMenuUnderline: {
|
|
|
251
441
|
({
|
|
252
442
|
className,
|
|
253
443
|
children
|
|
254
|
-
}: PreWiredItemProps):
|
|
444
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
255
445
|
displayName: string;
|
|
256
446
|
};
|
|
257
447
|
//#endregion
|
|
@@ -260,7 +450,7 @@ declare const BubbleMenuUppercase: {
|
|
|
260
450
|
({
|
|
261
451
|
className,
|
|
262
452
|
children
|
|
263
|
-
}: PreWiredItemProps):
|
|
453
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
264
454
|
displayName: string;
|
|
265
455
|
};
|
|
266
456
|
//#endregion
|
|
@@ -274,42 +464,42 @@ declare const BubbleMenu: {
|
|
|
274
464
|
({
|
|
275
465
|
className,
|
|
276
466
|
children
|
|
277
|
-
}: PreWiredItemProps):
|
|
467
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
278
468
|
displayName: string;
|
|
279
469
|
};
|
|
280
470
|
readonly Italic: {
|
|
281
471
|
({
|
|
282
472
|
className,
|
|
283
473
|
children
|
|
284
|
-
}: PreWiredItemProps):
|
|
474
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
285
475
|
displayName: string;
|
|
286
476
|
};
|
|
287
477
|
readonly Underline: {
|
|
288
478
|
({
|
|
289
479
|
className,
|
|
290
480
|
children
|
|
291
|
-
}: PreWiredItemProps):
|
|
481
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
292
482
|
displayName: string;
|
|
293
483
|
};
|
|
294
484
|
readonly Strike: {
|
|
295
485
|
({
|
|
296
486
|
className,
|
|
297
487
|
children
|
|
298
|
-
}: PreWiredItemProps):
|
|
488
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
299
489
|
displayName: string;
|
|
300
490
|
};
|
|
301
491
|
readonly Code: {
|
|
302
492
|
({
|
|
303
493
|
className,
|
|
304
494
|
children
|
|
305
|
-
}: PreWiredItemProps):
|
|
495
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
306
496
|
displayName: string;
|
|
307
497
|
};
|
|
308
498
|
readonly Uppercase: {
|
|
309
499
|
({
|
|
310
500
|
className,
|
|
311
501
|
children
|
|
312
|
-
}: PreWiredItemProps):
|
|
502
|
+
}: PreWiredItemProps): react_jsx_runtime7.JSX.Element;
|
|
313
503
|
displayName: string;
|
|
314
504
|
};
|
|
315
505
|
readonly AlignLeft: typeof BubbleMenuAlignLeft;
|
|
@@ -322,108 +512,20 @@ declare const BubbleMenu: {
|
|
|
322
512
|
};
|
|
323
513
|
readonly LinkSelector: typeof BubbleMenuLinkSelector;
|
|
324
514
|
readonly Default: typeof BubbleMenuDefault;
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
onHide,
|
|
340
|
-
className,
|
|
341
|
-
validateUrl,
|
|
342
|
-
onLinkApply,
|
|
343
|
-
onLinkRemove,
|
|
344
|
-
...rest
|
|
345
|
-
}: ButtonBubbleMenuDefaultProps): react_jsx_runtime42.JSX.Element;
|
|
346
|
-
//#endregion
|
|
347
|
-
//#region src/ui/button-bubble-menu/edit-link.d.ts
|
|
348
|
-
interface ButtonBubbleMenuEditLinkProps extends Omit<React.ComponentProps<'button'>, 'type'> {}
|
|
349
|
-
declare function ButtonBubbleMenuEditLink({
|
|
350
|
-
className,
|
|
351
|
-
children,
|
|
352
|
-
onClick,
|
|
353
|
-
onMouseDown,
|
|
354
|
-
...rest
|
|
355
|
-
}: ButtonBubbleMenuEditLinkProps): react_jsx_runtime42.JSX.Element;
|
|
356
|
-
//#endregion
|
|
357
|
-
//#region src/ui/button-bubble-menu/form.d.ts
|
|
358
|
-
interface ButtonBubbleMenuFormProps {
|
|
359
|
-
className?: string;
|
|
360
|
-
validateUrl?: (value: string) => string | null;
|
|
361
|
-
onLinkApply?: (href: string) => void;
|
|
362
|
-
onLinkRemove?: () => void;
|
|
363
|
-
}
|
|
364
|
-
declare function ButtonBubbleMenuForm({
|
|
365
|
-
className,
|
|
366
|
-
validateUrl,
|
|
367
|
-
onLinkApply,
|
|
368
|
-
onLinkRemove
|
|
369
|
-
}: ButtonBubbleMenuFormProps): react_jsx_runtime42.JSX.Element | null;
|
|
370
|
-
//#endregion
|
|
371
|
-
//#region src/ui/button-bubble-menu/root.d.ts
|
|
372
|
-
interface ButtonBubbleMenuRootProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
373
|
-
/** Called when the bubble menu hides */
|
|
374
|
-
onHide?: () => void;
|
|
375
|
-
/** Placement relative to cursor (default: 'top') */
|
|
376
|
-
placement?: 'top' | 'bottom';
|
|
377
|
-
/** Offset from cursor in px (default: 8) */
|
|
378
|
-
offset?: number;
|
|
379
|
-
children: React.ReactNode;
|
|
380
|
-
}
|
|
381
|
-
declare function ButtonBubbleMenuRoot({
|
|
382
|
-
onHide,
|
|
383
|
-
placement,
|
|
384
|
-
offset,
|
|
385
|
-
className,
|
|
386
|
-
children,
|
|
387
|
-
...rest
|
|
388
|
-
}: ButtonBubbleMenuRootProps): react_jsx_runtime42.JSX.Element | null;
|
|
389
|
-
//#endregion
|
|
390
|
-
//#region src/ui/button-bubble-menu/toolbar.d.ts
|
|
391
|
-
interface ButtonBubbleMenuToolbarProps extends React.ComponentProps<'div'> {}
|
|
392
|
-
declare function ButtonBubbleMenuToolbar({
|
|
393
|
-
children,
|
|
394
|
-
...rest
|
|
395
|
-
}: ButtonBubbleMenuToolbarProps): react_jsx_runtime42.JSX.Element | null;
|
|
396
|
-
//#endregion
|
|
397
|
-
//#region src/ui/button-bubble-menu/unlink.d.ts
|
|
398
|
-
interface ButtonBubbleMenuUnlinkProps extends Omit<React.ComponentProps<'button'>, 'type'> {
|
|
399
|
-
onLinkRemove?: () => void;
|
|
400
|
-
}
|
|
401
|
-
declare function ButtonBubbleMenuUnlink({
|
|
402
|
-
className,
|
|
403
|
-
children,
|
|
404
|
-
onClick,
|
|
405
|
-
onMouseDown,
|
|
406
|
-
onLinkRemove,
|
|
407
|
-
...rest
|
|
408
|
-
}: ButtonBubbleMenuUnlinkProps): react_jsx_runtime42.JSX.Element;
|
|
409
|
-
//#endregion
|
|
410
|
-
//#region src/ui/button-bubble-menu/context.d.ts
|
|
411
|
-
interface ButtonBubbleMenuContextValue {
|
|
412
|
-
editor: Editor;
|
|
413
|
-
buttonHref: string;
|
|
414
|
-
isEditing: boolean;
|
|
415
|
-
setIsEditing: (value: boolean) => void;
|
|
416
|
-
}
|
|
417
|
-
declare function useButtonBubbleMenuContext(): ButtonBubbleMenuContextValue;
|
|
418
|
-
//#endregion
|
|
419
|
-
//#region src/ui/button-bubble-menu/index.d.ts
|
|
420
|
-
declare const ButtonBubbleMenu: {
|
|
421
|
-
readonly Root: typeof ButtonBubbleMenuRoot;
|
|
422
|
-
readonly Toolbar: typeof ButtonBubbleMenuToolbar;
|
|
423
|
-
readonly EditLink: typeof ButtonBubbleMenuEditLink;
|
|
424
|
-
readonly Unlink: typeof ButtonBubbleMenuUnlink;
|
|
425
|
-
readonly Form: typeof ButtonBubbleMenuForm;
|
|
426
|
-
readonly Default: typeof ButtonBubbleMenuDefault;
|
|
515
|
+
readonly ButtonToolbar: typeof BubbleMenuButtonToolbar;
|
|
516
|
+
readonly ButtonEditLink: typeof BubbleMenuButtonEditLink;
|
|
517
|
+
readonly ButtonUnlink: typeof BubbleMenuButtonUnlink;
|
|
518
|
+
readonly ButtonForm: typeof BubbleMenuButtonForm;
|
|
519
|
+
readonly ButtonDefault: typeof BubbleMenuButtonDefault;
|
|
520
|
+
readonly LinkToolbar: typeof BubbleMenuLinkToolbar;
|
|
521
|
+
readonly LinkEditLink: typeof BubbleMenuLinkEditLink;
|
|
522
|
+
readonly LinkUnlink: typeof BubbleMenuLinkUnlink;
|
|
523
|
+
readonly LinkOpenLink: typeof BubbleMenuLinkOpenLink;
|
|
524
|
+
readonly LinkForm: typeof BubbleMenuLinkForm;
|
|
525
|
+
readonly LinkDefault: typeof BubbleMenuLinkDefault;
|
|
526
|
+
readonly ImageToolbar: typeof BubbleMenuImageToolbar;
|
|
527
|
+
readonly ImageEditLink: typeof BubbleMenuImageEditLink;
|
|
528
|
+
readonly ImageDefault: typeof BubbleMenuImageDefault;
|
|
427
529
|
};
|
|
428
530
|
//#endregion
|
|
429
531
|
//#region src/ui/icons/align-center.d.ts
|
|
@@ -435,7 +537,7 @@ declare function AlignCenterIcon({
|
|
|
435
537
|
width,
|
|
436
538
|
height,
|
|
437
539
|
...props
|
|
438
|
-
}: IconProps$28):
|
|
540
|
+
}: IconProps$28): react_jsx_runtime7.JSX.Element;
|
|
439
541
|
//#endregion
|
|
440
542
|
//#region src/ui/icons/align-left.d.ts
|
|
441
543
|
interface IconProps$27 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -446,7 +548,7 @@ declare function AlignLeftIcon({
|
|
|
446
548
|
width,
|
|
447
549
|
height,
|
|
448
550
|
...props
|
|
449
|
-
}: IconProps$27):
|
|
551
|
+
}: IconProps$27): react_jsx_runtime7.JSX.Element;
|
|
450
552
|
//#endregion
|
|
451
553
|
//#region src/ui/icons/align-right.d.ts
|
|
452
554
|
interface IconProps$26 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -457,7 +559,7 @@ declare function AlignRightIcon({
|
|
|
457
559
|
width,
|
|
458
560
|
height,
|
|
459
561
|
...props
|
|
460
|
-
}: IconProps$26):
|
|
562
|
+
}: IconProps$26): react_jsx_runtime7.JSX.Element;
|
|
461
563
|
//#endregion
|
|
462
564
|
//#region src/ui/icons/bold.d.ts
|
|
463
565
|
interface IconProps$25 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -468,7 +570,7 @@ declare function BoldIcon({
|
|
|
468
570
|
width,
|
|
469
571
|
height,
|
|
470
572
|
...props
|
|
471
|
-
}: IconProps$25):
|
|
573
|
+
}: IconProps$25): react_jsx_runtime7.JSX.Element;
|
|
472
574
|
//#endregion
|
|
473
575
|
//#region src/ui/icons/case-upper.d.ts
|
|
474
576
|
interface IconProps$24 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -479,7 +581,7 @@ declare function CaseUpperIcon({
|
|
|
479
581
|
width,
|
|
480
582
|
height,
|
|
481
583
|
...props
|
|
482
|
-
}: IconProps$24):
|
|
584
|
+
}: IconProps$24): react_jsx_runtime7.JSX.Element;
|
|
483
585
|
//#endregion
|
|
484
586
|
//#region src/ui/icons/check.d.ts
|
|
485
587
|
interface IconProps$23 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -490,7 +592,7 @@ declare function Check({
|
|
|
490
592
|
width,
|
|
491
593
|
height,
|
|
492
594
|
...props
|
|
493
|
-
}: IconProps$23):
|
|
595
|
+
}: IconProps$23): react_jsx_runtime7.JSX.Element;
|
|
494
596
|
//#endregion
|
|
495
597
|
//#region src/ui/icons/chevron-down.d.ts
|
|
496
598
|
interface IconProps$22 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -501,7 +603,7 @@ declare function ChevronDown({
|
|
|
501
603
|
width,
|
|
502
604
|
height,
|
|
503
605
|
...props
|
|
504
|
-
}: IconProps$22):
|
|
606
|
+
}: IconProps$22): react_jsx_runtime7.JSX.Element;
|
|
505
607
|
//#endregion
|
|
506
608
|
//#region src/ui/icons/code.d.ts
|
|
507
609
|
interface IconProps$21 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -512,7 +614,7 @@ declare function CodeIcon({
|
|
|
512
614
|
width,
|
|
513
615
|
height,
|
|
514
616
|
...props
|
|
515
|
-
}: IconProps$21):
|
|
617
|
+
}: IconProps$21): react_jsx_runtime7.JSX.Element;
|
|
516
618
|
declare const Code: typeof CodeIcon;
|
|
517
619
|
//#endregion
|
|
518
620
|
//#region src/ui/icons/columns-2.d.ts
|
|
@@ -524,7 +626,7 @@ declare function Columns2({
|
|
|
524
626
|
width,
|
|
525
627
|
height,
|
|
526
628
|
...props
|
|
527
|
-
}: IconProps$20):
|
|
629
|
+
}: IconProps$20): react_jsx_runtime7.JSX.Element;
|
|
528
630
|
//#endregion
|
|
529
631
|
//#region src/ui/icons/columns-3.d.ts
|
|
530
632
|
interface IconProps$19 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -535,7 +637,7 @@ declare function Columns3({
|
|
|
535
637
|
width,
|
|
536
638
|
height,
|
|
537
639
|
...props
|
|
538
|
-
}: IconProps$19):
|
|
640
|
+
}: IconProps$19): react_jsx_runtime7.JSX.Element;
|
|
539
641
|
//#endregion
|
|
540
642
|
//#region src/ui/icons/columns-4.d.ts
|
|
541
643
|
interface IconProps$18 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -546,7 +648,7 @@ declare function Columns4({
|
|
|
546
648
|
width,
|
|
547
649
|
height,
|
|
548
650
|
...props
|
|
549
|
-
}: IconProps$18):
|
|
651
|
+
}: IconProps$18): react_jsx_runtime7.JSX.Element;
|
|
550
652
|
//#endregion
|
|
551
653
|
//#region src/ui/icons/external-link.d.ts
|
|
552
654
|
interface IconProps$17 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -557,7 +659,7 @@ declare function ExternalLinkIcon({
|
|
|
557
659
|
width,
|
|
558
660
|
height,
|
|
559
661
|
...props
|
|
560
|
-
}: IconProps$17):
|
|
662
|
+
}: IconProps$17): react_jsx_runtime7.JSX.Element;
|
|
561
663
|
//#endregion
|
|
562
664
|
//#region src/ui/icons/heading-1.d.ts
|
|
563
665
|
interface IconProps$16 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -568,7 +670,7 @@ declare function Heading1({
|
|
|
568
670
|
width,
|
|
569
671
|
height,
|
|
570
672
|
...props
|
|
571
|
-
}: IconProps$16):
|
|
673
|
+
}: IconProps$16): react_jsx_runtime7.JSX.Element;
|
|
572
674
|
//#endregion
|
|
573
675
|
//#region src/ui/icons/heading-2.d.ts
|
|
574
676
|
interface IconProps$15 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -579,7 +681,7 @@ declare function Heading2({
|
|
|
579
681
|
width,
|
|
580
682
|
height,
|
|
581
683
|
...props
|
|
582
|
-
}: IconProps$15):
|
|
684
|
+
}: IconProps$15): react_jsx_runtime7.JSX.Element;
|
|
583
685
|
//#endregion
|
|
584
686
|
//#region src/ui/icons/heading-3.d.ts
|
|
585
687
|
interface IconProps$14 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -590,7 +692,7 @@ declare function Heading3({
|
|
|
590
692
|
width,
|
|
591
693
|
height,
|
|
592
694
|
...props
|
|
593
|
-
}: IconProps$14):
|
|
695
|
+
}: IconProps$14): react_jsx_runtime7.JSX.Element;
|
|
594
696
|
//#endregion
|
|
595
697
|
//#region src/ui/icons/italic.d.ts
|
|
596
698
|
interface IconProps$13 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -601,7 +703,7 @@ declare function ItalicIcon({
|
|
|
601
703
|
width,
|
|
602
704
|
height,
|
|
603
705
|
...props
|
|
604
|
-
}: IconProps$13):
|
|
706
|
+
}: IconProps$13): react_jsx_runtime7.JSX.Element;
|
|
605
707
|
//#endregion
|
|
606
708
|
//#region src/ui/icons/link.d.ts
|
|
607
709
|
interface IconProps$12 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -612,7 +714,7 @@ declare function LinkIcon({
|
|
|
612
714
|
width,
|
|
613
715
|
height,
|
|
614
716
|
...props
|
|
615
|
-
}: IconProps$12):
|
|
717
|
+
}: IconProps$12): react_jsx_runtime7.JSX.Element;
|
|
616
718
|
//#endregion
|
|
617
719
|
//#region src/ui/icons/list.d.ts
|
|
618
720
|
interface IconProps$11 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -623,7 +725,7 @@ declare function List({
|
|
|
623
725
|
width,
|
|
624
726
|
height,
|
|
625
727
|
...props
|
|
626
|
-
}: IconProps$11):
|
|
728
|
+
}: IconProps$11): react_jsx_runtime7.JSX.Element;
|
|
627
729
|
//#endregion
|
|
628
730
|
//#region src/ui/icons/list-ordered.d.ts
|
|
629
731
|
interface IconProps$10 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -634,7 +736,7 @@ declare function ListOrdered({
|
|
|
634
736
|
width,
|
|
635
737
|
height,
|
|
636
738
|
...props
|
|
637
|
-
}: IconProps$10):
|
|
739
|
+
}: IconProps$10): react_jsx_runtime7.JSX.Element;
|
|
638
740
|
//#endregion
|
|
639
741
|
//#region src/ui/icons/mouse-pointer.d.ts
|
|
640
742
|
interface IconProps$9 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -645,7 +747,7 @@ declare function MousePointer({
|
|
|
645
747
|
width,
|
|
646
748
|
height,
|
|
647
749
|
...props
|
|
648
|
-
}: IconProps$9):
|
|
750
|
+
}: IconProps$9): react_jsx_runtime7.JSX.Element;
|
|
649
751
|
//#endregion
|
|
650
752
|
//#region src/ui/icons/pencil.d.ts
|
|
651
753
|
interface IconProps$8 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -656,7 +758,7 @@ declare function PencilIcon({
|
|
|
656
758
|
width,
|
|
657
759
|
height,
|
|
658
760
|
...props
|
|
659
|
-
}: IconProps$8):
|
|
761
|
+
}: IconProps$8): react_jsx_runtime7.JSX.Element;
|
|
660
762
|
//#endregion
|
|
661
763
|
//#region src/ui/icons/rows-2.d.ts
|
|
662
764
|
interface IconProps$7 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -667,7 +769,7 @@ declare function Rows2({
|
|
|
667
769
|
width,
|
|
668
770
|
height,
|
|
669
771
|
...props
|
|
670
|
-
}: IconProps$7):
|
|
772
|
+
}: IconProps$7): react_jsx_runtime7.JSX.Element;
|
|
671
773
|
//#endregion
|
|
672
774
|
//#region src/ui/icons/split-square-vertical.d.ts
|
|
673
775
|
interface IconProps$6 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -678,7 +780,7 @@ declare function SplitSquareVertical({
|
|
|
678
780
|
width,
|
|
679
781
|
height,
|
|
680
782
|
...props
|
|
681
|
-
}: IconProps$6):
|
|
783
|
+
}: IconProps$6): react_jsx_runtime7.JSX.Element;
|
|
682
784
|
//#endregion
|
|
683
785
|
//#region src/ui/icons/square-code.d.ts
|
|
684
786
|
interface IconProps$5 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -689,7 +791,7 @@ declare function SquareCode({
|
|
|
689
791
|
width,
|
|
690
792
|
height,
|
|
691
793
|
...props
|
|
692
|
-
}: IconProps$5):
|
|
794
|
+
}: IconProps$5): react_jsx_runtime7.JSX.Element;
|
|
693
795
|
//#endregion
|
|
694
796
|
//#region src/ui/icons/strikethrough.d.ts
|
|
695
797
|
interface IconProps$4 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -700,7 +802,7 @@ declare function StrikethroughIcon({
|
|
|
700
802
|
width,
|
|
701
803
|
height,
|
|
702
804
|
...props
|
|
703
|
-
}: IconProps$4):
|
|
805
|
+
}: IconProps$4): react_jsx_runtime7.JSX.Element;
|
|
704
806
|
//#endregion
|
|
705
807
|
//#region src/ui/icons/text.d.ts
|
|
706
808
|
interface IconProps$3 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -711,7 +813,7 @@ declare function TextIcon({
|
|
|
711
813
|
width,
|
|
712
814
|
height,
|
|
713
815
|
...props
|
|
714
|
-
}: IconProps$3):
|
|
816
|
+
}: IconProps$3): react_jsx_runtime7.JSX.Element;
|
|
715
817
|
declare const Text: typeof TextIcon;
|
|
716
818
|
//#endregion
|
|
717
819
|
//#region src/ui/icons/text-quote.d.ts
|
|
@@ -723,7 +825,7 @@ declare function TextQuote({
|
|
|
723
825
|
width,
|
|
724
826
|
height,
|
|
725
827
|
...props
|
|
726
|
-
}: IconProps$2):
|
|
828
|
+
}: IconProps$2): react_jsx_runtime7.JSX.Element;
|
|
727
829
|
//#endregion
|
|
728
830
|
//#region src/ui/icons/underline.d.ts
|
|
729
831
|
interface IconProps$1 extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -734,7 +836,7 @@ declare function UnderlineIcon({
|
|
|
734
836
|
width,
|
|
735
837
|
height,
|
|
736
838
|
...props
|
|
737
|
-
}: IconProps$1):
|
|
839
|
+
}: IconProps$1): react_jsx_runtime7.JSX.Element;
|
|
738
840
|
//#endregion
|
|
739
841
|
//#region src/ui/icons/unlink.d.ts
|
|
740
842
|
interface IconProps extends React.SVGAttributes<SVGSVGElement> {
|
|
@@ -745,193 +847,7 @@ declare function UnlinkIcon({
|
|
|
745
847
|
width,
|
|
746
848
|
height,
|
|
747
849
|
...props
|
|
748
|
-
}: IconProps):
|
|
749
|
-
//#endregion
|
|
750
|
-
//#region src/ui/image-bubble-menu/default.d.ts
|
|
751
|
-
type ExcludableItem$1 = 'edit-link';
|
|
752
|
-
interface ImageBubbleMenuDefaultProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
753
|
-
excludeItems?: ExcludableItem$1[];
|
|
754
|
-
placement?: 'top' | 'bottom';
|
|
755
|
-
offset?: number;
|
|
756
|
-
onHide?: () => void;
|
|
757
|
-
}
|
|
758
|
-
declare function ImageBubbleMenuDefault({
|
|
759
|
-
excludeItems,
|
|
760
|
-
placement,
|
|
761
|
-
offset,
|
|
762
|
-
onHide,
|
|
763
|
-
className,
|
|
764
|
-
...rest
|
|
765
|
-
}: ImageBubbleMenuDefaultProps): react_jsx_runtime42.JSX.Element;
|
|
766
|
-
//#endregion
|
|
767
|
-
//#region src/ui/image-bubble-menu/edit-link.d.ts
|
|
768
|
-
interface ImageBubbleMenuEditLinkProps extends Omit<React.ComponentProps<'button'>, 'type'> {}
|
|
769
|
-
declare function ImageBubbleMenuEditLink({
|
|
770
|
-
className,
|
|
771
|
-
children,
|
|
772
|
-
onClick,
|
|
773
|
-
onMouseDown,
|
|
774
|
-
...rest
|
|
775
|
-
}: ImageBubbleMenuEditLinkProps): react_jsx_runtime42.JSX.Element;
|
|
776
|
-
//#endregion
|
|
777
|
-
//#region src/ui/image-bubble-menu/root.d.ts
|
|
778
|
-
interface ImageBubbleMenuRootProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
779
|
-
/** Called when the bubble menu hides */
|
|
780
|
-
onHide?: () => void;
|
|
781
|
-
/** Placement relative to cursor (default: 'top') */
|
|
782
|
-
placement?: 'top' | 'bottom';
|
|
783
|
-
/** Offset from cursor in px (default: 8) */
|
|
784
|
-
offset?: number;
|
|
785
|
-
children: React.ReactNode;
|
|
786
|
-
}
|
|
787
|
-
declare function ImageBubbleMenuRoot({
|
|
788
|
-
onHide,
|
|
789
|
-
placement,
|
|
790
|
-
offset,
|
|
791
|
-
className,
|
|
792
|
-
children,
|
|
793
|
-
...rest
|
|
794
|
-
}: ImageBubbleMenuRootProps): react_jsx_runtime42.JSX.Element | null;
|
|
795
|
-
//#endregion
|
|
796
|
-
//#region src/ui/image-bubble-menu/toolbar.d.ts
|
|
797
|
-
interface ImageBubbleMenuToolbarProps extends React.ComponentProps<'div'> {}
|
|
798
|
-
declare function ImageBubbleMenuToolbar({
|
|
799
|
-
children,
|
|
800
|
-
...rest
|
|
801
|
-
}: ImageBubbleMenuToolbarProps): react_jsx_runtime42.JSX.Element | null;
|
|
802
|
-
//#endregion
|
|
803
|
-
//#region src/ui/image-bubble-menu/context.d.ts
|
|
804
|
-
interface ImageBubbleMenuContextValue {
|
|
805
|
-
editor: Editor;
|
|
806
|
-
isEditing: boolean;
|
|
807
|
-
setIsEditing: (value: boolean) => void;
|
|
808
|
-
}
|
|
809
|
-
declare function useImageBubbleMenuContext(): ImageBubbleMenuContextValue;
|
|
810
|
-
//#endregion
|
|
811
|
-
//#region src/ui/image-bubble-menu/index.d.ts
|
|
812
|
-
declare const ImageBubbleMenu: {
|
|
813
|
-
readonly Root: typeof ImageBubbleMenuRoot;
|
|
814
|
-
readonly Toolbar: typeof ImageBubbleMenuToolbar;
|
|
815
|
-
readonly EditLink: typeof ImageBubbleMenuEditLink;
|
|
816
|
-
readonly Default: typeof ImageBubbleMenuDefault;
|
|
817
|
-
};
|
|
818
|
-
//#endregion
|
|
819
|
-
//#region src/ui/link-bubble-menu/default.d.ts
|
|
820
|
-
type ExcludableItem = 'edit-link' | 'open-link' | 'unlink';
|
|
821
|
-
interface LinkBubbleMenuDefaultProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
822
|
-
excludeItems?: ExcludableItem[];
|
|
823
|
-
placement?: 'top' | 'bottom';
|
|
824
|
-
offset?: number;
|
|
825
|
-
onHide?: () => void;
|
|
826
|
-
validateUrl?: (value: string) => string | null;
|
|
827
|
-
onLinkApply?: (href: string) => void;
|
|
828
|
-
onLinkRemove?: () => void;
|
|
829
|
-
}
|
|
830
|
-
declare function LinkBubbleMenuDefault({
|
|
831
|
-
excludeItems,
|
|
832
|
-
placement,
|
|
833
|
-
offset,
|
|
834
|
-
onHide,
|
|
835
|
-
className,
|
|
836
|
-
validateUrl,
|
|
837
|
-
onLinkApply,
|
|
838
|
-
onLinkRemove,
|
|
839
|
-
...rest
|
|
840
|
-
}: LinkBubbleMenuDefaultProps): react_jsx_runtime42.JSX.Element;
|
|
841
|
-
//#endregion
|
|
842
|
-
//#region src/ui/link-bubble-menu/edit-link.d.ts
|
|
843
|
-
interface LinkBubbleMenuEditLinkProps extends Omit<React.ComponentProps<'button'>, 'type'> {}
|
|
844
|
-
declare function LinkBubbleMenuEditLink({
|
|
845
|
-
className,
|
|
846
|
-
children,
|
|
847
|
-
onClick,
|
|
848
|
-
onMouseDown,
|
|
849
|
-
...rest
|
|
850
|
-
}: LinkBubbleMenuEditLinkProps): react_jsx_runtime42.JSX.Element;
|
|
851
|
-
//#endregion
|
|
852
|
-
//#region src/ui/link-bubble-menu/form.d.ts
|
|
853
|
-
interface LinkBubbleMenuFormProps {
|
|
854
|
-
className?: string;
|
|
855
|
-
/** Custom URL validator (default: getUrlFromString) */
|
|
856
|
-
validateUrl?: (value: string) => string | null;
|
|
857
|
-
/** Called after link is applied */
|
|
858
|
-
onLinkApply?: (href: string) => void;
|
|
859
|
-
/** Called after link is removed */
|
|
860
|
-
onLinkRemove?: () => void;
|
|
861
|
-
/** Extra content inside the form (e.g. a variables dropdown slot) */
|
|
862
|
-
children?: React.ReactNode;
|
|
863
|
-
}
|
|
864
|
-
declare function LinkBubbleMenuForm({
|
|
865
|
-
className,
|
|
866
|
-
validateUrl,
|
|
867
|
-
onLinkApply,
|
|
868
|
-
onLinkRemove,
|
|
869
|
-
children
|
|
870
|
-
}: LinkBubbleMenuFormProps): react_jsx_runtime42.JSX.Element | null;
|
|
871
|
-
//#endregion
|
|
872
|
-
//#region src/ui/link-bubble-menu/open-link.d.ts
|
|
873
|
-
interface LinkBubbleMenuOpenLinkProps extends Omit<React.ComponentProps<'a'>, 'href' | 'target' | 'rel'> {}
|
|
874
|
-
declare function LinkBubbleMenuOpenLink({
|
|
875
|
-
className,
|
|
876
|
-
children,
|
|
877
|
-
...rest
|
|
878
|
-
}: LinkBubbleMenuOpenLinkProps): react_jsx_runtime42.JSX.Element;
|
|
879
|
-
//#endregion
|
|
880
|
-
//#region src/ui/link-bubble-menu/root.d.ts
|
|
881
|
-
interface LinkBubbleMenuRootProps extends Omit<React.ComponentPropsWithoutRef<'div'>, 'children'> {
|
|
882
|
-
/** Called when the bubble menu hides */
|
|
883
|
-
onHide?: () => void;
|
|
884
|
-
/** Placement relative to cursor (default: 'top') */
|
|
885
|
-
placement?: 'top' | 'bottom';
|
|
886
|
-
/** Offset from cursor in px (default: 8) */
|
|
887
|
-
offset?: number;
|
|
888
|
-
children: React.ReactNode;
|
|
889
|
-
}
|
|
890
|
-
declare function LinkBubbleMenuRoot({
|
|
891
|
-
onHide,
|
|
892
|
-
placement,
|
|
893
|
-
offset,
|
|
894
|
-
className,
|
|
895
|
-
children,
|
|
896
|
-
...rest
|
|
897
|
-
}: LinkBubbleMenuRootProps): react_jsx_runtime42.JSX.Element | null;
|
|
898
|
-
//#endregion
|
|
899
|
-
//#region src/ui/link-bubble-menu/toolbar.d.ts
|
|
900
|
-
interface LinkBubbleMenuToolbarProps extends React.ComponentProps<'div'> {}
|
|
901
|
-
declare function LinkBubbleMenuToolbar({
|
|
902
|
-
children,
|
|
903
|
-
...rest
|
|
904
|
-
}: LinkBubbleMenuToolbarProps): react_jsx_runtime42.JSX.Element | null;
|
|
905
|
-
//#endregion
|
|
906
|
-
//#region src/ui/link-bubble-menu/unlink.d.ts
|
|
907
|
-
interface LinkBubbleMenuUnlinkProps extends Omit<React.ComponentProps<'button'>, 'type'> {}
|
|
908
|
-
declare function LinkBubbleMenuUnlink({
|
|
909
|
-
className,
|
|
910
|
-
children,
|
|
911
|
-
onClick,
|
|
912
|
-
onMouseDown,
|
|
913
|
-
...rest
|
|
914
|
-
}: LinkBubbleMenuUnlinkProps): react_jsx_runtime42.JSX.Element;
|
|
915
|
-
//#endregion
|
|
916
|
-
//#region src/ui/link-bubble-menu/context.d.ts
|
|
917
|
-
interface LinkBubbleMenuContextValue {
|
|
918
|
-
editor: Editor;
|
|
919
|
-
linkHref: string;
|
|
920
|
-
isEditing: boolean;
|
|
921
|
-
setIsEditing: (value: boolean) => void;
|
|
922
|
-
}
|
|
923
|
-
declare function useLinkBubbleMenuContext(): LinkBubbleMenuContextValue;
|
|
924
|
-
//#endregion
|
|
925
|
-
//#region src/ui/link-bubble-menu/index.d.ts
|
|
926
|
-
declare const LinkBubbleMenu: {
|
|
927
|
-
readonly Root: typeof LinkBubbleMenuRoot;
|
|
928
|
-
readonly Toolbar: typeof LinkBubbleMenuToolbar;
|
|
929
|
-
readonly Form: typeof LinkBubbleMenuForm;
|
|
930
|
-
readonly EditLink: typeof LinkBubbleMenuEditLink;
|
|
931
|
-
readonly Unlink: typeof LinkBubbleMenuUnlink;
|
|
932
|
-
readonly OpenLink: typeof LinkBubbleMenuOpenLink;
|
|
933
|
-
readonly Default: typeof LinkBubbleMenuDefault;
|
|
934
|
-
};
|
|
850
|
+
}: IconProps): react_jsx_runtime7.JSX.Element;
|
|
935
851
|
//#endregion
|
|
936
852
|
//#region src/ui/slash-command/types.d.ts
|
|
937
853
|
type SlashCommandCategory = string;
|
|
@@ -977,7 +893,7 @@ declare function CommandList({
|
|
|
977
893
|
query,
|
|
978
894
|
selectedIndex,
|
|
979
895
|
onSelect
|
|
980
|
-
}: CommandListProps):
|
|
896
|
+
}: CommandListProps): react_jsx_runtime7.JSX.Element;
|
|
981
897
|
//#endregion
|
|
982
898
|
//#region src/ui/slash-command/root.d.ts
|
|
983
899
|
declare function SlashCommandRoot({
|
|
@@ -1019,5 +935,5 @@ declare const SlashCommand: {
|
|
|
1019
935
|
readonly CommandList: typeof CommandList;
|
|
1020
936
|
};
|
|
1021
937
|
//#endregion
|
|
1022
|
-
export { AlignCenterIcon, AlignLeftIcon, AlignRightIcon, BULLET_LIST, BUTTON, BoldIcon, BubbleMenu, BubbleMenuAlignCenter, BubbleMenuAlignLeft, BubbleMenuAlignRight, BubbleMenuBold,
|
|
938
|
+
export { AlignCenterIcon, AlignLeftIcon, AlignRightIcon, BULLET_LIST, BUTTON, BoldIcon, BubbleMenu, BubbleMenuAlignCenter, BubbleMenuAlignLeft, BubbleMenuAlignRight, BubbleMenuBold, BubbleMenuButtonDefault, type BubbleMenuButtonDefaultProps, BubbleMenuButtonEditLink, type BubbleMenuButtonEditLinkProps, BubbleMenuButtonForm, type BubbleMenuButtonFormProps, BubbleMenuButtonToolbar, type BubbleMenuButtonToolbarProps, BubbleMenuButtonUnlink, type BubbleMenuButtonUnlinkProps, BubbleMenuCode, type BubbleMenuContextValue, BubbleMenuDefault, type BubbleMenuDefaultProps, BubbleMenuImageDefault, type BubbleMenuImageDefaultProps, BubbleMenuImageEditLink, type BubbleMenuImageEditLinkProps, BubbleMenuImageToolbar, type BubbleMenuImageToolbarProps, BubbleMenuItalic, BubbleMenuItem, BubbleMenuItemGroup, type BubbleMenuItemGroupProps, type BubbleMenuItemProps, BubbleMenuLinkDefault, type BubbleMenuLinkDefaultProps, BubbleMenuLinkEditLink, type BubbleMenuLinkEditLinkProps, BubbleMenuLinkForm, type BubbleMenuLinkFormProps, BubbleMenuLinkOpenLink, type BubbleMenuLinkOpenLinkProps, BubbleMenuLinkSelector, type BubbleMenuLinkSelectorProps, BubbleMenuLinkToolbar, type BubbleMenuLinkToolbarProps, BubbleMenuLinkUnlink, type BubbleMenuLinkUnlinkProps, BubbleMenuNodeSelector, type BubbleMenuNodeSelectorProps, BubbleMenuRoot, type BubbleMenuRootProps, BubbleMenuSeparator, type BubbleMenuSeparatorProps, BubbleMenuStrike, BubbleMenuUnderline, BubbleMenuUppercase, CODE, CaseUpperIcon, Check, ChevronDown, Code, CodeIcon, Columns2, Columns3, Columns4, CommandList, type CommandListProps, DIVIDER, ExternalLinkIcon, FOUR_COLUMNS, H1, H2, H3, Heading1, Heading2, Heading3, ItalicIcon, LinkIcon, List, ListOrdered, MousePointer, NUMBERED_LIST, NodeSelectorContent, type NodeSelectorContentProps, type NodeSelectorItem, NodeSelectorRoot, type NodeSelectorRootProps, NodeSelectorTrigger, type NodeSelectorTriggerProps, type NodeType, PencilIcon, type PreWiredItemProps, QUOTE, Rows2, SECTION, type SearchableItem, type ShouldShowFn, type ShouldShowParams, SlashCommand, type SlashCommandItem, type SlashCommandProps, type SlashCommandRenderProps, type SlashCommandRootProps, SplitSquareVertical, SquareCode, StrikethroughIcon, TEXT, THREE_COLUMNS, TWO_COLUMNS, Text, TextIcon, TextQuote, UnderlineIcon, UnlinkIcon, bubbleMenuTriggers, defaultSlashCommands, filterAndRankItems, isAtMaxColumnsDepth, isInsideNode, scoreItem, useBubbleMenuContext };
|
|
1023
939
|
//# sourceMappingURL=index.d.cts.map
|