@prosekit/solid 0.7.0-beta.3 → 0.7.0-beta.4
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-solid-autocomplete.d.ts +12 -12
- package/dist/prosekit-solid-autocomplete.d.ts.map +1 -1
- package/dist/prosekit-solid-autocomplete.js +2 -2
- package/dist/prosekit-solid-autocomplete.js.map +1 -1
- package/dist/prosekit-solid-block-handle.d.ts +12 -12
- package/dist/prosekit-solid-block-handle.d.ts.map +1 -1
- package/dist/prosekit-solid-block-handle.js +2 -2
- package/dist/prosekit-solid-block-handle.js.map +1 -1
- package/dist/prosekit-solid-drop-indicator.d.ts +2 -2
- package/dist/prosekit-solid-drop-indicator.d.ts.map +1 -1
- package/dist/prosekit-solid-drop-indicator.js.map +1 -1
- package/dist/prosekit-solid-inline-popover.d.ts +9 -9
- package/dist/prosekit-solid-inline-popover.d.ts.map +1 -1
- package/dist/prosekit-solid-inline-popover.js +2 -2
- package/dist/prosekit-solid-inline-popover.js.map +1 -1
- package/dist/prosekit-solid-menu.d.ts +16 -16
- package/dist/prosekit-solid-menu.d.ts.map +1 -1
- package/dist/prosekit-solid-menu.js +2 -2
- package/dist/prosekit-solid-menu.js.map +1 -1
- package/dist/prosekit-solid-popover.d.ts +10 -10
- package/dist/prosekit-solid-popover.d.ts.map +1 -1
- package/dist/prosekit-solid-popover.js +2 -2
- package/dist/prosekit-solid-popover.js.map +1 -1
- package/dist/prosekit-solid-resizable.d.ts +6 -6
- package/dist/prosekit-solid-resizable.d.ts.map +1 -1
- package/dist/prosekit-solid-resizable.js +2 -2
- package/dist/prosekit-solid-resizable.js.map +1 -1
- package/dist/prosekit-solid-table-handle.d.ts +22 -22
- package/dist/prosekit-solid-table-handle.d.ts.map +1 -1
- package/dist/prosekit-solid-table-handle.js.map +1 -1
- package/dist/prosekit-solid-tooltip.d.ts +10 -10
- package/dist/prosekit-solid-tooltip.d.ts.map +1 -1
- package/dist/prosekit-solid-tooltip.js +2 -2
- package/dist/prosekit-solid-tooltip.js.map +1 -1
- package/package.json +3 -3
- package/src/components/autocomplete/autocomplete-empty.gen.ts +2 -2
- package/src/components/autocomplete/autocomplete-item.gen.ts +2 -4
- package/src/components/autocomplete/autocomplete-popup.gen.ts +2 -4
- package/src/components/autocomplete/autocomplete-positioner.gen.ts +2 -2
- package/src/components/autocomplete/autocomplete-root.gen.ts +2 -4
- package/src/components/autocomplete/index.gen.ts +3 -5
- package/src/components/block-handle/block-handle-add.gen.ts +2 -2
- package/src/components/block-handle/block-handle-draggable.gen.ts +2 -2
- package/src/components/block-handle/block-handle-popup.gen.ts +2 -2
- package/src/components/block-handle/block-handle-positioner.gen.ts +2 -2
- package/src/components/block-handle/block-handle-root.gen.ts +2 -4
- package/src/components/block-handle/index.gen.ts +1 -3
- package/src/components/drop-indicator/drop-indicator.gen.ts +2 -2
- package/src/components/inline-popover/index.gen.ts +1 -3
- package/src/components/inline-popover/inline-popover-popup.gen.ts +2 -2
- package/src/components/inline-popover/inline-popover-positioner.gen.ts +2 -2
- package/src/components/inline-popover/inline-popover-root.gen.ts +3 -5
- package/src/components/menu/index.gen.ts +3 -5
- package/src/components/menu/menu-item.gen.ts +2 -4
- package/src/components/menu/menu-popup.gen.ts +2 -2
- package/src/components/menu/menu-positioner.gen.ts +2 -2
- package/src/components/menu/menu-root.gen.ts +2 -4
- package/src/components/menu/menu-submenu-root.gen.ts +2 -2
- package/src/components/menu/menu-submenu-trigger.gen.ts +2 -2
- package/src/components/menu/menu-trigger.gen.ts +2 -4
- package/src/components/popover/index.gen.ts +2 -4
- package/src/components/popover/popover-popup.gen.ts +2 -2
- package/src/components/popover/popover-positioner.gen.ts +2 -2
- package/src/components/popover/popover-root.gen.ts +2 -4
- package/src/components/popover/popover-trigger.gen.ts +2 -4
- package/src/components/resizable/index.gen.ts +1 -3
- package/src/components/resizable/resizable-handle.gen.ts +2 -2
- package/src/components/resizable/resizable-root.gen.ts +2 -4
- package/src/components/table-handle/table-handle-column-menu-root.gen.ts +2 -2
- package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +2 -2
- package/src/components/table-handle/table-handle-column-popup.gen.ts +2 -2
- package/src/components/table-handle/table-handle-column-positioner.gen.ts +2 -2
- package/src/components/table-handle/table-handle-drag-preview.gen.ts +2 -2
- package/src/components/table-handle/table-handle-drop-indicator.gen.ts +2 -2
- package/src/components/table-handle/table-handle-root.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-menu-root.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-popup.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-positioner.gen.ts +2 -2
- package/src/components/tooltip/index.gen.ts +1 -3
- package/src/components/tooltip/tooltip-popup.gen.ts +2 -2
- package/src/components/tooltip/tooltip-positioner.gen.ts +2 -2
- package/src/components/tooltip/tooltip-root.gen.ts +2 -4
- package/src/components/tooltip/tooltip-trigger.gen.ts +2 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosekit/solid",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.7.0-beta.
|
|
4
|
+
"version": "0.7.0-beta.4",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Solid components and utilities for ProseKit",
|
|
7
7
|
"author": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@prosemirror-adapter/solid": "^0.5.3",
|
|
77
77
|
"@prosekit/core": "^0.12.0-beta.0",
|
|
78
78
|
"@prosekit/pm": "^0.1.15",
|
|
79
|
-
"@prosekit/web": "^0.8.0-beta.
|
|
79
|
+
"@prosekit/web": "^0.8.0-beta.3"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"solid-js": ">= 1.7.0"
|
|
@@ -93,8 +93,8 @@
|
|
|
93
93
|
"vite-plugin-solid": "^2.11.12",
|
|
94
94
|
"vitest": "^4.1.4",
|
|
95
95
|
"vitest-browser-solid": "^1.0.1",
|
|
96
|
-
"@prosekit/config-tsdown": "0.0.0",
|
|
97
96
|
"@prosekit/config-ts": "0.0.0",
|
|
97
|
+
"@prosekit/config-tsdown": "0.0.0",
|
|
98
98
|
"@prosekit/config-vitest": "0.0.0",
|
|
99
99
|
"@prosekit/testing": "0.0.0"
|
|
100
100
|
},
|
|
@@ -11,14 +11,14 @@ import h from 'solid-js/h';
|
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
export interface AutocompleteEmptyProps
|
|
14
|
+
export interface AutocompleteEmptyProps {}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* A Solid component that renders an `prosekit-autocomplete-empty` custom element.
|
|
18
18
|
*
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
|
-
export const AutocompleteEmpty: Component<AutocompleteEmptyProps
|
|
21
|
+
export const AutocompleteEmpty: Component<AutocompleteEmptyProps & JSX.HTMLAttributes<AutocompleteEmptyElement>> = (props): any => {
|
|
22
22
|
registerAutocompleteEmptyElement();
|
|
23
23
|
|
|
24
24
|
const restProps = props;
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface AutocompleteItemProps
|
|
15
|
+
export interface AutocompleteItemProps {
|
|
16
16
|
/**
|
|
17
17
|
* The value of the item, which will be matched against the query.
|
|
18
18
|
*
|
|
@@ -36,7 +36,7 @@ export interface AutocompleteItemProps extends JSX.HTMLAttributes<AutocompleteIt
|
|
|
36
36
|
*
|
|
37
37
|
* @public
|
|
38
38
|
*/
|
|
39
|
-
export const AutocompleteItem: Component<AutocompleteItemProps
|
|
39
|
+
export const AutocompleteItem: Component<AutocompleteItemProps & JSX.HTMLAttributes<AutocompleteItemElement>> = (props): any => {
|
|
40
40
|
registerAutocompleteItemElement();
|
|
41
41
|
|
|
42
42
|
const [getElement, setElement] = createSignal<AutocompleteItemElement | null>(null);
|
|
@@ -81,5 +81,3 @@ export const AutocompleteItem: Component<AutocompleteItemProps> = (props): any =
|
|
|
81
81
|
}),
|
|
82
82
|
);
|
|
83
83
|
};
|
|
84
|
-
|
|
85
|
-
export type { AutocompleteItemEvents };
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface AutocompletePopupProps
|
|
15
|
+
export interface AutocompletePopupProps {
|
|
16
16
|
/**
|
|
17
17
|
* Emitted when the selected value changes. Only available when multiple is
|
|
18
18
|
* false.
|
|
@@ -30,7 +30,7 @@ export interface AutocompletePopupProps extends JSX.HTMLAttributes<AutocompleteP
|
|
|
30
30
|
*
|
|
31
31
|
* @public
|
|
32
32
|
*/
|
|
33
|
-
export const AutocompletePopup: Component<AutocompletePopupProps
|
|
33
|
+
export const AutocompletePopup: Component<AutocompletePopupProps & JSX.HTMLAttributes<AutocompletePopupElement>> = (props): any => {
|
|
34
34
|
registerAutocompletePopupElement();
|
|
35
35
|
|
|
36
36
|
const [getElement, setElement] = createSignal<AutocompletePopupElement | null>(null);
|
|
@@ -74,5 +74,3 @@ export const AutocompletePopup: Component<AutocompletePopupProps> = (props): any
|
|
|
74
74
|
}),
|
|
75
75
|
);
|
|
76
76
|
};
|
|
77
|
-
|
|
78
|
-
export type { AutocompletePopupEvents };
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface AutocompletePositionerProps
|
|
15
|
+
export interface AutocompletePositionerProps {
|
|
16
16
|
/**
|
|
17
17
|
* The placement of the popover, relative to the text cursor.
|
|
18
18
|
*
|
|
@@ -122,7 +122,7 @@ export interface AutocompletePositionerProps extends JSX.HTMLAttributes<Autocomp
|
|
|
122
122
|
*
|
|
123
123
|
* @public
|
|
124
124
|
*/
|
|
125
|
-
export const AutocompletePositioner: Component<AutocompletePositionerProps
|
|
125
|
+
export const AutocompletePositioner: Component<AutocompletePositionerProps & JSX.HTMLAttributes<AutocompletePositionerElement>> = (props): any => {
|
|
126
126
|
registerAutocompletePositionerElement();
|
|
127
127
|
|
|
128
128
|
const [getElement, setElement] = createSignal<AutocompletePositionerElement | null>(null);
|
|
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
export interface AutocompleteRootProps
|
|
17
|
+
export interface AutocompleteRootProps {
|
|
18
18
|
/**
|
|
19
19
|
* The ProseKit editor instance.
|
|
20
20
|
*
|
|
@@ -56,7 +56,7 @@ export interface AutocompleteRootProps extends JSX.HTMLAttributes<AutocompleteRo
|
|
|
56
56
|
*
|
|
57
57
|
* @public
|
|
58
58
|
*/
|
|
59
|
-
export const AutocompleteRoot: Component<AutocompleteRootProps
|
|
59
|
+
export const AutocompleteRoot: Component<AutocompleteRootProps & JSX.HTMLAttributes<AutocompleteRootElement>> = (props): any => {
|
|
60
60
|
registerAutocompleteRootElement();
|
|
61
61
|
|
|
62
62
|
const [getElement, setElement] = createSignal<AutocompleteRootElement | null>(null);
|
|
@@ -106,5 +106,3 @@ export const AutocompleteRoot: Component<AutocompleteRootProps> = (props): any =
|
|
|
106
106
|
}),
|
|
107
107
|
);
|
|
108
108
|
};
|
|
109
|
-
|
|
110
|
-
export type { AutocompleteRootEvents };
|
|
@@ -4,12 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
export { AutocompleteEmpty, type AutocompleteEmptyProps } from './autocomplete-empty.gen.ts';
|
|
6
6
|
|
|
7
|
-
export { AutocompleteItem, type AutocompleteItemProps
|
|
7
|
+
export { AutocompleteItem, type AutocompleteItemProps } from './autocomplete-item.gen.ts';
|
|
8
8
|
|
|
9
|
-
export { AutocompletePopup, type AutocompletePopupProps
|
|
9
|
+
export { AutocompletePopup, type AutocompletePopupProps } from './autocomplete-popup.gen.ts';
|
|
10
10
|
|
|
11
11
|
export { AutocompletePositioner, type AutocompletePositionerProps } from './autocomplete-positioner.gen.ts';
|
|
12
12
|
|
|
13
|
-
export { AutocompleteRoot, type AutocompleteRootProps
|
|
14
|
-
|
|
15
|
-
export { OpenChangeEvent, QueryChangeEvent, SelectEvent, ValueChangeEvent, ValuesChangeEvent } from '@prosekit/web/autocomplete';
|
|
13
|
+
export { AutocompleteRoot, type AutocompleteRootProps } from './autocomplete-root.gen.ts';
|
|
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
export interface BlockHandleAddProps
|
|
17
|
+
export interface BlockHandleAddProps {
|
|
18
18
|
/**
|
|
19
19
|
* The ProseKit editor instance.
|
|
20
20
|
*
|
|
@@ -29,7 +29,7 @@ export interface BlockHandleAddProps extends JSX.HTMLAttributes<BlockHandleAddEl
|
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
|
-
export const BlockHandleAdd: Component<BlockHandleAddProps
|
|
32
|
+
export const BlockHandleAdd: Component<BlockHandleAddProps & JSX.HTMLAttributes<BlockHandleAddElement>> = (props): any => {
|
|
33
33
|
registerBlockHandleAddElement();
|
|
34
34
|
|
|
35
35
|
const [getElement, setElement] = createSignal<BlockHandleAddElement | null>(null);
|
|
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
export interface BlockHandleDraggableProps
|
|
17
|
+
export interface BlockHandleDraggableProps {
|
|
18
18
|
/**
|
|
19
19
|
* The ProseKit editor instance.
|
|
20
20
|
*
|
|
@@ -29,7 +29,7 @@ export interface BlockHandleDraggableProps extends JSX.HTMLAttributes<BlockHandl
|
|
|
29
29
|
*
|
|
30
30
|
* @public
|
|
31
31
|
*/
|
|
32
|
-
export const BlockHandleDraggable: Component<BlockHandleDraggableProps
|
|
32
|
+
export const BlockHandleDraggable: Component<BlockHandleDraggableProps & JSX.HTMLAttributes<BlockHandleDraggableElement>> = (props): any => {
|
|
33
33
|
registerBlockHandleDraggableElement();
|
|
34
34
|
|
|
35
35
|
const [getElement, setElement] = createSignal<BlockHandleDraggableElement | null>(null);
|
|
@@ -11,14 +11,14 @@ import h from 'solid-js/h';
|
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
export interface BlockHandlePopupProps
|
|
14
|
+
export interface BlockHandlePopupProps {}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* A Solid component that renders an `prosekit-block-handle-popup` custom element.
|
|
18
18
|
*
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
|
-
export const BlockHandlePopup: Component<BlockHandlePopupProps
|
|
21
|
+
export const BlockHandlePopup: Component<BlockHandlePopupProps & JSX.HTMLAttributes<BlockHandlePopupElement>> = (props): any => {
|
|
22
22
|
registerBlockHandlePopupElement();
|
|
23
23
|
|
|
24
24
|
const restProps = props;
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface BlockHandlePositionerProps
|
|
15
|
+
export interface BlockHandlePositionerProps {
|
|
16
16
|
/**
|
|
17
17
|
* The placement of the popover, relative to the hovered block.
|
|
18
18
|
*
|
|
@@ -140,7 +140,7 @@ export interface BlockHandlePositionerProps extends JSX.HTMLAttributes<BlockHand
|
|
|
140
140
|
*
|
|
141
141
|
* @public
|
|
142
142
|
*/
|
|
143
|
-
export const BlockHandlePositioner: Component<BlockHandlePositionerProps
|
|
143
|
+
export const BlockHandlePositioner: Component<BlockHandlePositionerProps & JSX.HTMLAttributes<BlockHandlePositionerElement>> = (props): any => {
|
|
144
144
|
registerBlockHandlePositionerElement();
|
|
145
145
|
|
|
146
146
|
const [getElement, setElement] = createSignal<BlockHandlePositionerElement | null>(null);
|
|
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
export interface BlockHandleRootProps
|
|
17
|
+
export interface BlockHandleRootProps {
|
|
18
18
|
/**
|
|
19
19
|
* The ProseKit editor instance.
|
|
20
20
|
*
|
|
@@ -31,7 +31,7 @@ export interface BlockHandleRootProps extends JSX.HTMLAttributes<BlockHandleRoot
|
|
|
31
31
|
*
|
|
32
32
|
* @public
|
|
33
33
|
*/
|
|
34
|
-
export const BlockHandleRoot: Component<BlockHandleRootProps
|
|
34
|
+
export const BlockHandleRoot: Component<BlockHandleRootProps & JSX.HTMLAttributes<BlockHandleRootElement>> = (props): any => {
|
|
35
35
|
registerBlockHandleRootElement();
|
|
36
36
|
|
|
37
37
|
const [getElement, setElement] = createSignal<BlockHandleRootElement | null>(null);
|
|
@@ -78,5 +78,3 @@ export const BlockHandleRoot: Component<BlockHandleRootProps> = (props): any =>
|
|
|
78
78
|
}),
|
|
79
79
|
);
|
|
80
80
|
};
|
|
81
|
-
|
|
82
|
-
export type { BlockHandleRootEvents };
|
|
@@ -10,6 +10,4 @@ export { BlockHandlePopup, type BlockHandlePopupProps } from './block-handle-pop
|
|
|
10
10
|
|
|
11
11
|
export { BlockHandlePositioner, type BlockHandlePositionerProps } from './block-handle-positioner.gen.ts';
|
|
12
12
|
|
|
13
|
-
export { BlockHandleRoot, type BlockHandleRootProps
|
|
14
|
-
|
|
15
|
-
export { BlockHandleStateChangeEvent } from '@prosekit/web/block-handle';
|
|
13
|
+
export { BlockHandleRoot, type BlockHandleRootProps } from './block-handle-root.gen.ts';
|
|
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
export interface DropIndicatorProps
|
|
17
|
+
export interface DropIndicatorProps {
|
|
18
18
|
/**
|
|
19
19
|
* The ProseKit editor instance.
|
|
20
20
|
*
|
|
@@ -35,7 +35,7 @@ export interface DropIndicatorProps extends JSX.HTMLAttributes<DropIndicatorElem
|
|
|
35
35
|
*
|
|
36
36
|
* @public
|
|
37
37
|
*/
|
|
38
|
-
export const DropIndicator: Component<DropIndicatorProps
|
|
38
|
+
export const DropIndicator: Component<DropIndicatorProps & JSX.HTMLAttributes<DropIndicatorElement>> = (props): any => {
|
|
39
39
|
registerDropIndicatorElement();
|
|
40
40
|
|
|
41
41
|
const [getElement, setElement] = createSignal<DropIndicatorElement | null>(null);
|
|
@@ -6,6 +6,4 @@ export { InlinePopoverPopup, type InlinePopoverPopupProps } from './inline-popov
|
|
|
6
6
|
|
|
7
7
|
export { InlinePopoverPositioner, type InlinePopoverPositionerProps } from './inline-popover-positioner.gen.ts';
|
|
8
8
|
|
|
9
|
-
export { InlinePopoverRoot, type InlinePopoverRootProps
|
|
10
|
-
|
|
11
|
-
export { OpenChangeEvent } from '@prosekit/web/inline-popover';
|
|
9
|
+
export { InlinePopoverRoot, type InlinePopoverRootProps } from './inline-popover-root.gen.ts';
|
|
@@ -11,14 +11,14 @@ import h from 'solid-js/h';
|
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
export interface InlinePopoverPopupProps
|
|
14
|
+
export interface InlinePopoverPopupProps {}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* A Solid component that renders an `prosekit-inline-popover-popup` custom element.
|
|
18
18
|
*
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
|
-
export const InlinePopoverPopup: Component<InlinePopoverPopupProps
|
|
21
|
+
export const InlinePopoverPopup: Component<InlinePopoverPopupProps & JSX.HTMLAttributes<InlinePopoverPopupElement>> = (props): any => {
|
|
22
22
|
registerInlinePopoverPopupElement();
|
|
23
23
|
|
|
24
24
|
const restProps = props;
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface InlinePopoverPositionerProps
|
|
15
|
+
export interface InlinePopoverPositionerProps {
|
|
16
16
|
/**
|
|
17
17
|
* The initial placement of the floating element
|
|
18
18
|
*
|
|
@@ -146,7 +146,7 @@ export interface InlinePopoverPositionerProps extends JSX.HTMLAttributes<InlineP
|
|
|
146
146
|
*
|
|
147
147
|
* @public
|
|
148
148
|
*/
|
|
149
|
-
export const InlinePopoverPositioner: Component<InlinePopoverPositionerProps
|
|
149
|
+
export const InlinePopoverPositioner: Component<InlinePopoverPositionerProps & JSX.HTMLAttributes<InlinePopoverPositionerElement>> = (props): any => {
|
|
150
150
|
registerInlinePopoverPositionerElement();
|
|
151
151
|
|
|
152
152
|
const [getElement, setElement] = createSignal<InlinePopoverPositionerElement | null>(null);
|
|
@@ -14,7 +14,7 @@ import { useEditorContext } from '../../contexts/editor-context.ts';
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
export interface InlinePopoverRootProps
|
|
17
|
+
export interface InlinePopoverRootProps {
|
|
18
18
|
/**
|
|
19
19
|
* The ProseKit editor instance.
|
|
20
20
|
*
|
|
@@ -46,7 +46,7 @@ export interface InlinePopoverRootProps extends JSX.HTMLAttributes<InlinePopover
|
|
|
46
46
|
* @default false
|
|
47
47
|
*/
|
|
48
48
|
disabled?: InlinePopoverRootElementProps['disabled'];
|
|
49
|
-
/** */
|
|
49
|
+
/** Emitted when the open state of the popover changes. */
|
|
50
50
|
onOpenChange?: (event: InlinePopoverRootEvents['openChange']) => void;
|
|
51
51
|
}
|
|
52
52
|
|
|
@@ -55,7 +55,7 @@ export interface InlinePopoverRootProps extends JSX.HTMLAttributes<InlinePopover
|
|
|
55
55
|
*
|
|
56
56
|
* @public
|
|
57
57
|
*/
|
|
58
|
-
export const InlinePopoverRoot: Component<InlinePopoverRootProps
|
|
58
|
+
export const InlinePopoverRoot: Component<InlinePopoverRootProps & JSX.HTMLAttributes<InlinePopoverRootElement>> = (props): any => {
|
|
59
59
|
registerInlinePopoverRootElement();
|
|
60
60
|
|
|
61
61
|
const [getElement, setElement] = createSignal<InlinePopoverRootElement | null>(null);
|
|
@@ -102,5 +102,3 @@ export const InlinePopoverRoot: Component<InlinePopoverRootProps> = (props): any
|
|
|
102
102
|
}),
|
|
103
103
|
);
|
|
104
104
|
};
|
|
105
|
-
|
|
106
|
-
export type { InlinePopoverRootEvents };
|
|
@@ -2,18 +2,16 @@
|
|
|
2
2
|
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export { MenuItem, type MenuItemProps
|
|
5
|
+
export { MenuItem, type MenuItemProps } from './menu-item.gen.ts';
|
|
6
6
|
|
|
7
7
|
export { MenuPopup, type MenuPopupProps } from './menu-popup.gen.ts';
|
|
8
8
|
|
|
9
9
|
export { MenuPositioner, type MenuPositionerProps } from './menu-positioner.gen.ts';
|
|
10
10
|
|
|
11
|
-
export { MenuRoot, type MenuRootProps
|
|
11
|
+
export { MenuRoot, type MenuRootProps } from './menu-root.gen.ts';
|
|
12
12
|
|
|
13
13
|
export { MenuSubmenuRoot, type MenuSubmenuRootProps } from './menu-submenu-root.gen.ts';
|
|
14
14
|
|
|
15
15
|
export { MenuSubmenuTrigger, type MenuSubmenuTriggerProps } from './menu-submenu-trigger.gen.ts';
|
|
16
16
|
|
|
17
|
-
export { MenuTrigger, type MenuTriggerProps
|
|
18
|
-
|
|
19
|
-
export { OpenChangeEvent, SelectEvent } from '@prosekit/web/menu';
|
|
17
|
+
export { MenuTrigger, type MenuTriggerProps } from './menu-trigger.gen.ts';
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface MenuItemProps
|
|
15
|
+
export interface MenuItemProps {
|
|
16
16
|
/**
|
|
17
17
|
* The unique value for this menu item.
|
|
18
18
|
*
|
|
@@ -40,7 +40,7 @@ export interface MenuItemProps extends JSX.HTMLAttributes<MenuItemElement> {
|
|
|
40
40
|
*
|
|
41
41
|
* @public
|
|
42
42
|
*/
|
|
43
|
-
export const MenuItem: Component<MenuItemProps
|
|
43
|
+
export const MenuItem: Component<MenuItemProps & JSX.HTMLAttributes<MenuItemElement>> = (props): any => {
|
|
44
44
|
registerMenuItemElement();
|
|
45
45
|
|
|
46
46
|
const [getElement, setElement] = createSignal<MenuItemElement | null>(null);
|
|
@@ -85,5 +85,3 @@ export const MenuItem: Component<MenuItemProps> = (props): any => {
|
|
|
85
85
|
}),
|
|
86
86
|
);
|
|
87
87
|
};
|
|
88
|
-
|
|
89
|
-
export type { MenuItemEvents };
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface MenuPopupProps
|
|
15
|
+
export interface MenuPopupProps {
|
|
16
16
|
/**
|
|
17
17
|
* By default, the MenuPopup element will listen for keydown events.
|
|
18
18
|
* You can pass a different element to listen for keydown events.
|
|
@@ -27,7 +27,7 @@ export interface MenuPopupProps extends JSX.HTMLAttributes<MenuPopupElement> {
|
|
|
27
27
|
*
|
|
28
28
|
* @public
|
|
29
29
|
*/
|
|
30
|
-
export const MenuPopup: Component<MenuPopupProps
|
|
30
|
+
export const MenuPopup: Component<MenuPopupProps & JSX.HTMLAttributes<MenuPopupElement>> = (props): any => {
|
|
31
31
|
registerMenuPopupElement();
|
|
32
32
|
|
|
33
33
|
const [getElement, setElement] = createSignal<MenuPopupElement | null>(null);
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface MenuPositionerProps
|
|
15
|
+
export interface MenuPositionerProps {
|
|
16
16
|
/**
|
|
17
17
|
* The initial placement of the floating element
|
|
18
18
|
*
|
|
@@ -147,7 +147,7 @@ export interface MenuPositionerProps extends JSX.HTMLAttributes<MenuPositionerEl
|
|
|
147
147
|
*
|
|
148
148
|
* @public
|
|
149
149
|
*/
|
|
150
|
-
export const MenuPositioner: Component<MenuPositionerProps
|
|
150
|
+
export const MenuPositioner: Component<MenuPositionerProps & JSX.HTMLAttributes<MenuPositionerElement>> = (props): any => {
|
|
151
151
|
registerMenuPositionerElement();
|
|
152
152
|
|
|
153
153
|
const [getElement, setElement] = createSignal<MenuPositionerElement | null>(null);
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface MenuRootProps
|
|
15
|
+
export interface MenuRootProps {
|
|
16
16
|
/**
|
|
17
17
|
* Whether the overlay is initially open.
|
|
18
18
|
* @default false
|
|
@@ -37,7 +37,7 @@ export interface MenuRootProps extends JSX.HTMLAttributes<MenuRootElement> {
|
|
|
37
37
|
*
|
|
38
38
|
* @public
|
|
39
39
|
*/
|
|
40
|
-
export const MenuRoot: Component<MenuRootProps
|
|
40
|
+
export const MenuRoot: Component<MenuRootProps & JSX.HTMLAttributes<MenuRootElement>> = (props): any => {
|
|
41
41
|
registerMenuRootElement();
|
|
42
42
|
|
|
43
43
|
const [getElement, setElement] = createSignal<MenuRootElement | null>(null);
|
|
@@ -82,5 +82,3 @@ export const MenuRoot: Component<MenuRootProps> = (props): any => {
|
|
|
82
82
|
}),
|
|
83
83
|
);
|
|
84
84
|
};
|
|
85
|
-
|
|
86
|
-
export type { MenuRootEvents };
|
|
@@ -11,14 +11,14 @@ import h from 'solid-js/h';
|
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
export interface MenuSubmenuRootProps
|
|
14
|
+
export interface MenuSubmenuRootProps {}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* A Solid component that renders an `prosekit-menu-submenu-root` custom element.
|
|
18
18
|
*
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
|
-
export const MenuSubmenuRoot: Component<MenuSubmenuRootProps
|
|
21
|
+
export const MenuSubmenuRoot: Component<MenuSubmenuRootProps & JSX.HTMLAttributes<MenuSubmenuRootElement>> = (props): any => {
|
|
22
22
|
registerMenuSubmenuRootElement();
|
|
23
23
|
|
|
24
24
|
const restProps = props;
|
|
@@ -11,14 +11,14 @@ import h from 'solid-js/h';
|
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
export interface MenuSubmenuTriggerProps
|
|
14
|
+
export interface MenuSubmenuTriggerProps {}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* A Solid component that renders an `prosekit-menu-submenu-trigger` custom element.
|
|
18
18
|
*
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
|
-
export const MenuSubmenuTrigger: Component<MenuSubmenuTriggerProps
|
|
21
|
+
export const MenuSubmenuTrigger: Component<MenuSubmenuTriggerProps & JSX.HTMLAttributes<MenuSubmenuTriggerElement>> = (props): any => {
|
|
22
22
|
registerMenuSubmenuTriggerElement();
|
|
23
23
|
|
|
24
24
|
const restProps = props;
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface MenuTriggerProps
|
|
15
|
+
export interface MenuTriggerProps {
|
|
16
16
|
/**
|
|
17
17
|
* Whether the component should ignore user interaction.
|
|
18
18
|
*
|
|
@@ -28,7 +28,7 @@ export interface MenuTriggerProps extends JSX.HTMLAttributes<MenuTriggerElement>
|
|
|
28
28
|
*
|
|
29
29
|
* @public
|
|
30
30
|
*/
|
|
31
|
-
export const MenuTrigger: Component<MenuTriggerProps
|
|
31
|
+
export const MenuTrigger: Component<MenuTriggerProps & JSX.HTMLAttributes<MenuTriggerElement>> = (props): any => {
|
|
32
32
|
registerMenuTriggerElement();
|
|
33
33
|
|
|
34
34
|
const [getElement, setElement] = createSignal<MenuTriggerElement | null>(null);
|
|
@@ -73,5 +73,3 @@ export const MenuTrigger: Component<MenuTriggerProps> = (props): any => {
|
|
|
73
73
|
}),
|
|
74
74
|
);
|
|
75
75
|
};
|
|
76
|
-
|
|
77
|
-
export type { MenuTriggerEvents };
|
|
@@ -6,8 +6,6 @@ export { PopoverPopup, type PopoverPopupProps } from './popover-popup.gen.ts';
|
|
|
6
6
|
|
|
7
7
|
export { PopoverPositioner, type PopoverPositionerProps } from './popover-positioner.gen.ts';
|
|
8
8
|
|
|
9
|
-
export { PopoverRoot, type PopoverRootProps
|
|
9
|
+
export { PopoverRoot, type PopoverRootProps } from './popover-root.gen.ts';
|
|
10
10
|
|
|
11
|
-
export { PopoverTrigger, type PopoverTriggerProps
|
|
12
|
-
|
|
13
|
-
export { OpenChangeEvent } from '@prosekit/web/popover';
|
|
11
|
+
export { PopoverTrigger, type PopoverTriggerProps } from './popover-trigger.gen.ts';
|
|
@@ -11,14 +11,14 @@ import h from 'solid-js/h';
|
|
|
11
11
|
*
|
|
12
12
|
* @public
|
|
13
13
|
*/
|
|
14
|
-
export interface PopoverPopupProps
|
|
14
|
+
export interface PopoverPopupProps {}
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* A Solid component that renders an `prosekit-popover-popup` custom element.
|
|
18
18
|
*
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
|
-
export const PopoverPopup: Component<PopoverPopupProps
|
|
21
|
+
export const PopoverPopup: Component<PopoverPopupProps & JSX.HTMLAttributes<PopoverPopupElement>> = (props): any => {
|
|
22
22
|
registerPopoverPopupElement();
|
|
23
23
|
|
|
24
24
|
const restProps = props;
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface PopoverPositionerProps
|
|
15
|
+
export interface PopoverPositionerProps {
|
|
16
16
|
/**
|
|
17
17
|
* The strategy to use for positioning
|
|
18
18
|
*
|
|
@@ -147,7 +147,7 @@ export interface PopoverPositionerProps extends JSX.HTMLAttributes<PopoverPositi
|
|
|
147
147
|
*
|
|
148
148
|
* @public
|
|
149
149
|
*/
|
|
150
|
-
export const PopoverPositioner: Component<PopoverPositionerProps
|
|
150
|
+
export const PopoverPositioner: Component<PopoverPositionerProps & JSX.HTMLAttributes<PopoverPositionerElement>> = (props): any => {
|
|
151
151
|
registerPopoverPositionerElement();
|
|
152
152
|
|
|
153
153
|
const [getElement, setElement] = createSignal<PopoverPositionerElement | null>(null);
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface PopoverRootProps
|
|
15
|
+
export interface PopoverRootProps {
|
|
16
16
|
/**
|
|
17
17
|
* Whether the popover should be modal.
|
|
18
18
|
* When true, the popover will trap focus and prevent interaction with the rest of the page.
|
|
@@ -44,7 +44,7 @@ export interface PopoverRootProps extends JSX.HTMLAttributes<PopoverRootElement>
|
|
|
44
44
|
*
|
|
45
45
|
* @public
|
|
46
46
|
*/
|
|
47
|
-
export const PopoverRoot: Component<PopoverRootProps
|
|
47
|
+
export const PopoverRoot: Component<PopoverRootProps & JSX.HTMLAttributes<PopoverRootElement>> = (props): any => {
|
|
48
48
|
registerPopoverRootElement();
|
|
49
49
|
|
|
50
50
|
const [getElement, setElement] = createSignal<PopoverRootElement | null>(null);
|
|
@@ -89,5 +89,3 @@ export const PopoverRoot: Component<PopoverRootProps> = (props): any => {
|
|
|
89
89
|
}),
|
|
90
90
|
);
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
export type { PopoverRootEvents };
|
|
@@ -12,7 +12,7 @@ import h from 'solid-js/h';
|
|
|
12
12
|
*
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
|
-
export interface PopoverTriggerProps
|
|
15
|
+
export interface PopoverTriggerProps {
|
|
16
16
|
/**
|
|
17
17
|
* Whether the component should ignore user interaction.
|
|
18
18
|
* @default false
|
|
@@ -44,7 +44,7 @@ export interface PopoverTriggerProps extends JSX.HTMLAttributes<PopoverTriggerEl
|
|
|
44
44
|
*
|
|
45
45
|
* @public
|
|
46
46
|
*/
|
|
47
|
-
export const PopoverTrigger: Component<PopoverTriggerProps
|
|
47
|
+
export const PopoverTrigger: Component<PopoverTriggerProps & JSX.HTMLAttributes<PopoverTriggerElement>> = (props): any => {
|
|
48
48
|
registerPopoverTriggerElement();
|
|
49
49
|
|
|
50
50
|
const [getElement, setElement] = createSignal<PopoverTriggerElement | null>(null);
|
|
@@ -89,5 +89,3 @@ export const PopoverTrigger: Component<PopoverTriggerProps> = (props): any => {
|
|
|
89
89
|
}),
|
|
90
90
|
);
|
|
91
91
|
};
|
|
92
|
-
|
|
93
|
-
export type { PopoverTriggerEvents };
|
|
@@ -2,8 +2,6 @@
|
|
|
2
2
|
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
-
export { ResizableRoot, type ResizableRootProps
|
|
5
|
+
export { ResizableRoot, type ResizableRootProps } from './resizable-root.gen.ts';
|
|
6
6
|
|
|
7
7
|
export { ResizableHandle, type ResizableHandleProps } from './resizable-handle.gen.ts';
|
|
8
|
-
|
|
9
|
-
export { ResizeEndEvent, ResizeStartEvent } from '@prosekit/web/resizable';
|