@prosekit/preact 0.7.0-beta.0 → 0.7.0-beta.1
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/prosekit-preact-autocomplete.d.ts +226 -18
- package/dist/prosekit-preact-autocomplete.d.ts.map +1 -1
- package/dist/prosekit-preact-autocomplete.js +218 -9
- package/dist/prosekit-preact-autocomplete.js.map +1 -1
- package/dist/prosekit-preact-block-handle.d.ts +210 -14
- package/dist/prosekit-preact-block-handle.d.ts.map +1 -1
- package/dist/prosekit-preact-block-handle.js +184 -7
- package/dist/prosekit-preact-block-handle.js.map +1 -1
- package/dist/prosekit-preact-drop-indicator.d.ts +27 -6
- package/dist/prosekit-preact-drop-indicator.d.ts.map +1 -1
- package/dist/prosekit-preact-drop-indicator.js +38 -3
- package/dist/prosekit-preact-drop-indicator.js.map +1 -1
- package/dist/prosekit-preact-inline-popover.d.ts +204 -8
- package/dist/prosekit-preact-inline-popover.d.ts.map +1 -1
- package/dist/prosekit-preact-inline-popover.js +130 -5
- package/dist/prosekit-preact-inline-popover.js.map +1 -1
- package/dist/prosekit-preact-menu.d.ts +288 -0
- package/dist/prosekit-preact-menu.d.ts.map +1 -0
- package/dist/prosekit-preact-menu.js +274 -0
- package/dist/prosekit-preact-menu.js.map +1 -0
- package/dist/prosekit-preact-popover.d.ts +227 -14
- package/dist/prosekit-preact-popover.d.ts.map +1 -1
- package/dist/prosekit-preact-popover.js +170 -7
- package/dist/prosekit-preact-popover.js.map +1 -1
- package/dist/prosekit-preact-resizable.d.ts +56 -12
- package/dist/prosekit-preact-resizable.d.ts.map +1 -1
- package/dist/prosekit-preact-resizable.js +80 -7
- package/dist/prosekit-preact-resizable.js.map +1 -1
- package/dist/prosekit-preact-table-handle.d.ts +447 -38
- package/dist/prosekit-preact-table-handle.d.ts.map +1 -1
- package/dist/prosekit-preact-table-handle.js +381 -19
- package/dist/prosekit-preact-table-handle.js.map +1 -1
- package/dist/prosekit-preact-tooltip.d.ts +211 -14
- package/dist/prosekit-preact-tooltip.d.ts.map +1 -1
- package/dist/prosekit-preact-tooltip.js +157 -7
- package/dist/prosekit-preact-tooltip.js.map +1 -1
- package/package.json +27 -16
- package/src/components/autocomplete/autocomplete-empty.gen.ts +41 -31
- package/src/components/autocomplete/autocomplete-item.gen.ts +84 -31
- package/src/components/autocomplete/autocomplete-popup.gen.ts +80 -0
- package/src/components/autocomplete/autocomplete-positioner.gen.ts +153 -0
- package/src/components/autocomplete/autocomplete-root.gen.ts +109 -0
- package/src/components/autocomplete/index.gen.ts +12 -4
- package/src/components/autocomplete/index.ts +27 -0
- package/src/components/block-handle/block-handle-add.gen.ts +59 -31
- package/src/components/block-handle/block-handle-draggable.gen.ts +59 -31
- package/src/components/block-handle/block-handle-popup.gen.ts +44 -0
- package/src/components/block-handle/block-handle-positioner.gen.ts +171 -0
- package/src/components/block-handle/block-handle-root.gen.ts +84 -0
- package/src/components/block-handle/index.gen.ts +13 -3
- package/src/components/block-handle/index.ts +27 -0
- package/src/components/drop-indicator/drop-indicator.gen.ts +65 -31
- package/src/components/drop-indicator/index.gen.ts +5 -1
- package/src/components/drop-indicator/index.ts +14 -0
- package/src/components/inline-popover/index.gen.ts +11 -1
- package/src/components/inline-popover/index.ts +22 -0
- package/src/components/inline-popover/inline-popover-popup.gen.ts +44 -0
- package/src/components/inline-popover/inline-popover-positioner.gen.ts +177 -0
- package/src/components/inline-popover/inline-popover-root.gen.ts +108 -0
- package/src/components/menu/index.gen.ts +19 -0
- package/src/components/menu/index.ts +37 -0
- package/src/components/menu/menu-item.gen.ts +91 -0
- package/src/components/menu/menu-popup.gen.ts +58 -0
- package/src/components/menu/menu-positioner.gen.ts +178 -0
- package/src/components/menu/menu-root.gen.ts +88 -0
- package/src/components/menu/menu-submenu-root.gen.ts +44 -0
- package/src/components/menu/menu-submenu-trigger.gen.ts +44 -0
- package/src/components/menu/menu-trigger.gen.ts +79 -0
- package/src/components/popover/index.gen.ts +11 -3
- package/src/components/popover/index.ts +24 -0
- package/src/components/popover/popover-popup.gen.ts +44 -0
- package/src/components/popover/popover-positioner.gen.ts +178 -0
- package/src/components/popover/popover-root.gen.ts +92 -31
- package/src/components/popover/popover-trigger.gen.ts +92 -31
- package/src/components/resizable/index.gen.ts +8 -2
- package/src/components/resizable/index.ts +20 -0
- package/src/components/resizable/resizable-handle.gen.ts +54 -31
- package/src/components/resizable/resizable-root.gen.ts +90 -31
- package/src/components/table-handle/index.gen.ts +17 -9
- package/src/components/table-handle/index.ts +58 -0
- package/src/components/table-handle/table-handle-column-menu-root.gen.ts +66 -0
- package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +60 -0
- package/src/components/table-handle/table-handle-column-popup.gen.ts +44 -0
- package/src/components/table-handle/table-handle-column-positioner.gen.ts +201 -0
- package/src/components/table-handle/table-handle-drag-preview.gen.ts +57 -31
- package/src/components/table-handle/table-handle-drop-indicator.gen.ts +57 -31
- package/src/components/table-handle/table-handle-root.gen.ts +59 -31
- package/src/components/table-handle/table-handle-row-menu-root.gen.ts +66 -0
- package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +60 -0
- package/src/components/table-handle/table-handle-row-popup.gen.ts +44 -0
- package/src/components/table-handle/table-handle-row-positioner.gen.ts +201 -0
- package/src/components/tooltip/index.gen.ts +11 -3
- package/src/components/tooltip/index.ts +24 -0
- package/src/components/tooltip/tooltip-popup.gen.ts +44 -0
- package/src/components/tooltip/tooltip-positioner.gen.ts +178 -0
- package/src/components/tooltip/tooltip-root.gen.ts +85 -31
- package/src/components/tooltip/tooltip-trigger.gen.ts +63 -31
- package/src/extensions/preact-node-view.spec.ts +151 -0
- package/dist/create-component.js +0 -95
- package/dist/create-component.js.map +0 -1
- package/dist/create-props.d.ts +0 -6
- package/dist/create-props.d.ts.map +0 -1
- package/src/components/autocomplete/autocomplete-list.gen.ts +0 -34
- package/src/components/autocomplete/autocomplete-popover.gen.ts +0 -34
- package/src/components/block-handle/block-handle-popover.gen.ts +0 -34
- package/src/components/create-component.ts +0 -123
- package/src/components/create-props.ts +0 -13
- package/src/components/inline-popover/inline-popover.gen.ts +0 -34
- package/src/components/merge-refs.ts +0 -35
- package/src/components/popover/popover-content.gen.ts +0 -34
- package/src/components/table-handle/table-handle-column-root.gen.ts +0 -34
- package/src/components/table-handle/table-handle-column-trigger.gen.ts +0 -34
- package/src/components/table-handle/table-handle-popover-content.gen.ts +0 -34
- package/src/components/table-handle/table-handle-popover-item.gen.ts +0 -34
- package/src/components/table-handle/table-handle-row-root.gen.ts +0 -34
- package/src/components/table-handle/table-handle-row-trigger.gen.ts +0 -34
- package/src/components/tooltip/tooltip-content.gen.ts +0 -34
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type TableHandleColumnTriggerElement,
|
|
3
|
-
type TableHandleColumnTriggerProps as Props,
|
|
4
|
-
type TableHandleColumnTriggerEvents as Events,
|
|
5
|
-
tableHandleColumnTriggerProps,
|
|
6
|
-
tableHandleColumnTriggerEvents,
|
|
7
|
-
} from '@prosekit/web/table-handle'
|
|
8
|
-
import type {
|
|
9
|
-
ForwardRefExoticComponent,
|
|
10
|
-
HTMLAttributes,
|
|
11
|
-
RefAttributes,
|
|
12
|
-
} from 'preact/compat'
|
|
13
|
-
|
|
14
|
-
import { createComponent } from '../create-component.ts'
|
|
15
|
-
import type { CreateProps } from '../create-props.ts'
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Props for the {@link TableHandleColumnTrigger} component.
|
|
19
|
-
*/
|
|
20
|
-
export interface TableHandleColumnTriggerProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
22
|
-
export const TableHandleColumnTrigger: ForwardRefExoticComponent<
|
|
23
|
-
Partial<TableHandleColumnTriggerProps> &
|
|
24
|
-
RefAttributes<TableHandleColumnTriggerElement> &
|
|
25
|
-
HTMLAttributes<TableHandleColumnTriggerElement>
|
|
26
|
-
> = createComponent<
|
|
27
|
-
TableHandleColumnTriggerProps,
|
|
28
|
-
TableHandleColumnTriggerElement
|
|
29
|
-
>(
|
|
30
|
-
'prosekit-table-handle-column-trigger',
|
|
31
|
-
'TableHandleColumnTrigger',
|
|
32
|
-
Object.keys(tableHandleColumnTriggerProps),
|
|
33
|
-
Object.keys(tableHandleColumnTriggerEvents),
|
|
34
|
-
)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type TableHandlePopoverContentElement,
|
|
3
|
-
type TableHandlePopoverContentProps as Props,
|
|
4
|
-
type TableHandlePopoverContentEvents as Events,
|
|
5
|
-
tableHandlePopoverContentProps,
|
|
6
|
-
tableHandlePopoverContentEvents,
|
|
7
|
-
} from '@prosekit/web/table-handle'
|
|
8
|
-
import type {
|
|
9
|
-
ForwardRefExoticComponent,
|
|
10
|
-
HTMLAttributes,
|
|
11
|
-
RefAttributes,
|
|
12
|
-
} from 'preact/compat'
|
|
13
|
-
|
|
14
|
-
import { createComponent } from '../create-component.ts'
|
|
15
|
-
import type { CreateProps } from '../create-props.ts'
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Props for the {@link TableHandlePopoverContent} component.
|
|
19
|
-
*/
|
|
20
|
-
export interface TableHandlePopoverContentProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
22
|
-
export const TableHandlePopoverContent: ForwardRefExoticComponent<
|
|
23
|
-
Partial<TableHandlePopoverContentProps> &
|
|
24
|
-
RefAttributes<TableHandlePopoverContentElement> &
|
|
25
|
-
HTMLAttributes<TableHandlePopoverContentElement>
|
|
26
|
-
> = createComponent<
|
|
27
|
-
TableHandlePopoverContentProps,
|
|
28
|
-
TableHandlePopoverContentElement
|
|
29
|
-
>(
|
|
30
|
-
'prosekit-table-handle-popover-content',
|
|
31
|
-
'TableHandlePopoverContent',
|
|
32
|
-
Object.keys(tableHandlePopoverContentProps),
|
|
33
|
-
Object.keys(tableHandlePopoverContentEvents),
|
|
34
|
-
)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type TableHandlePopoverItemElement,
|
|
3
|
-
type TableHandlePopoverItemProps as Props,
|
|
4
|
-
type TableHandlePopoverItemEvents as Events,
|
|
5
|
-
tableHandlePopoverItemProps,
|
|
6
|
-
tableHandlePopoverItemEvents,
|
|
7
|
-
} from '@prosekit/web/table-handle'
|
|
8
|
-
import type {
|
|
9
|
-
ForwardRefExoticComponent,
|
|
10
|
-
HTMLAttributes,
|
|
11
|
-
RefAttributes,
|
|
12
|
-
} from 'preact/compat'
|
|
13
|
-
|
|
14
|
-
import { createComponent } from '../create-component.ts'
|
|
15
|
-
import type { CreateProps } from '../create-props.ts'
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Props for the {@link TableHandlePopoverItem} component.
|
|
19
|
-
*/
|
|
20
|
-
export interface TableHandlePopoverItemProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
22
|
-
export const TableHandlePopoverItem: ForwardRefExoticComponent<
|
|
23
|
-
Partial<TableHandlePopoverItemProps> &
|
|
24
|
-
RefAttributes<TableHandlePopoverItemElement> &
|
|
25
|
-
HTMLAttributes<TableHandlePopoverItemElement>
|
|
26
|
-
> = createComponent<
|
|
27
|
-
TableHandlePopoverItemProps,
|
|
28
|
-
TableHandlePopoverItemElement
|
|
29
|
-
>(
|
|
30
|
-
'prosekit-table-handle-popover-item',
|
|
31
|
-
'TableHandlePopoverItem',
|
|
32
|
-
Object.keys(tableHandlePopoverItemProps),
|
|
33
|
-
Object.keys(tableHandlePopoverItemEvents),
|
|
34
|
-
)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type TableHandleRowRootElement,
|
|
3
|
-
type TableHandleRowRootProps as Props,
|
|
4
|
-
type TableHandleRowRootEvents as Events,
|
|
5
|
-
tableHandleRowRootProps,
|
|
6
|
-
tableHandleRowRootEvents,
|
|
7
|
-
} from '@prosekit/web/table-handle'
|
|
8
|
-
import type {
|
|
9
|
-
ForwardRefExoticComponent,
|
|
10
|
-
HTMLAttributes,
|
|
11
|
-
RefAttributes,
|
|
12
|
-
} from 'preact/compat'
|
|
13
|
-
|
|
14
|
-
import { createComponent } from '../create-component.ts'
|
|
15
|
-
import type { CreateProps } from '../create-props.ts'
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Props for the {@link TableHandleRowRoot} component.
|
|
19
|
-
*/
|
|
20
|
-
export interface TableHandleRowRootProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
22
|
-
export const TableHandleRowRoot: ForwardRefExoticComponent<
|
|
23
|
-
Partial<TableHandleRowRootProps> &
|
|
24
|
-
RefAttributes<TableHandleRowRootElement> &
|
|
25
|
-
HTMLAttributes<TableHandleRowRootElement>
|
|
26
|
-
> = createComponent<
|
|
27
|
-
TableHandleRowRootProps,
|
|
28
|
-
TableHandleRowRootElement
|
|
29
|
-
>(
|
|
30
|
-
'prosekit-table-handle-row-root',
|
|
31
|
-
'TableHandleRowRoot',
|
|
32
|
-
Object.keys(tableHandleRowRootProps),
|
|
33
|
-
Object.keys(tableHandleRowRootEvents),
|
|
34
|
-
)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type TableHandleRowTriggerElement,
|
|
3
|
-
type TableHandleRowTriggerProps as Props,
|
|
4
|
-
type TableHandleRowTriggerEvents as Events,
|
|
5
|
-
tableHandleRowTriggerProps,
|
|
6
|
-
tableHandleRowTriggerEvents,
|
|
7
|
-
} from '@prosekit/web/table-handle'
|
|
8
|
-
import type {
|
|
9
|
-
ForwardRefExoticComponent,
|
|
10
|
-
HTMLAttributes,
|
|
11
|
-
RefAttributes,
|
|
12
|
-
} from 'preact/compat'
|
|
13
|
-
|
|
14
|
-
import { createComponent } from '../create-component.ts'
|
|
15
|
-
import type { CreateProps } from '../create-props.ts'
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Props for the {@link TableHandleRowTrigger} component.
|
|
19
|
-
*/
|
|
20
|
-
export interface TableHandleRowTriggerProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
22
|
-
export const TableHandleRowTrigger: ForwardRefExoticComponent<
|
|
23
|
-
Partial<TableHandleRowTriggerProps> &
|
|
24
|
-
RefAttributes<TableHandleRowTriggerElement> &
|
|
25
|
-
HTMLAttributes<TableHandleRowTriggerElement>
|
|
26
|
-
> = createComponent<
|
|
27
|
-
TableHandleRowTriggerProps,
|
|
28
|
-
TableHandleRowTriggerElement
|
|
29
|
-
>(
|
|
30
|
-
'prosekit-table-handle-row-trigger',
|
|
31
|
-
'TableHandleRowTrigger',
|
|
32
|
-
Object.keys(tableHandleRowTriggerProps),
|
|
33
|
-
Object.keys(tableHandleRowTriggerEvents),
|
|
34
|
-
)
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
type TooltipContentElement,
|
|
3
|
-
type TooltipContentProps as Props,
|
|
4
|
-
type TooltipContentEvents as Events,
|
|
5
|
-
tooltipContentProps,
|
|
6
|
-
tooltipContentEvents,
|
|
7
|
-
} from '@prosekit/web/tooltip'
|
|
8
|
-
import type {
|
|
9
|
-
ForwardRefExoticComponent,
|
|
10
|
-
HTMLAttributes,
|
|
11
|
-
RefAttributes,
|
|
12
|
-
} from 'preact/compat'
|
|
13
|
-
|
|
14
|
-
import { createComponent } from '../create-component.ts'
|
|
15
|
-
import type { CreateProps } from '../create-props.ts'
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Props for the {@link TooltipContent} component.
|
|
19
|
-
*/
|
|
20
|
-
export interface TooltipContentProps extends Partial<CreateProps<Props, Events>> {}
|
|
21
|
-
|
|
22
|
-
export const TooltipContent: ForwardRefExoticComponent<
|
|
23
|
-
Partial<TooltipContentProps> &
|
|
24
|
-
RefAttributes<TooltipContentElement> &
|
|
25
|
-
HTMLAttributes<TooltipContentElement>
|
|
26
|
-
> = createComponent<
|
|
27
|
-
TooltipContentProps,
|
|
28
|
-
TooltipContentElement
|
|
29
|
-
>(
|
|
30
|
-
'prosekit-tooltip-content',
|
|
31
|
-
'TooltipContent',
|
|
32
|
-
Object.keys(tooltipContentProps),
|
|
33
|
-
Object.keys(tooltipContentEvents),
|
|
34
|
-
)
|