@prosekit/web 0.7.10 → 0.7.12
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/prosekit-web-autocomplete.d.ts.map +1 -1
- package/dist/prosekit-web-autocomplete.js +1 -1
- package/dist/prosekit-web-autocomplete.js.map +1 -1
- package/dist/prosekit-web-block-handle.js.map +1 -1
- package/dist/prosekit-web-drop-indicator.js.map +1 -1
- package/dist/prosekit-web-inline-popover.js.map +1 -1
- package/dist/prosekit-web-popover.js.map +1 -1
- package/dist/prosekit-web-resizable.d.ts.map +1 -1
- package/dist/prosekit-web-resizable.js.map +1 -1
- package/dist/prosekit-web-table-handle.js.map +1 -1
- package/dist/prosekit-web-tooltip.js.map +1 -1
- package/package.json +10 -9
- package/src/components/autocomplete/autocomplete-empty/element.gen.ts +2 -2
- package/src/components/autocomplete/autocomplete-item/element.gen.ts +2 -2
- package/src/components/autocomplete/autocomplete-item/setup.ts +2 -2
- package/src/components/autocomplete/autocomplete-list/element.gen.ts +2 -2
- package/src/components/autocomplete/autocomplete-list/setup.ts +3 -3
- package/src/components/autocomplete/autocomplete-popover/element.gen.ts +2 -2
- package/src/components/autocomplete/autocomplete-popover/helpers.spec.ts +1 -1
- package/src/components/autocomplete/autocomplete-popover/helpers.ts +2 -2
- package/src/components/autocomplete/autocomplete-popover/setup.ts +6 -6
- package/src/components/autocomplete/index.gen.ts +12 -12
- package/src/components/block-handle/block-handle-add/element.gen.ts +2 -2
- package/src/components/block-handle/block-handle-add/setup.ts +2 -2
- package/src/components/block-handle/block-handle-draggable/element.gen.ts +2 -2
- package/src/components/block-handle/block-handle-draggable/set-drag-preview.ts +5 -5
- package/src/components/block-handle/block-handle-draggable/setup.ts +5 -5
- package/src/components/block-handle/block-handle-popover/element.gen.ts +2 -2
- package/src/components/block-handle/block-handle-popover/pointer-move.ts +3 -3
- package/src/components/block-handle/block-handle-popover/setup.ts +5 -5
- package/src/components/block-handle/index.gen.ts +9 -9
- package/src/components/drop-indicator/drop-indicator/element.gen.ts +2 -2
- package/src/components/drop-indicator/drop-indicator/setup.ts +4 -4
- package/src/components/drop-indicator/index.gen.ts +3 -3
- package/src/components/inline-popover/index.gen.ts +3 -3
- package/src/components/inline-popover/inline-popover/element.gen.ts +2 -2
- package/src/components/inline-popover/inline-popover/setup.ts +5 -5
- package/src/components/popover/index.gen.ts +9 -9
- package/src/components/popover/popover-content/element.gen.ts +2 -2
- package/src/components/popover/popover-root/element.gen.ts +2 -2
- package/src/components/popover/popover-trigger/element.gen.ts +2 -2
- package/src/components/resizable/index.gen.ts +6 -6
- package/src/components/resizable/resizable-handle/calc-resize.spec.ts +1 -1
- package/src/components/resizable/resizable-handle/calc-resize.ts +1 -1
- package/src/components/resizable/resizable-handle/element.gen.ts +2 -2
- package/src/components/resizable/resizable-handle/setup.ts +11 -4
- package/src/components/resizable/resizable-root/element.gen.ts +2 -2
- package/src/components/resizable/resizable-root/setup.ts +11 -4
- package/src/components/table-handle/context.ts +1 -1
- package/src/components/table-handle/dnd.ts +3 -3
- package/src/components/table-handle/hooks/use-drop.ts +2 -2
- package/src/components/table-handle/index.gen.ts +27 -27
- package/src/components/table-handle/table-handle-column-root/element.gen.ts +2 -2
- package/src/components/table-handle/table-handle-column-root/setup.ts +4 -4
- package/src/components/table-handle/table-handle-column-trigger/element.gen.ts +2 -2
- package/src/components/table-handle/table-handle-column-trigger/setup.ts +3 -3
- package/src/components/table-handle/table-handle-drag-preview/element.gen.ts +2 -2
- package/src/components/table-handle/table-handle-drag-preview/render-preview.ts +5 -5
- package/src/components/table-handle/table-handle-drag-preview/setup.ts +5 -5
- package/src/components/table-handle/table-handle-drag-preview/updater.ts +4 -4
- package/src/components/table-handle/table-handle-drop-indicator/element.gen.ts +2 -2
- package/src/components/table-handle/table-handle-drop-indicator/setup.ts +4 -4
- package/src/components/table-handle/table-handle-drop-indicator/updater.ts +5 -5
- package/src/components/table-handle/table-handle-popover-content/element.gen.ts +2 -2
- package/src/components/table-handle/table-handle-popover-content/setup.ts +3 -3
- package/src/components/table-handle/table-handle-popover-item/element.gen.ts +2 -2
- package/src/components/table-handle/table-handle-popover-item/setup.ts +1 -1
- package/src/components/table-handle/table-handle-root/element.gen.ts +2 -2
- package/src/components/table-handle/table-handle-root/setup.ts +8 -8
- package/src/components/table-handle/table-handle-row-root/element.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-root/setup.ts +4 -4
- package/src/components/table-handle/table-handle-row-trigger/element.gen.ts +2 -2
- package/src/components/table-handle/table-handle-row-trigger/setup.ts +3 -3
- package/src/components/tooltip/index.gen.ts +9 -9
- package/src/components/tooltip/tooltip-content/element.gen.ts +2 -2
- package/src/components/tooltip/tooltip-root/element.gen.ts +2 -2
- package/src/components/tooltip/tooltip-trigger/element.gen.ts +2 -2
- package/src/hooks/use-editor-focus-event.ts +1 -1
- package/src/hooks/use-editor-typing.ts +1 -1
- package/src/hooks/use-editor-update-event.ts +1 -1
- package/src/hooks/use-keymap.ts +1 -1
- package/src/hooks/use-selecting.ts +1 -1
- package/src/index.ts +1 -1
- package/src/utils/fade-color.ts +1 -1
- package/src/utils/get-default-state.spec.ts +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useBlockHandleAdd } from "./setup"
|
|
4
|
-
import { blockHandleAddEvents, blockHandleAddProps, type BlockHandleAddEvents, type BlockHandleAddProps } from "./types"
|
|
3
|
+
import { useBlockHandleAdd } from "./setup.ts"
|
|
4
|
+
import { blockHandleAddEvents, blockHandleAddProps, type BlockHandleAddEvents, type BlockHandleAddProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const BlockHandleAddElementBase: BaseElementConstructor<BlockHandleAddProps> = defineCustomElement<
|
|
7
7
|
BlockHandleAddProps,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { useEventListener, type ConnectableElement, type SignalState } from '@aria-ui/core'
|
|
2
2
|
import { insertDefaultBlock } from '@prosekit/core'
|
|
3
3
|
|
|
4
|
-
import { blockPopoverContext } from '../context'
|
|
4
|
+
import { blockPopoverContext } from '../context.ts'
|
|
5
5
|
|
|
6
|
-
import type { BlockHandleAddProps } from './types'
|
|
6
|
+
import type { BlockHandleAddProps } from './types.ts'
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useBlockHandleDraggable } from "./setup"
|
|
4
|
-
import { blockHandleDraggableEvents, blockHandleDraggableProps, type BlockHandleDraggableEvents, type BlockHandleDraggableProps } from "./types"
|
|
3
|
+
import { useBlockHandleDraggable } from "./setup.ts"
|
|
4
|
+
import { blockHandleDraggableEvents, blockHandleDraggableProps, type BlockHandleDraggableEvents, type BlockHandleDraggableProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const BlockHandleDraggableElementBase: BaseElementConstructor<BlockHandleDraggableProps> = defineCustomElement<
|
|
7
7
|
BlockHandleDraggableProps,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { assignStyles } from '../../../utils/assign-styles'
|
|
2
|
-
import { deepCloneElement } from '../../../utils/clone-element'
|
|
3
|
-
import { getClientRect } from '../../../utils/get-client-rect'
|
|
4
|
-
import { injectStyle } from '../../../utils/inject-style'
|
|
5
|
-
import { maxZIndex } from '../../../utils/max-z-index'
|
|
1
|
+
import { assignStyles } from '../../../utils/assign-styles.ts'
|
|
2
|
+
import { deepCloneElement } from '../../../utils/clone-element.ts'
|
|
3
|
+
import { getClientRect } from '../../../utils/get-client-rect.ts'
|
|
4
|
+
import { injectStyle } from '../../../utils/inject-style.ts'
|
|
5
|
+
import { maxZIndex } from '../../../utils/max-z-index.ts'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Sets a drag preview image for the given element and ensures the preview position
|
|
@@ -6,12 +6,12 @@ import { Fragment, Slice } from '@prosekit/pm/model'
|
|
|
6
6
|
import { NodeSelection } from '@prosekit/pm/state'
|
|
7
7
|
import type { EditorView } from '@prosekit/pm/view'
|
|
8
8
|
|
|
9
|
-
import { getBoxElement } from '../../../utils/get-box-element'
|
|
10
|
-
import { getSafeEditorView } from '../../../utils/get-safe-editor-view'
|
|
11
|
-
import { blockPopoverContext, draggingContext, type BlockPopoverContext, type HoverState } from '../context'
|
|
9
|
+
import { getBoxElement } from '../../../utils/get-box-element.ts'
|
|
10
|
+
import { getSafeEditorView } from '../../../utils/get-safe-editor-view.ts'
|
|
11
|
+
import { blockPopoverContext, draggingContext, type BlockPopoverContext, type HoverState } from '../context.ts'
|
|
12
12
|
|
|
13
|
-
import { setDragPreview } from './set-drag-preview'
|
|
14
|
-
import type { BlockHandleDraggableProps } from './types'
|
|
13
|
+
import { setDragPreview } from './set-drag-preview.ts'
|
|
14
|
+
import type { BlockHandleDraggableProps } from './types.ts'
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useBlockHandlePopover } from "./setup"
|
|
4
|
-
import { blockHandlePopoverEvents, blockHandlePopoverProps, type BlockHandlePopoverEvents, type BlockHandlePopoverProps } from "./types"
|
|
3
|
+
import { useBlockHandlePopover } from "./setup.ts"
|
|
4
|
+
import { blockHandlePopoverEvents, blockHandlePopoverProps, type BlockHandlePopoverEvents, type BlockHandlePopoverProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const BlockHandlePopoverElementBase: BaseElementConstructor<BlockHandlePopoverProps> = defineCustomElement<
|
|
7
7
|
BlockHandlePopoverProps,
|
|
@@ -4,9 +4,9 @@ import { defineDOMEventHandler, union, type PlainExtension } from '@prosekit/cor
|
|
|
4
4
|
import type { ProseMirrorNode } from '@prosekit/pm/model'
|
|
5
5
|
import type { EditorView } from '@prosekit/pm/view'
|
|
6
6
|
|
|
7
|
-
import { getClientRect } from '../../../utils/get-client-rect'
|
|
8
|
-
import { throttle } from '../../../utils/throttle'
|
|
9
|
-
import type { HoverState } from '../context'
|
|
7
|
+
import { getClientRect } from '../../../utils/get-client-rect.ts'
|
|
8
|
+
import { throttle } from '../../../utils/throttle.ts'
|
|
9
|
+
import type { HoverState } from '../context.ts'
|
|
10
10
|
|
|
11
11
|
export type ElementHoverHandler = (
|
|
12
12
|
reference: VirtualElement | null,
|
|
@@ -4,12 +4,12 @@ import { usePresence } from '@aria-ui/presence'
|
|
|
4
4
|
import type { VirtualElement } from '@floating-ui/dom'
|
|
5
5
|
import type { Editor } from '@prosekit/core'
|
|
6
6
|
|
|
7
|
-
import { useEditorExtension } from '../../../hooks/use-editor-extension'
|
|
8
|
-
import { useScrolling } from '../../../hooks/use-scrolling'
|
|
9
|
-
import { blockPopoverContext, draggingContext, type BlockPopoverContext, type HoverState } from '../context'
|
|
7
|
+
import { useEditorExtension } from '../../../hooks/use-editor-extension.ts'
|
|
8
|
+
import { useScrolling } from '../../../hooks/use-scrolling.ts'
|
|
9
|
+
import { blockPopoverContext, draggingContext, type BlockPopoverContext, type HoverState } from '../context.ts'
|
|
10
10
|
|
|
11
|
-
import { defineElementHoverHandler, type ElementHoverHandler } from './pointer-move'
|
|
12
|
-
import type { BlockHandlePopoverEvents, BlockHandlePopoverProps } from './types'
|
|
11
|
+
import { defineElementHoverHandler, type ElementHoverHandler } from './pointer-move.ts'
|
|
12
|
+
import type { BlockHandlePopoverEvents, BlockHandlePopoverProps } from './types.ts'
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
15
|
* @internal
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// This file is generated by packages/dev/src/gen-components.ts
|
|
2
2
|
|
|
3
|
-
export { BlockHandleAddElement } from './block-handle-add/element.gen'
|
|
4
|
-
export { blockHandleAddEvents, blockHandleAddProps, type BlockHandleAddEvents, type BlockHandleAddProps } from './block-handle-add/types'
|
|
5
|
-
export { useBlockHandleAdd } from './block-handle-add/setup'
|
|
3
|
+
export { BlockHandleAddElement } from './block-handle-add/element.gen.ts'
|
|
4
|
+
export { blockHandleAddEvents, blockHandleAddProps, type BlockHandleAddEvents, type BlockHandleAddProps } from './block-handle-add/types.ts'
|
|
5
|
+
export { useBlockHandleAdd } from './block-handle-add/setup.ts'
|
|
6
6
|
|
|
7
|
-
export { BlockHandleDraggableElement } from './block-handle-draggable/element.gen'
|
|
8
|
-
export { blockHandleDraggableEvents, blockHandleDraggableProps, type BlockHandleDraggableEvents, type BlockHandleDraggableProps } from './block-handle-draggable/types'
|
|
9
|
-
export { useBlockHandleDraggable } from './block-handle-draggable/setup'
|
|
7
|
+
export { BlockHandleDraggableElement } from './block-handle-draggable/element.gen.ts'
|
|
8
|
+
export { blockHandleDraggableEvents, blockHandleDraggableProps, type BlockHandleDraggableEvents, type BlockHandleDraggableProps } from './block-handle-draggable/types.ts'
|
|
9
|
+
export { useBlockHandleDraggable } from './block-handle-draggable/setup.ts'
|
|
10
10
|
|
|
11
|
-
export { BlockHandlePopoverElement } from './block-handle-popover/element.gen'
|
|
12
|
-
export { blockHandlePopoverEvents, blockHandlePopoverProps, type BlockHandlePopoverEvents, type BlockHandlePopoverProps } from './block-handle-popover/types'
|
|
13
|
-
export { useBlockHandlePopover } from './block-handle-popover/setup'
|
|
11
|
+
export { BlockHandlePopoverElement } from './block-handle-popover/element.gen.ts'
|
|
12
|
+
export { blockHandlePopoverEvents, blockHandlePopoverProps, type BlockHandlePopoverEvents, type BlockHandlePopoverProps } from './block-handle-popover/types.ts'
|
|
13
|
+
export { useBlockHandlePopover } from './block-handle-popover/setup.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useDropIndicator } from "./setup"
|
|
4
|
-
import { dropIndicatorEvents, dropIndicatorProps, type DropIndicatorEvents, type DropIndicatorProps } from "./types"
|
|
3
|
+
import { useDropIndicator } from "./setup.ts"
|
|
4
|
+
import { dropIndicatorEvents, dropIndicatorProps, type DropIndicatorEvents, type DropIndicatorProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const DropIndicatorElementBase: BaseElementConstructor<DropIndicatorProps> = defineCustomElement<
|
|
7
7
|
DropIndicatorProps,
|
|
@@ -2,11 +2,11 @@ import { createComputed, createSignal, useEffect, type ConnectableElement, type
|
|
|
2
2
|
import { usePresence } from '@aria-ui/presence'
|
|
3
3
|
import { defineDropIndicator, type ShowHandlerOptions } from '@prosekit/extensions/drop-indicator'
|
|
4
4
|
|
|
5
|
-
import { useEditorExtension } from '../../../hooks/use-editor-extension'
|
|
6
|
-
import { useScrolling } from '../../../hooks/use-scrolling'
|
|
7
|
-
import { assignStyles } from '../../../utils/assign-styles'
|
|
5
|
+
import { useEditorExtension } from '../../../hooks/use-editor-extension.ts'
|
|
6
|
+
import { useScrolling } from '../../../hooks/use-scrolling.ts'
|
|
7
|
+
import { assignStyles } from '../../../utils/assign-styles.ts'
|
|
8
8
|
|
|
9
|
-
import type { DropIndicatorEvents, DropIndicatorProps } from './types'
|
|
9
|
+
import type { DropIndicatorEvents, DropIndicatorProps } from './types.ts'
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
12
|
* @internal
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is generated by packages/dev/src/gen-components.ts
|
|
2
2
|
|
|
3
|
-
export { DropIndicatorElement } from './drop-indicator/element.gen'
|
|
4
|
-
export { dropIndicatorEvents, dropIndicatorProps, type DropIndicatorEvents, type DropIndicatorProps } from './drop-indicator/types'
|
|
5
|
-
export { useDropIndicator } from './drop-indicator/setup'
|
|
3
|
+
export { DropIndicatorElement } from './drop-indicator/element.gen.ts'
|
|
4
|
+
export { dropIndicatorEvents, dropIndicatorProps, type DropIndicatorEvents, type DropIndicatorProps } from './drop-indicator/types.ts'
|
|
5
|
+
export { useDropIndicator } from './drop-indicator/setup.ts'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// This file is generated by packages/dev/src/gen-components.ts
|
|
2
2
|
|
|
3
|
-
export { InlinePopoverElement } from './inline-popover/element.gen'
|
|
4
|
-
export { inlinePopoverEvents, inlinePopoverProps, type InlinePopoverEvents, type InlinePopoverProps } from './inline-popover/types'
|
|
5
|
-
export { useInlinePopover } from './inline-popover/setup'
|
|
3
|
+
export { InlinePopoverElement } from './inline-popover/element.gen.ts'
|
|
4
|
+
export { inlinePopoverEvents, inlinePopoverProps, type InlinePopoverEvents, type InlinePopoverProps } from './inline-popover/types.ts'
|
|
5
|
+
export { useInlinePopover } from './inline-popover/setup.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useInlinePopover } from "./setup"
|
|
4
|
-
import { inlinePopoverEvents, inlinePopoverProps, type InlinePopoverEvents, type InlinePopoverProps } from "./types"
|
|
3
|
+
import { useInlinePopover } from "./setup.ts"
|
|
4
|
+
import { inlinePopoverEvents, inlinePopoverProps, type InlinePopoverEvents, type InlinePopoverProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const InlinePopoverElementBase: BaseElementConstructor<InlinePopoverProps> = defineCustomElement<
|
|
7
7
|
InlinePopoverProps,
|
|
@@ -13,12 +13,12 @@ import type { ReferenceElement } from '@floating-ui/dom'
|
|
|
13
13
|
import type { Editor } from '@prosekit/core'
|
|
14
14
|
import type { Selection } from '@prosekit/pm/state'
|
|
15
15
|
|
|
16
|
-
import { useEditorFocusChangeEvent } from '../../../hooks/use-editor-focus-event'
|
|
17
|
-
import { useEditorUpdateEvent } from '../../../hooks/use-editor-update-event'
|
|
18
|
-
import { useKeymap } from '../../../hooks/use-keymap'
|
|
16
|
+
import { useEditorFocusChangeEvent } from '../../../hooks/use-editor-focus-event.ts'
|
|
17
|
+
import { useEditorUpdateEvent } from '../../../hooks/use-editor-update-event.ts'
|
|
18
|
+
import { useKeymap } from '../../../hooks/use-keymap.ts'
|
|
19
19
|
|
|
20
|
-
import type { InlinePopoverEvents, InlinePopoverProps } from './types'
|
|
21
|
-
import { getVirtualSelectionElement } from './virtual-selection-element'
|
|
20
|
+
import type { InlinePopoverEvents, InlinePopoverProps } from './types.ts'
|
|
21
|
+
import { getVirtualSelectionElement } from './virtual-selection-element.ts'
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* @internal
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// This file is generated by packages/dev/src/gen-components.ts
|
|
2
2
|
|
|
3
|
-
export { PopoverContentElement } from './popover-content/element.gen'
|
|
4
|
-
export { popoverContentEvents, popoverContentProps, type PopoverContentEvents, type PopoverContentProps } from './popover-content/types'
|
|
5
|
-
export { usePopoverContent } from './popover-content/setup'
|
|
3
|
+
export { PopoverContentElement } from './popover-content/element.gen.ts'
|
|
4
|
+
export { popoverContentEvents, popoverContentProps, type PopoverContentEvents, type PopoverContentProps } from './popover-content/types.ts'
|
|
5
|
+
export { usePopoverContent } from './popover-content/setup.ts'
|
|
6
6
|
|
|
7
|
-
export { PopoverRootElement } from './popover-root/element.gen'
|
|
8
|
-
export { popoverRootEvents, popoverRootProps, type PopoverRootEvents, type PopoverRootProps } from './popover-root/types'
|
|
9
|
-
export { usePopoverRoot } from './popover-root/setup'
|
|
7
|
+
export { PopoverRootElement } from './popover-root/element.gen.ts'
|
|
8
|
+
export { popoverRootEvents, popoverRootProps, type PopoverRootEvents, type PopoverRootProps } from './popover-root/types.ts'
|
|
9
|
+
export { usePopoverRoot } from './popover-root/setup.ts'
|
|
10
10
|
|
|
11
|
-
export { PopoverTriggerElement } from './popover-trigger/element.gen'
|
|
12
|
-
export { popoverTriggerEvents, popoverTriggerProps, type PopoverTriggerEvents, type PopoverTriggerProps } from './popover-trigger/types'
|
|
13
|
-
export { usePopoverTrigger } from './popover-trigger/setup'
|
|
11
|
+
export { PopoverTriggerElement } from './popover-trigger/element.gen.ts'
|
|
12
|
+
export { popoverTriggerEvents, popoverTriggerProps, type PopoverTriggerEvents, type PopoverTriggerProps } from './popover-trigger/types.ts'
|
|
13
|
+
export { usePopoverTrigger } from './popover-trigger/setup.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { usePopoverContent } from "./setup"
|
|
4
|
-
import { popoverContentEvents, popoverContentProps, type PopoverContentEvents, type PopoverContentProps } from "./types"
|
|
3
|
+
import { usePopoverContent } from "./setup.ts"
|
|
4
|
+
import { popoverContentEvents, popoverContentProps, type PopoverContentEvents, type PopoverContentProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const PopoverContentElementBase: BaseElementConstructor<PopoverContentProps> = defineCustomElement<
|
|
7
7
|
PopoverContentProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { usePopoverRoot } from "./setup"
|
|
4
|
-
import { popoverRootEvents, popoverRootProps, type PopoverRootEvents, type PopoverRootProps } from "./types"
|
|
3
|
+
import { usePopoverRoot } from "./setup.ts"
|
|
4
|
+
import { popoverRootEvents, popoverRootProps, type PopoverRootEvents, type PopoverRootProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const PopoverRootElementBase: BaseElementConstructor<PopoverRootProps> = defineCustomElement<
|
|
7
7
|
PopoverRootProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { usePopoverTrigger } from "./setup"
|
|
4
|
-
import { popoverTriggerEvents, popoverTriggerProps, type PopoverTriggerEvents, type PopoverTriggerProps } from "./types"
|
|
3
|
+
import { usePopoverTrigger } from "./setup.ts"
|
|
4
|
+
import { popoverTriggerEvents, popoverTriggerProps, type PopoverTriggerEvents, type PopoverTriggerProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const PopoverTriggerElementBase: BaseElementConstructor<PopoverTriggerProps> = defineCustomElement<
|
|
7
7
|
PopoverTriggerProps,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// This file is generated by packages/dev/src/gen-components.ts
|
|
2
2
|
|
|
3
|
-
export { ResizableHandleElement } from './resizable-handle/element.gen'
|
|
4
|
-
export { resizableHandleEvents, resizableHandleProps, type ResizableHandleEvents, type ResizableHandleProps } from './resizable-handle/types'
|
|
5
|
-
export { useResizableHandle } from './resizable-handle/setup'
|
|
3
|
+
export { ResizableHandleElement } from './resizable-handle/element.gen.ts'
|
|
4
|
+
export { resizableHandleEvents, resizableHandleProps, type ResizableHandleEvents, type ResizableHandleProps } from './resizable-handle/types.ts'
|
|
5
|
+
export { useResizableHandle } from './resizable-handle/setup.ts'
|
|
6
6
|
|
|
7
|
-
export { ResizableRootElement } from './resizable-root/element.gen'
|
|
8
|
-
export { resizableRootEvents, resizableRootProps, type ResizableRootEvents, type ResizableRootProps } from './resizable-root/types'
|
|
9
|
-
export { useResizableRoot } from './resizable-root/setup'
|
|
7
|
+
export { ResizableRootElement } from './resizable-root/element.gen.ts'
|
|
8
|
+
export { resizableRootEvents, resizableRootProps, type ResizableRootEvents, type ResizableRootProps } from './resizable-root/types.ts'
|
|
9
|
+
export { useResizableRoot } from './resizable-root/setup.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useResizableHandle } from "./setup"
|
|
4
|
-
import { resizableHandleEvents, resizableHandleProps, type ResizableHandleEvents, type ResizableHandleProps } from "./types"
|
|
3
|
+
import { useResizableHandle } from "./setup.ts"
|
|
4
|
+
import { resizableHandleEvents, resizableHandleProps, type ResizableHandleEvents, type ResizableHandleProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const ResizableHandleElementBase: BaseElementConstructor<ResizableHandleProps> = defineCustomElement<
|
|
7
7
|
ResizableHandleProps,
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
import { createSignal, useEffect, type ConnectableElement, type ReadonlySignal, type SignalState } from '@aria-ui/core'
|
|
2
2
|
import { getWindow } from '@ocavue/utils'
|
|
3
3
|
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
import {
|
|
5
|
+
onResizeContext,
|
|
6
|
+
onResizeEndContext,
|
|
7
|
+
onResizeStartContext,
|
|
8
|
+
type OnResize,
|
|
9
|
+
type OnResizeEnd,
|
|
10
|
+
type OnResizeStart,
|
|
11
|
+
} from '../context.ts'
|
|
12
|
+
|
|
13
|
+
import { calcResize } from './calc-resize.ts'
|
|
14
|
+
import type { ResizableHandleProps } from './types.ts'
|
|
8
15
|
|
|
9
16
|
/**
|
|
10
17
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useResizableRoot } from "./setup"
|
|
4
|
-
import { resizableRootEvents, resizableRootProps, type ResizableRootEvents, type ResizableRootProps } from "./types"
|
|
3
|
+
import { useResizableRoot } from "./setup.ts"
|
|
4
|
+
import { resizableRootEvents, resizableRootProps, type ResizableRootEvents, type ResizableRootProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const ResizableRootElementBase: BaseElementConstructor<ResizableRootProps> = defineCustomElement<
|
|
7
7
|
ResizableRootProps,
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import { createSignal, useAttribute, useEffect, type ConnectableElement, type SetupOptions } from '@aria-ui/core'
|
|
2
2
|
|
|
3
|
-
import { isFinitePositiveNumber } from '../../../utils/is-finite-positive-number'
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
import { isFinitePositiveNumber } from '../../../utils/is-finite-positive-number.ts'
|
|
4
|
+
import {
|
|
5
|
+
onResizeContext,
|
|
6
|
+
onResizeEndContext,
|
|
7
|
+
onResizeStartContext,
|
|
8
|
+
type OnResize,
|
|
9
|
+
type OnResizeEnd,
|
|
10
|
+
type OnResizeStart,
|
|
11
|
+
} from '../context.ts'
|
|
12
|
+
|
|
13
|
+
import type { ResizableRootEvents, ResizableRootProps } from './types.ts'
|
|
7
14
|
|
|
8
15
|
/**
|
|
9
16
|
* @internal
|
|
@@ -4,10 +4,10 @@ import { isHTMLElement } from '@ocavue/utils'
|
|
|
4
4
|
import type { Editor } from '@prosekit/core'
|
|
5
5
|
import type { EditorView } from '@prosekit/pm/view'
|
|
6
6
|
|
|
7
|
-
import { assignStyles } from '../../utils/assign-styles'
|
|
8
|
-
import { getSafeEditorView } from '../../utils/get-safe-editor-view'
|
|
7
|
+
import { assignStyles } from '../../utils/assign-styles.ts'
|
|
8
|
+
import { getSafeEditorView } from '../../utils/get-safe-editor-view.ts'
|
|
9
9
|
|
|
10
|
-
import { tableHandleDndContext, tableHandleRootContext } from './context'
|
|
10
|
+
import { tableHandleDndContext, tableHandleRootContext } from './context.ts'
|
|
11
11
|
|
|
12
12
|
export type OnInitParams = {
|
|
13
13
|
host: ConnectableElement
|
|
@@ -2,8 +2,8 @@ import { createComputed, useEffect, type ConnectableElement, type ReadonlySignal
|
|
|
2
2
|
import type { Editor } from '@prosekit/core'
|
|
3
3
|
import { moveTableColumn, moveTableRow } from '@prosekit/extensions/table'
|
|
4
4
|
|
|
5
|
-
import { getSafeEditorView } from '../../../utils/get-safe-editor-view'
|
|
6
|
-
import type { TableHandleDndContext } from '../context'
|
|
5
|
+
import { getSafeEditorView } from '../../../utils/get-safe-editor-view.ts'
|
|
6
|
+
import type { TableHandleDndContext } from '../context.ts'
|
|
7
7
|
|
|
8
8
|
export function useDrop(
|
|
9
9
|
host: ConnectableElement,
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
// This file is generated by packages/dev/src/gen-components.ts
|
|
2
2
|
|
|
3
|
-
export { TableHandleColumnRootElement } from './table-handle-column-root/element.gen'
|
|
4
|
-
export { tableHandleColumnRootEvents, tableHandleColumnRootProps, type TableHandleColumnRootEvents, type TableHandleColumnRootProps } from './table-handle-column-root/types'
|
|
5
|
-
export { useTableHandleColumnRoot } from './table-handle-column-root/setup'
|
|
3
|
+
export { TableHandleColumnRootElement } from './table-handle-column-root/element.gen.ts'
|
|
4
|
+
export { tableHandleColumnRootEvents, tableHandleColumnRootProps, type TableHandleColumnRootEvents, type TableHandleColumnRootProps } from './table-handle-column-root/types.ts'
|
|
5
|
+
export { useTableHandleColumnRoot } from './table-handle-column-root/setup.ts'
|
|
6
6
|
|
|
7
|
-
export { TableHandleColumnTriggerElement } from './table-handle-column-trigger/element.gen'
|
|
8
|
-
export { tableHandleColumnTriggerEvents, tableHandleColumnTriggerProps, type TableHandleColumnTriggerEvents, type TableHandleColumnTriggerProps } from './table-handle-column-trigger/types'
|
|
9
|
-
export { useTableHandleColumnTrigger } from './table-handle-column-trigger/setup'
|
|
7
|
+
export { TableHandleColumnTriggerElement } from './table-handle-column-trigger/element.gen.ts'
|
|
8
|
+
export { tableHandleColumnTriggerEvents, tableHandleColumnTriggerProps, type TableHandleColumnTriggerEvents, type TableHandleColumnTriggerProps } from './table-handle-column-trigger/types.ts'
|
|
9
|
+
export { useTableHandleColumnTrigger } from './table-handle-column-trigger/setup.ts'
|
|
10
10
|
|
|
11
|
-
export { TableHandleDragPreviewElement } from './table-handle-drag-preview/element.gen'
|
|
12
|
-
export { tableHandleDragPreviewEvents, tableHandleDragPreviewProps, type TableHandleDragPreviewEvents, type TableHandleDragPreviewProps } from './table-handle-drag-preview/types'
|
|
13
|
-
export { useTableHandleDragPreview } from './table-handle-drag-preview/setup'
|
|
11
|
+
export { TableHandleDragPreviewElement } from './table-handle-drag-preview/element.gen.ts'
|
|
12
|
+
export { tableHandleDragPreviewEvents, tableHandleDragPreviewProps, type TableHandleDragPreviewEvents, type TableHandleDragPreviewProps } from './table-handle-drag-preview/types.ts'
|
|
13
|
+
export { useTableHandleDragPreview } from './table-handle-drag-preview/setup.ts'
|
|
14
14
|
|
|
15
|
-
export { TableHandleDropIndicatorElement } from './table-handle-drop-indicator/element.gen'
|
|
16
|
-
export { tableHandleDropIndicatorEvents, tableHandleDropIndicatorProps, type TableHandleDropIndicatorEvents, type TableHandleDropIndicatorProps } from './table-handle-drop-indicator/types'
|
|
17
|
-
export { useTableHandleDropIndicator } from './table-handle-drop-indicator/setup'
|
|
15
|
+
export { TableHandleDropIndicatorElement } from './table-handle-drop-indicator/element.gen.ts'
|
|
16
|
+
export { tableHandleDropIndicatorEvents, tableHandleDropIndicatorProps, type TableHandleDropIndicatorEvents, type TableHandleDropIndicatorProps } from './table-handle-drop-indicator/types.ts'
|
|
17
|
+
export { useTableHandleDropIndicator } from './table-handle-drop-indicator/setup.ts'
|
|
18
18
|
|
|
19
|
-
export { TableHandlePopoverContentElement } from './table-handle-popover-content/element.gen'
|
|
20
|
-
export { tableHandlePopoverContentEvents, tableHandlePopoverContentProps, type TableHandlePopoverContentEvents, type TableHandlePopoverContentProps } from './table-handle-popover-content/types'
|
|
21
|
-
export { useTableHandlePopoverContent } from './table-handle-popover-content/setup'
|
|
19
|
+
export { TableHandlePopoverContentElement } from './table-handle-popover-content/element.gen.ts'
|
|
20
|
+
export { tableHandlePopoverContentEvents, tableHandlePopoverContentProps, type TableHandlePopoverContentEvents, type TableHandlePopoverContentProps } from './table-handle-popover-content/types.ts'
|
|
21
|
+
export { useTableHandlePopoverContent } from './table-handle-popover-content/setup.ts'
|
|
22
22
|
|
|
23
|
-
export { TableHandlePopoverItemElement } from './table-handle-popover-item/element.gen'
|
|
24
|
-
export { tableHandlePopoverItemEvents, tableHandlePopoverItemProps, type TableHandlePopoverItemEvents, type TableHandlePopoverItemProps } from './table-handle-popover-item/types'
|
|
25
|
-
export { useTableHandlePopoverItem } from './table-handle-popover-item/setup'
|
|
23
|
+
export { TableHandlePopoverItemElement } from './table-handle-popover-item/element.gen.ts'
|
|
24
|
+
export { tableHandlePopoverItemEvents, tableHandlePopoverItemProps, type TableHandlePopoverItemEvents, type TableHandlePopoverItemProps } from './table-handle-popover-item/types.ts'
|
|
25
|
+
export { useTableHandlePopoverItem } from './table-handle-popover-item/setup.ts'
|
|
26
26
|
|
|
27
|
-
export { TableHandleRootElement } from './table-handle-root/element.gen'
|
|
28
|
-
export { tableHandleRootEvents, tableHandleRootProps, type TableHandleRootEvents, type TableHandleRootProps } from './table-handle-root/types'
|
|
29
|
-
export { useTableHandleRoot } from './table-handle-root/setup'
|
|
27
|
+
export { TableHandleRootElement } from './table-handle-root/element.gen.ts'
|
|
28
|
+
export { tableHandleRootEvents, tableHandleRootProps, type TableHandleRootEvents, type TableHandleRootProps } from './table-handle-root/types.ts'
|
|
29
|
+
export { useTableHandleRoot } from './table-handle-root/setup.ts'
|
|
30
30
|
|
|
31
|
-
export { TableHandleRowRootElement } from './table-handle-row-root/element.gen'
|
|
32
|
-
export { tableHandleRowRootEvents, tableHandleRowRootProps, type TableHandleRowRootEvents, type TableHandleRowRootProps } from './table-handle-row-root/types'
|
|
33
|
-
export { useTableHandleRowRoot } from './table-handle-row-root/setup'
|
|
31
|
+
export { TableHandleRowRootElement } from './table-handle-row-root/element.gen.ts'
|
|
32
|
+
export { tableHandleRowRootEvents, tableHandleRowRootProps, type TableHandleRowRootEvents, type TableHandleRowRootProps } from './table-handle-row-root/types.ts'
|
|
33
|
+
export { useTableHandleRowRoot } from './table-handle-row-root/setup.ts'
|
|
34
34
|
|
|
35
|
-
export { TableHandleRowTriggerElement } from './table-handle-row-trigger/element.gen'
|
|
36
|
-
export { tableHandleRowTriggerEvents, tableHandleRowTriggerProps, type TableHandleRowTriggerEvents, type TableHandleRowTriggerProps } from './table-handle-row-trigger/types'
|
|
37
|
-
export { useTableHandleRowTrigger } from './table-handle-row-trigger/setup'
|
|
35
|
+
export { TableHandleRowTriggerElement } from './table-handle-row-trigger/element.gen.ts'
|
|
36
|
+
export { tableHandleRowTriggerEvents, tableHandleRowTriggerProps, type TableHandleRowTriggerEvents, type TableHandleRowTriggerProps } from './table-handle-row-trigger/types.ts'
|
|
37
|
+
export { useTableHandleRowTrigger } from './table-handle-row-trigger/setup.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useTableHandleColumnRoot } from "./setup"
|
|
4
|
-
import { tableHandleColumnRootEvents, tableHandleColumnRootProps, type TableHandleColumnRootEvents, type TableHandleColumnRootProps } from "./types"
|
|
3
|
+
import { useTableHandleColumnRoot } from "./setup.ts"
|
|
4
|
+
import { tableHandleColumnRootEvents, tableHandleColumnRootProps, type TableHandleColumnRootEvents, type TableHandleColumnRootProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TableHandleColumnRootElementBase: BaseElementConstructor<TableHandleColumnRootProps> = defineCustomElement<
|
|
7
7
|
TableHandleColumnRootProps,
|
|
@@ -3,11 +3,11 @@ import { menuRootProps, useMenuRoot, type MenuRootProps } from '@aria-ui/menu/el
|
|
|
3
3
|
import { useOverlayPositionerState } from '@aria-ui/overlay/elements'
|
|
4
4
|
import { usePresence } from '@aria-ui/presence'
|
|
5
5
|
|
|
6
|
-
import { getStateWithDefaults } from '../../../utils/get-default-state'
|
|
7
|
-
import { getSafeEditorView } from '../../../utils/get-safe-editor-view'
|
|
8
|
-
import { tableHandleRootContext } from '../context'
|
|
6
|
+
import { getStateWithDefaults } from '../../../utils/get-default-state.ts'
|
|
7
|
+
import { getSafeEditorView } from '../../../utils/get-safe-editor-view.ts'
|
|
8
|
+
import { tableHandleRootContext } from '../context.ts'
|
|
9
9
|
|
|
10
|
-
import type { TableHandleColumnRootProps } from './types'
|
|
10
|
+
import type { TableHandleColumnRootProps } from './types.ts'
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useTableHandleColumnTrigger } from "./setup"
|
|
4
|
-
import { tableHandleColumnTriggerEvents, tableHandleColumnTriggerProps, type TableHandleColumnTriggerEvents, type TableHandleColumnTriggerProps } from "./types"
|
|
3
|
+
import { useTableHandleColumnTrigger } from "./setup.ts"
|
|
4
|
+
import { tableHandleColumnTriggerEvents, tableHandleColumnTriggerProps, type TableHandleColumnTriggerEvents, type TableHandleColumnTriggerProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TableHandleColumnTriggerElementBase: BaseElementConstructor<TableHandleColumnTriggerProps> = defineCustomElement<
|
|
7
7
|
TableHandleColumnTriggerProps,
|
|
@@ -2,10 +2,10 @@ import { useEffect, useEventListener, type ConnectableElement, type SetupOptions
|
|
|
2
2
|
import { useMenuTrigger } from '@aria-ui/menu/elements'
|
|
3
3
|
import { selectTableColumn } from '@prosekit/extensions/table'
|
|
4
4
|
|
|
5
|
-
import { tableHandleDndContext, tableHandleRootContext } from '../context'
|
|
6
|
-
import { useEmptyImage } from '../hooks/use-empty-image'
|
|
5
|
+
import { tableHandleDndContext, tableHandleRootContext } from '../context.ts'
|
|
6
|
+
import { useEmptyImage } from '../hooks/use-empty-image.ts'
|
|
7
7
|
|
|
8
|
-
import type { TableHandleColumnTriggerEvents, TableHandleColumnTriggerProps } from './types'
|
|
8
|
+
import type { TableHandleColumnTriggerEvents, TableHandleColumnTriggerProps } from './types.ts'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useTableHandleDragPreview } from "./setup"
|
|
4
|
-
import { tableHandleDragPreviewEvents, tableHandleDragPreviewProps, type TableHandleDragPreviewEvents, type TableHandleDragPreviewProps } from "./types"
|
|
3
|
+
import { useTableHandleDragPreview } from "./setup.ts"
|
|
4
|
+
import { tableHandleDragPreviewEvents, tableHandleDragPreviewProps, type TableHandleDragPreviewEvents, type TableHandleDragPreviewProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TableHandleDragPreviewElementBase: BaseElementConstructor<TableHandleDragPreviewProps> = defineCustomElement<
|
|
7
7
|
TableHandleDragPreviewProps,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { assignStyles } from '../../../utils/assign-styles'
|
|
2
|
-
import { cloneElement, deepCloneElement } from '../../../utils/clone-element'
|
|
3
|
-
import { fadeColor } from '../../../utils/fade-color'
|
|
4
|
-
import { getEffectiveBackgroundColor } from '../../../utils/get-effective-background-color'
|
|
5
|
-
import { injectStyle } from '../../../utils/inject-style'
|
|
1
|
+
import { assignStyles } from '../../../utils/assign-styles.ts'
|
|
2
|
+
import { cloneElement, deepCloneElement } from '../../../utils/clone-element.ts'
|
|
3
|
+
import { fadeColor } from '../../../utils/fade-color.ts'
|
|
4
|
+
import { getEffectiveBackgroundColor } from '../../../utils/get-effective-background-color.ts'
|
|
5
|
+
import { injectStyle } from '../../../utils/inject-style.ts'
|
|
6
6
|
|
|
7
7
|
export function clearPreviewDOM(previewRoot: HTMLElement): void {
|
|
8
8
|
while (previewRoot.firstChild) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { useEffect, type ConnectableElement, type SignalState } from '@aria-ui/core'
|
|
2
2
|
|
|
3
|
-
import { assignStyles } from '../../../utils/assign-styles'
|
|
4
|
-
import { useInitDndPosition, type OnInitParams } from '../dnd'
|
|
3
|
+
import { assignStyles } from '../../../utils/assign-styles.ts'
|
|
4
|
+
import { useInitDndPosition, type OnInitParams } from '../dnd.ts'
|
|
5
5
|
|
|
6
|
-
import { clearPreviewDOM, createPreviewDOM } from './render-preview'
|
|
7
|
-
import type { TableHandleDragPreviewProps } from './types'
|
|
8
|
-
import { useUpdatePreviewPosition } from './updater'
|
|
6
|
+
import { clearPreviewDOM, createPreviewDOM } from './render-preview.ts'
|
|
7
|
+
import type { TableHandleDragPreviewProps } from './types.ts'
|
|
8
|
+
import { useUpdatePreviewPosition } from './updater.ts'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
@@ -2,10 +2,10 @@ import { createComputed, useEffect, type ConnectableElement, type ReadonlySignal
|
|
|
2
2
|
import { computePosition, type ReferenceElement } from '@floating-ui/dom'
|
|
3
3
|
import type { Editor } from '@prosekit/core'
|
|
4
4
|
|
|
5
|
-
import { assignStyles } from '../../../utils/assign-styles'
|
|
6
|
-
import { getSafeEditorView } from '../../../utils/get-safe-editor-view'
|
|
7
|
-
import { tableHandleDndContext, tableHandleRootContext } from '../context'
|
|
8
|
-
import { getDndRelatedDOMs } from '../dnd'
|
|
5
|
+
import { assignStyles } from '../../../utils/assign-styles.ts'
|
|
6
|
+
import { getSafeEditorView } from '../../../utils/get-safe-editor-view.ts'
|
|
7
|
+
import { tableHandleDndContext, tableHandleRootContext } from '../context.ts'
|
|
8
|
+
import { getDndRelatedDOMs } from '../dnd.ts'
|
|
9
9
|
|
|
10
10
|
export function useUpdatePreviewPosition(host: ConnectableElement, editor: ReadonlySignal<Editor | null>): void {
|
|
11
11
|
const dndContext = tableHandleDndContext.consume(host)
|