@prosekit/preact 0.6.6 → 0.6.7
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/create-component-_3OMD_6h.js.map +1 -1
- package/dist/prosekit-preact-autocomplete.js.map +1 -1
- package/dist/prosekit-preact-block-handle.js.map +1 -1
- package/dist/prosekit-preact-drop-indicator.js.map +1 -1
- package/dist/prosekit-preact-inline-popover.js.map +1 -1
- package/dist/prosekit-preact-popover.js.map +1 -1
- package/dist/prosekit-preact-resizable.js.map +1 -1
- package/dist/prosekit-preact-table-handle.js.map +1 -1
- package/dist/prosekit-preact-tooltip.js.map +1 -1
- package/dist/prosekit-preact.d.ts +16 -16
- package/dist/prosekit-preact.d.ts.map +1 -1
- package/dist/prosekit-preact.js +29 -29
- package/dist/prosekit-preact.js.map +1 -1
- package/package.json +7 -6
- package/src/components/autocomplete/autocomplete-empty.gen.ts +4 -4
- package/src/components/autocomplete/autocomplete-item.gen.ts +4 -4
- package/src/components/autocomplete/autocomplete-list.gen.ts +4 -4
- package/src/components/autocomplete/autocomplete-popover.gen.ts +4 -4
- package/src/components/autocomplete/index.gen.ts +4 -4
- package/src/components/block-handle/block-handle-add.gen.ts +4 -4
- package/src/components/block-handle/block-handle-draggable.gen.ts +4 -4
- package/src/components/block-handle/block-handle-popover.gen.ts +4 -4
- package/src/components/block-handle/index.gen.ts +3 -3
- package/src/components/create-component.ts +2 -3
- package/src/components/drop-indicator/drop-indicator.gen.ts +4 -4
- package/src/components/drop-indicator/index.gen.ts +1 -1
- package/src/components/inline-popover/index.gen.ts +1 -1
- package/src/components/inline-popover/inline-popover.gen.ts +4 -4
- package/src/components/popover/index.gen.ts +3 -3
- package/src/components/popover/popover-content.gen.ts +4 -4
- package/src/components/popover/popover-root.gen.ts +4 -4
- package/src/components/popover/popover-trigger.gen.ts +4 -4
- package/src/components/prosekit.ts +3 -3
- package/src/components/resizable/index.gen.ts +2 -2
- package/src/components/resizable/resizable-handle.gen.ts +4 -4
- package/src/components/resizable/resizable-root.gen.ts +4 -4
- package/src/components/table-handle/index.gen.ts +9 -9
- package/src/components/table-handle/table-handle-column-root.gen.ts +4 -4
- package/src/components/table-handle/table-handle-column-trigger.gen.ts +4 -4
- package/src/components/table-handle/table-handle-drag-preview.gen.ts +4 -4
- package/src/components/table-handle/table-handle-drop-indicator.gen.ts +4 -4
- package/src/components/table-handle/table-handle-popover-content.gen.ts +4 -4
- package/src/components/table-handle/table-handle-popover-item.gen.ts +4 -4
- package/src/components/table-handle/table-handle-root.gen.ts +4 -4
- package/src/components/table-handle/table-handle-row-root.gen.ts +4 -4
- package/src/components/table-handle/table-handle-row-trigger.gen.ts +4 -4
- package/src/components/tooltip/index.gen.ts +3 -3
- package/src/components/tooltip/tooltip-content.gen.ts +4 -4
- package/src/components/tooltip/tooltip-root.gen.ts +4 -4
- package/src/components/tooltip/tooltip-trigger.gen.ts +4 -4
- package/src/extensions/preact-mark-view.ts +1 -1
- package/src/extensions/preact-node-view.ts +1 -1
- package/src/hooks/use-doc-change.ts +2 -2
- package/src/hooks/use-editor-derived-value.ts +1 -1
- package/src/hooks/use-editor.ts +1 -1
- package/src/hooks/use-extension.ts +3 -3
- package/src/hooks/use-keymap.ts +1 -1
- package/src/hooks/use-state-update.ts +2 -2
- package/src/index.ts +10 -10
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link BlockHandleAdd} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface BlockHandleAddProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const BlockHandleAdd: ForwardRefExoticComponent<
|
|
23
23
|
Partial<BlockHandleAddProps> &
|
|
24
24
|
RefAttributes<BlockHandleAddElement> &
|
|
25
25
|
HTMLAttributes<BlockHandleAddElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
BlockHandleAddProps,
|
|
27
|
+
BlockHandleAddProps,
|
|
28
28
|
BlockHandleAddElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-block-handle-add',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link BlockHandleDraggable} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface BlockHandleDraggableProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const BlockHandleDraggable: ForwardRefExoticComponent<
|
|
23
23
|
Partial<BlockHandleDraggableProps> &
|
|
24
24
|
RefAttributes<BlockHandleDraggableElement> &
|
|
25
25
|
HTMLAttributes<BlockHandleDraggableElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
BlockHandleDraggableProps,
|
|
27
|
+
BlockHandleDraggableProps,
|
|
28
28
|
BlockHandleDraggableElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-block-handle-draggable',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link BlockHandlePopover} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface BlockHandlePopoverProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const BlockHandlePopover: ForwardRefExoticComponent<
|
|
23
23
|
Partial<BlockHandlePopoverProps> &
|
|
24
24
|
RefAttributes<BlockHandlePopoverElement> &
|
|
25
25
|
HTMLAttributes<BlockHandlePopoverElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
BlockHandlePopoverProps,
|
|
27
|
+
BlockHandlePopoverProps,
|
|
28
28
|
BlockHandlePopoverElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-block-handle-popover',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { BlockHandleAdd, type BlockHandleAddProps } from './block-handle-add.gen'
|
|
1
|
+
export { BlockHandleAdd, type BlockHandleAddProps } from './block-handle-add.gen.ts'
|
|
2
2
|
|
|
3
|
-
export { BlockHandleDraggable, type BlockHandleDraggableProps } from './block-handle-draggable.gen'
|
|
3
|
+
export { BlockHandleDraggable, type BlockHandleDraggableProps } from './block-handle-draggable.gen.ts'
|
|
4
4
|
|
|
5
|
-
export { BlockHandlePopover, type BlockHandlePopoverProps } from './block-handle-popover.gen'
|
|
5
|
+
export { BlockHandlePopover, type BlockHandlePopoverProps } from './block-handle-popover.gen.ts'
|
|
@@ -3,9 +3,9 @@ import { createElement } from 'preact'
|
|
|
3
3
|
import { forwardRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes } from 'preact/compat'
|
|
4
4
|
import { useEffect, useLayoutEffect, useMemo, useRef, useState } from 'preact/hooks'
|
|
5
5
|
|
|
6
|
-
import { useEditorContext } from '../contexts/editor-context'
|
|
6
|
+
import { useEditorContext } from '../contexts/editor-context.ts'
|
|
7
7
|
|
|
8
|
-
import { mergeRefs } from './merge-refs'
|
|
8
|
+
import { mergeRefs } from './merge-refs.ts'
|
|
9
9
|
|
|
10
10
|
const useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect
|
|
11
11
|
|
|
@@ -77,7 +77,6 @@ export function createComponent<
|
|
|
77
77
|
for (const [name, value] of Object.entries(properties)) {
|
|
78
78
|
if (value !== undefined) {
|
|
79
79
|
// @ts-expect-error: we know that name is a valid property name
|
|
80
|
-
// eslint-disable-next-line react-hooks/immutability
|
|
81
80
|
el[name] = value
|
|
82
81
|
}
|
|
83
82
|
}
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link DropIndicator} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface DropIndicatorProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const DropIndicator: ForwardRefExoticComponent<
|
|
23
23
|
Partial<DropIndicatorProps> &
|
|
24
24
|
RefAttributes<DropIndicatorElement> &
|
|
25
25
|
HTMLAttributes<DropIndicatorElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
DropIndicatorProps,
|
|
27
|
+
DropIndicatorProps,
|
|
28
28
|
DropIndicatorElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-drop-indicator',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DropIndicator, type DropIndicatorProps } from './drop-indicator.gen'
|
|
1
|
+
export { DropIndicator, type DropIndicatorProps } from './drop-indicator.gen.ts'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { InlinePopover, type InlinePopoverProps } from './inline-popover.gen'
|
|
1
|
+
export { InlinePopover, type InlinePopoverProps } from './inline-popover.gen.ts'
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link InlinePopover} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface InlinePopoverProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const InlinePopover: ForwardRefExoticComponent<
|
|
23
23
|
Partial<InlinePopoverProps> &
|
|
24
24
|
RefAttributes<InlinePopoverElement> &
|
|
25
25
|
HTMLAttributes<InlinePopoverElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
InlinePopoverProps,
|
|
27
|
+
InlinePopoverProps,
|
|
28
28
|
InlinePopoverElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-inline-popover',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { PopoverContent, type PopoverContentProps } from './popover-content.gen'
|
|
1
|
+
export { PopoverContent, type PopoverContentProps } from './popover-content.gen.ts'
|
|
2
2
|
|
|
3
|
-
export { PopoverRoot, type PopoverRootProps } from './popover-root.gen'
|
|
3
|
+
export { PopoverRoot, type PopoverRootProps } from './popover-root.gen.ts'
|
|
4
4
|
|
|
5
|
-
export { PopoverTrigger, type PopoverTriggerProps } from './popover-trigger.gen'
|
|
5
|
+
export { PopoverTrigger, type PopoverTriggerProps } from './popover-trigger.gen.ts'
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link PopoverContent} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface PopoverContentProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const PopoverContent: ForwardRefExoticComponent<
|
|
23
23
|
Partial<PopoverContentProps> &
|
|
24
24
|
RefAttributes<PopoverContentElement> &
|
|
25
25
|
HTMLAttributes<PopoverContentElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
PopoverContentProps,
|
|
27
|
+
PopoverContentProps,
|
|
28
28
|
PopoverContentElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-popover-content',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link PopoverRoot} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface PopoverRootProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const PopoverRoot: ForwardRefExoticComponent<
|
|
23
23
|
Partial<PopoverRootProps> &
|
|
24
24
|
RefAttributes<PopoverRootElement> &
|
|
25
25
|
HTMLAttributes<PopoverRootElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
PopoverRootProps,
|
|
27
|
+
PopoverRootProps,
|
|
28
28
|
PopoverRootElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-popover-root',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link PopoverTrigger} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface PopoverTriggerProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const PopoverTrigger: ForwardRefExoticComponent<
|
|
23
23
|
Partial<PopoverTriggerProps> &
|
|
24
24
|
RefAttributes<PopoverTriggerElement> &
|
|
25
25
|
HTMLAttributes<PopoverTriggerElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
PopoverTriggerProps,
|
|
27
|
+
PopoverTriggerProps,
|
|
28
28
|
PopoverTriggerElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-popover-trigger',
|
|
@@ -2,9 +2,9 @@ import type { Editor } from '@prosekit/core'
|
|
|
2
2
|
import { ProsemirrorAdapterProvider } from '@prosemirror-adapter/preact'
|
|
3
3
|
import { h, type ComponentChildren, type ComponentType } from 'preact'
|
|
4
4
|
|
|
5
|
-
import { EditorContextProvider } from '../contexts/editor-context'
|
|
6
|
-
import { PreactMarkViewConsumer } from '../extensions/preact-mark-view'
|
|
7
|
-
import { PreactNodeViewConsumer } from '../extensions/preact-node-view'
|
|
5
|
+
import { EditorContextProvider } from '../contexts/editor-context.ts'
|
|
6
|
+
import { PreactMarkViewConsumer } from '../extensions/preact-mark-view.ts'
|
|
7
|
+
import { PreactNodeViewConsumer } from '../extensions/preact-node-view.ts'
|
|
8
8
|
|
|
9
9
|
export interface ProseKitProps {
|
|
10
10
|
editor: Editor
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { ResizableHandle, type ResizableHandleProps } from './resizable-handle.gen'
|
|
1
|
+
export { ResizableHandle, type ResizableHandleProps } from './resizable-handle.gen.ts'
|
|
2
2
|
|
|
3
|
-
export { ResizableRoot, type ResizableRootProps } from './resizable-root.gen'
|
|
3
|
+
export { ResizableRoot, type ResizableRootProps } from './resizable-root.gen.ts'
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link ResizableHandle} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface ResizableHandleProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const ResizableHandle: ForwardRefExoticComponent<
|
|
23
23
|
Partial<ResizableHandleProps> &
|
|
24
24
|
RefAttributes<ResizableHandleElement> &
|
|
25
25
|
HTMLAttributes<ResizableHandleElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
ResizableHandleProps,
|
|
27
|
+
ResizableHandleProps,
|
|
28
28
|
ResizableHandleElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-resizable-handle',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link ResizableRoot} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface ResizableRootProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const ResizableRoot: ForwardRefExoticComponent<
|
|
23
23
|
Partial<ResizableRootProps> &
|
|
24
24
|
RefAttributes<ResizableRootElement> &
|
|
25
25
|
HTMLAttributes<ResizableRootElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
ResizableRootProps,
|
|
27
|
+
ResizableRootProps,
|
|
28
28
|
ResizableRootElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-resizable-root',
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export { TableHandleColumnRoot, type TableHandleColumnRootProps } from './table-handle-column-root.gen'
|
|
1
|
+
export { TableHandleColumnRoot, type TableHandleColumnRootProps } from './table-handle-column-root.gen.ts'
|
|
2
2
|
|
|
3
|
-
export { TableHandleColumnTrigger, type TableHandleColumnTriggerProps } from './table-handle-column-trigger.gen'
|
|
3
|
+
export { TableHandleColumnTrigger, type TableHandleColumnTriggerProps } from './table-handle-column-trigger.gen.ts'
|
|
4
4
|
|
|
5
|
-
export { TableHandleDragPreview, type TableHandleDragPreviewProps } from './table-handle-drag-preview.gen'
|
|
5
|
+
export { TableHandleDragPreview, type TableHandleDragPreviewProps } from './table-handle-drag-preview.gen.ts'
|
|
6
6
|
|
|
7
|
-
export { TableHandleDropIndicator, type TableHandleDropIndicatorProps } from './table-handle-drop-indicator.gen'
|
|
7
|
+
export { TableHandleDropIndicator, type TableHandleDropIndicatorProps } from './table-handle-drop-indicator.gen.ts'
|
|
8
8
|
|
|
9
|
-
export { TableHandlePopoverContent, type TableHandlePopoverContentProps } from './table-handle-popover-content.gen'
|
|
9
|
+
export { TableHandlePopoverContent, type TableHandlePopoverContentProps } from './table-handle-popover-content.gen.ts'
|
|
10
10
|
|
|
11
|
-
export { TableHandlePopoverItem, type TableHandlePopoverItemProps } from './table-handle-popover-item.gen'
|
|
11
|
+
export { TableHandlePopoverItem, type TableHandlePopoverItemProps } from './table-handle-popover-item.gen.ts'
|
|
12
12
|
|
|
13
|
-
export { TableHandleRoot, type TableHandleRootProps } from './table-handle-root.gen'
|
|
13
|
+
export { TableHandleRoot, type TableHandleRootProps } from './table-handle-root.gen.ts'
|
|
14
14
|
|
|
15
|
-
export { TableHandleRowRoot, type TableHandleRowRootProps } from './table-handle-row-root.gen'
|
|
15
|
+
export { TableHandleRowRoot, type TableHandleRowRootProps } from './table-handle-row-root.gen.ts'
|
|
16
16
|
|
|
17
|
-
export { TableHandleRowTrigger, type TableHandleRowTriggerProps } from './table-handle-row-trigger.gen'
|
|
17
|
+
export { TableHandleRowTrigger, type TableHandleRowTriggerProps } from './table-handle-row-trigger.gen.ts'
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link TableHandleColumnRoot} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface TableHandleColumnRootProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const TableHandleColumnRoot: ForwardRefExoticComponent<
|
|
23
23
|
Partial<TableHandleColumnRootProps> &
|
|
24
24
|
RefAttributes<TableHandleColumnRootElement> &
|
|
25
25
|
HTMLAttributes<TableHandleColumnRootElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
TableHandleColumnRootProps,
|
|
27
|
+
TableHandleColumnRootProps,
|
|
28
28
|
TableHandleColumnRootElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-table-handle-column-root',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link TableHandleColumnTrigger} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface TableHandleColumnTriggerProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const TableHandleColumnTrigger: ForwardRefExoticComponent<
|
|
23
23
|
Partial<TableHandleColumnTriggerProps> &
|
|
24
24
|
RefAttributes<TableHandleColumnTriggerElement> &
|
|
25
25
|
HTMLAttributes<TableHandleColumnTriggerElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
TableHandleColumnTriggerProps,
|
|
27
|
+
TableHandleColumnTriggerProps,
|
|
28
28
|
TableHandleColumnTriggerElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-table-handle-column-trigger',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link TableHandleDragPreview} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface TableHandleDragPreviewProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const TableHandleDragPreview: ForwardRefExoticComponent<
|
|
23
23
|
Partial<TableHandleDragPreviewProps> &
|
|
24
24
|
RefAttributes<TableHandleDragPreviewElement> &
|
|
25
25
|
HTMLAttributes<TableHandleDragPreviewElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
TableHandleDragPreviewProps,
|
|
27
|
+
TableHandleDragPreviewProps,
|
|
28
28
|
TableHandleDragPreviewElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-table-handle-drag-preview',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link TableHandleDropIndicator} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface TableHandleDropIndicatorProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const TableHandleDropIndicator: ForwardRefExoticComponent<
|
|
23
23
|
Partial<TableHandleDropIndicatorProps> &
|
|
24
24
|
RefAttributes<TableHandleDropIndicatorElement> &
|
|
25
25
|
HTMLAttributes<TableHandleDropIndicatorElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
TableHandleDropIndicatorProps,
|
|
27
|
+
TableHandleDropIndicatorProps,
|
|
28
28
|
TableHandleDropIndicatorElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-table-handle-drop-indicator',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link TableHandlePopoverContent} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface TableHandlePopoverContentProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const TableHandlePopoverContent: ForwardRefExoticComponent<
|
|
23
23
|
Partial<TableHandlePopoverContentProps> &
|
|
24
24
|
RefAttributes<TableHandlePopoverContentElement> &
|
|
25
25
|
HTMLAttributes<TableHandlePopoverContentElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
TableHandlePopoverContentProps,
|
|
27
|
+
TableHandlePopoverContentProps,
|
|
28
28
|
TableHandlePopoverContentElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-table-handle-popover-content',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link TableHandlePopoverItem} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface TableHandlePopoverItemProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const TableHandlePopoverItem: ForwardRefExoticComponent<
|
|
23
23
|
Partial<TableHandlePopoverItemProps> &
|
|
24
24
|
RefAttributes<TableHandlePopoverItemElement> &
|
|
25
25
|
HTMLAttributes<TableHandlePopoverItemElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
TableHandlePopoverItemProps,
|
|
27
|
+
TableHandlePopoverItemProps,
|
|
28
28
|
TableHandlePopoverItemElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-table-handle-popover-item',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link TableHandleRoot} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface TableHandleRootProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const TableHandleRoot: ForwardRefExoticComponent<
|
|
23
23
|
Partial<TableHandleRootProps> &
|
|
24
24
|
RefAttributes<TableHandleRootElement> &
|
|
25
25
|
HTMLAttributes<TableHandleRootElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
TableHandleRootProps,
|
|
27
|
+
TableHandleRootProps,
|
|
28
28
|
TableHandleRootElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-table-handle-root',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link TableHandleRowRoot} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface TableHandleRowRootProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const TableHandleRowRoot: ForwardRefExoticComponent<
|
|
23
23
|
Partial<TableHandleRowRootProps> &
|
|
24
24
|
RefAttributes<TableHandleRowRootElement> &
|
|
25
25
|
HTMLAttributes<TableHandleRowRootElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
TableHandleRowRootProps,
|
|
27
|
+
TableHandleRowRootProps,
|
|
28
28
|
TableHandleRowRootElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-table-handle-row-root',
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link TableHandleRowTrigger} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface TableHandleRowTriggerProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const TableHandleRowTrigger: ForwardRefExoticComponent<
|
|
23
23
|
Partial<TableHandleRowTriggerProps> &
|
|
24
24
|
RefAttributes<TableHandleRowTriggerElement> &
|
|
25
25
|
HTMLAttributes<TableHandleRowTriggerElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
TableHandleRowTriggerProps,
|
|
27
|
+
TableHandleRowTriggerProps,
|
|
28
28
|
TableHandleRowTriggerElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-table-handle-row-trigger',
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { TooltipContent, type TooltipContentProps } from './tooltip-content.gen'
|
|
1
|
+
export { TooltipContent, type TooltipContentProps } from './tooltip-content.gen.ts'
|
|
2
2
|
|
|
3
|
-
export { TooltipRoot, type TooltipRootProps } from './tooltip-root.gen'
|
|
3
|
+
export { TooltipRoot, type TooltipRootProps } from './tooltip-root.gen.ts'
|
|
4
4
|
|
|
5
|
-
export { TooltipTrigger, type TooltipTriggerProps } from './tooltip-trigger.gen'
|
|
5
|
+
export { TooltipTrigger, type TooltipTriggerProps } from './tooltip-trigger.gen.ts'
|
|
@@ -11,20 +11,20 @@ import type {
|
|
|
11
11
|
RefAttributes,
|
|
12
12
|
} from 'preact/compat'
|
|
13
13
|
|
|
14
|
-
import { createComponent } from '../create-component'
|
|
15
|
-
import type { CreateProps } from '../create-props'
|
|
14
|
+
import { createComponent } from '../create-component.ts'
|
|
15
|
+
import type { CreateProps } from '../create-props.ts'
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
18
|
* Props for the {@link TooltipContent} component.
|
|
19
19
|
*/
|
|
20
20
|
export interface TooltipContentProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
21
|
+
|
|
22
22
|
export const TooltipContent: ForwardRefExoticComponent<
|
|
23
23
|
Partial<TooltipContentProps> &
|
|
24
24
|
RefAttributes<TooltipContentElement> &
|
|
25
25
|
HTMLAttributes<TooltipContentElement>
|
|
26
26
|
> = createComponent<
|
|
27
|
-
TooltipContentProps,
|
|
27
|
+
TooltipContentProps,
|
|
28
28
|
TooltipContentElement
|
|
29
29
|
>(
|
|
30
30
|
'prosekit-tooltip-content',
|