@prosekit/svelte 0.8.8 → 0.8.9
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/build/components/autocomplete/autocomplete-empty.gen.svelte +3 -3
- package/dist/build/components/autocomplete/autocomplete-item.gen.svelte +3 -3
- package/dist/build/components/autocomplete/autocomplete-list.gen.svelte +3 -3
- package/dist/build/components/autocomplete/autocomplete-popover.gen.svelte +3 -3
- package/dist/build/components/autocomplete/index.gen.js +4 -4
- package/dist/build/components/block-handle/block-handle-add.gen.svelte +3 -3
- package/dist/build/components/block-handle/block-handle-draggable.gen.svelte +3 -3
- package/dist/build/components/block-handle/block-handle-popover.gen.svelte +3 -3
- package/dist/build/components/block-handle/index.gen.js +3 -3
- package/dist/build/components/drop-indicator/drop-indicator.gen.svelte +3 -3
- package/dist/build/components/drop-indicator/index.gen.js +1 -1
- package/dist/build/components/inline-popover/index.gen.js +1 -1
- package/dist/build/components/inline-popover/inline-popover.gen.svelte +3 -3
- package/dist/build/components/mark-view-consumer/mark-view-consumer.svelte +2 -2
- package/dist/build/components/mark-view-wrapper/mark-view-wrapper.svelte +2 -2
- package/dist/build/components/node-view-consumer/node-view-consumer.svelte +2 -2
- package/dist/build/components/node-view-wrapper/node-view-wrapper.svelte +2 -2
- package/dist/build/components/popover/index.gen.js +3 -3
- package/dist/build/components/popover/popover-content.gen.svelte +3 -3
- package/dist/build/components/popover/popover-root.gen.svelte +3 -3
- package/dist/build/components/popover/popover-trigger.gen.svelte +3 -3
- package/dist/build/components/prosekit/prosekit.svelte +3 -3
- package/dist/build/components/resizable/index.gen.js +2 -2
- package/dist/build/components/resizable/resizable-handle.gen.svelte +3 -3
- package/dist/build/components/resizable/resizable-root.gen.svelte +3 -3
- package/dist/build/components/table-handle/index.gen.js +9 -9
- package/dist/build/components/table-handle/table-handle-column-root.gen.svelte +3 -3
- package/dist/build/components/table-handle/table-handle-column-trigger.gen.svelte +3 -3
- package/dist/build/components/table-handle/table-handle-drag-preview.gen.svelte +3 -3
- package/dist/build/components/table-handle/table-handle-drop-indicator.gen.svelte +3 -3
- package/dist/build/components/table-handle/table-handle-popover-content.gen.svelte +3 -3
- package/dist/build/components/table-handle/table-handle-popover-item.gen.svelte +3 -3
- package/dist/build/components/table-handle/table-handle-root.gen.svelte +3 -3
- package/dist/build/components/table-handle/table-handle-row-root.gen.svelte +3 -3
- package/dist/build/components/table-handle/table-handle-row-trigger.gen.svelte +3 -3
- package/dist/build/components/tooltip/index.gen.js +3 -3
- package/dist/build/components/tooltip/tooltip-content.gen.svelte +3 -3
- package/dist/build/components/tooltip/tooltip-root.gen.svelte +3 -3
- package/dist/build/components/tooltip/tooltip-trigger.gen.svelte +3 -3
- package/dist/build/components/use-component.js +1 -1
- package/dist/build/extensions/svelte-mark-view.js +1 -1
- package/dist/build/extensions/svelte-node-view.js +1 -1
- package/dist/build/hooks/use-doc-change.js +1 -1
- package/dist/build/hooks/use-editor-derived-value.js +1 -1
- package/dist/build/hooks/use-editor-extension.js +1 -1
- package/dist/build/hooks/use-editor.js +1 -1
- package/dist/build/hooks/use-extension.js +2 -2
- package/dist/build/hooks/use-keymap.js +1 -1
- package/dist/build/hooks/use-state-update.js +1 -1
- package/dist/build/index.js +9 -9
- package/package.json +4 -4
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/autocomplete'
|
|
3
3
|
|
|
4
4
|
import { autocompleteEmptyProps, autocompleteEmptyEvents } from '@prosekit/web/autocomplete'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/autocomplete'
|
|
3
3
|
|
|
4
4
|
import { autocompleteItemProps, autocompleteItemEvents } from '@prosekit/web/autocomplete'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/autocomplete'
|
|
3
3
|
|
|
4
4
|
import { autocompleteListProps, autocompleteListEvents } from '@prosekit/web/autocomplete'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/autocomplete'
|
|
3
3
|
|
|
4
4
|
import { autocompletePopoverProps, autocompletePopoverEvents } from '@prosekit/web/autocomplete'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { AutocompleteEmpty } from
|
|
2
|
-
export { AutocompleteItem } from
|
|
3
|
-
export { AutocompleteList } from
|
|
4
|
-
export { AutocompletePopover } from
|
|
1
|
+
export { AutocompleteEmpty } from "./autocomplete-empty.gen.js";
|
|
2
|
+
export { AutocompleteItem } from "./autocomplete-item.gen.js";
|
|
3
|
+
export { AutocompleteList } from "./autocomplete-list.gen.js";
|
|
4
|
+
export { AutocompletePopover } from "./autocomplete-popover.gen.js";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/block-handle'
|
|
3
3
|
|
|
4
4
|
import { blockHandleAddProps, blockHandleAddEvents } from '@prosekit/web/block-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/block-handle'
|
|
3
3
|
|
|
4
4
|
import { blockHandleDraggableProps, blockHandleDraggableEvents } from '@prosekit/web/block-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/block-handle'
|
|
3
3
|
|
|
4
4
|
import { blockHandlePopoverProps, blockHandlePopoverEvents } from '@prosekit/web/block-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { BlockHandleAdd } from
|
|
2
|
-
export { BlockHandleDraggable } from
|
|
3
|
-
export { BlockHandlePopover } from
|
|
1
|
+
export { BlockHandleAdd } from "./block-handle-add.gen.js";
|
|
2
|
+
export { BlockHandleDraggable } from "./block-handle-draggable.gen.js";
|
|
3
|
+
export { BlockHandlePopover } from "./block-handle-popover.gen.js";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/drop-indicator'
|
|
3
3
|
|
|
4
4
|
import { dropIndicatorProps, dropIndicatorEvents } from '@prosekit/web/drop-indicator'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { DropIndicator } from
|
|
1
|
+
export { DropIndicator } from "./drop-indicator.gen.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { InlinePopover } from
|
|
1
|
+
export { InlinePopover } from "./inline-popover.gen.js";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/inline-popover'
|
|
3
3
|
|
|
4
4
|
import { inlinePopoverProps, inlinePopoverEvents } from '@prosekit/web/inline-popover'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { useMarkViewFactory, type MarkViewFactory } from '@prosemirror-adapter/svelte'
|
|
3
3
|
import { readable } from 'svelte/store'
|
|
4
|
-
import { defineSvelteMarkViewFactory } from '../../extensions/svelte-mark-view.
|
|
5
|
-
import { useExtension } from '../../hooks/use-extension.
|
|
4
|
+
import { defineSvelteMarkViewFactory } from '../../extensions/svelte-mark-view.js'
|
|
5
|
+
import { useExtension } from '../../hooks/use-extension.js'
|
|
6
6
|
|
|
7
7
|
const markViewFactory: MarkViewFactory = useMarkViewFactory()
|
|
8
8
|
const extension = defineSvelteMarkViewFactory(markViewFactory)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { useMarkViewContext } from '@prosemirror-adapter/svelte'
|
|
3
|
-
import type { SvelteMarkViewProps } from '../../extensions/svelte-mark-view.
|
|
4
|
-
import type { MarkViewWrapperProps } from './props.
|
|
3
|
+
import type { SvelteMarkViewProps } from '../../extensions/svelte-mark-view.js'
|
|
4
|
+
import type { MarkViewWrapperProps } from './props.js'
|
|
5
5
|
|
|
6
6
|
const { component: MarkViewComponent }: MarkViewWrapperProps = $props()
|
|
7
7
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { useNodeViewFactory, type NodeViewFactory } from '@prosemirror-adapter/svelte'
|
|
3
3
|
import { readable } from 'svelte/store'
|
|
4
|
-
import { defineSvelteNodeViewFactory } from '../../extensions/svelte-node-view.
|
|
5
|
-
import { useExtension } from '../../hooks/use-extension.
|
|
4
|
+
import { defineSvelteNodeViewFactory } from '../../extensions/svelte-node-view.js'
|
|
5
|
+
import { useExtension } from '../../hooks/use-extension.js'
|
|
6
6
|
|
|
7
7
|
const nodeViewFactory: NodeViewFactory = useNodeViewFactory()
|
|
8
8
|
const extension = defineSvelteNodeViewFactory(nodeViewFactory)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import { useNodeViewContext } from '@prosemirror-adapter/svelte'
|
|
3
|
-
import type { SvelteNodeViewProps } from '../../extensions/svelte-node-view.
|
|
4
|
-
import type { NodeViewWrapperProps } from './props.
|
|
3
|
+
import type { SvelteNodeViewProps } from '../../extensions/svelte-node-view.js'
|
|
4
|
+
import type { NodeViewWrapperProps } from './props.js'
|
|
5
5
|
|
|
6
6
|
const { component: NodeViewComponent }: NodeViewWrapperProps = $props()
|
|
7
7
|
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { PopoverContent } from
|
|
2
|
-
export { PopoverRoot } from
|
|
3
|
-
export { PopoverTrigger } from
|
|
1
|
+
export { PopoverContent } from "./popover-content.gen.js";
|
|
2
|
+
export { PopoverRoot } from "./popover-root.gen.js";
|
|
3
|
+
export { PopoverTrigger } from "./popover-trigger.gen.js";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/popover'
|
|
3
3
|
|
|
4
4
|
import { popoverContentProps, popoverContentEvents } from '@prosekit/web/popover'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/popover'
|
|
3
3
|
|
|
4
4
|
import { popoverRootProps, popoverRootEvents } from '@prosekit/web/popover'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/popover'
|
|
3
3
|
|
|
4
4
|
import { popoverTriggerProps, popoverTriggerEvents } from '@prosekit/web/popover'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
<script lang="ts">
|
|
2
2
|
import type { Editor } from '@prosekit/core'
|
|
3
3
|
import { useProsemirrorAdapterProvider } from '@prosemirror-adapter/svelte'
|
|
4
|
-
import { setEditorContext } from '../../contexts/editor-context.
|
|
5
|
-
import { MarkViewConsumer } from '../mark-view-consumer/index.
|
|
6
|
-
import { NodeViewConsumer } from '../node-view-consumer/index.
|
|
4
|
+
import { setEditorContext } from '../../contexts/editor-context.js'
|
|
5
|
+
import { MarkViewConsumer } from '../mark-view-consumer/index.js'
|
|
6
|
+
import { NodeViewConsumer } from '../node-view-consumer/index.js'
|
|
7
7
|
|
|
8
8
|
export let editor: Editor
|
|
9
9
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { ResizableHandle } from
|
|
2
|
-
export { ResizableRoot } from
|
|
1
|
+
export { ResizableHandle } from "./resizable-handle.gen.js";
|
|
2
|
+
export { ResizableRoot } from "./resizable-root.gen.js";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/resizable'
|
|
3
3
|
|
|
4
4
|
import { resizableHandleProps, resizableHandleEvents } from '@prosekit/web/resizable'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/resizable'
|
|
3
3
|
|
|
4
4
|
import { resizableRootProps, resizableRootEvents } from '@prosekit/web/resizable'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { TableHandleColumnRoot } from
|
|
2
|
-
export { TableHandleColumnTrigger } from
|
|
3
|
-
export { TableHandleDragPreview } from
|
|
4
|
-
export { TableHandleDropIndicator } from
|
|
5
|
-
export { TableHandlePopoverContent } from
|
|
6
|
-
export { TableHandlePopoverItem } from
|
|
7
|
-
export { TableHandleRoot } from
|
|
8
|
-
export { TableHandleRowRoot } from
|
|
9
|
-
export { TableHandleRowTrigger } from
|
|
1
|
+
export { TableHandleColumnRoot } from "./table-handle-column-root.gen.js";
|
|
2
|
+
export { TableHandleColumnTrigger } from "./table-handle-column-trigger.gen.js";
|
|
3
|
+
export { TableHandleDragPreview } from "./table-handle-drag-preview.gen.js";
|
|
4
|
+
export { TableHandleDropIndicator } from "./table-handle-drop-indicator.gen.js";
|
|
5
|
+
export { TableHandlePopoverContent } from "./table-handle-popover-content.gen.js";
|
|
6
|
+
export { TableHandlePopoverItem } from "./table-handle-popover-item.gen.js";
|
|
7
|
+
export { TableHandleRoot } from "./table-handle-root.gen.js";
|
|
8
|
+
export { TableHandleRowRoot } from "./table-handle-row-root.gen.js";
|
|
9
|
+
export { TableHandleRowTrigger } from "./table-handle-row-trigger.gen.js";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/table-handle'
|
|
3
3
|
|
|
4
4
|
import { tableHandleColumnRootProps, tableHandleColumnRootEvents } from '@prosekit/web/table-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/table-handle'
|
|
3
3
|
|
|
4
4
|
import { tableHandleColumnTriggerProps, tableHandleColumnTriggerEvents } from '@prosekit/web/table-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/table-handle'
|
|
3
3
|
|
|
4
4
|
import { tableHandleDragPreviewProps, tableHandleDragPreviewEvents } from '@prosekit/web/table-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/table-handle'
|
|
3
3
|
|
|
4
4
|
import { tableHandleDropIndicatorProps, tableHandleDropIndicatorEvents } from '@prosekit/web/table-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/table-handle'
|
|
3
3
|
|
|
4
4
|
import { tableHandlePopoverContentProps, tableHandlePopoverContentEvents } from '@prosekit/web/table-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/table-handle'
|
|
3
3
|
|
|
4
4
|
import { tableHandlePopoverItemProps, tableHandlePopoverItemEvents } from '@prosekit/web/table-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/table-handle'
|
|
3
3
|
|
|
4
4
|
import { tableHandleRootProps, tableHandleRootEvents } from '@prosekit/web/table-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/table-handle'
|
|
3
3
|
|
|
4
4
|
import { tableHandleRowRootProps, tableHandleRowRootEvents } from '@prosekit/web/table-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/table-handle'
|
|
3
3
|
|
|
4
4
|
import { tableHandleRowTriggerProps, tableHandleRowTriggerEvents } from '@prosekit/web/table-handle'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { TooltipContent } from
|
|
2
|
-
export { TooltipRoot } from
|
|
3
|
-
export { TooltipTrigger } from
|
|
1
|
+
export { TooltipContent } from "./tooltip-content.gen.js";
|
|
2
|
+
export { TooltipRoot } from "./tooltip-root.gen.js";
|
|
3
|
+
export { TooltipTrigger } from "./tooltip-trigger.gen.js";
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/tooltip'
|
|
3
3
|
|
|
4
4
|
import { tooltipContentProps, tooltipContentEvents } from '@prosekit/web/tooltip'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/tooltip'
|
|
3
3
|
|
|
4
4
|
import { tooltipRootProps, tooltipRootEvents } from '@prosekit/web/tooltip'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
import '@prosekit/web/tooltip'
|
|
3
3
|
|
|
4
4
|
import { tooltipTriggerProps, tooltipTriggerEvents } from '@prosekit/web/tooltip'
|
|
5
|
-
import { ClientUpdate } from '../client-update/index.
|
|
6
|
-
import { useComponent } from '../use-component.
|
|
7
|
-
import { useEventHandlers } from '../use-event-handlers.
|
|
5
|
+
import { ClientUpdate } from '../client-update/index.js'
|
|
6
|
+
import { useComponent } from '../use-component.js'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.js'
|
|
8
8
|
|
|
9
9
|
let attributes: Record<string, unknown> = {}
|
|
10
10
|
let eventHandlers: Record<string, (...args: any[]) => any> = {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useEditorContext } from
|
|
1
|
+
import { useEditorContext } from "../contexts/editor-context.js";
|
|
2
2
|
// For unknown reason, Svelte v4 cannot set properties on a web component
|
|
3
3
|
// when I directly use `{...$$props}`. It seems that Svelte v4 recognizes
|
|
4
4
|
// the properties as attributes. Here is a workaround to set the properties
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineMarkViewComponent, defineMarkViewFactory, definePlugin } from '@prosekit/core';
|
|
2
|
-
import { MarkViewWrapper } from
|
|
2
|
+
import { MarkViewWrapper } from "../components/mark-view-wrapper/index.js";
|
|
3
3
|
const isServer = typeof window === 'undefined';
|
|
4
4
|
/**
|
|
5
5
|
* Defines a mark view using a Svelte component.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineNodeViewComponent, defineNodeViewFactory, definePlugin } from '@prosekit/core';
|
|
2
|
-
import { NodeViewWrapper } from
|
|
2
|
+
import { NodeViewWrapper } from "../components/node-view-wrapper/index.js";
|
|
3
3
|
const isServer = typeof window === 'undefined';
|
|
4
4
|
/**
|
|
5
5
|
* Defines a node view using a Svelte component.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineDocChangeHandler } from '@prosekit/core';
|
|
2
2
|
import { readable } from 'svelte/store';
|
|
3
|
-
import { useExtension } from
|
|
3
|
+
import { useExtension } from "./use-extension.js";
|
|
4
4
|
/**
|
|
5
5
|
* Calls the given handler whenever the editor document changes.
|
|
6
6
|
*
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { EditorNotFoundError } from '@prosekit/core';
|
|
2
2
|
import { queueExtension } from '@prosekit/web';
|
|
3
3
|
import { onMount } from 'svelte';
|
|
4
|
-
import { useEditorContext } from
|
|
4
|
+
import { useEditorContext } from "../contexts/editor-context.js";
|
|
5
5
|
/**
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineMountHandler, defineUpdateHandler, ProseKitError, union } from '@prosekit/core';
|
|
2
2
|
import { onMount } from 'svelte';
|
|
3
3
|
import { readonly, writable } from 'svelte/store';
|
|
4
|
-
import { useEditorContext } from
|
|
4
|
+
import { useEditorContext } from "../contexts/editor-context.js";
|
|
5
5
|
/**
|
|
6
6
|
* Retrieves the editor instance from the nearest ProseKit component.
|
|
7
7
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useEditorExtension } from
|
|
2
|
-
import { usePriorityExtension } from
|
|
1
|
+
import { useEditorExtension } from "./use-editor-extension.js";
|
|
2
|
+
import { usePriorityExtension } from "./use-priority-extension.js";
|
|
3
3
|
/**
|
|
4
4
|
* Add an extension to the editor.
|
|
5
5
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineKeymap } from '@prosekit/core';
|
|
2
2
|
import { derived } from 'svelte/store';
|
|
3
|
-
import { useExtension } from
|
|
3
|
+
import { useExtension } from "./use-extension.js";
|
|
4
4
|
export function useKeymap(keymapStore, options) {
|
|
5
5
|
const extension = derived(keymapStore, (keymap) => defineKeymap(keymap));
|
|
6
6
|
useExtension(extension, options);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineUpdateHandler } from '@prosekit/core';
|
|
2
2
|
import { readable } from 'svelte/store';
|
|
3
|
-
import { useExtension } from
|
|
3
|
+
import { useExtension } from "./use-extension.js";
|
|
4
4
|
/**
|
|
5
5
|
* Calls the given handler whenever the editor state changes.
|
|
6
6
|
*
|
package/dist/build/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { ProseKit } from
|
|
2
|
-
export { defineSvelteMarkView, } from
|
|
3
|
-
export { defineSvelteNodeView, } from
|
|
4
|
-
export { useDocChange } from
|
|
5
|
-
export { useEditorDerivedValue } from
|
|
6
|
-
export { useEditor } from
|
|
7
|
-
export { useExtension } from
|
|
8
|
-
export { useKeymap } from
|
|
9
|
-
export { useStateUpdate } from
|
|
1
|
+
export { ProseKit } from "./components/prosekit/index.js";
|
|
2
|
+
export { defineSvelteMarkView, } from "./extensions/svelte-mark-view.js";
|
|
3
|
+
export { defineSvelteNodeView, } from "./extensions/svelte-node-view.js";
|
|
4
|
+
export { useDocChange } from "./hooks/use-doc-change.js";
|
|
5
|
+
export { useEditorDerivedValue } from "./hooks/use-editor-derived-value.js";
|
|
6
|
+
export { useEditor } from "./hooks/use-editor.js";
|
|
7
|
+
export { useExtension } from "./hooks/use-extension.js";
|
|
8
|
+
export { useKeymap } from "./hooks/use-keymap.js";
|
|
9
|
+
export { useStateUpdate } from "./hooks/use-state-update.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@prosekit/svelte",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.8.
|
|
4
|
+
"version": "0.8.9",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Svelte components and utilities for ProseKit",
|
|
7
7
|
"author": {
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"@prosemirror-adapter/core": "^0.4.6",
|
|
80
80
|
"@prosemirror-adapter/svelte": "^0.5.0",
|
|
81
81
|
"@prosekit/core": "^0.10.0",
|
|
82
|
-
"@prosekit/
|
|
83
|
-
"@prosekit/
|
|
82
|
+
"@prosekit/web": "^0.7.12",
|
|
83
|
+
"@prosekit/pm": "^0.1.15"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|
|
86
86
|
"svelte": ">= 5.0.0"
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"devDependencies": {
|
|
94
94
|
"@sveltejs/package": "^2.5.7",
|
|
95
95
|
"@types/node": "^24.10.13",
|
|
96
|
-
"svelte": "^5.53.
|
|
96
|
+
"svelte": "^5.53.3",
|
|
97
97
|
"svelte-check": "^4.4.3",
|
|
98
98
|
"tsx": "^4.21.0",
|
|
99
99
|
"typescript": "~5.9.3",
|