@prosekit/solid 0.7.1 → 0.7.2
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/autocomplete.d.ts.map +1 -1
- package/dist/autocomplete.js.map +1 -1
- package/dist/block-handle.d.ts.map +1 -1
- package/dist/block-handle.js.map +1 -1
- package/dist/drop-indicator.d.ts.map +1 -1
- package/dist/drop-indicator.js.map +1 -1
- package/dist/editor-context.js.map +1 -1
- package/dist/index.d.ts +0 -30
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -14
- package/dist/index.js.map +1 -1
- package/dist/inline-popover.d.ts.map +1 -1
- package/dist/inline-popover.js.map +1 -1
- package/dist/menu.d.ts.map +1 -1
- package/dist/menu.js.map +1 -1
- package/dist/popover.d.ts.map +1 -1
- package/dist/popover.js.map +1 -1
- package/dist/resizable.d.ts.map +1 -1
- package/dist/resizable.js.map +1 -1
- package/dist/table-handle.d.ts.map +1 -1
- package/dist/table-handle.js.map +1 -1
- package/dist/tooltip.d.ts.map +1 -1
- package/dist/tooltip.js.map +1 -1
- package/package.json +8 -8
- package/src/components/prosekit.ts +0 -2
- package/src/extensions/solid-mark-view.ts +0 -10
- package/src/extensions/solid-node-view.ts +0 -10
- package/src/hooks/use-doc-change.ts +0 -2
- package/src/hooks/use-editor-derived-value.ts +0 -2
- package/src/hooks/use-editor.ts +0 -2
- package/src/hooks/use-state-update.ts +0 -2
|
@@ -11,20 +11,12 @@ import { Portal } from 'solid-js/web'
|
|
|
11
11
|
|
|
12
12
|
import { hidePortalDiv } from './helpers.ts'
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
14
|
export interface SolidMarkViewProps extends MarkViewContextProps {}
|
|
18
15
|
|
|
19
|
-
/**
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
16
|
export type SolidMarkViewComponent = Component<SolidMarkViewProps>
|
|
23
17
|
|
|
24
18
|
/**
|
|
25
19
|
* Options for {@link defineSolidMarkView}.
|
|
26
|
-
*
|
|
27
|
-
* @public
|
|
28
20
|
*/
|
|
29
21
|
export interface SolidMarkViewOptions extends CoreMarkViewUserOptions<SolidMarkViewComponent> {
|
|
30
22
|
/**
|
|
@@ -72,8 +64,6 @@ export function defineSolidMarkViewFactory(
|
|
|
72
64
|
|
|
73
65
|
/**
|
|
74
66
|
* Defines a mark view using a Solid component.
|
|
75
|
-
*
|
|
76
|
-
* @public
|
|
77
67
|
*/
|
|
78
68
|
export function defineSolidMarkView(options: SolidMarkViewOptions): Extension {
|
|
79
69
|
return defineMarkViewComponent<SolidMarkViewOptions>({
|
|
@@ -11,20 +11,12 @@ import { Portal } from 'solid-js/web'
|
|
|
11
11
|
|
|
12
12
|
import { hidePortalDiv } from './helpers.ts'
|
|
13
13
|
|
|
14
|
-
/**
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
14
|
export interface SolidNodeViewProps extends NodeViewContextProps {}
|
|
18
15
|
|
|
19
|
-
/**
|
|
20
|
-
* @public
|
|
21
|
-
*/
|
|
22
16
|
export type SolidNodeViewComponent = Component<SolidNodeViewProps>
|
|
23
17
|
|
|
24
18
|
/**
|
|
25
19
|
* Options for {@link defineSolidNodeView}.
|
|
26
|
-
*
|
|
27
|
-
* @public
|
|
28
20
|
*/
|
|
29
21
|
export interface SolidNodeViewOptions extends CoreNodeViewUserOptions<SolidNodeViewComponent> {
|
|
30
22
|
/**
|
|
@@ -87,8 +79,6 @@ export function defineSolidNodeViewFactory(
|
|
|
87
79
|
|
|
88
80
|
/**
|
|
89
81
|
* Defines a node view using a Solid component.
|
|
90
|
-
*
|
|
91
|
-
* @public
|
|
92
82
|
*/
|
|
93
83
|
export function defineSolidNodeView(options: SolidNodeViewOptions): Extension {
|
|
94
84
|
return defineNodeViewComponent<SolidNodeViewOptions>({
|
|
@@ -23,8 +23,6 @@ export interface UseEditorDerivedOptions<E extends Extension = any> {
|
|
|
23
23
|
*
|
|
24
24
|
* It returns an accessor of the derived value that updates whenever the editor
|
|
25
25
|
* state changes.
|
|
26
|
-
*
|
|
27
|
-
* @public
|
|
28
26
|
*/
|
|
29
27
|
export function useEditorDerivedValue<E extends Extension, Derived>(
|
|
30
28
|
/**
|
package/src/hooks/use-editor.ts
CHANGED