@prosekit/svelte 0.8.6 → 0.8.8
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 +7 -6
- package/dist/build/components/autocomplete/autocomplete-empty.gen.svelte.d.ts +0 -31
- package/dist/build/components/autocomplete/autocomplete-empty.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/autocomplete/autocomplete-item.gen.svelte.d.ts +0 -31
- package/dist/build/components/autocomplete/autocomplete-item.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/autocomplete/autocomplete-list.gen.svelte.d.ts +0 -31
- package/dist/build/components/autocomplete/autocomplete-list.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/autocomplete/autocomplete-popover.gen.svelte.d.ts +0 -31
- package/dist/build/components/autocomplete/autocomplete-popover.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/block-handle/block-handle-add.gen.svelte.d.ts +0 -31
- package/dist/build/components/block-handle/block-handle-add.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/block-handle/block-handle-draggable.gen.svelte.d.ts +0 -31
- package/dist/build/components/block-handle/block-handle-draggable.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/block-handle/block-handle-popover.gen.svelte.d.ts +0 -31
- package/dist/build/components/block-handle/block-handle-popover.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/client-update/client-update.svelte.d.ts +0 -21
- package/dist/build/components/client-update/client-update.svelte.d.ts.map +0 -1
- package/dist/build/components/drop-indicator/drop-indicator.gen.svelte.d.ts +0 -31
- package/dist/build/components/drop-indicator/drop-indicator.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/inline-popover/inline-popover.gen.svelte.d.ts +0 -31
- package/dist/build/components/inline-popover/inline-popover.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/mark-view-consumer/mark-view-consumer.svelte.d.ts +0 -21
- package/dist/build/components/mark-view-consumer/mark-view-consumer.svelte.d.ts.map +0 -1
- package/dist/build/components/mark-view-wrapper/mark-view-wrapper.svelte.d.ts +0 -5
- package/dist/build/components/mark-view-wrapper/mark-view-wrapper.svelte.d.ts.map +0 -1
- package/dist/build/components/node-view-consumer/node-view-consumer.svelte.d.ts +0 -21
- package/dist/build/components/node-view-consumer/node-view-consumer.svelte.d.ts.map +0 -1
- package/dist/build/components/node-view-wrapper/node-view-wrapper.svelte.d.ts +0 -5
- package/dist/build/components/node-view-wrapper/node-view-wrapper.svelte.d.ts.map +0 -1
- package/dist/build/components/popover/popover-content.gen.svelte.d.ts +0 -31
- package/dist/build/components/popover/popover-content.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/popover/popover-root.gen.svelte.d.ts +0 -31
- package/dist/build/components/popover/popover-root.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/popover/popover-trigger.gen.svelte.d.ts +0 -31
- package/dist/build/components/popover/popover-trigger.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/prosekit/prosekit.svelte.d.ts +0 -31
- package/dist/build/components/prosekit/prosekit.svelte.d.ts.map +0 -1
- package/dist/build/components/resizable/resizable-handle.gen.svelte.d.ts +0 -31
- package/dist/build/components/resizable/resizable-handle.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/resizable/resizable-root.gen.svelte.d.ts +0 -31
- package/dist/build/components/resizable/resizable-root.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/table-handle/table-handle-column-root.gen.svelte.d.ts +0 -31
- package/dist/build/components/table-handle/table-handle-column-root.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/table-handle/table-handle-column-trigger.gen.svelte.d.ts +0 -31
- package/dist/build/components/table-handle/table-handle-column-trigger.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/table-handle/table-handle-drag-preview.gen.svelte.d.ts +0 -31
- package/dist/build/components/table-handle/table-handle-drag-preview.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/table-handle/table-handle-drop-indicator.gen.svelte.d.ts +0 -31
- package/dist/build/components/table-handle/table-handle-drop-indicator.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/table-handle/table-handle-popover-content.gen.svelte.d.ts +0 -31
- package/dist/build/components/table-handle/table-handle-popover-content.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/table-handle/table-handle-popover-item.gen.svelte.d.ts +0 -31
- package/dist/build/components/table-handle/table-handle-popover-item.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/table-handle/table-handle-root.gen.svelte.d.ts +0 -31
- package/dist/build/components/table-handle/table-handle-root.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/table-handle/table-handle-row-root.gen.svelte.d.ts +0 -31
- package/dist/build/components/table-handle/table-handle-row-root.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/table-handle/table-handle-row-trigger.gen.svelte.d.ts +0 -31
- package/dist/build/components/table-handle/table-handle-row-trigger.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/tooltip/tooltip-content.gen.svelte.d.ts +0 -31
- package/dist/build/components/tooltip/tooltip-content.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/tooltip/tooltip-root.gen.svelte.d.ts +0 -31
- package/dist/build/components/tooltip/tooltip-root.gen.svelte.d.ts.map +0 -1
- package/dist/build/components/tooltip/tooltip-trigger.gen.svelte.d.ts +0 -31
- package/dist/build/components/tooltip/tooltip-trigger.gen.svelte.d.ts.map +0 -1
|
@@ -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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts';
|
|
2
|
+
export { AutocompleteItem } from './autocomplete-item.gen.ts';
|
|
3
|
+
export { AutocompleteList } from './autocomplete-list.gen.ts';
|
|
4
|
+
export { AutocompletePopover } from './autocomplete-popover.gen.ts';
|
|
@@ -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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts';
|
|
2
|
+
export { BlockHandleDraggable } from './block-handle-draggable.gen.ts';
|
|
3
|
+
export { BlockHandlePopover } from './block-handle-popover.gen.ts';
|
|
@@ -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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { InlinePopover } from
|
|
1
|
+
export { InlinePopover } from './inline-popover.gen.ts';
|
|
@@ -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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
5
|
+
import { useExtension } from '../../hooks/use-extension.ts'
|
|
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.ts'
|
|
4
|
+
import type { MarkViewWrapperProps } from './props.ts'
|
|
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.ts'
|
|
5
|
+
import { useExtension } from '../../hooks/use-extension.ts'
|
|
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.ts'
|
|
4
|
+
import type { NodeViewWrapperProps } from './props.ts'
|
|
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.ts';
|
|
2
|
+
export { PopoverRoot } from './popover-root.gen.ts';
|
|
3
|
+
export { PopoverTrigger } from './popover-trigger.gen.ts';
|
|
@@ -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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
5
|
+
import { MarkViewConsumer } from '../mark-view-consumer/index.ts'
|
|
6
|
+
import { NodeViewConsumer } from '../node-view-consumer/index.ts'
|
|
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.ts';
|
|
2
|
+
export { ResizableRoot } from './resizable-root.gen.ts';
|
|
@@ -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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts';
|
|
2
|
+
export { TableHandleColumnTrigger } from './table-handle-column-trigger.gen.ts';
|
|
3
|
+
export { TableHandleDragPreview } from './table-handle-drag-preview.gen.ts';
|
|
4
|
+
export { TableHandleDropIndicator } from './table-handle-drop-indicator.gen.ts';
|
|
5
|
+
export { TableHandlePopoverContent } from './table-handle-popover-content.gen.ts';
|
|
6
|
+
export { TableHandlePopoverItem } from './table-handle-popover-item.gen.ts';
|
|
7
|
+
export { TableHandleRoot } from './table-handle-root.gen.ts';
|
|
8
|
+
export { TableHandleRowRoot } from './table-handle-row-root.gen.ts';
|
|
9
|
+
export { TableHandleRowTrigger } from './table-handle-row-trigger.gen.ts';
|
|
@@ -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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts';
|
|
2
|
+
export { TooltipRoot } from './tooltip-root.gen.ts';
|
|
3
|
+
export { TooltipTrigger } from './tooltip-trigger.gen.ts';
|
|
@@ -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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts'
|
|
6
|
+
import { useComponent } from '../use-component.ts'
|
|
7
|
+
import { useEventHandlers } from '../use-event-handlers.ts'
|
|
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.ts';
|
|
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.ts';
|
|
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.ts';
|
|
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.ts';
|
|
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.ts';
|
|
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.ts';
|
|
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.ts';
|
|
2
|
+
import { usePriorityExtension } from './use-priority-extension.ts';
|
|
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.ts';
|
|
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.ts';
|
|
4
4
|
/**
|
|
5
5
|
* Calls the given handler whenever the editor state changes.
|
|
6
6
|
*
|