@prosekit/react 0.4.0 → 0.4.2
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/_tsup-dts-rollup.d.ts +550 -550
- package/dist/prosekit-react-autocomplete.d.ts +8 -8
- package/dist/prosekit-react-block-handle.d.ts +6 -6
- package/dist/prosekit-react-inline-popover.d.ts +2 -2
- package/dist/prosekit-react-popover.d.ts +6 -6
- package/dist/prosekit-react-resizable.d.ts +4 -4
- package/dist/prosekit-react-table-handle.d.ts +14 -14
- package/dist/prosekit-react-tooltip.d.ts +6 -6
- package/dist/prosekit-react.d.ts +13 -13
- package/package.json +8 -8
@@ -1,550 +1,550 @@
|
|
1
|
-
import type { Attrs } from '@prosekit/pm/model';
|
2
|
-
import { AutocompleteEmptyElement } from '@prosekit/web/autocomplete';
|
3
|
-
import { AutocompleteEmptyEvents } from '@prosekit/web/autocomplete';
|
4
|
-
import { AutocompleteEmptyProps as AutocompleteEmptyProps_2 } from '@prosekit/web/autocomplete';
|
5
|
-
import { AutocompleteItemElement } from '@prosekit/web/autocomplete';
|
6
|
-
import { AutocompleteItemEvents } from '@prosekit/web/autocomplete';
|
7
|
-
import { AutocompleteItemProps as AutocompleteItemProps_2 } from '@prosekit/web/autocomplete';
|
8
|
-
import { AutocompleteListElement } from '@prosekit/web/autocomplete';
|
9
|
-
import { AutocompleteListEvents } from '@prosekit/web/autocomplete';
|
10
|
-
import { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/web/autocomplete';
|
11
|
-
import { AutocompletePopoverElement } from '@prosekit/web/autocomplete';
|
12
|
-
import { AutocompletePopoverEvents } from '@prosekit/web/autocomplete';
|
13
|
-
import { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/web/autocomplete';
|
14
|
-
import { BaseNodeViewOptions } from '@prosekit/core';
|
15
|
-
import { BlockHandleAddElement } from '@prosekit/web/block-handle';
|
16
|
-
import { BlockHandleAddEvents } from '@prosekit/web/block-handle';
|
17
|
-
import { BlockHandleAddProps as BlockHandleAddProps_2 } from '@prosekit/web/block-handle';
|
18
|
-
import { BlockHandleDraggableElement } from '@prosekit/web/block-handle';
|
19
|
-
import { BlockHandleDraggableEvents } from '@prosekit/web/block-handle';
|
20
|
-
import { BlockHandleDraggableProps as BlockHandleDraggableProps_2 } from '@prosekit/web/block-handle';
|
21
|
-
import { BlockHandlePopoverElement } from '@prosekit/web/block-handle';
|
22
|
-
import { BlockHandlePopoverEvents } from '@prosekit/web/block-handle';
|
23
|
-
import { BlockHandlePopoverProps as BlockHandlePopoverProps_2 } from '@prosekit/web/block-handle';
|
24
|
-
import { ComponentType } from 'react';
|
25
|
-
import type { Decoration } from '@prosekit/pm/view';
|
26
|
-
import type { DecorationSource } from '@prosekit/pm/view';
|
27
|
-
import { config as default_alias_1 } from '@prosekit/dev/config-vitest';
|
28
|
-
import { Editor } from '@prosekit/core';
|
29
|
-
import type { EditorState } from '@prosekit/pm/state';
|
30
|
-
import type { EditorView } from '@prosekit/pm/view';
|
31
|
-
import { Extension } from '@prosekit/core';
|
32
|
-
import { FC } from 'react';
|
33
|
-
import { ForwardRefExoticComponent } from 'react';
|
34
|
-
import { HTMLAttributes } from 'react';
|
35
|
-
import { InlinePopoverElement } from '@prosekit/web/inline-popover';
|
36
|
-
import { InlinePopoverEvents } from '@prosekit/web/inline-popover';
|
37
|
-
import { InlinePopoverProps as InlinePopoverProps_2 } from '@prosekit/web/inline-popover';
|
38
|
-
import { Keymap } from '@prosekit/core';
|
39
|
-
import { Options } from 'tsup';
|
40
|
-
import { PopoverContentElement } from '@prosekit/web/popover';
|
41
|
-
import { PopoverContentEvents } from '@prosekit/web/popover';
|
42
|
-
import { PopoverContentProps as PopoverContentProps_2 } from '@prosekit/web/popover';
|
43
|
-
import { PopoverRootElement } from '@prosekit/web/popover';
|
44
|
-
import { PopoverRootEvents } from '@prosekit/web/popover';
|
45
|
-
import { PopoverRootProps as PopoverRootProps_2 } from '@prosekit/web/popover';
|
46
|
-
import { PopoverTriggerElement } from '@prosekit/web/popover';
|
47
|
-
import { PopoverTriggerEvents } from '@prosekit/web/popover';
|
48
|
-
import { PopoverTriggerProps as PopoverTriggerProps_2 } from '@prosekit/web/popover';
|
49
|
-
import { Priority } from '@prosekit/core';
|
50
|
-
import type { ProseMirrorNode } from '@prosekit/pm/model';
|
51
|
-
import { Provider } from 'react';
|
52
|
-
import { ReactNode } from 'react';
|
53
|
-
import { RefAttributes } from 'react';
|
54
|
-
import { ResizableHandleElement } from '@prosekit/web/resizable';
|
55
|
-
import { ResizableHandleEvents } from '@prosekit/web/resizable';
|
56
|
-
import { ResizableHandleProps as ResizableHandleProps_2 } from '@prosekit/web/resizable';
|
57
|
-
import { ResizableRootElement } from '@prosekit/web/resizable';
|
58
|
-
import { ResizableRootEvents } from '@prosekit/web/resizable';
|
59
|
-
import { ResizableRootProps as ResizableRootProps_2 } from '@prosekit/web/resizable';
|
60
|
-
import { TableHandleColumnRootElement } from '@prosekit/web/table-handle';
|
61
|
-
import { TableHandleColumnRootEvents } from '@prosekit/web/table-handle';
|
62
|
-
import { TableHandleColumnRootProps as TableHandleColumnRootProps_2 } from '@prosekit/web/table-handle';
|
63
|
-
import { TableHandleColumnTriggerElement } from '@prosekit/web/table-handle';
|
64
|
-
import { TableHandleColumnTriggerEvents } from '@prosekit/web/table-handle';
|
65
|
-
import { TableHandleColumnTriggerProps as TableHandleColumnTriggerProps_2 } from '@prosekit/web/table-handle';
|
66
|
-
import { TableHandlePopoverContentElement } from '@prosekit/web/table-handle';
|
67
|
-
import { TableHandlePopoverContentEvents } from '@prosekit/web/table-handle';
|
68
|
-
import { TableHandlePopoverContentProps as TableHandlePopoverContentProps_2 } from '@prosekit/web/table-handle';
|
69
|
-
import { TableHandlePopoverItemElement } from '@prosekit/web/table-handle';
|
70
|
-
import { TableHandlePopoverItemEvents } from '@prosekit/web/table-handle';
|
71
|
-
import { TableHandlePopoverItemProps as TableHandlePopoverItemProps_2 } from '@prosekit/web/table-handle';
|
72
|
-
import { TableHandleRootElement } from '@prosekit/web/table-handle';
|
73
|
-
import { TableHandleRootEvents } from '@prosekit/web/table-handle';
|
74
|
-
import { TableHandleRootProps as TableHandleRootProps_2 } from '@prosekit/web/table-handle';
|
75
|
-
import { TableHandleRowRootElement } from '@prosekit/web/table-handle';
|
76
|
-
import { TableHandleRowRootEvents } from '@prosekit/web/table-handle';
|
77
|
-
import { TableHandleRowRootProps as TableHandleRowRootProps_2 } from '@prosekit/web/table-handle';
|
78
|
-
import { TableHandleRowTriggerElement } from '@prosekit/web/table-handle';
|
79
|
-
import { TableHandleRowTriggerEvents } from '@prosekit/web/table-handle';
|
80
|
-
import { TableHandleRowTriggerProps as TableHandleRowTriggerProps_2 } from '@prosekit/web/table-handle';
|
81
|
-
import { TooltipContentElement } from '@prosekit/web/tooltip';
|
82
|
-
import { TooltipContentEvents } from '@prosekit/web/tooltip';
|
83
|
-
import { TooltipContentProps as TooltipContentProps_2 } from '@prosekit/web/tooltip';
|
84
|
-
import { TooltipRootElement } from '@prosekit/web/tooltip';
|
85
|
-
import { TooltipRootEvents } from '@prosekit/web/tooltip';
|
86
|
-
import { TooltipRootProps as TooltipRootProps_2 } from '@prosekit/web/tooltip';
|
87
|
-
import { TooltipTriggerElement } from '@prosekit/web/tooltip';
|
88
|
-
import { TooltipTriggerEvents } from '@prosekit/web/tooltip';
|
89
|
-
import { TooltipTriggerProps as TooltipTriggerProps_2 } from '@prosekit/web/tooltip';
|
90
|
-
|
91
|
-
declare const AutocompleteEmpty: ForwardRefExoticComponent<AutocompleteEmptyProps & RefAttributes<AutocompleteEmptyElement> & HTMLAttributes<AutocompleteEmptyElement>>;
|
92
|
-
export { AutocompleteEmpty }
|
93
|
-
export { AutocompleteEmpty as AutocompleteEmpty_alias_1 }
|
94
|
-
|
95
|
-
/**
|
96
|
-
* Props for the {@link AutocompleteEmpty} component.
|
97
|
-
*/
|
98
|
-
declare interface AutocompleteEmptyProps extends Partial<CreateProps<AutocompleteEmptyProps_2, AutocompleteEmptyEvents>> {
|
99
|
-
}
|
100
|
-
export { AutocompleteEmptyProps }
|
101
|
-
export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
|
102
|
-
|
103
|
-
declare const AutocompleteItem: ForwardRefExoticComponent<AutocompleteItemProps & RefAttributes<AutocompleteItemElement> & HTMLAttributes<AutocompleteItemElement>>;
|
104
|
-
export { AutocompleteItem }
|
105
|
-
export { AutocompleteItem as AutocompleteItem_alias_1 }
|
106
|
-
|
107
|
-
/**
|
108
|
-
* Props for the {@link AutocompleteItem} component.
|
109
|
-
*/
|
110
|
-
declare interface AutocompleteItemProps extends Partial<CreateProps<AutocompleteItemProps_2, AutocompleteItemEvents>> {
|
111
|
-
}
|
112
|
-
export { AutocompleteItemProps }
|
113
|
-
export { AutocompleteItemProps as AutocompleteItemProps_alias_1 }
|
114
|
-
|
115
|
-
declare const AutocompleteList: ForwardRefExoticComponent<AutocompleteListProps & RefAttributes<AutocompleteListElement> & HTMLAttributes<AutocompleteListElement>>;
|
116
|
-
export { AutocompleteList }
|
117
|
-
export { AutocompleteList as AutocompleteList_alias_1 }
|
118
|
-
|
119
|
-
/**
|
120
|
-
* Props for the {@link AutocompleteList} component.
|
121
|
-
*/
|
122
|
-
declare interface AutocompleteListProps extends Partial<CreateProps<AutocompleteListProps_2, AutocompleteListEvents>> {
|
123
|
-
}
|
124
|
-
export { AutocompleteListProps }
|
125
|
-
export { AutocompleteListProps as AutocompleteListProps_alias_1 }
|
126
|
-
|
127
|
-
declare const AutocompletePopover: ForwardRefExoticComponent<AutocompletePopoverProps & RefAttributes<AutocompletePopoverElement> & HTMLAttributes<AutocompletePopoverElement>>;
|
128
|
-
export { AutocompletePopover }
|
129
|
-
export { AutocompletePopover as AutocompletePopover_alias_1 }
|
130
|
-
|
131
|
-
/**
|
132
|
-
* Props for the {@link AutocompletePopover} component.
|
133
|
-
*/
|
134
|
-
declare interface AutocompletePopoverProps extends Partial<CreateProps<AutocompletePopoverProps_2, AutocompletePopoverEvents>> {
|
135
|
-
}
|
136
|
-
export { AutocompletePopoverProps }
|
137
|
-
export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
|
138
|
-
|
139
|
-
declare const BlockHandleAdd: ForwardRefExoticComponent<BlockHandleAddProps & RefAttributes<BlockHandleAddElement> & HTMLAttributes<BlockHandleAddElement>>;
|
140
|
-
export { BlockHandleAdd }
|
141
|
-
export { BlockHandleAdd as BlockHandleAdd_alias_1 }
|
142
|
-
|
143
|
-
/**
|
144
|
-
* Props for the {@link BlockHandleAdd} component.
|
145
|
-
*/
|
146
|
-
declare interface BlockHandleAddProps extends Partial<CreateProps<BlockHandleAddProps_2, BlockHandleAddEvents>> {
|
147
|
-
}
|
148
|
-
export { BlockHandleAddProps }
|
149
|
-
export { BlockHandleAddProps as BlockHandleAddProps_alias_1 }
|
150
|
-
|
151
|
-
declare const BlockHandleDraggable: ForwardRefExoticComponent<BlockHandleDraggableProps & RefAttributes<BlockHandleDraggableElement> & HTMLAttributes<BlockHandleDraggableElement>>;
|
152
|
-
export { BlockHandleDraggable }
|
153
|
-
export { BlockHandleDraggable as BlockHandleDraggable_alias_1 }
|
154
|
-
|
155
|
-
/**
|
156
|
-
* Props for the {@link BlockHandleDraggable} component.
|
157
|
-
*/
|
158
|
-
declare interface BlockHandleDraggableProps extends Partial<CreateProps<BlockHandleDraggableProps_2, BlockHandleDraggableEvents>> {
|
159
|
-
}
|
160
|
-
export { BlockHandleDraggableProps }
|
161
|
-
export { BlockHandleDraggableProps as BlockHandleDraggableProps_alias_1 }
|
162
|
-
|
163
|
-
declare const BlockHandlePopover: ForwardRefExoticComponent<BlockHandlePopoverProps & RefAttributes<BlockHandlePopoverElement> & HTMLAttributes<BlockHandlePopoverElement>>;
|
164
|
-
export { BlockHandlePopover }
|
165
|
-
export { BlockHandlePopover as BlockHandlePopover_alias_1 }
|
166
|
-
|
167
|
-
/**
|
168
|
-
* Props for the {@link BlockHandlePopover} component.
|
169
|
-
*/
|
170
|
-
declare interface BlockHandlePopoverProps extends Partial<CreateProps<BlockHandlePopoverProps_2, BlockHandlePopoverEvents>> {
|
171
|
-
}
|
172
|
-
export { BlockHandlePopoverProps }
|
173
|
-
export { BlockHandlePopoverProps as BlockHandlePopoverProps_alias_1 }
|
174
|
-
|
175
|
-
export declare function createComponent<Props extends object, CustomElement extends HTMLElement>(tagName: string, displayName: string, propNames: string[], eventNames: string[]): ForwardRefExoticComponent<Partial<Props> & RefAttributes<CustomElement> & HTMLAttributes<CustomElement>>;
|
176
|
-
|
177
|
-
declare type CreateEventProps<Events extends {
|
178
|
-
[EventName in keyof Events]: CustomEvent;
|
179
|
-
}> = {
|
180
|
-
[EventName in keyof Events as `on${Capitalize<string & EventName>}`]: (event: EventName extends `${string}Change` ? Events[EventName]['detail'] : Events[EventName]) => void;
|
181
|
-
};
|
182
|
-
|
183
|
-
export declare type CreateProps<Props extends {
|
184
|
-
[PropName in keyof Props]: unknown;
|
185
|
-
}, Events extends {
|
186
|
-
[EventName in keyof Events]: CustomEvent;
|
187
|
-
}> = Props & CreateEventProps<Events>;
|
188
|
-
|
189
|
-
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
190
|
-
|
191
|
-
export { default_alias_1 }
|
192
|
-
|
193
|
-
/**
|
194
|
-
* Defines a node view using a React component.
|
195
|
-
*
|
196
|
-
* @public
|
197
|
-
*/
|
198
|
-
declare function defineReactNodeView(options: ReactNodeViewOptions): Extension;
|
199
|
-
export { defineReactNodeView }
|
200
|
-
export { defineReactNodeView as defineReactNodeView_alias_1 }
|
201
|
-
|
202
|
-
/**
|
203
|
-
* @internal
|
204
|
-
*/
|
205
|
-
export declare const EditorContextProvider: Provider<Editor<any> | null>;
|
206
|
-
|
207
|
-
declare const InlinePopover: ForwardRefExoticComponent<InlinePopoverProps & RefAttributes<InlinePopoverElement> & HTMLAttributes<InlinePopoverElement>>;
|
208
|
-
export { InlinePopover }
|
209
|
-
export { InlinePopover as InlinePopover_alias_1 }
|
210
|
-
|
211
|
-
/**
|
212
|
-
* Props for the {@link InlinePopover} component.
|
213
|
-
*/
|
214
|
-
declare interface InlinePopoverProps extends Partial<CreateProps<InlinePopoverProps_2, InlinePopoverEvents>> {
|
215
|
-
}
|
216
|
-
export { InlinePopoverProps }
|
217
|
-
export { InlinePopoverProps as InlinePopoverProps_alias_1 }
|
218
|
-
|
219
|
-
declare const PopoverContent: ForwardRefExoticComponent<PopoverContentProps & RefAttributes<PopoverContentElement> & HTMLAttributes<PopoverContentElement>>;
|
220
|
-
export { PopoverContent }
|
221
|
-
export { PopoverContent as PopoverContent_alias_1 }
|
222
|
-
|
223
|
-
/**
|
224
|
-
* Props for the {@link PopoverContent} component.
|
225
|
-
*/
|
226
|
-
declare interface PopoverContentProps extends Partial<CreateProps<PopoverContentProps_2, PopoverContentEvents>> {
|
227
|
-
}
|
228
|
-
export { PopoverContentProps }
|
229
|
-
export { PopoverContentProps as PopoverContentProps_alias_1 }
|
230
|
-
|
231
|
-
declare const PopoverRoot: ForwardRefExoticComponent<PopoverRootProps & RefAttributes<PopoverRootElement> & HTMLAttributes<PopoverRootElement>>;
|
232
|
-
export { PopoverRoot }
|
233
|
-
export { PopoverRoot as PopoverRoot_alias_1 }
|
234
|
-
|
235
|
-
/**
|
236
|
-
* Props for the {@link PopoverRoot} component.
|
237
|
-
*/
|
238
|
-
declare interface PopoverRootProps extends Partial<CreateProps<PopoverRootProps_2, PopoverRootEvents>> {
|
239
|
-
}
|
240
|
-
export { PopoverRootProps }
|
241
|
-
export { PopoverRootProps as PopoverRootProps_alias_1 }
|
242
|
-
|
243
|
-
declare const PopoverTrigger: ForwardRefExoticComponent<PopoverTriggerProps & RefAttributes<PopoverTriggerElement> & HTMLAttributes<PopoverTriggerElement>>;
|
244
|
-
export { PopoverTrigger }
|
245
|
-
export { PopoverTrigger as PopoverTrigger_alias_1 }
|
246
|
-
|
247
|
-
/**
|
248
|
-
* Props for the {@link PopoverTrigger} component.
|
249
|
-
*/
|
250
|
-
declare interface PopoverTriggerProps extends Partial<CreateProps<PopoverTriggerProps_2, PopoverTriggerEvents>> {
|
251
|
-
}
|
252
|
-
export { PopoverTriggerProps }
|
253
|
-
export { PopoverTriggerProps as PopoverTriggerProps_alias_1 }
|
254
|
-
|
255
|
-
/**
|
256
|
-
* @internal
|
257
|
-
*/
|
258
|
-
declare type PropsWithClassName<P = unknown> = P & {
|
259
|
-
className?: string | undefined;
|
260
|
-
};
|
261
|
-
export { PropsWithClassName }
|
262
|
-
export { PropsWithClassName as PropsWithClassName_alias_1 }
|
263
|
-
|
264
|
-
/**
|
265
|
-
* The root component for a ProseKit editor.
|
266
|
-
*
|
267
|
-
* @public
|
268
|
-
*/
|
269
|
-
declare const ProseKit: ComponentType<ProseKitProps>;
|
270
|
-
export { ProseKit }
|
271
|
-
export { ProseKit as ProseKit_alias_1 }
|
272
|
-
|
273
|
-
declare interface ProseKitProps {
|
274
|
-
editor: Editor;
|
275
|
-
children?: ReactNode;
|
276
|
-
}
|
277
|
-
export { ProseKitProps }
|
278
|
-
export { ProseKitProps as ProseKitProps_alias_1 }
|
279
|
-
|
280
|
-
/**
|
281
|
-
* @public
|
282
|
-
*/
|
283
|
-
declare type ReactNodeViewComponent = ComponentType<ReactNodeViewProps>;
|
284
|
-
export { ReactNodeViewComponent }
|
285
|
-
export { ReactNodeViewComponent as ReactNodeViewComponent_alias_1 }
|
286
|
-
|
287
|
-
/**
|
288
|
-
* Options for {@link defineReactNodeView}.
|
289
|
-
*
|
290
|
-
* @public
|
291
|
-
*/
|
292
|
-
declare interface ReactNodeViewOptions extends BaseNodeViewOptions {
|
293
|
-
/**
|
294
|
-
* The name of the node type.
|
295
|
-
*/
|
296
|
-
name: string;
|
297
|
-
/**
|
298
|
-
* The React component to render the node.
|
299
|
-
*/
|
300
|
-
component: ReactNodeViewComponent;
|
301
|
-
}
|
302
|
-
export { ReactNodeViewOptions }
|
303
|
-
export { ReactNodeViewOptions as ReactNodeViewOptions_alias_1 }
|
304
|
-
|
305
|
-
/**
|
306
|
-
* @public
|
307
|
-
*/
|
308
|
-
declare interface ReactNodeViewProps {
|
309
|
-
contentRef: (node: HTMLElement | null) => void;
|
310
|
-
view: EditorView;
|
311
|
-
getPos: () => number | undefined;
|
312
|
-
setAttrs: (attrs: Attrs) => void;
|
313
|
-
node: ProseMirrorNode;
|
314
|
-
selected: boolean;
|
315
|
-
decorations: readonly Decoration[];
|
316
|
-
innerDecorations: DecorationSource;
|
317
|
-
}
|
318
|
-
export { ReactNodeViewProps }
|
319
|
-
export { ReactNodeViewProps as ReactNodeViewProps_alias_1 }
|
320
|
-
|
321
|
-
/**
|
322
|
-
* @internal
|
323
|
-
*/
|
324
|
-
export declare const ReactViewsConsumer: FC;
|
325
|
-
|
326
|
-
declare const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & RefAttributes<ResizableHandleElement> & HTMLAttributes<ResizableHandleElement>>;
|
327
|
-
export { ResizableHandle }
|
328
|
-
export { ResizableHandle as ResizableHandle_alias_1 }
|
329
|
-
|
330
|
-
/**
|
331
|
-
* Props for the {@link ResizableHandle} component.
|
332
|
-
*/
|
333
|
-
declare interface ResizableHandleProps extends Partial<CreateProps<ResizableHandleProps_2, ResizableHandleEvents>> {
|
334
|
-
}
|
335
|
-
export { ResizableHandleProps }
|
336
|
-
export { ResizableHandleProps as ResizableHandleProps_alias_1 }
|
337
|
-
|
338
|
-
declare const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & RefAttributes<ResizableRootElement> & HTMLAttributes<ResizableRootElement>>;
|
339
|
-
export { ResizableRoot }
|
340
|
-
export { ResizableRoot as ResizableRoot_alias_1 }
|
341
|
-
|
342
|
-
/**
|
343
|
-
* Props for the {@link ResizableRoot} component.
|
344
|
-
*/
|
345
|
-
declare interface ResizableRootProps extends Partial<CreateProps<ResizableRootProps_2, ResizableRootEvents>> {
|
346
|
-
}
|
347
|
-
export { ResizableRootProps }
|
348
|
-
export { ResizableRootProps as ResizableRootProps_alias_1 }
|
349
|
-
|
350
|
-
declare const TableHandleColumnRoot: ForwardRefExoticComponent<TableHandleColumnRootProps & RefAttributes<TableHandleColumnRootElement> & HTMLAttributes<TableHandleColumnRootElement>>;
|
351
|
-
export { TableHandleColumnRoot }
|
352
|
-
export { TableHandleColumnRoot as TableHandleColumnRoot_alias_1 }
|
353
|
-
|
354
|
-
/**
|
355
|
-
* Props for the {@link TableHandleColumnRoot} component.
|
356
|
-
*/
|
357
|
-
declare interface TableHandleColumnRootProps extends Partial<CreateProps<TableHandleColumnRootProps_2, TableHandleColumnRootEvents>> {
|
358
|
-
}
|
359
|
-
export { TableHandleColumnRootProps }
|
360
|
-
export { TableHandleColumnRootProps as TableHandleColumnRootProps_alias_1 }
|
361
|
-
|
362
|
-
declare const TableHandleColumnTrigger: ForwardRefExoticComponent<TableHandleColumnTriggerProps & RefAttributes<TableHandleColumnTriggerElement> & HTMLAttributes<TableHandleColumnTriggerElement>>;
|
363
|
-
export { TableHandleColumnTrigger }
|
364
|
-
export { TableHandleColumnTrigger as TableHandleColumnTrigger_alias_1 }
|
365
|
-
|
366
|
-
/**
|
367
|
-
* Props for the {@link TableHandleColumnTrigger} component.
|
368
|
-
*/
|
369
|
-
declare interface TableHandleColumnTriggerProps extends Partial<CreateProps<TableHandleColumnTriggerProps_2, TableHandleColumnTriggerEvents>> {
|
370
|
-
}
|
371
|
-
export { TableHandleColumnTriggerProps }
|
372
|
-
export { TableHandleColumnTriggerProps as TableHandleColumnTriggerProps_alias_1 }
|
373
|
-
|
374
|
-
declare const TableHandlePopoverContent: ForwardRefExoticComponent<TableHandlePopoverContentProps & RefAttributes<TableHandlePopoverContentElement> & HTMLAttributes<TableHandlePopoverContentElement>>;
|
375
|
-
export { TableHandlePopoverContent }
|
376
|
-
export { TableHandlePopoverContent as TableHandlePopoverContent_alias_1 }
|
377
|
-
|
378
|
-
/**
|
379
|
-
* Props for the {@link TableHandlePopoverContent} component.
|
380
|
-
*/
|
381
|
-
declare interface TableHandlePopoverContentProps extends Partial<CreateProps<TableHandlePopoverContentProps_2, TableHandlePopoverContentEvents>> {
|
382
|
-
}
|
383
|
-
export { TableHandlePopoverContentProps }
|
384
|
-
export { TableHandlePopoverContentProps as TableHandlePopoverContentProps_alias_1 }
|
385
|
-
|
386
|
-
declare const TableHandlePopoverItem: ForwardRefExoticComponent<TableHandlePopoverItemProps & RefAttributes<TableHandlePopoverItemElement> & HTMLAttributes<TableHandlePopoverItemElement>>;
|
387
|
-
export { TableHandlePopoverItem }
|
388
|
-
export { TableHandlePopoverItem as TableHandlePopoverItem_alias_1 }
|
389
|
-
|
390
|
-
/**
|
391
|
-
* Props for the {@link TableHandlePopoverItem} component.
|
392
|
-
*/
|
393
|
-
declare interface TableHandlePopoverItemProps extends Partial<CreateProps<TableHandlePopoverItemProps_2, TableHandlePopoverItemEvents>> {
|
394
|
-
}
|
395
|
-
export { TableHandlePopoverItemProps }
|
396
|
-
export { TableHandlePopoverItemProps as TableHandlePopoverItemProps_alias_1 }
|
397
|
-
|
398
|
-
declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & RefAttributes<TableHandleRootElement> & HTMLAttributes<TableHandleRootElement>>;
|
399
|
-
export { TableHandleRoot }
|
400
|
-
export { TableHandleRoot as TableHandleRoot_alias_1 }
|
401
|
-
|
402
|
-
/**
|
403
|
-
* Props for the {@link TableHandleRoot} component.
|
404
|
-
*/
|
405
|
-
declare interface TableHandleRootProps extends Partial<CreateProps<TableHandleRootProps_2, TableHandleRootEvents>> {
|
406
|
-
}
|
407
|
-
export { TableHandleRootProps }
|
408
|
-
export { TableHandleRootProps as TableHandleRootProps_alias_1 }
|
409
|
-
|
410
|
-
declare const TableHandleRowRoot: ForwardRefExoticComponent<TableHandleRowRootProps & RefAttributes<TableHandleRowRootElement> & HTMLAttributes<TableHandleRowRootElement>>;
|
411
|
-
export { TableHandleRowRoot }
|
412
|
-
export { TableHandleRowRoot as TableHandleRowRoot_alias_1 }
|
413
|
-
|
414
|
-
/**
|
415
|
-
* Props for the {@link TableHandleRowRoot} component.
|
416
|
-
*/
|
417
|
-
declare interface TableHandleRowRootProps extends Partial<CreateProps<TableHandleRowRootProps_2, TableHandleRowRootEvents>> {
|
418
|
-
}
|
419
|
-
export { TableHandleRowRootProps }
|
420
|
-
export { TableHandleRowRootProps as TableHandleRowRootProps_alias_1 }
|
421
|
-
|
422
|
-
declare const TableHandleRowTrigger: ForwardRefExoticComponent<TableHandleRowTriggerProps & RefAttributes<TableHandleRowTriggerElement> & HTMLAttributes<TableHandleRowTriggerElement>>;
|
423
|
-
export { TableHandleRowTrigger }
|
424
|
-
export { TableHandleRowTrigger as TableHandleRowTrigger_alias_1 }
|
425
|
-
|
426
|
-
/**
|
427
|
-
* Props for the {@link TableHandleRowTrigger} component.
|
428
|
-
*/
|
429
|
-
declare interface TableHandleRowTriggerProps extends Partial<CreateProps<TableHandleRowTriggerProps_2, TableHandleRowTriggerEvents>> {
|
430
|
-
}
|
431
|
-
export { TableHandleRowTriggerProps }
|
432
|
-
export { TableHandleRowTriggerProps as TableHandleRowTriggerProps_alias_1 }
|
433
|
-
|
434
|
-
declare const TooltipContent: ForwardRefExoticComponent<TooltipContentProps & RefAttributes<TooltipContentElement> & HTMLAttributes<TooltipContentElement>>;
|
435
|
-
export { TooltipContent }
|
436
|
-
export { TooltipContent as TooltipContent_alias_1 }
|
437
|
-
|
438
|
-
/**
|
439
|
-
* Props for the {@link TooltipContent} component.
|
440
|
-
*/
|
441
|
-
declare interface TooltipContentProps extends Partial<CreateProps<TooltipContentProps_2, TooltipContentEvents>> {
|
442
|
-
}
|
443
|
-
export { TooltipContentProps }
|
444
|
-
export { TooltipContentProps as TooltipContentProps_alias_1 }
|
445
|
-
|
446
|
-
declare const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & RefAttributes<TooltipRootElement> & HTMLAttributes<TooltipRootElement>>;
|
447
|
-
export { TooltipRoot }
|
448
|
-
export { TooltipRoot as TooltipRoot_alias_1 }
|
449
|
-
|
450
|
-
/**
|
451
|
-
* Props for the {@link TooltipRoot} component.
|
452
|
-
*/
|
453
|
-
declare interface TooltipRootProps extends Partial<CreateProps<TooltipRootProps_2, TooltipRootEvents>> {
|
454
|
-
}
|
455
|
-
export { TooltipRootProps }
|
456
|
-
export { TooltipRootProps as TooltipRootProps_alias_1 }
|
457
|
-
|
458
|
-
declare const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<TooltipTriggerElement> & HTMLAttributes<TooltipTriggerElement>>;
|
459
|
-
export { TooltipTrigger }
|
460
|
-
export { TooltipTrigger as TooltipTrigger_alias_1 }
|
461
|
-
|
462
|
-
/**
|
463
|
-
* Props for the {@link TooltipTrigger} component.
|
464
|
-
*/
|
465
|
-
declare interface TooltipTriggerProps extends Partial<CreateProps<TooltipTriggerProps_2, TooltipTriggerEvents>> {
|
466
|
-
}
|
467
|
-
export { TooltipTriggerProps }
|
468
|
-
export { TooltipTriggerProps as TooltipTriggerProps_alias_1 }
|
469
|
-
|
470
|
-
/**
|
471
|
-
* Calls the given handler whenever the editor document changes.
|
472
|
-
*
|
473
|
-
* @public
|
474
|
-
*/
|
475
|
-
declare function useDocChange(handler: (doc: ProseMirrorNode) => void, options?: UseExtensionOptions): void;
|
476
|
-
export { useDocChange }
|
477
|
-
export { useDocChange as useDocChange_alias_1 }
|
478
|
-
|
479
|
-
/**
|
480
|
-
* Retrieves the editor instance from the nearest ProseKit component.
|
481
|
-
*
|
482
|
-
* @public
|
483
|
-
*/
|
484
|
-
declare function useEditor<E extends Extension = any>(options?: {
|
485
|
-
/**
|
486
|
-
* Whether to update the component when the editor is mounted or editor state
|
487
|
-
* is updated.
|
488
|
-
*
|
489
|
-
* @default false
|
490
|
-
*/
|
491
|
-
update?: boolean;
|
492
|
-
}): Editor<E>;
|
493
|
-
export { useEditor }
|
494
|
-
export { useEditor as useEditor_alias_1 }
|
495
|
-
|
496
|
-
/**
|
497
|
-
* @internal
|
498
|
-
*/
|
499
|
-
export declare function useEditorContext<E extends Extension>(): Editor<E> | null;
|
500
|
-
|
501
|
-
/**
|
502
|
-
* @internal
|
503
|
-
*/
|
504
|
-
export declare function useEditorExtension(editor: Editor | null | undefined, extension: Extension | null): void;
|
505
|
-
|
506
|
-
/**
|
507
|
-
* Add an extension to the editor.
|
508
|
-
*/
|
509
|
-
declare function useExtension(
|
510
|
-
/**
|
511
|
-
* The extension to add to the editor. If it changes, the previous
|
512
|
-
* extension will be removed and the new one (if not null) will be added.
|
513
|
-
*/
|
514
|
-
extension: Extension | null, options?: UseExtensionOptions): void;
|
515
|
-
export { useExtension }
|
516
|
-
export { useExtension as useExtension_alias_1 }
|
517
|
-
|
518
|
-
declare interface UseExtensionOptions {
|
519
|
-
/**
|
520
|
-
* The editor to add the extension to. If not provided, it will use the
|
521
|
-
* editor from the nearest `ProseKit` component.
|
522
|
-
*/
|
523
|
-
editor?: Editor;
|
524
|
-
/**
|
525
|
-
* Optional priority to add the extension with.
|
526
|
-
*/
|
527
|
-
priority?: Priority;
|
528
|
-
}
|
529
|
-
export { UseExtensionOptions }
|
530
|
-
export { UseExtensionOptions as UseExtensionOptions_alias_1 }
|
531
|
-
|
532
|
-
declare function useKeymap(keymap: Keymap, options?: UseExtensionOptions): void;
|
533
|
-
export { useKeymap }
|
534
|
-
export { useKeymap as useKeymap_alias_1 }
|
535
|
-
|
536
|
-
/**
|
537
|
-
* @internal
|
538
|
-
*/
|
539
|
-
export declare function usePriorityExtension<T extends Extension = Extension>(extension: T | null, priority?: Priority | null): T | null;
|
540
|
-
|
541
|
-
/**
|
542
|
-
* Calls the given handler whenever the editor state changes.
|
543
|
-
*
|
544
|
-
* @public
|
545
|
-
*/
|
546
|
-
declare function useStateUpdate(handler: (state: EditorState) => void, options?: UseExtensionOptions): void;
|
547
|
-
export { useStateUpdate }
|
548
|
-
export { useStateUpdate as useStateUpdate_alias_1 }
|
549
|
-
|
550
|
-
export { }
|
1
|
+
import type { Attrs } from '@prosekit/pm/model';
|
2
|
+
import { AutocompleteEmptyElement } from '@prosekit/web/autocomplete';
|
3
|
+
import { AutocompleteEmptyEvents } from '@prosekit/web/autocomplete';
|
4
|
+
import { AutocompleteEmptyProps as AutocompleteEmptyProps_2 } from '@prosekit/web/autocomplete';
|
5
|
+
import { AutocompleteItemElement } from '@prosekit/web/autocomplete';
|
6
|
+
import { AutocompleteItemEvents } from '@prosekit/web/autocomplete';
|
7
|
+
import { AutocompleteItemProps as AutocompleteItemProps_2 } from '@prosekit/web/autocomplete';
|
8
|
+
import { AutocompleteListElement } from '@prosekit/web/autocomplete';
|
9
|
+
import { AutocompleteListEvents } from '@prosekit/web/autocomplete';
|
10
|
+
import { AutocompleteListProps as AutocompleteListProps_2 } from '@prosekit/web/autocomplete';
|
11
|
+
import { AutocompletePopoverElement } from '@prosekit/web/autocomplete';
|
12
|
+
import { AutocompletePopoverEvents } from '@prosekit/web/autocomplete';
|
13
|
+
import { AutocompletePopoverProps as AutocompletePopoverProps_2 } from '@prosekit/web/autocomplete';
|
14
|
+
import { BaseNodeViewOptions } from '@prosekit/core';
|
15
|
+
import { BlockHandleAddElement } from '@prosekit/web/block-handle';
|
16
|
+
import { BlockHandleAddEvents } from '@prosekit/web/block-handle';
|
17
|
+
import { BlockHandleAddProps as BlockHandleAddProps_2 } from '@prosekit/web/block-handle';
|
18
|
+
import { BlockHandleDraggableElement } from '@prosekit/web/block-handle';
|
19
|
+
import { BlockHandleDraggableEvents } from '@prosekit/web/block-handle';
|
20
|
+
import { BlockHandleDraggableProps as BlockHandleDraggableProps_2 } from '@prosekit/web/block-handle';
|
21
|
+
import { BlockHandlePopoverElement } from '@prosekit/web/block-handle';
|
22
|
+
import { BlockHandlePopoverEvents } from '@prosekit/web/block-handle';
|
23
|
+
import { BlockHandlePopoverProps as BlockHandlePopoverProps_2 } from '@prosekit/web/block-handle';
|
24
|
+
import { ComponentType } from 'react';
|
25
|
+
import type { Decoration } from '@prosekit/pm/view';
|
26
|
+
import type { DecorationSource } from '@prosekit/pm/view';
|
27
|
+
import { config as default_alias_1 } from '@prosekit/dev/config-vitest';
|
28
|
+
import { Editor } from '@prosekit/core';
|
29
|
+
import type { EditorState } from '@prosekit/pm/state';
|
30
|
+
import type { EditorView } from '@prosekit/pm/view';
|
31
|
+
import { Extension } from '@prosekit/core';
|
32
|
+
import { FC } from 'react';
|
33
|
+
import { ForwardRefExoticComponent } from 'react';
|
34
|
+
import { HTMLAttributes } from 'react';
|
35
|
+
import { InlinePopoverElement } from '@prosekit/web/inline-popover';
|
36
|
+
import { InlinePopoverEvents } from '@prosekit/web/inline-popover';
|
37
|
+
import { InlinePopoverProps as InlinePopoverProps_2 } from '@prosekit/web/inline-popover';
|
38
|
+
import { Keymap } from '@prosekit/core';
|
39
|
+
import { Options } from 'tsup';
|
40
|
+
import { PopoverContentElement } from '@prosekit/web/popover';
|
41
|
+
import { PopoverContentEvents } from '@prosekit/web/popover';
|
42
|
+
import { PopoverContentProps as PopoverContentProps_2 } from '@prosekit/web/popover';
|
43
|
+
import { PopoverRootElement } from '@prosekit/web/popover';
|
44
|
+
import { PopoverRootEvents } from '@prosekit/web/popover';
|
45
|
+
import { PopoverRootProps as PopoverRootProps_2 } from '@prosekit/web/popover';
|
46
|
+
import { PopoverTriggerElement } from '@prosekit/web/popover';
|
47
|
+
import { PopoverTriggerEvents } from '@prosekit/web/popover';
|
48
|
+
import { PopoverTriggerProps as PopoverTriggerProps_2 } from '@prosekit/web/popover';
|
49
|
+
import { Priority } from '@prosekit/core';
|
50
|
+
import type { ProseMirrorNode } from '@prosekit/pm/model';
|
51
|
+
import { Provider } from 'react';
|
52
|
+
import { ReactNode } from 'react';
|
53
|
+
import { RefAttributes } from 'react';
|
54
|
+
import { ResizableHandleElement } from '@prosekit/web/resizable';
|
55
|
+
import { ResizableHandleEvents } from '@prosekit/web/resizable';
|
56
|
+
import { ResizableHandleProps as ResizableHandleProps_2 } from '@prosekit/web/resizable';
|
57
|
+
import { ResizableRootElement } from '@prosekit/web/resizable';
|
58
|
+
import { ResizableRootEvents } from '@prosekit/web/resizable';
|
59
|
+
import { ResizableRootProps as ResizableRootProps_2 } from '@prosekit/web/resizable';
|
60
|
+
import { TableHandleColumnRootElement } from '@prosekit/web/table-handle';
|
61
|
+
import { TableHandleColumnRootEvents } from '@prosekit/web/table-handle';
|
62
|
+
import { TableHandleColumnRootProps as TableHandleColumnRootProps_2 } from '@prosekit/web/table-handle';
|
63
|
+
import { TableHandleColumnTriggerElement } from '@prosekit/web/table-handle';
|
64
|
+
import { TableHandleColumnTriggerEvents } from '@prosekit/web/table-handle';
|
65
|
+
import { TableHandleColumnTriggerProps as TableHandleColumnTriggerProps_2 } from '@prosekit/web/table-handle';
|
66
|
+
import { TableHandlePopoverContentElement } from '@prosekit/web/table-handle';
|
67
|
+
import { TableHandlePopoverContentEvents } from '@prosekit/web/table-handle';
|
68
|
+
import { TableHandlePopoverContentProps as TableHandlePopoverContentProps_2 } from '@prosekit/web/table-handle';
|
69
|
+
import { TableHandlePopoverItemElement } from '@prosekit/web/table-handle';
|
70
|
+
import { TableHandlePopoverItemEvents } from '@prosekit/web/table-handle';
|
71
|
+
import { TableHandlePopoverItemProps as TableHandlePopoverItemProps_2 } from '@prosekit/web/table-handle';
|
72
|
+
import { TableHandleRootElement } from '@prosekit/web/table-handle';
|
73
|
+
import { TableHandleRootEvents } from '@prosekit/web/table-handle';
|
74
|
+
import { TableHandleRootProps as TableHandleRootProps_2 } from '@prosekit/web/table-handle';
|
75
|
+
import { TableHandleRowRootElement } from '@prosekit/web/table-handle';
|
76
|
+
import { TableHandleRowRootEvents } from '@prosekit/web/table-handle';
|
77
|
+
import { TableHandleRowRootProps as TableHandleRowRootProps_2 } from '@prosekit/web/table-handle';
|
78
|
+
import { TableHandleRowTriggerElement } from '@prosekit/web/table-handle';
|
79
|
+
import { TableHandleRowTriggerEvents } from '@prosekit/web/table-handle';
|
80
|
+
import { TableHandleRowTriggerProps as TableHandleRowTriggerProps_2 } from '@prosekit/web/table-handle';
|
81
|
+
import { TooltipContentElement } from '@prosekit/web/tooltip';
|
82
|
+
import { TooltipContentEvents } from '@prosekit/web/tooltip';
|
83
|
+
import { TooltipContentProps as TooltipContentProps_2 } from '@prosekit/web/tooltip';
|
84
|
+
import { TooltipRootElement } from '@prosekit/web/tooltip';
|
85
|
+
import { TooltipRootEvents } from '@prosekit/web/tooltip';
|
86
|
+
import { TooltipRootProps as TooltipRootProps_2 } from '@prosekit/web/tooltip';
|
87
|
+
import { TooltipTriggerElement } from '@prosekit/web/tooltip';
|
88
|
+
import { TooltipTriggerEvents } from '@prosekit/web/tooltip';
|
89
|
+
import { TooltipTriggerProps as TooltipTriggerProps_2 } from '@prosekit/web/tooltip';
|
90
|
+
|
91
|
+
declare const AutocompleteEmpty: ForwardRefExoticComponent<AutocompleteEmptyProps & RefAttributes<AutocompleteEmptyElement> & HTMLAttributes<AutocompleteEmptyElement>>;
|
92
|
+
export { AutocompleteEmpty }
|
93
|
+
export { AutocompleteEmpty as AutocompleteEmpty_alias_1 }
|
94
|
+
|
95
|
+
/**
|
96
|
+
* Props for the {@link AutocompleteEmpty} component.
|
97
|
+
*/
|
98
|
+
declare interface AutocompleteEmptyProps extends Partial<CreateProps<AutocompleteEmptyProps_2, AutocompleteEmptyEvents>> {
|
99
|
+
}
|
100
|
+
export { AutocompleteEmptyProps }
|
101
|
+
export { AutocompleteEmptyProps as AutocompleteEmptyProps_alias_1 }
|
102
|
+
|
103
|
+
declare const AutocompleteItem: ForwardRefExoticComponent<AutocompleteItemProps & RefAttributes<AutocompleteItemElement> & HTMLAttributes<AutocompleteItemElement>>;
|
104
|
+
export { AutocompleteItem }
|
105
|
+
export { AutocompleteItem as AutocompleteItem_alias_1 }
|
106
|
+
|
107
|
+
/**
|
108
|
+
* Props for the {@link AutocompleteItem} component.
|
109
|
+
*/
|
110
|
+
declare interface AutocompleteItemProps extends Partial<CreateProps<AutocompleteItemProps_2, AutocompleteItemEvents>> {
|
111
|
+
}
|
112
|
+
export { AutocompleteItemProps }
|
113
|
+
export { AutocompleteItemProps as AutocompleteItemProps_alias_1 }
|
114
|
+
|
115
|
+
declare const AutocompleteList: ForwardRefExoticComponent<AutocompleteListProps & RefAttributes<AutocompleteListElement> & HTMLAttributes<AutocompleteListElement>>;
|
116
|
+
export { AutocompleteList }
|
117
|
+
export { AutocompleteList as AutocompleteList_alias_1 }
|
118
|
+
|
119
|
+
/**
|
120
|
+
* Props for the {@link AutocompleteList} component.
|
121
|
+
*/
|
122
|
+
declare interface AutocompleteListProps extends Partial<CreateProps<AutocompleteListProps_2, AutocompleteListEvents>> {
|
123
|
+
}
|
124
|
+
export { AutocompleteListProps }
|
125
|
+
export { AutocompleteListProps as AutocompleteListProps_alias_1 }
|
126
|
+
|
127
|
+
declare const AutocompletePopover: ForwardRefExoticComponent<AutocompletePopoverProps & RefAttributes<AutocompletePopoverElement> & HTMLAttributes<AutocompletePopoverElement>>;
|
128
|
+
export { AutocompletePopover }
|
129
|
+
export { AutocompletePopover as AutocompletePopover_alias_1 }
|
130
|
+
|
131
|
+
/**
|
132
|
+
* Props for the {@link AutocompletePopover} component.
|
133
|
+
*/
|
134
|
+
declare interface AutocompletePopoverProps extends Partial<CreateProps<AutocompletePopoverProps_2, AutocompletePopoverEvents>> {
|
135
|
+
}
|
136
|
+
export { AutocompletePopoverProps }
|
137
|
+
export { AutocompletePopoverProps as AutocompletePopoverProps_alias_1 }
|
138
|
+
|
139
|
+
declare const BlockHandleAdd: ForwardRefExoticComponent<BlockHandleAddProps & RefAttributes<BlockHandleAddElement> & HTMLAttributes<BlockHandleAddElement>>;
|
140
|
+
export { BlockHandleAdd }
|
141
|
+
export { BlockHandleAdd as BlockHandleAdd_alias_1 }
|
142
|
+
|
143
|
+
/**
|
144
|
+
* Props for the {@link BlockHandleAdd} component.
|
145
|
+
*/
|
146
|
+
declare interface BlockHandleAddProps extends Partial<CreateProps<BlockHandleAddProps_2, BlockHandleAddEvents>> {
|
147
|
+
}
|
148
|
+
export { BlockHandleAddProps }
|
149
|
+
export { BlockHandleAddProps as BlockHandleAddProps_alias_1 }
|
150
|
+
|
151
|
+
declare const BlockHandleDraggable: ForwardRefExoticComponent<BlockHandleDraggableProps & RefAttributes<BlockHandleDraggableElement> & HTMLAttributes<BlockHandleDraggableElement>>;
|
152
|
+
export { BlockHandleDraggable }
|
153
|
+
export { BlockHandleDraggable as BlockHandleDraggable_alias_1 }
|
154
|
+
|
155
|
+
/**
|
156
|
+
* Props for the {@link BlockHandleDraggable} component.
|
157
|
+
*/
|
158
|
+
declare interface BlockHandleDraggableProps extends Partial<CreateProps<BlockHandleDraggableProps_2, BlockHandleDraggableEvents>> {
|
159
|
+
}
|
160
|
+
export { BlockHandleDraggableProps }
|
161
|
+
export { BlockHandleDraggableProps as BlockHandleDraggableProps_alias_1 }
|
162
|
+
|
163
|
+
declare const BlockHandlePopover: ForwardRefExoticComponent<BlockHandlePopoverProps & RefAttributes<BlockHandlePopoverElement> & HTMLAttributes<BlockHandlePopoverElement>>;
|
164
|
+
export { BlockHandlePopover }
|
165
|
+
export { BlockHandlePopover as BlockHandlePopover_alias_1 }
|
166
|
+
|
167
|
+
/**
|
168
|
+
* Props for the {@link BlockHandlePopover} component.
|
169
|
+
*/
|
170
|
+
declare interface BlockHandlePopoverProps extends Partial<CreateProps<BlockHandlePopoverProps_2, BlockHandlePopoverEvents>> {
|
171
|
+
}
|
172
|
+
export { BlockHandlePopoverProps }
|
173
|
+
export { BlockHandlePopoverProps as BlockHandlePopoverProps_alias_1 }
|
174
|
+
|
175
|
+
export declare function createComponent<Props extends object, CustomElement extends HTMLElement>(tagName: string, displayName: string, propNames: string[], eventNames: string[]): ForwardRefExoticComponent<Partial<Props> & RefAttributes<CustomElement> & HTMLAttributes<CustomElement>>;
|
176
|
+
|
177
|
+
declare type CreateEventProps<Events extends {
|
178
|
+
[EventName in keyof Events]: CustomEvent;
|
179
|
+
}> = {
|
180
|
+
[EventName in keyof Events as `on${Capitalize<string & EventName>}`]: (event: EventName extends `${string}Change` ? Events[EventName]['detail'] : Events[EventName]) => void;
|
181
|
+
};
|
182
|
+
|
183
|
+
export declare type CreateProps<Props extends {
|
184
|
+
[PropName in keyof Props]: unknown;
|
185
|
+
}, Events extends {
|
186
|
+
[EventName in keyof Events]: CustomEvent;
|
187
|
+
}> = Props & CreateEventProps<Events>;
|
188
|
+
|
189
|
+
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
190
|
+
|
191
|
+
export { default_alias_1 }
|
192
|
+
|
193
|
+
/**
|
194
|
+
* Defines a node view using a React component.
|
195
|
+
*
|
196
|
+
* @public
|
197
|
+
*/
|
198
|
+
declare function defineReactNodeView(options: ReactNodeViewOptions): Extension;
|
199
|
+
export { defineReactNodeView }
|
200
|
+
export { defineReactNodeView as defineReactNodeView_alias_1 }
|
201
|
+
|
202
|
+
/**
|
203
|
+
* @internal
|
204
|
+
*/
|
205
|
+
export declare const EditorContextProvider: Provider<Editor<any> | null>;
|
206
|
+
|
207
|
+
declare const InlinePopover: ForwardRefExoticComponent<InlinePopoverProps & RefAttributes<InlinePopoverElement> & HTMLAttributes<InlinePopoverElement>>;
|
208
|
+
export { InlinePopover }
|
209
|
+
export { InlinePopover as InlinePopover_alias_1 }
|
210
|
+
|
211
|
+
/**
|
212
|
+
* Props for the {@link InlinePopover} component.
|
213
|
+
*/
|
214
|
+
declare interface InlinePopoverProps extends Partial<CreateProps<InlinePopoverProps_2, InlinePopoverEvents>> {
|
215
|
+
}
|
216
|
+
export { InlinePopoverProps }
|
217
|
+
export { InlinePopoverProps as InlinePopoverProps_alias_1 }
|
218
|
+
|
219
|
+
declare const PopoverContent: ForwardRefExoticComponent<PopoverContentProps & RefAttributes<PopoverContentElement> & HTMLAttributes<PopoverContentElement>>;
|
220
|
+
export { PopoverContent }
|
221
|
+
export { PopoverContent as PopoverContent_alias_1 }
|
222
|
+
|
223
|
+
/**
|
224
|
+
* Props for the {@link PopoverContent} component.
|
225
|
+
*/
|
226
|
+
declare interface PopoverContentProps extends Partial<CreateProps<PopoverContentProps_2, PopoverContentEvents>> {
|
227
|
+
}
|
228
|
+
export { PopoverContentProps }
|
229
|
+
export { PopoverContentProps as PopoverContentProps_alias_1 }
|
230
|
+
|
231
|
+
declare const PopoverRoot: ForwardRefExoticComponent<PopoverRootProps & RefAttributes<PopoverRootElement> & HTMLAttributes<PopoverRootElement>>;
|
232
|
+
export { PopoverRoot }
|
233
|
+
export { PopoverRoot as PopoverRoot_alias_1 }
|
234
|
+
|
235
|
+
/**
|
236
|
+
* Props for the {@link PopoverRoot} component.
|
237
|
+
*/
|
238
|
+
declare interface PopoverRootProps extends Partial<CreateProps<PopoverRootProps_2, PopoverRootEvents>> {
|
239
|
+
}
|
240
|
+
export { PopoverRootProps }
|
241
|
+
export { PopoverRootProps as PopoverRootProps_alias_1 }
|
242
|
+
|
243
|
+
declare const PopoverTrigger: ForwardRefExoticComponent<PopoverTriggerProps & RefAttributes<PopoverTriggerElement> & HTMLAttributes<PopoverTriggerElement>>;
|
244
|
+
export { PopoverTrigger }
|
245
|
+
export { PopoverTrigger as PopoverTrigger_alias_1 }
|
246
|
+
|
247
|
+
/**
|
248
|
+
* Props for the {@link PopoverTrigger} component.
|
249
|
+
*/
|
250
|
+
declare interface PopoverTriggerProps extends Partial<CreateProps<PopoverTriggerProps_2, PopoverTriggerEvents>> {
|
251
|
+
}
|
252
|
+
export { PopoverTriggerProps }
|
253
|
+
export { PopoverTriggerProps as PopoverTriggerProps_alias_1 }
|
254
|
+
|
255
|
+
/**
|
256
|
+
* @internal
|
257
|
+
*/
|
258
|
+
declare type PropsWithClassName<P = unknown> = P & {
|
259
|
+
className?: string | undefined;
|
260
|
+
};
|
261
|
+
export { PropsWithClassName }
|
262
|
+
export { PropsWithClassName as PropsWithClassName_alias_1 }
|
263
|
+
|
264
|
+
/**
|
265
|
+
* The root component for a ProseKit editor.
|
266
|
+
*
|
267
|
+
* @public
|
268
|
+
*/
|
269
|
+
declare const ProseKit: ComponentType<ProseKitProps>;
|
270
|
+
export { ProseKit }
|
271
|
+
export { ProseKit as ProseKit_alias_1 }
|
272
|
+
|
273
|
+
declare interface ProseKitProps {
|
274
|
+
editor: Editor;
|
275
|
+
children?: ReactNode;
|
276
|
+
}
|
277
|
+
export { ProseKitProps }
|
278
|
+
export { ProseKitProps as ProseKitProps_alias_1 }
|
279
|
+
|
280
|
+
/**
|
281
|
+
* @public
|
282
|
+
*/
|
283
|
+
declare type ReactNodeViewComponent = ComponentType<ReactNodeViewProps>;
|
284
|
+
export { ReactNodeViewComponent }
|
285
|
+
export { ReactNodeViewComponent as ReactNodeViewComponent_alias_1 }
|
286
|
+
|
287
|
+
/**
|
288
|
+
* Options for {@link defineReactNodeView}.
|
289
|
+
*
|
290
|
+
* @public
|
291
|
+
*/
|
292
|
+
declare interface ReactNodeViewOptions extends BaseNodeViewOptions {
|
293
|
+
/**
|
294
|
+
* The name of the node type.
|
295
|
+
*/
|
296
|
+
name: string;
|
297
|
+
/**
|
298
|
+
* The React component to render the node.
|
299
|
+
*/
|
300
|
+
component: ReactNodeViewComponent;
|
301
|
+
}
|
302
|
+
export { ReactNodeViewOptions }
|
303
|
+
export { ReactNodeViewOptions as ReactNodeViewOptions_alias_1 }
|
304
|
+
|
305
|
+
/**
|
306
|
+
* @public
|
307
|
+
*/
|
308
|
+
declare interface ReactNodeViewProps {
|
309
|
+
contentRef: (node: HTMLElement | null) => void;
|
310
|
+
view: EditorView;
|
311
|
+
getPos: () => number | undefined;
|
312
|
+
setAttrs: (attrs: Attrs) => void;
|
313
|
+
node: ProseMirrorNode;
|
314
|
+
selected: boolean;
|
315
|
+
decorations: readonly Decoration[];
|
316
|
+
innerDecorations: DecorationSource;
|
317
|
+
}
|
318
|
+
export { ReactNodeViewProps }
|
319
|
+
export { ReactNodeViewProps as ReactNodeViewProps_alias_1 }
|
320
|
+
|
321
|
+
/**
|
322
|
+
* @internal
|
323
|
+
*/
|
324
|
+
export declare const ReactViewsConsumer: FC;
|
325
|
+
|
326
|
+
declare const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & RefAttributes<ResizableHandleElement> & HTMLAttributes<ResizableHandleElement>>;
|
327
|
+
export { ResizableHandle }
|
328
|
+
export { ResizableHandle as ResizableHandle_alias_1 }
|
329
|
+
|
330
|
+
/**
|
331
|
+
* Props for the {@link ResizableHandle} component.
|
332
|
+
*/
|
333
|
+
declare interface ResizableHandleProps extends Partial<CreateProps<ResizableHandleProps_2, ResizableHandleEvents>> {
|
334
|
+
}
|
335
|
+
export { ResizableHandleProps }
|
336
|
+
export { ResizableHandleProps as ResizableHandleProps_alias_1 }
|
337
|
+
|
338
|
+
declare const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & RefAttributes<ResizableRootElement> & HTMLAttributes<ResizableRootElement>>;
|
339
|
+
export { ResizableRoot }
|
340
|
+
export { ResizableRoot as ResizableRoot_alias_1 }
|
341
|
+
|
342
|
+
/**
|
343
|
+
* Props for the {@link ResizableRoot} component.
|
344
|
+
*/
|
345
|
+
declare interface ResizableRootProps extends Partial<CreateProps<ResizableRootProps_2, ResizableRootEvents>> {
|
346
|
+
}
|
347
|
+
export { ResizableRootProps }
|
348
|
+
export { ResizableRootProps as ResizableRootProps_alias_1 }
|
349
|
+
|
350
|
+
declare const TableHandleColumnRoot: ForwardRefExoticComponent<TableHandleColumnRootProps & RefAttributes<TableHandleColumnRootElement> & HTMLAttributes<TableHandleColumnRootElement>>;
|
351
|
+
export { TableHandleColumnRoot }
|
352
|
+
export { TableHandleColumnRoot as TableHandleColumnRoot_alias_1 }
|
353
|
+
|
354
|
+
/**
|
355
|
+
* Props for the {@link TableHandleColumnRoot} component.
|
356
|
+
*/
|
357
|
+
declare interface TableHandleColumnRootProps extends Partial<CreateProps<TableHandleColumnRootProps_2, TableHandleColumnRootEvents>> {
|
358
|
+
}
|
359
|
+
export { TableHandleColumnRootProps }
|
360
|
+
export { TableHandleColumnRootProps as TableHandleColumnRootProps_alias_1 }
|
361
|
+
|
362
|
+
declare const TableHandleColumnTrigger: ForwardRefExoticComponent<TableHandleColumnTriggerProps & RefAttributes<TableHandleColumnTriggerElement> & HTMLAttributes<TableHandleColumnTriggerElement>>;
|
363
|
+
export { TableHandleColumnTrigger }
|
364
|
+
export { TableHandleColumnTrigger as TableHandleColumnTrigger_alias_1 }
|
365
|
+
|
366
|
+
/**
|
367
|
+
* Props for the {@link TableHandleColumnTrigger} component.
|
368
|
+
*/
|
369
|
+
declare interface TableHandleColumnTriggerProps extends Partial<CreateProps<TableHandleColumnTriggerProps_2, TableHandleColumnTriggerEvents>> {
|
370
|
+
}
|
371
|
+
export { TableHandleColumnTriggerProps }
|
372
|
+
export { TableHandleColumnTriggerProps as TableHandleColumnTriggerProps_alias_1 }
|
373
|
+
|
374
|
+
declare const TableHandlePopoverContent: ForwardRefExoticComponent<TableHandlePopoverContentProps & RefAttributes<TableHandlePopoverContentElement> & HTMLAttributes<TableHandlePopoverContentElement>>;
|
375
|
+
export { TableHandlePopoverContent }
|
376
|
+
export { TableHandlePopoverContent as TableHandlePopoverContent_alias_1 }
|
377
|
+
|
378
|
+
/**
|
379
|
+
* Props for the {@link TableHandlePopoverContent} component.
|
380
|
+
*/
|
381
|
+
declare interface TableHandlePopoverContentProps extends Partial<CreateProps<TableHandlePopoverContentProps_2, TableHandlePopoverContentEvents>> {
|
382
|
+
}
|
383
|
+
export { TableHandlePopoverContentProps }
|
384
|
+
export { TableHandlePopoverContentProps as TableHandlePopoverContentProps_alias_1 }
|
385
|
+
|
386
|
+
declare const TableHandlePopoverItem: ForwardRefExoticComponent<TableHandlePopoverItemProps & RefAttributes<TableHandlePopoverItemElement> & HTMLAttributes<TableHandlePopoverItemElement>>;
|
387
|
+
export { TableHandlePopoverItem }
|
388
|
+
export { TableHandlePopoverItem as TableHandlePopoverItem_alias_1 }
|
389
|
+
|
390
|
+
/**
|
391
|
+
* Props for the {@link TableHandlePopoverItem} component.
|
392
|
+
*/
|
393
|
+
declare interface TableHandlePopoverItemProps extends Partial<CreateProps<TableHandlePopoverItemProps_2, TableHandlePopoverItemEvents>> {
|
394
|
+
}
|
395
|
+
export { TableHandlePopoverItemProps }
|
396
|
+
export { TableHandlePopoverItemProps as TableHandlePopoverItemProps_alias_1 }
|
397
|
+
|
398
|
+
declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & RefAttributes<TableHandleRootElement> & HTMLAttributes<TableHandleRootElement>>;
|
399
|
+
export { TableHandleRoot }
|
400
|
+
export { TableHandleRoot as TableHandleRoot_alias_1 }
|
401
|
+
|
402
|
+
/**
|
403
|
+
* Props for the {@link TableHandleRoot} component.
|
404
|
+
*/
|
405
|
+
declare interface TableHandleRootProps extends Partial<CreateProps<TableHandleRootProps_2, TableHandleRootEvents>> {
|
406
|
+
}
|
407
|
+
export { TableHandleRootProps }
|
408
|
+
export { TableHandleRootProps as TableHandleRootProps_alias_1 }
|
409
|
+
|
410
|
+
declare const TableHandleRowRoot: ForwardRefExoticComponent<TableHandleRowRootProps & RefAttributes<TableHandleRowRootElement> & HTMLAttributes<TableHandleRowRootElement>>;
|
411
|
+
export { TableHandleRowRoot }
|
412
|
+
export { TableHandleRowRoot as TableHandleRowRoot_alias_1 }
|
413
|
+
|
414
|
+
/**
|
415
|
+
* Props for the {@link TableHandleRowRoot} component.
|
416
|
+
*/
|
417
|
+
declare interface TableHandleRowRootProps extends Partial<CreateProps<TableHandleRowRootProps_2, TableHandleRowRootEvents>> {
|
418
|
+
}
|
419
|
+
export { TableHandleRowRootProps }
|
420
|
+
export { TableHandleRowRootProps as TableHandleRowRootProps_alias_1 }
|
421
|
+
|
422
|
+
declare const TableHandleRowTrigger: ForwardRefExoticComponent<TableHandleRowTriggerProps & RefAttributes<TableHandleRowTriggerElement> & HTMLAttributes<TableHandleRowTriggerElement>>;
|
423
|
+
export { TableHandleRowTrigger }
|
424
|
+
export { TableHandleRowTrigger as TableHandleRowTrigger_alias_1 }
|
425
|
+
|
426
|
+
/**
|
427
|
+
* Props for the {@link TableHandleRowTrigger} component.
|
428
|
+
*/
|
429
|
+
declare interface TableHandleRowTriggerProps extends Partial<CreateProps<TableHandleRowTriggerProps_2, TableHandleRowTriggerEvents>> {
|
430
|
+
}
|
431
|
+
export { TableHandleRowTriggerProps }
|
432
|
+
export { TableHandleRowTriggerProps as TableHandleRowTriggerProps_alias_1 }
|
433
|
+
|
434
|
+
declare const TooltipContent: ForwardRefExoticComponent<TooltipContentProps & RefAttributes<TooltipContentElement> & HTMLAttributes<TooltipContentElement>>;
|
435
|
+
export { TooltipContent }
|
436
|
+
export { TooltipContent as TooltipContent_alias_1 }
|
437
|
+
|
438
|
+
/**
|
439
|
+
* Props for the {@link TooltipContent} component.
|
440
|
+
*/
|
441
|
+
declare interface TooltipContentProps extends Partial<CreateProps<TooltipContentProps_2, TooltipContentEvents>> {
|
442
|
+
}
|
443
|
+
export { TooltipContentProps }
|
444
|
+
export { TooltipContentProps as TooltipContentProps_alias_1 }
|
445
|
+
|
446
|
+
declare const TooltipRoot: ForwardRefExoticComponent<TooltipRootProps & RefAttributes<TooltipRootElement> & HTMLAttributes<TooltipRootElement>>;
|
447
|
+
export { TooltipRoot }
|
448
|
+
export { TooltipRoot as TooltipRoot_alias_1 }
|
449
|
+
|
450
|
+
/**
|
451
|
+
* Props for the {@link TooltipRoot} component.
|
452
|
+
*/
|
453
|
+
declare interface TooltipRootProps extends Partial<CreateProps<TooltipRootProps_2, TooltipRootEvents>> {
|
454
|
+
}
|
455
|
+
export { TooltipRootProps }
|
456
|
+
export { TooltipRootProps as TooltipRootProps_alias_1 }
|
457
|
+
|
458
|
+
declare const TooltipTrigger: ForwardRefExoticComponent<TooltipTriggerProps & RefAttributes<TooltipTriggerElement> & HTMLAttributes<TooltipTriggerElement>>;
|
459
|
+
export { TooltipTrigger }
|
460
|
+
export { TooltipTrigger as TooltipTrigger_alias_1 }
|
461
|
+
|
462
|
+
/**
|
463
|
+
* Props for the {@link TooltipTrigger} component.
|
464
|
+
*/
|
465
|
+
declare interface TooltipTriggerProps extends Partial<CreateProps<TooltipTriggerProps_2, TooltipTriggerEvents>> {
|
466
|
+
}
|
467
|
+
export { TooltipTriggerProps }
|
468
|
+
export { TooltipTriggerProps as TooltipTriggerProps_alias_1 }
|
469
|
+
|
470
|
+
/**
|
471
|
+
* Calls the given handler whenever the editor document changes.
|
472
|
+
*
|
473
|
+
* @public
|
474
|
+
*/
|
475
|
+
declare function useDocChange(handler: (doc: ProseMirrorNode) => void, options?: UseExtensionOptions): void;
|
476
|
+
export { useDocChange }
|
477
|
+
export { useDocChange as useDocChange_alias_1 }
|
478
|
+
|
479
|
+
/**
|
480
|
+
* Retrieves the editor instance from the nearest ProseKit component.
|
481
|
+
*
|
482
|
+
* @public
|
483
|
+
*/
|
484
|
+
declare function useEditor<E extends Extension = any>(options?: {
|
485
|
+
/**
|
486
|
+
* Whether to update the component when the editor is mounted or editor state
|
487
|
+
* is updated.
|
488
|
+
*
|
489
|
+
* @default false
|
490
|
+
*/
|
491
|
+
update?: boolean;
|
492
|
+
}): Editor<E>;
|
493
|
+
export { useEditor }
|
494
|
+
export { useEditor as useEditor_alias_1 }
|
495
|
+
|
496
|
+
/**
|
497
|
+
* @internal
|
498
|
+
*/
|
499
|
+
export declare function useEditorContext<E extends Extension>(): Editor<E> | null;
|
500
|
+
|
501
|
+
/**
|
502
|
+
* @internal
|
503
|
+
*/
|
504
|
+
export declare function useEditorExtension(editor: Editor | null | undefined, extension: Extension | null): void;
|
505
|
+
|
506
|
+
/**
|
507
|
+
* Add an extension to the editor.
|
508
|
+
*/
|
509
|
+
declare function useExtension(
|
510
|
+
/**
|
511
|
+
* The extension to add to the editor. If it changes, the previous
|
512
|
+
* extension will be removed and the new one (if not null) will be added.
|
513
|
+
*/
|
514
|
+
extension: Extension | null, options?: UseExtensionOptions): void;
|
515
|
+
export { useExtension }
|
516
|
+
export { useExtension as useExtension_alias_1 }
|
517
|
+
|
518
|
+
declare interface UseExtensionOptions {
|
519
|
+
/**
|
520
|
+
* The editor to add the extension to. If not provided, it will use the
|
521
|
+
* editor from the nearest `ProseKit` component.
|
522
|
+
*/
|
523
|
+
editor?: Editor;
|
524
|
+
/**
|
525
|
+
* Optional priority to add the extension with.
|
526
|
+
*/
|
527
|
+
priority?: Priority;
|
528
|
+
}
|
529
|
+
export { UseExtensionOptions }
|
530
|
+
export { UseExtensionOptions as UseExtensionOptions_alias_1 }
|
531
|
+
|
532
|
+
declare function useKeymap(keymap: Keymap, options?: UseExtensionOptions): void;
|
533
|
+
export { useKeymap }
|
534
|
+
export { useKeymap as useKeymap_alias_1 }
|
535
|
+
|
536
|
+
/**
|
537
|
+
* @internal
|
538
|
+
*/
|
539
|
+
export declare function usePriorityExtension<T extends Extension = Extension>(extension: T | null, priority?: Priority | null): T | null;
|
540
|
+
|
541
|
+
/**
|
542
|
+
* Calls the given handler whenever the editor state changes.
|
543
|
+
*
|
544
|
+
* @public
|
545
|
+
*/
|
546
|
+
declare function useStateUpdate(handler: (state: EditorState) => void, options?: UseExtensionOptions): void;
|
547
|
+
export { useStateUpdate }
|
548
|
+
export { useStateUpdate as useStateUpdate_alias_1 }
|
549
|
+
|
550
|
+
export { }
|
@@ -1,8 +1,8 @@
|
|
1
|
-
export { AutocompleteEmpty_alias_1 as AutocompleteEmpty } from './_tsup-dts-rollup';
|
2
|
-
export { AutocompleteEmptyProps_alias_1 as AutocompleteEmptyProps } from './_tsup-dts-rollup';
|
3
|
-
export { AutocompleteItem_alias_1 as AutocompleteItem } from './_tsup-dts-rollup';
|
4
|
-
export { AutocompleteItemProps_alias_1 as AutocompleteItemProps } from './_tsup-dts-rollup';
|
5
|
-
export { AutocompleteList_alias_1 as AutocompleteList } from './_tsup-dts-rollup';
|
6
|
-
export { AutocompleteListProps_alias_1 as AutocompleteListProps } from './_tsup-dts-rollup';
|
7
|
-
export { AutocompletePopover_alias_1 as AutocompletePopover } from './_tsup-dts-rollup';
|
8
|
-
export { AutocompletePopoverProps_alias_1 as AutocompletePopoverProps } from './_tsup-dts-rollup';
|
1
|
+
export { AutocompleteEmpty_alias_1 as AutocompleteEmpty } from './_tsup-dts-rollup.js';
|
2
|
+
export { AutocompleteEmptyProps_alias_1 as AutocompleteEmptyProps } from './_tsup-dts-rollup.js';
|
3
|
+
export { AutocompleteItem_alias_1 as AutocompleteItem } from './_tsup-dts-rollup.js';
|
4
|
+
export { AutocompleteItemProps_alias_1 as AutocompleteItemProps } from './_tsup-dts-rollup.js';
|
5
|
+
export { AutocompleteList_alias_1 as AutocompleteList } from './_tsup-dts-rollup.js';
|
6
|
+
export { AutocompleteListProps_alias_1 as AutocompleteListProps } from './_tsup-dts-rollup.js';
|
7
|
+
export { AutocompletePopover_alias_1 as AutocompletePopover } from './_tsup-dts-rollup.js';
|
8
|
+
export { AutocompletePopoverProps_alias_1 as AutocompletePopoverProps } from './_tsup-dts-rollup.js';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export { BlockHandleAdd_alias_1 as BlockHandleAdd } from './_tsup-dts-rollup';
|
2
|
-
export { BlockHandleAddProps_alias_1 as BlockHandleAddProps } from './_tsup-dts-rollup';
|
3
|
-
export { BlockHandleDraggable_alias_1 as BlockHandleDraggable } from './_tsup-dts-rollup';
|
4
|
-
export { BlockHandleDraggableProps_alias_1 as BlockHandleDraggableProps } from './_tsup-dts-rollup';
|
5
|
-
export { BlockHandlePopover_alias_1 as BlockHandlePopover } from './_tsup-dts-rollup';
|
6
|
-
export { BlockHandlePopoverProps_alias_1 as BlockHandlePopoverProps } from './_tsup-dts-rollup';
|
1
|
+
export { BlockHandleAdd_alias_1 as BlockHandleAdd } from './_tsup-dts-rollup.js';
|
2
|
+
export { BlockHandleAddProps_alias_1 as BlockHandleAddProps } from './_tsup-dts-rollup.js';
|
3
|
+
export { BlockHandleDraggable_alias_1 as BlockHandleDraggable } from './_tsup-dts-rollup.js';
|
4
|
+
export { BlockHandleDraggableProps_alias_1 as BlockHandleDraggableProps } from './_tsup-dts-rollup.js';
|
5
|
+
export { BlockHandlePopover_alias_1 as BlockHandlePopover } from './_tsup-dts-rollup.js';
|
6
|
+
export { BlockHandlePopoverProps_alias_1 as BlockHandlePopoverProps } from './_tsup-dts-rollup.js';
|
@@ -1,2 +1,2 @@
|
|
1
|
-
export { InlinePopover } from './_tsup-dts-rollup';
|
2
|
-
export { InlinePopoverProps } from './_tsup-dts-rollup';
|
1
|
+
export { InlinePopover } from './_tsup-dts-rollup.js';
|
2
|
+
export { InlinePopoverProps } from './_tsup-dts-rollup.js';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export { PopoverContent } from './_tsup-dts-rollup';
|
2
|
-
export { PopoverContentProps } from './_tsup-dts-rollup';
|
3
|
-
export { PopoverRoot } from './_tsup-dts-rollup';
|
4
|
-
export { PopoverRootProps } from './_tsup-dts-rollup';
|
5
|
-
export { PopoverTrigger } from './_tsup-dts-rollup';
|
6
|
-
export { PopoverTriggerProps } from './_tsup-dts-rollup';
|
1
|
+
export { PopoverContent } from './_tsup-dts-rollup.js';
|
2
|
+
export { PopoverContentProps } from './_tsup-dts-rollup.js';
|
3
|
+
export { PopoverRoot } from './_tsup-dts-rollup.js';
|
4
|
+
export { PopoverRootProps } from './_tsup-dts-rollup.js';
|
5
|
+
export { PopoverTrigger } from './_tsup-dts-rollup.js';
|
6
|
+
export { PopoverTriggerProps } from './_tsup-dts-rollup.js';
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export { ResizableHandle } from './_tsup-dts-rollup';
|
2
|
-
export { ResizableHandleProps } from './_tsup-dts-rollup';
|
3
|
-
export { ResizableRoot } from './_tsup-dts-rollup';
|
4
|
-
export { ResizableRootProps } from './_tsup-dts-rollup';
|
1
|
+
export { ResizableHandle } from './_tsup-dts-rollup.js';
|
2
|
+
export { ResizableHandleProps } from './_tsup-dts-rollup.js';
|
3
|
+
export { ResizableRoot } from './_tsup-dts-rollup.js';
|
4
|
+
export { ResizableRootProps } from './_tsup-dts-rollup.js';
|
@@ -1,14 +1,14 @@
|
|
1
|
-
export { TableHandleColumnRoot } from './_tsup-dts-rollup';
|
2
|
-
export { TableHandleColumnRootProps } from './_tsup-dts-rollup';
|
3
|
-
export { TableHandleColumnTrigger } from './_tsup-dts-rollup';
|
4
|
-
export { TableHandleColumnTriggerProps } from './_tsup-dts-rollup';
|
5
|
-
export { TableHandlePopoverContent } from './_tsup-dts-rollup';
|
6
|
-
export { TableHandlePopoverContentProps } from './_tsup-dts-rollup';
|
7
|
-
export { TableHandlePopoverItem } from './_tsup-dts-rollup';
|
8
|
-
export { TableHandlePopoverItemProps } from './_tsup-dts-rollup';
|
9
|
-
export { TableHandleRoot } from './_tsup-dts-rollup';
|
10
|
-
export { TableHandleRootProps } from './_tsup-dts-rollup';
|
11
|
-
export { TableHandleRowRoot } from './_tsup-dts-rollup';
|
12
|
-
export { TableHandleRowRootProps } from './_tsup-dts-rollup';
|
13
|
-
export { TableHandleRowTrigger } from './_tsup-dts-rollup';
|
14
|
-
export { TableHandleRowTriggerProps } from './_tsup-dts-rollup';
|
1
|
+
export { TableHandleColumnRoot } from './_tsup-dts-rollup.js';
|
2
|
+
export { TableHandleColumnRootProps } from './_tsup-dts-rollup.js';
|
3
|
+
export { TableHandleColumnTrigger } from './_tsup-dts-rollup.js';
|
4
|
+
export { TableHandleColumnTriggerProps } from './_tsup-dts-rollup.js';
|
5
|
+
export { TableHandlePopoverContent } from './_tsup-dts-rollup.js';
|
6
|
+
export { TableHandlePopoverContentProps } from './_tsup-dts-rollup.js';
|
7
|
+
export { TableHandlePopoverItem } from './_tsup-dts-rollup.js';
|
8
|
+
export { TableHandlePopoverItemProps } from './_tsup-dts-rollup.js';
|
9
|
+
export { TableHandleRoot } from './_tsup-dts-rollup.js';
|
10
|
+
export { TableHandleRootProps } from './_tsup-dts-rollup.js';
|
11
|
+
export { TableHandleRowRoot } from './_tsup-dts-rollup.js';
|
12
|
+
export { TableHandleRowRootProps } from './_tsup-dts-rollup.js';
|
13
|
+
export { TableHandleRowTrigger } from './_tsup-dts-rollup.js';
|
14
|
+
export { TableHandleRowTriggerProps } from './_tsup-dts-rollup.js';
|
@@ -1,6 +1,6 @@
|
|
1
|
-
export { TooltipContent } from './_tsup-dts-rollup';
|
2
|
-
export { TooltipContentProps } from './_tsup-dts-rollup';
|
3
|
-
export { TooltipRoot } from './_tsup-dts-rollup';
|
4
|
-
export { TooltipRootProps } from './_tsup-dts-rollup';
|
5
|
-
export { TooltipTrigger } from './_tsup-dts-rollup';
|
6
|
-
export { TooltipTriggerProps } from './_tsup-dts-rollup';
|
1
|
+
export { TooltipContent } from './_tsup-dts-rollup.js';
|
2
|
+
export { TooltipContentProps } from './_tsup-dts-rollup.js';
|
3
|
+
export { TooltipRoot } from './_tsup-dts-rollup.js';
|
4
|
+
export { TooltipRootProps } from './_tsup-dts-rollup.js';
|
5
|
+
export { TooltipTrigger } from './_tsup-dts-rollup.js';
|
6
|
+
export { TooltipTriggerProps } from './_tsup-dts-rollup.js';
|
package/dist/prosekit-react.d.ts
CHANGED
@@ -1,13 +1,13 @@
|
|
1
|
-
export { ProseKit } from './_tsup-dts-rollup';
|
2
|
-
export { ProseKitProps } from './_tsup-dts-rollup';
|
3
|
-
export { defineReactNodeView } from './_tsup-dts-rollup';
|
4
|
-
export { ReactNodeViewComponent } from './_tsup-dts-rollup';
|
5
|
-
export { ReactNodeViewOptions } from './_tsup-dts-rollup';
|
6
|
-
export { ReactNodeViewProps } from './_tsup-dts-rollup';
|
7
|
-
export { useDocChange } from './_tsup-dts-rollup';
|
8
|
-
export { useEditor } from './_tsup-dts-rollup';
|
9
|
-
export { useExtension } from './_tsup-dts-rollup';
|
10
|
-
export { UseExtensionOptions } from './_tsup-dts-rollup';
|
11
|
-
export { useKeymap } from './_tsup-dts-rollup';
|
12
|
-
export { useStateUpdate } from './_tsup-dts-rollup';
|
13
|
-
export { PropsWithClassName } from './_tsup-dts-rollup';
|
1
|
+
export { ProseKit } from './_tsup-dts-rollup.js';
|
2
|
+
export { ProseKitProps } from './_tsup-dts-rollup.js';
|
3
|
+
export { defineReactNodeView } from './_tsup-dts-rollup.js';
|
4
|
+
export { ReactNodeViewComponent } from './_tsup-dts-rollup.js';
|
5
|
+
export { ReactNodeViewOptions } from './_tsup-dts-rollup.js';
|
6
|
+
export { ReactNodeViewProps } from './_tsup-dts-rollup.js';
|
7
|
+
export { useDocChange } from './_tsup-dts-rollup.js';
|
8
|
+
export { useEditor } from './_tsup-dts-rollup.js';
|
9
|
+
export { useExtension } from './_tsup-dts-rollup.js';
|
10
|
+
export { UseExtensionOptions } from './_tsup-dts-rollup.js';
|
11
|
+
export { useKeymap } from './_tsup-dts-rollup.js';
|
12
|
+
export { useStateUpdate } from './_tsup-dts-rollup.js';
|
13
|
+
export { PropsWithClassName } from './_tsup-dts-rollup.js';
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/react",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.4.
|
4
|
+
"version": "0.4.2",
|
5
5
|
"private": false,
|
6
6
|
"author": {
|
7
7
|
"name": "ocavue",
|
@@ -72,9 +72,9 @@
|
|
72
72
|
"dependencies": {
|
73
73
|
"@prosemirror-adapter/react": "^0.2.6",
|
74
74
|
"react-merge-refs": "^2.1.1",
|
75
|
-
"@prosekit/core": "^0.7.
|
75
|
+
"@prosekit/core": "^0.7.12",
|
76
76
|
"@prosekit/pm": "^0.1.8",
|
77
|
-
"@prosekit/web": "^0.4.
|
77
|
+
"@prosekit/web": "^0.4.2"
|
78
78
|
},
|
79
79
|
"peerDependencies": {
|
80
80
|
"react": ">= 18.2.0",
|
@@ -89,13 +89,13 @@
|
|
89
89
|
}
|
90
90
|
},
|
91
91
|
"devDependencies": {
|
92
|
-
"@types/react": "^18.3.
|
93
|
-
"@types/react-dom": "^18.3.
|
92
|
+
"@types/react": "^18.3.12",
|
93
|
+
"@types/react-dom": "^18.3.1",
|
94
94
|
"react": "^18.3.1",
|
95
95
|
"react-dom": "^18.3.1",
|
96
|
-
"tsup": "^8.3.
|
97
|
-
"typescript": "^5.6.
|
98
|
-
"vitest": "^2.1.
|
96
|
+
"tsup": "^8.3.4",
|
97
|
+
"typescript": "^5.6.3",
|
98
|
+
"vitest": "^2.1.3",
|
99
99
|
"@prosekit/dev": "0.0.0"
|
100
100
|
},
|
101
101
|
"scripts": {
|