@prosekit/solid 0.4.13 → 0.4.15
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-DhWsGDHc.js → create-component-x4Duyu8z.js} +3 -3
- package/dist/{create-props-YzgBVL0x.d.ts → create-props-B3k6ERfv.d.ts} +0 -1
- package/dist/prosekit-solid-autocomplete.d.ts +3 -9
- package/dist/prosekit-solid-autocomplete.js +1 -1
- package/dist/prosekit-solid-block-handle.d.ts +3 -8
- package/dist/prosekit-solid-block-handle.js +1 -1
- package/dist/prosekit-solid-inline-popover.d.ts +3 -6
- package/dist/prosekit-solid-inline-popover.js +1 -1
- package/dist/prosekit-solid-popover.d.ts +3 -8
- package/dist/prosekit-solid-popover.js +1 -1
- package/dist/prosekit-solid-resizable.d.ts +3 -7
- package/dist/prosekit-solid-resizable.js +1 -1
- package/dist/prosekit-solid-table-handle.d.ts +3 -12
- package/dist/prosekit-solid-table-handle.js +1 -1
- package/dist/prosekit-solid-tooltip.d.ts +3 -8
- package/dist/prosekit-solid-tooltip.js +1 -1
- package/dist/prosekit-solid.d.ts +1 -9
- package/dist/{types-CC9kxezm.d.ts → types-DFZJMe9D.d.ts} +2 -5
- package/package.json +7 -7
@@ -4,7 +4,7 @@ import h from "solid-js/h";
|
|
4
4
|
//#region src/components/create-component.ts
|
5
5
|
function createComponent(tagName, propNames, eventNames) {
|
6
6
|
const hasEditor = propNames.includes("editor");
|
7
|
-
const lowerCaseEventNameMap =
|
7
|
+
const lowerCaseEventNameMap = new Map(eventNames.map((name) => [name.toLowerCase(), name]));
|
8
8
|
const Component = (props) => {
|
9
9
|
const properties = {};
|
10
10
|
const eventHandlers = {};
|
@@ -15,12 +15,12 @@ function createComponent(tagName, propNames, eventNames) {
|
|
15
15
|
}
|
16
16
|
if (name.startsWith("on")) {
|
17
17
|
const lowerCaseEventName = name.slice(2).toLowerCase();
|
18
|
-
const eventName = lowerCaseEventNameMap
|
18
|
+
const eventName = lowerCaseEventNameMap.get(lowerCaseEventName);
|
19
19
|
if (eventName) {
|
20
20
|
const extractDetail = eventName.endsWith("Change");
|
21
21
|
eventHandlers["on:" + eventName] = (event) => {
|
22
22
|
const handler = props[name];
|
23
|
-
handler(extractDetail ? event.detail : event);
|
23
|
+
if (typeof handler === "function") handler(extractDetail ? event.detail : event);
|
24
24
|
};
|
25
25
|
continue;
|
26
26
|
}
|
@@ -1,6 +1,5 @@
|
|
1
1
|
//#region src/components/create-props.d.ts
|
2
2
|
type CreateProps<Props extends { [PropName in keyof Props]: unknown }, Events extends { [EventName in keyof Events]: CustomEvent }> = Props & CreateEventProps<Events>;
|
3
3
|
type CreateEventProps<Events extends { [EventName in keyof Events]: CustomEvent }> = { [EventName in keyof Events as `on${Capitalize<string & EventName>}`]: (event: EventName extends `${string}Change` ? Events[EventName]["detail"] : Events[EventName]) => void };
|
4
|
-
|
5
4
|
//#endregion
|
6
5
|
export { CreateProps };
|
@@ -1,18 +1,15 @@
|
|
1
|
-
import { PropsWithElement } from "./types-
|
2
|
-
import { CreateProps } from "./create-props-
|
1
|
+
import { PropsWithElement } from "./types-DFZJMe9D.js";
|
2
|
+
import { CreateProps } from "./create-props-B3k6ERfv.js";
|
3
3
|
import { Component } from "solid-js";
|
4
4
|
import { AutocompleteEmptyElement, AutocompleteEmptyEvents, AutocompleteEmptyProps as AutocompleteEmptyProps$1, AutocompleteItemElement, AutocompleteItemEvents, AutocompleteItemProps as AutocompleteItemProps$1, AutocompleteListElement, AutocompleteListEvents, AutocompleteListProps as AutocompleteListProps$1, AutocompletePopoverElement, AutocompletePopoverEvents, AutocompletePopoverProps as AutocompletePopoverProps$1 } from "@prosekit/web/autocomplete";
|
5
5
|
|
6
6
|
//#region src/components/autocomplete/autocomplete-empty.gen.d.ts
|
7
|
-
|
8
|
-
* Props for the {@link AutocompleteEmpty} component.
|
9
|
-
*/
|
7
|
+
|
10
8
|
/**
|
11
9
|
* Props for the {@link AutocompleteEmpty} component.
|
12
10
|
*/
|
13
11
|
interface AutocompleteEmptyProps extends Partial<CreateProps<AutocompleteEmptyProps$1, AutocompleteEmptyEvents>> {}
|
14
12
|
declare const AutocompleteEmpty: Component<PropsWithElement<AutocompleteEmptyProps, AutocompleteEmptyElement>>;
|
15
|
-
|
16
13
|
//#endregion
|
17
14
|
//#region src/components/autocomplete/autocomplete-item.gen.d.ts
|
18
15
|
/**
|
@@ -20,7 +17,6 @@ declare const AutocompleteEmpty: Component<PropsWithElement<AutocompleteEmptyPro
|
|
20
17
|
*/
|
21
18
|
interface AutocompleteItemProps extends Partial<CreateProps<AutocompleteItemProps$1, AutocompleteItemEvents>> {}
|
22
19
|
declare const AutocompleteItem: Component<PropsWithElement<AutocompleteItemProps, AutocompleteItemElement>>;
|
23
|
-
|
24
20
|
//#endregion
|
25
21
|
//#region src/components/autocomplete/autocomplete-list.gen.d.ts
|
26
22
|
/**
|
@@ -28,7 +24,6 @@ declare const AutocompleteItem: Component<PropsWithElement<AutocompleteItemProps
|
|
28
24
|
*/
|
29
25
|
interface AutocompleteListProps extends Partial<CreateProps<AutocompleteListProps$1, AutocompleteListEvents>> {}
|
30
26
|
declare const AutocompleteList: Component<PropsWithElement<AutocompleteListProps, AutocompleteListElement>>;
|
31
|
-
|
32
27
|
//#endregion
|
33
28
|
//#region src/components/autocomplete/autocomplete-popover.gen.d.ts
|
34
29
|
/**
|
@@ -36,6 +31,5 @@ declare const AutocompleteList: Component<PropsWithElement<AutocompleteListProps
|
|
36
31
|
*/
|
37
32
|
interface AutocompletePopoverProps extends Partial<CreateProps<AutocompletePopoverProps$1, AutocompletePopoverEvents>> {}
|
38
33
|
declare const AutocompletePopover: Component<PropsWithElement<AutocompletePopoverProps, AutocompletePopoverElement>>;
|
39
|
-
|
40
34
|
//#endregion
|
41
35
|
export { AutocompleteEmpty, AutocompleteEmptyProps, AutocompleteItem, AutocompleteItemProps, AutocompleteList, AutocompleteListProps, AutocompletePopover, AutocompletePopoverProps };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "./editor-context-DIj_hnDx.js";
|
2
|
-
import { createComponent } from "./create-component-
|
2
|
+
import { createComponent } from "./create-component-x4Duyu8z.js";
|
3
3
|
import { autocompleteEmptyEvents, autocompleteEmptyProps, autocompleteItemEvents, autocompleteItemProps, autocompleteListEvents, autocompleteListProps, autocompletePopoverEvents, autocompletePopoverProps } from "@prosekit/web/autocomplete";
|
4
4
|
|
5
5
|
//#region src/components/autocomplete/autocomplete-empty.gen.ts
|
@@ -1,18 +1,15 @@
|
|
1
|
-
import { PropsWithElement } from "./types-
|
2
|
-
import { CreateProps } from "./create-props-
|
1
|
+
import { PropsWithElement } from "./types-DFZJMe9D.js";
|
2
|
+
import { CreateProps } from "./create-props-B3k6ERfv.js";
|
3
3
|
import { Component } from "solid-js";
|
4
4
|
import { BlockHandleAddElement, BlockHandleAddEvents, BlockHandleAddProps as BlockHandleAddProps$1, BlockHandleDraggableElement, BlockHandleDraggableEvents, BlockHandleDraggableProps as BlockHandleDraggableProps$1, BlockHandlePopoverElement, BlockHandlePopoverEvents, BlockHandlePopoverProps as BlockHandlePopoverProps$1 } from "@prosekit/web/block-handle";
|
5
5
|
|
6
6
|
//#region src/components/block-handle/block-handle-add.gen.d.ts
|
7
|
-
|
8
|
-
* Props for the {@link BlockHandleAdd} component.
|
9
|
-
*/
|
7
|
+
|
10
8
|
/**
|
11
9
|
* Props for the {@link BlockHandleAdd} component.
|
12
10
|
*/
|
13
11
|
interface BlockHandleAddProps extends Partial<CreateProps<BlockHandleAddProps$1, BlockHandleAddEvents>> {}
|
14
12
|
declare const BlockHandleAdd: Component<PropsWithElement<BlockHandleAddProps, BlockHandleAddElement>>;
|
15
|
-
|
16
13
|
//#endregion
|
17
14
|
//#region src/components/block-handle/block-handle-draggable.gen.d.ts
|
18
15
|
/**
|
@@ -20,7 +17,6 @@ declare const BlockHandleAdd: Component<PropsWithElement<BlockHandleAddProps, Bl
|
|
20
17
|
*/
|
21
18
|
interface BlockHandleDraggableProps extends Partial<CreateProps<BlockHandleDraggableProps$1, BlockHandleDraggableEvents>> {}
|
22
19
|
declare const BlockHandleDraggable: Component<PropsWithElement<BlockHandleDraggableProps, BlockHandleDraggableElement>>;
|
23
|
-
|
24
20
|
//#endregion
|
25
21
|
//#region src/components/block-handle/block-handle-popover.gen.d.ts
|
26
22
|
/**
|
@@ -28,6 +24,5 @@ declare const BlockHandleDraggable: Component<PropsWithElement<BlockHandleDragga
|
|
28
24
|
*/
|
29
25
|
interface BlockHandlePopoverProps extends Partial<CreateProps<BlockHandlePopoverProps$1, BlockHandlePopoverEvents>> {}
|
30
26
|
declare const BlockHandlePopover: Component<PropsWithElement<BlockHandlePopoverProps, BlockHandlePopoverElement>>;
|
31
|
-
|
32
27
|
//#endregion
|
33
28
|
export { BlockHandleAdd, BlockHandleAddProps, BlockHandleDraggable, BlockHandleDraggableProps, BlockHandlePopover, BlockHandlePopoverProps };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "./editor-context-DIj_hnDx.js";
|
2
|
-
import { createComponent } from "./create-component-
|
2
|
+
import { createComponent } from "./create-component-x4Duyu8z.js";
|
3
3
|
import { blockHandleAddEvents, blockHandleAddProps, blockHandleDraggableEvents, blockHandleDraggableProps, blockHandlePopoverEvents, blockHandlePopoverProps } from "@prosekit/web/block-handle";
|
4
4
|
|
5
5
|
//#region src/components/block-handle/block-handle-add.gen.ts
|
@@ -1,17 +1,14 @@
|
|
1
|
-
import { PropsWithElement } from "./types-
|
2
|
-
import { CreateProps } from "./create-props-
|
1
|
+
import { PropsWithElement } from "./types-DFZJMe9D.js";
|
2
|
+
import { CreateProps } from "./create-props-B3k6ERfv.js";
|
3
3
|
import { Component } from "solid-js";
|
4
4
|
import { InlinePopoverElement, InlinePopoverEvents, InlinePopoverProps as InlinePopoverProps$1 } from "@prosekit/web/inline-popover";
|
5
5
|
|
6
6
|
//#region src/components/inline-popover/inline-popover.gen.d.ts
|
7
|
-
|
8
|
-
* Props for the {@link InlinePopover} component.
|
9
|
-
*/
|
7
|
+
|
10
8
|
/**
|
11
9
|
* Props for the {@link InlinePopover} component.
|
12
10
|
*/
|
13
11
|
interface InlinePopoverProps extends Partial<CreateProps<InlinePopoverProps$1, InlinePopoverEvents>> {}
|
14
12
|
declare const InlinePopover: Component<PropsWithElement<InlinePopoverProps, InlinePopoverElement>>;
|
15
|
-
|
16
13
|
//#endregion
|
17
14
|
export { InlinePopover, InlinePopoverProps };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "./editor-context-DIj_hnDx.js";
|
2
|
-
import { createComponent } from "./create-component-
|
2
|
+
import { createComponent } from "./create-component-x4Duyu8z.js";
|
3
3
|
import { inlinePopoverEvents, inlinePopoverProps } from "@prosekit/web/inline-popover";
|
4
4
|
|
5
5
|
//#region src/components/inline-popover/inline-popover.gen.ts
|
@@ -1,18 +1,15 @@
|
|
1
|
-
import { PropsWithElement } from "./types-
|
2
|
-
import { CreateProps } from "./create-props-
|
1
|
+
import { PropsWithElement } from "./types-DFZJMe9D.js";
|
2
|
+
import { CreateProps } from "./create-props-B3k6ERfv.js";
|
3
3
|
import { Component } from "solid-js";
|
4
4
|
import { PopoverContentElement, PopoverContentEvents, PopoverContentProps as PopoverContentProps$1, PopoverRootElement, PopoverRootEvents, PopoverRootProps as PopoverRootProps$1, PopoverTriggerElement, PopoverTriggerEvents, PopoverTriggerProps as PopoverTriggerProps$1 } from "@prosekit/web/popover";
|
5
5
|
|
6
6
|
//#region src/components/popover/popover-content.gen.d.ts
|
7
|
-
|
8
|
-
* Props for the {@link PopoverContent} component.
|
9
|
-
*/
|
7
|
+
|
10
8
|
/**
|
11
9
|
* Props for the {@link PopoverContent} component.
|
12
10
|
*/
|
13
11
|
interface PopoverContentProps extends Partial<CreateProps<PopoverContentProps$1, PopoverContentEvents>> {}
|
14
12
|
declare const PopoverContent: Component<PropsWithElement<PopoverContentProps, PopoverContentElement>>;
|
15
|
-
|
16
13
|
//#endregion
|
17
14
|
//#region src/components/popover/popover-root.gen.d.ts
|
18
15
|
/**
|
@@ -20,7 +17,6 @@ declare const PopoverContent: Component<PropsWithElement<PopoverContentProps, Po
|
|
20
17
|
*/
|
21
18
|
interface PopoverRootProps extends Partial<CreateProps<PopoverRootProps$1, PopoverRootEvents>> {}
|
22
19
|
declare const PopoverRoot: Component<PropsWithElement<PopoverRootProps, PopoverRootElement>>;
|
23
|
-
|
24
20
|
//#endregion
|
25
21
|
//#region src/components/popover/popover-trigger.gen.d.ts
|
26
22
|
/**
|
@@ -28,6 +24,5 @@ declare const PopoverRoot: Component<PropsWithElement<PopoverRootProps, PopoverR
|
|
28
24
|
*/
|
29
25
|
interface PopoverTriggerProps extends Partial<CreateProps<PopoverTriggerProps$1, PopoverTriggerEvents>> {}
|
30
26
|
declare const PopoverTrigger: Component<PropsWithElement<PopoverTriggerProps, PopoverTriggerElement>>;
|
31
|
-
|
32
27
|
//#endregion
|
33
28
|
export { PopoverContent, PopoverContentProps, PopoverRoot, PopoverRootProps, PopoverTrigger, PopoverTriggerProps };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "./editor-context-DIj_hnDx.js";
|
2
|
-
import { createComponent } from "./create-component-
|
2
|
+
import { createComponent } from "./create-component-x4Duyu8z.js";
|
3
3
|
import { popoverContentEvents, popoverContentProps, popoverRootEvents, popoverRootProps, popoverTriggerEvents, popoverTriggerProps } from "@prosekit/web/popover";
|
4
4
|
|
5
5
|
//#region src/components/popover/popover-content.gen.ts
|
@@ -1,18 +1,15 @@
|
|
1
|
-
import { PropsWithElement } from "./types-
|
2
|
-
import { CreateProps } from "./create-props-
|
1
|
+
import { PropsWithElement } from "./types-DFZJMe9D.js";
|
2
|
+
import { CreateProps } from "./create-props-B3k6ERfv.js";
|
3
3
|
import { Component } from "solid-js";
|
4
4
|
import { ResizableHandleElement, ResizableHandleEvents, ResizableHandleProps as ResizableHandleProps$1, ResizableRootElement, ResizableRootEvents, ResizableRootProps as ResizableRootProps$1 } from "@prosekit/web/resizable";
|
5
5
|
|
6
6
|
//#region src/components/resizable/resizable-handle.gen.d.ts
|
7
|
-
|
8
|
-
* Props for the {@link ResizableHandle} component.
|
9
|
-
*/
|
7
|
+
|
10
8
|
/**
|
11
9
|
* Props for the {@link ResizableHandle} component.
|
12
10
|
*/
|
13
11
|
interface ResizableHandleProps extends Partial<CreateProps<ResizableHandleProps$1, ResizableHandleEvents>> {}
|
14
12
|
declare const ResizableHandle: Component<PropsWithElement<ResizableHandleProps, ResizableHandleElement>>;
|
15
|
-
|
16
13
|
//#endregion
|
17
14
|
//#region src/components/resizable/resizable-root.gen.d.ts
|
18
15
|
/**
|
@@ -20,6 +17,5 @@ declare const ResizableHandle: Component<PropsWithElement<ResizableHandleProps,
|
|
20
17
|
*/
|
21
18
|
interface ResizableRootProps extends Partial<CreateProps<ResizableRootProps$1, ResizableRootEvents>> {}
|
22
19
|
declare const ResizableRoot: Component<PropsWithElement<ResizableRootProps, ResizableRootElement>>;
|
23
|
-
|
24
20
|
//#endregion
|
25
21
|
export { ResizableHandle, ResizableHandleProps, ResizableRoot, ResizableRootProps };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "./editor-context-DIj_hnDx.js";
|
2
|
-
import { createComponent } from "./create-component-
|
2
|
+
import { createComponent } from "./create-component-x4Duyu8z.js";
|
3
3
|
import { resizableHandleEvents, resizableHandleProps, resizableRootEvents, resizableRootProps } from "@prosekit/web/resizable";
|
4
4
|
|
5
5
|
//#region src/components/resizable/resizable-handle.gen.ts
|
@@ -1,18 +1,15 @@
|
|
1
|
-
import { PropsWithElement } from "./types-
|
2
|
-
import { CreateProps } from "./create-props-
|
1
|
+
import { PropsWithElement } from "./types-DFZJMe9D.js";
|
2
|
+
import { CreateProps } from "./create-props-B3k6ERfv.js";
|
3
3
|
import { Component } from "solid-js";
|
4
4
|
import { TableHandleColumnRootElement, TableHandleColumnRootEvents, TableHandleColumnRootProps as TableHandleColumnRootProps$1, TableHandleColumnTriggerElement, TableHandleColumnTriggerEvents, TableHandleColumnTriggerProps as TableHandleColumnTriggerProps$1, TableHandlePopoverContentElement, TableHandlePopoverContentEvents, TableHandlePopoverContentProps as TableHandlePopoverContentProps$1, TableHandlePopoverItemElement, TableHandlePopoverItemEvents, TableHandlePopoverItemProps as TableHandlePopoverItemProps$1, TableHandleRootElement, TableHandleRootEvents, TableHandleRootProps as TableHandleRootProps$1, TableHandleRowRootElement, TableHandleRowRootEvents, TableHandleRowRootProps as TableHandleRowRootProps$1, TableHandleRowTriggerElement, TableHandleRowTriggerEvents, TableHandleRowTriggerProps as TableHandleRowTriggerProps$1 } from "@prosekit/web/table-handle";
|
5
5
|
|
6
6
|
//#region src/components/table-handle/table-handle-column-root.gen.d.ts
|
7
|
-
|
8
|
-
* Props for the {@link TableHandleColumnRoot} component.
|
9
|
-
*/
|
7
|
+
|
10
8
|
/**
|
11
9
|
* Props for the {@link TableHandleColumnRoot} component.
|
12
10
|
*/
|
13
11
|
interface TableHandleColumnRootProps extends Partial<CreateProps<TableHandleColumnRootProps$1, TableHandleColumnRootEvents>> {}
|
14
12
|
declare const TableHandleColumnRoot: Component<PropsWithElement<TableHandleColumnRootProps, TableHandleColumnRootElement>>;
|
15
|
-
|
16
13
|
//#endregion
|
17
14
|
//#region src/components/table-handle/table-handle-column-trigger.gen.d.ts
|
18
15
|
/**
|
@@ -20,7 +17,6 @@ declare const TableHandleColumnRoot: Component<PropsWithElement<TableHandleColum
|
|
20
17
|
*/
|
21
18
|
interface TableHandleColumnTriggerProps extends Partial<CreateProps<TableHandleColumnTriggerProps$1, TableHandleColumnTriggerEvents>> {}
|
22
19
|
declare const TableHandleColumnTrigger: Component<PropsWithElement<TableHandleColumnTriggerProps, TableHandleColumnTriggerElement>>;
|
23
|
-
|
24
20
|
//#endregion
|
25
21
|
//#region src/components/table-handle/table-handle-popover-content.gen.d.ts
|
26
22
|
/**
|
@@ -28,7 +24,6 @@ declare const TableHandleColumnTrigger: Component<PropsWithElement<TableHandleCo
|
|
28
24
|
*/
|
29
25
|
interface TableHandlePopoverContentProps extends Partial<CreateProps<TableHandlePopoverContentProps$1, TableHandlePopoverContentEvents>> {}
|
30
26
|
declare const TableHandlePopoverContent: Component<PropsWithElement<TableHandlePopoverContentProps, TableHandlePopoverContentElement>>;
|
31
|
-
|
32
27
|
//#endregion
|
33
28
|
//#region src/components/table-handle/table-handle-popover-item.gen.d.ts
|
34
29
|
/**
|
@@ -36,7 +31,6 @@ declare const TableHandlePopoverContent: Component<PropsWithElement<TableHandleP
|
|
36
31
|
*/
|
37
32
|
interface TableHandlePopoverItemProps extends Partial<CreateProps<TableHandlePopoverItemProps$1, TableHandlePopoverItemEvents>> {}
|
38
33
|
declare const TableHandlePopoverItem: Component<PropsWithElement<TableHandlePopoverItemProps, TableHandlePopoverItemElement>>;
|
39
|
-
|
40
34
|
//#endregion
|
41
35
|
//#region src/components/table-handle/table-handle-root.gen.d.ts
|
42
36
|
/**
|
@@ -44,7 +38,6 @@ declare const TableHandlePopoverItem: Component<PropsWithElement<TableHandlePopo
|
|
44
38
|
*/
|
45
39
|
interface TableHandleRootProps extends Partial<CreateProps<TableHandleRootProps$1, TableHandleRootEvents>> {}
|
46
40
|
declare const TableHandleRoot: Component<PropsWithElement<TableHandleRootProps, TableHandleRootElement>>;
|
47
|
-
|
48
41
|
//#endregion
|
49
42
|
//#region src/components/table-handle/table-handle-row-root.gen.d.ts
|
50
43
|
/**
|
@@ -52,7 +45,6 @@ declare const TableHandleRoot: Component<PropsWithElement<TableHandleRootProps,
|
|
52
45
|
*/
|
53
46
|
interface TableHandleRowRootProps extends Partial<CreateProps<TableHandleRowRootProps$1, TableHandleRowRootEvents>> {}
|
54
47
|
declare const TableHandleRowRoot: Component<PropsWithElement<TableHandleRowRootProps, TableHandleRowRootElement>>;
|
55
|
-
|
56
48
|
//#endregion
|
57
49
|
//#region src/components/table-handle/table-handle-row-trigger.gen.d.ts
|
58
50
|
/**
|
@@ -60,6 +52,5 @@ declare const TableHandleRowRoot: Component<PropsWithElement<TableHandleRowRootP
|
|
60
52
|
*/
|
61
53
|
interface TableHandleRowTriggerProps extends Partial<CreateProps<TableHandleRowTriggerProps$1, TableHandleRowTriggerEvents>> {}
|
62
54
|
declare const TableHandleRowTrigger: Component<PropsWithElement<TableHandleRowTriggerProps, TableHandleRowTriggerElement>>;
|
63
|
-
|
64
55
|
//#endregion
|
65
56
|
export { TableHandleColumnRoot, TableHandleColumnRootProps, TableHandleColumnTrigger, TableHandleColumnTriggerProps, TableHandlePopoverContent, TableHandlePopoverContentProps, TableHandlePopoverItem, TableHandlePopoverItemProps, TableHandleRoot, TableHandleRootProps, TableHandleRowRoot, TableHandleRowRootProps, TableHandleRowTrigger, TableHandleRowTriggerProps };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "./editor-context-DIj_hnDx.js";
|
2
|
-
import { createComponent } from "./create-component-
|
2
|
+
import { createComponent } from "./create-component-x4Duyu8z.js";
|
3
3
|
import { tableHandleColumnRootEvents, tableHandleColumnRootProps, tableHandleColumnTriggerEvents, tableHandleColumnTriggerProps, tableHandlePopoverContentEvents, tableHandlePopoverContentProps, tableHandlePopoverItemEvents, tableHandlePopoverItemProps, tableHandleRootEvents, tableHandleRootProps, tableHandleRowRootEvents, tableHandleRowRootProps, tableHandleRowTriggerEvents, tableHandleRowTriggerProps } from "@prosekit/web/table-handle";
|
4
4
|
|
5
5
|
//#region src/components/table-handle/table-handle-column-root.gen.ts
|
@@ -1,18 +1,15 @@
|
|
1
|
-
import { PropsWithElement } from "./types-
|
2
|
-
import { CreateProps } from "./create-props-
|
1
|
+
import { PropsWithElement } from "./types-DFZJMe9D.js";
|
2
|
+
import { CreateProps } from "./create-props-B3k6ERfv.js";
|
3
3
|
import { Component } from "solid-js";
|
4
4
|
import { TooltipContentElement, TooltipContentEvents, TooltipContentProps as TooltipContentProps$1, TooltipRootElement, TooltipRootEvents, TooltipRootProps as TooltipRootProps$1, TooltipTriggerElement, TooltipTriggerEvents, TooltipTriggerProps as TooltipTriggerProps$1 } from "@prosekit/web/tooltip";
|
5
5
|
|
6
6
|
//#region src/components/tooltip/tooltip-content.gen.d.ts
|
7
|
-
|
8
|
-
* Props for the {@link TooltipContent} component.
|
9
|
-
*/
|
7
|
+
|
10
8
|
/**
|
11
9
|
* Props for the {@link TooltipContent} component.
|
12
10
|
*/
|
13
11
|
interface TooltipContentProps extends Partial<CreateProps<TooltipContentProps$1, TooltipContentEvents>> {}
|
14
12
|
declare const TooltipContent: Component<PropsWithElement<TooltipContentProps, TooltipContentElement>>;
|
15
|
-
|
16
13
|
//#endregion
|
17
14
|
//#region src/components/tooltip/tooltip-root.gen.d.ts
|
18
15
|
/**
|
@@ -20,7 +17,6 @@ declare const TooltipContent: Component<PropsWithElement<TooltipContentProps, To
|
|
20
17
|
*/
|
21
18
|
interface TooltipRootProps extends Partial<CreateProps<TooltipRootProps$1, TooltipRootEvents>> {}
|
22
19
|
declare const TooltipRoot: Component<PropsWithElement<TooltipRootProps, TooltipRootElement>>;
|
23
|
-
|
24
20
|
//#endregion
|
25
21
|
//#region src/components/tooltip/tooltip-trigger.gen.d.ts
|
26
22
|
/**
|
@@ -28,6 +24,5 @@ declare const TooltipRoot: Component<PropsWithElement<TooltipRootProps, TooltipR
|
|
28
24
|
*/
|
29
25
|
interface TooltipTriggerProps extends Partial<CreateProps<TooltipTriggerProps$1, TooltipTriggerEvents>> {}
|
30
26
|
declare const TooltipTrigger: Component<PropsWithElement<TooltipTriggerProps, TooltipTriggerElement>>;
|
31
|
-
|
32
27
|
//#endregion
|
33
28
|
export { TooltipContent, TooltipContentProps, TooltipRoot, TooltipRootProps, TooltipTrigger, TooltipTriggerProps };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import "./editor-context-DIj_hnDx.js";
|
2
|
-
import { createComponent } from "./create-component-
|
2
|
+
import { createComponent } from "./create-component-x4Duyu8z.js";
|
3
3
|
import { tooltipContentEvents, tooltipContentProps, tooltipRootEvents, tooltipRootProps, tooltipTriggerEvents, tooltipTriggerProps } from "@prosekit/web/tooltip";
|
4
4
|
|
5
5
|
//#region src/components/tooltip/tooltip-content.gen.ts
|
package/dist/prosekit-solid.d.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { MaybeAccessor, PropsWithChildren, PropsWithClass, PropsWithElement } from "./types-
|
1
|
+
import { MaybeAccessor, PropsWithChildren, PropsWithClass, PropsWithElement } from "./types-DFZJMe9D.js";
|
2
2
|
import { MarkViewContextProps, NodeViewContextProps } from "@prosemirror-adapter/solid";
|
3
3
|
import { Accessor, Component, ParentProps } from "solid-js";
|
4
4
|
import { Editor, Extension, Keymap, Priority } from "@prosekit/core";
|
@@ -16,7 +16,6 @@ type ProseKitProps = ParentProps<{
|
|
16
16
|
* @public
|
17
17
|
*/
|
18
18
|
declare const ProseKit: Component<ProseKitProps>;
|
19
|
-
|
20
19
|
//#endregion
|
21
20
|
//#region src/extensions/solid-mark-view.d.ts
|
22
21
|
/**
|
@@ -48,7 +47,6 @@ interface SolidMarkViewOptions extends CoreMarkViewUserOptions<SolidMarkViewComp
|
|
48
47
|
* @public
|
49
48
|
*/
|
50
49
|
declare function defineSolidMarkView(options: SolidMarkViewOptions): Extension;
|
51
|
-
|
52
50
|
//#endregion
|
53
51
|
//#region src/extensions/solid-node-view.d.ts
|
54
52
|
/**
|
@@ -80,7 +78,6 @@ interface SolidNodeViewOptions extends CoreNodeViewUserOptions<SolidNodeViewComp
|
|
80
78
|
* @public
|
81
79
|
*/
|
82
80
|
declare function defineSolidNodeView(options: SolidNodeViewOptions): Extension;
|
83
|
-
|
84
81
|
//#endregion
|
85
82
|
//#region src/hooks/use-extension.d.ts
|
86
83
|
interface UseExtensionOptions {
|
@@ -98,7 +95,6 @@ interface UseExtensionOptions {
|
|
98
95
|
* Add an extension to the editor.
|
99
96
|
*/
|
100
97
|
declare function useExtension(extension: Accessor<Extension | null>, options?: UseExtensionOptions): void;
|
101
|
-
|
102
98
|
//#endregion
|
103
99
|
//#region src/hooks/use-doc-change.d.ts
|
104
100
|
/**
|
@@ -107,7 +103,6 @@ declare function useExtension(extension: Accessor<Extension | null>, options?: U
|
|
107
103
|
* @public
|
108
104
|
*/
|
109
105
|
declare function useDocChange(handler: (doc: ProseMirrorNode) => void, options?: UseExtensionOptions): void;
|
110
|
-
|
111
106
|
//#endregion
|
112
107
|
//#region src/hooks/use-editor.d.ts
|
113
108
|
/**
|
@@ -124,11 +119,9 @@ declare function useEditor<E extends Extension = any>(options?: {
|
|
124
119
|
*/
|
125
120
|
update?: boolean;
|
126
121
|
}): () => Editor<E>;
|
127
|
-
|
128
122
|
//#endregion
|
129
123
|
//#region src/hooks/use-keymap.d.ts
|
130
124
|
declare function useKeymap(keymap: () => Keymap, options?: UseExtensionOptions): void;
|
131
|
-
|
132
125
|
//#endregion
|
133
126
|
//#region src/hooks/use-state-update.d.ts
|
134
127
|
/**
|
@@ -137,6 +130,5 @@ declare function useKeymap(keymap: () => Keymap, options?: UseExtensionOptions):
|
|
137
130
|
* @public
|
138
131
|
*/
|
139
132
|
declare function useStateUpdate(handler: (state: EditorState) => void, options?: UseExtensionOptions): void;
|
140
|
-
|
141
133
|
//#endregion
|
142
134
|
export { MaybeAccessor, PropsWithChildren, PropsWithClass, PropsWithElement, ProseKit, ProseKitProps, SolidMarkViewComponent, SolidMarkViewOptions, SolidMarkViewProps, SolidNodeViewComponent, SolidNodeViewOptions, SolidNodeViewProps, UseExtensionOptions, defineSolidMarkView, defineSolidNodeView, useDocChange, useEditor, useExtension, useKeymap, useStateUpdate };
|
@@ -1,9 +1,7 @@
|
|
1
1
|
import { Accessor, JSX, JSXElement } from "solid-js";
|
2
2
|
|
3
3
|
//#region src/types.d.ts
|
4
|
-
|
5
|
-
* @internal
|
6
|
-
*/
|
4
|
+
|
7
5
|
/**
|
8
6
|
* @internal
|
9
7
|
*/
|
@@ -24,8 +22,6 @@ type PropsWithElement<Props extends object, CustomElement extends HTMLElement> =
|
|
24
22
|
* T or a reactive/non-reactive function returning T
|
25
23
|
*/
|
26
24
|
type MaybeAccessor<T> = T | Accessor<T>;
|
27
|
-
|
28
|
-
//#endregion
|
29
25
|
/**
|
30
26
|
* Accessed value of a MaybeAccessor
|
31
27
|
*
|
@@ -40,4 +36,5 @@ type MaybeAccessor<T> = T | Accessor<T>;
|
|
40
36
|
* // => string | void
|
41
37
|
* ```
|
42
38
|
*/
|
39
|
+
//#endregion
|
43
40
|
export { MaybeAccessor, PropsWithChildren, PropsWithClass, PropsWithElement };
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@prosekit/solid",
|
3
3
|
"type": "module",
|
4
|
-
"version": "0.4.
|
4
|
+
"version": "0.4.15",
|
5
5
|
"private": false,
|
6
6
|
"description": "Solid components and utilities for ProseKit",
|
7
7
|
"author": {
|
@@ -65,9 +65,9 @@
|
|
65
65
|
"dependencies": {
|
66
66
|
"@prosemirror-adapter/core": "^0.4.0",
|
67
67
|
"@prosemirror-adapter/solid": "^0.4.1",
|
68
|
-
"@prosekit/
|
69
|
-
"@prosekit/
|
70
|
-
"@prosekit/
|
68
|
+
"@prosekit/core": "^0.8.2",
|
69
|
+
"@prosekit/web": "^0.5.10",
|
70
|
+
"@prosekit/pm": "^0.1.11"
|
71
71
|
},
|
72
72
|
"peerDependencies": {
|
73
73
|
"solid-js": ">= 1.7.0"
|
@@ -78,10 +78,10 @@
|
|
78
78
|
}
|
79
79
|
},
|
80
80
|
"devDependencies": {
|
81
|
-
"solid-js": "^1.9.
|
82
|
-
"tsdown": "^0.
|
81
|
+
"solid-js": "^1.9.7",
|
82
|
+
"tsdown": "^0.12.7",
|
83
83
|
"typescript": "~5.8.3",
|
84
|
-
"vitest": "^3.
|
84
|
+
"vitest": "^3.2.3",
|
85
85
|
"@prosekit/config-tsdown": "0.0.0",
|
86
86
|
"@prosekit/config-vitest": "0.0.0"
|
87
87
|
},
|