@prosekit/solid 0.4.17 → 0.5.0

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.
@@ -32,4 +32,4 @@ declare const AutocompleteList: Component<PropsWithElement<AutocompleteListProps
32
32
  interface AutocompletePopoverProps extends Partial<CreateProps<AutocompletePopoverProps$1, AutocompletePopoverEvents>> {}
33
33
  declare const AutocompletePopover: Component<PropsWithElement<AutocompletePopoverProps, AutocompletePopoverElement>>;
34
34
  //#endregion
35
- export { AutocompleteEmpty, AutocompleteEmptyProps, AutocompleteItem, AutocompleteItemProps, AutocompleteList, AutocompleteListProps, AutocompletePopover, AutocompletePopoverProps };
35
+ export { AutocompleteEmpty, type AutocompleteEmptyProps, AutocompleteItem, type AutocompleteItemProps, AutocompleteList, type AutocompleteListProps, AutocompletePopover, type AutocompletePopoverProps };
@@ -25,4 +25,4 @@ declare const BlockHandleDraggable: Component<PropsWithElement<BlockHandleDragga
25
25
  interface BlockHandlePopoverProps extends Partial<CreateProps<BlockHandlePopoverProps$1, BlockHandlePopoverEvents>> {}
26
26
  declare const BlockHandlePopover: Component<PropsWithElement<BlockHandlePopoverProps, BlockHandlePopoverElement>>;
27
27
  //#endregion
28
- export { BlockHandleAdd, BlockHandleAddProps, BlockHandleDraggable, BlockHandleDraggableProps, BlockHandlePopover, BlockHandlePopoverProps };
28
+ export { BlockHandleAdd, type BlockHandleAddProps, BlockHandleDraggable, type BlockHandleDraggableProps, BlockHandlePopover, type BlockHandlePopoverProps };
@@ -0,0 +1,14 @@
1
+ import { PropsWithElement } from "./types-DFZJMe9D.js";
2
+ import { CreateProps } from "./create-props-B3k6ERfv.js";
3
+ import { Component } from "solid-js";
4
+ import { DropIndicatorElement, DropIndicatorEvents, DropIndicatorProps as DropIndicatorProps$1 } from "@prosekit/web/drop-indicator";
5
+
6
+ //#region src/components/drop-indicator/drop-indicator.gen.d.ts
7
+
8
+ /**
9
+ * Props for the {@link DropIndicator} component.
10
+ */
11
+ interface DropIndicatorProps extends Partial<CreateProps<DropIndicatorProps$1, DropIndicatorEvents>> {}
12
+ declare const DropIndicator: Component<PropsWithElement<DropIndicatorProps, DropIndicatorElement>>;
13
+ //#endregion
14
+ export { DropIndicator, type DropIndicatorProps };
@@ -0,0 +1,9 @@
1
+ import "./editor-context-DIj_hnDx.js";
2
+ import { createComponent } from "./create-component-x4Duyu8z.js";
3
+ import { dropIndicatorEvents, dropIndicatorProps } from "@prosekit/web/drop-indicator";
4
+
5
+ //#region src/components/drop-indicator/drop-indicator.gen.ts
6
+ const DropIndicator = createComponent("prosekit-drop-indicator", Object.keys(dropIndicatorProps), Object.keys(dropIndicatorEvents));
7
+
8
+ //#endregion
9
+ export { DropIndicator };
@@ -11,4 +11,4 @@ import { InlinePopoverElement, InlinePopoverEvents, InlinePopoverProps as Inline
11
11
  interface InlinePopoverProps extends Partial<CreateProps<InlinePopoverProps$1, InlinePopoverEvents>> {}
12
12
  declare const InlinePopover: Component<PropsWithElement<InlinePopoverProps, InlinePopoverElement>>;
13
13
  //#endregion
14
- export { InlinePopover, InlinePopoverProps };
14
+ export { InlinePopover, type InlinePopoverProps };
@@ -25,4 +25,4 @@ declare const PopoverRoot: Component<PropsWithElement<PopoverRootProps, PopoverR
25
25
  interface PopoverTriggerProps extends Partial<CreateProps<PopoverTriggerProps$1, PopoverTriggerEvents>> {}
26
26
  declare const PopoverTrigger: Component<PropsWithElement<PopoverTriggerProps, PopoverTriggerElement>>;
27
27
  //#endregion
28
- export { PopoverContent, PopoverContentProps, PopoverRoot, PopoverRootProps, PopoverTrigger, PopoverTriggerProps };
28
+ export { PopoverContent, type PopoverContentProps, PopoverRoot, type PopoverRootProps, PopoverTrigger, type PopoverTriggerProps };
@@ -18,4 +18,4 @@ declare const ResizableHandle: Component<PropsWithElement<ResizableHandleProps,
18
18
  interface ResizableRootProps extends Partial<CreateProps<ResizableRootProps$1, ResizableRootEvents>> {}
19
19
  declare const ResizableRoot: Component<PropsWithElement<ResizableRootProps, ResizableRootElement>>;
20
20
  //#endregion
21
- export { ResizableHandle, ResizableHandleProps, ResizableRoot, ResizableRootProps };
21
+ export { ResizableHandle, type ResizableHandleProps, ResizableRoot, type ResizableRootProps };
@@ -67,4 +67,4 @@ declare const TableHandleRowRoot: Component<PropsWithElement<TableHandleRowRootP
67
67
  interface TableHandleRowTriggerProps extends Partial<CreateProps<TableHandleRowTriggerProps$1, TableHandleRowTriggerEvents>> {}
68
68
  declare const TableHandleRowTrigger: Component<PropsWithElement<TableHandleRowTriggerProps, TableHandleRowTriggerElement>>;
69
69
  //#endregion
70
- export { TableHandleColumnRoot, TableHandleColumnRootProps, TableHandleColumnTrigger, TableHandleColumnTriggerProps, TableHandleDragPreview, TableHandleDragPreviewProps, TableHandleDropIndicator, TableHandleDropIndicatorProps, TableHandlePopoverContent, TableHandlePopoverContentProps, TableHandlePopoverItem, TableHandlePopoverItemProps, TableHandleRoot, TableHandleRootProps, TableHandleRowRoot, TableHandleRowRootProps, TableHandleRowTrigger, TableHandleRowTriggerProps };
70
+ export { TableHandleColumnRoot, type TableHandleColumnRootProps, TableHandleColumnTrigger, type TableHandleColumnTriggerProps, TableHandleDragPreview, type TableHandleDragPreviewProps, TableHandleDropIndicator, type TableHandleDropIndicatorProps, TableHandlePopoverContent, type TableHandlePopoverContentProps, TableHandlePopoverItem, type TableHandlePopoverItemProps, TableHandleRoot, type TableHandleRootProps, TableHandleRowRoot, type TableHandleRowRootProps, TableHandleRowTrigger, type TableHandleRowTriggerProps };
@@ -25,4 +25,4 @@ declare const TooltipRoot: Component<PropsWithElement<TooltipRootProps, TooltipR
25
25
  interface TooltipTriggerProps extends Partial<CreateProps<TooltipTriggerProps$1, TooltipTriggerEvents>> {}
26
26
  declare const TooltipTrigger: Component<PropsWithElement<TooltipTriggerProps, TooltipTriggerElement>>;
27
27
  //#endregion
28
- export { TooltipContent, TooltipContentProps, TooltipRoot, TooltipRootProps, TooltipTrigger, TooltipTriggerProps };
28
+ export { TooltipContent, type TooltipContentProps, TooltipRoot, type TooltipRootProps, TooltipTrigger, type TooltipTriggerProps };
@@ -131,4 +131,4 @@ declare function useKeymap(keymap: () => Keymap, options?: UseExtensionOptions):
131
131
  */
132
132
  declare function useStateUpdate(handler: (state: EditorState) => void, options?: UseExtensionOptions): void;
133
133
  //#endregion
134
- export { MaybeAccessor, PropsWithChildren, PropsWithClass, PropsWithElement, ProseKit, ProseKitProps, SolidMarkViewComponent, SolidMarkViewOptions, SolidMarkViewProps, SolidNodeViewComponent, SolidNodeViewOptions, SolidNodeViewProps, UseExtensionOptions, defineSolidMarkView, defineSolidNodeView, useDocChange, useEditor, useExtension, useKeymap, useStateUpdate };
134
+ export { type MaybeAccessor, type PropsWithChildren, type PropsWithClass, type PropsWithElement, ProseKit, type ProseKitProps, type SolidMarkViewComponent, type SolidMarkViewOptions, type SolidMarkViewProps, type SolidNodeViewComponent, type SolidNodeViewOptions, type SolidNodeViewProps, type UseExtensionOptions, defineSolidMarkView, defineSolidNodeView, useDocChange, useEditor, useExtension, useKeymap, useStateUpdate };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@prosekit/solid",
3
3
  "type": "module",
4
- "version": "0.4.17",
4
+ "version": "0.5.0",
5
5
  "private": false,
6
6
  "description": "Solid components and utilities for ProseKit",
7
7
  "author": {
@@ -38,6 +38,10 @@
38
38
  "types": "./dist/prosekit-solid-block-handle.d.ts",
39
39
  "default": "./dist/prosekit-solid-block-handle.js"
40
40
  },
41
+ "./drop-indicator": {
42
+ "types": "./dist/prosekit-solid-drop-indicator.d.ts",
43
+ "default": "./dist/prosekit-solid-drop-indicator.js"
44
+ },
41
45
  "./inline-popover": {
42
46
  "types": "./dist/prosekit-solid-inline-popover.d.ts",
43
47
  "default": "./dist/prosekit-solid-inline-popover.js"
@@ -65,9 +69,9 @@
65
69
  "dependencies": {
66
70
  "@prosemirror-adapter/core": "^0.4.0",
67
71
  "@prosemirror-adapter/solid": "^0.4.1",
72
+ "@prosekit/pm": "^0.1.11",
68
73
  "@prosekit/core": "^0.8.3",
69
- "@prosekit/web": "^0.6.0",
70
- "@prosekit/pm": "^0.1.11"
74
+ "@prosekit/web": "^0.7.0"
71
75
  },
72
76
  "peerDependencies": {
73
77
  "solid-js": ">= 1.7.0"
@@ -79,11 +83,11 @@
79
83
  },
80
84
  "devDependencies": {
81
85
  "solid-js": "^1.9.7",
82
- "tsdown": "^0.12.9",
86
+ "tsdown": "^0.13.1",
83
87
  "typescript": "~5.8.3",
84
88
  "vitest": "^3.2.4",
85
- "@prosekit/config-tsdown": "0.0.0",
86
- "@prosekit/config-vitest": "0.0.0"
89
+ "@prosekit/config-vitest": "0.0.0",
90
+ "@prosekit/config-tsdown": "0.0.0"
87
91
  },
88
92
  "publishConfig": {
89
93
  "dev": {}
@@ -97,7 +101,8 @@
97
101
  "prosekit-solid-popover": "./src/components/popover/index.gen.ts",
98
102
  "prosekit-solid-resizable": "./src/components/resizable/index.gen.ts",
99
103
  "prosekit-solid-table-handle": "./src/components/table-handle/index.gen.ts",
100
- "prosekit-solid-tooltip": "./src/components/tooltip/index.gen.ts"
104
+ "prosekit-solid-tooltip": "./src/components/tooltip/index.gen.ts",
105
+ "prosekit-solid-drop-indicator": "./src/components/drop-indicator/index.gen.ts"
101
106
  }
102
107
  },
103
108
  "scripts": {
@@ -116,6 +121,9 @@
116
121
  "block-handle": [
117
122
  "./dist/prosekit-solid-block-handle.d.ts"
118
123
  ],
124
+ "drop-indicator": [
125
+ "./dist/prosekit-solid-drop-indicator.d.ts"
126
+ ],
119
127
  "inline-popover": [
120
128
  "./dist/prosekit-solid-inline-popover.d.ts"
121
129
  ],