@prosekit/web 0.7.11 → 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 +7 -6
- 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 { useTableHandleDropIndicator } from "./setup"
|
|
4
|
-
import { tableHandleDropIndicatorEvents, tableHandleDropIndicatorProps, type TableHandleDropIndicatorEvents, type TableHandleDropIndicatorProps } from "./types"
|
|
3
|
+
import { useTableHandleDropIndicator } from "./setup.ts"
|
|
4
|
+
import { tableHandleDropIndicatorEvents, tableHandleDropIndicatorProps, type TableHandleDropIndicatorEvents, type TableHandleDropIndicatorProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TableHandleDropIndicatorElementBase: BaseElementConstructor<TableHandleDropIndicatorProps> = defineCustomElement<
|
|
7
7
|
TableHandleDropIndicatorProps,
|
|
@@ -1,10 +1,10 @@
|
|
|
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 type { TableHandleDropIndicatorProps } from './types'
|
|
7
|
-
import { useUpdateIndicatorPosition } from './updater'
|
|
6
|
+
import type { TableHandleDropIndicatorProps } from './types.ts'
|
|
7
|
+
import { useUpdateIndicatorPosition } from './updater.ts'
|
|
8
8
|
|
|
9
9
|
const HANDLE_WIDTH = 2
|
|
10
10
|
|
|
@@ -2,12 +2,12 @@ import { createComputed, useEffect, type ConnectableElement, type ReadonlySignal
|
|
|
2
2
|
import { computePosition, offset } 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
|
-
import { getDragOverColumn, getDragOverRow } from './calc-drag-over'
|
|
10
|
+
import { getDragOverColumn, getDragOverRow } from './calc-drag-over.ts'
|
|
11
11
|
|
|
12
12
|
export function useUpdateIndicatorPosition(host: ConnectableElement, editor: ReadonlySignal<Editor | null>, handleWidth: number): void {
|
|
13
13
|
const dndContext = tableHandleDndContext.consume(host)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useTableHandlePopoverContent } from "./setup"
|
|
4
|
-
import { tableHandlePopoverContentEvents, tableHandlePopoverContentProps, type TableHandlePopoverContentEvents, type TableHandlePopoverContentProps } from "./types"
|
|
3
|
+
import { useTableHandlePopoverContent } from "./setup.ts"
|
|
4
|
+
import { tableHandlePopoverContentEvents, tableHandlePopoverContentProps, type TableHandlePopoverContentEvents, type TableHandlePopoverContentProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TableHandlePopoverContentElementBase: BaseElementConstructor<TableHandlePopoverContentProps> = defineCustomElement<
|
|
7
7
|
TableHandlePopoverContentProps,
|
|
@@ -10,10 +10,10 @@ import {
|
|
|
10
10
|
} from '@aria-ui/core'
|
|
11
11
|
import { menuContentProps, useMenuContent, type MenuContentProps } from '@aria-ui/menu/elements'
|
|
12
12
|
|
|
13
|
-
import { getStateWithDefaults } from '../../../utils/get-default-state'
|
|
14
|
-
import { tableHandleRootContext } from '../context'
|
|
13
|
+
import { getStateWithDefaults } from '../../../utils/get-default-state.ts'
|
|
14
|
+
import { tableHandleRootContext } from '../context.ts'
|
|
15
15
|
|
|
16
|
-
import type { TableHandlePopoverContentEvents, TableHandlePopoverContentProps } from './types'
|
|
16
|
+
import type { TableHandlePopoverContentEvents, TableHandlePopoverContentProps } from './types.ts'
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useTableHandlePopoverItem } from "./setup"
|
|
4
|
-
import { tableHandlePopoverItemEvents, tableHandlePopoverItemProps, type TableHandlePopoverItemEvents, type TableHandlePopoverItemProps } from "./types"
|
|
3
|
+
import { useTableHandlePopoverItem } from "./setup.ts"
|
|
4
|
+
import { tableHandlePopoverItemEvents, tableHandlePopoverItemProps, type TableHandlePopoverItemEvents, type TableHandlePopoverItemProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TableHandlePopoverItemElementBase: BaseElementConstructor<TableHandlePopoverItemProps> = defineCustomElement<
|
|
7
7
|
TableHandlePopoverItemProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ConnectableElement, SetupOptions } from '@aria-ui/core'
|
|
2
2
|
import { useMenuItem } from '@aria-ui/menu/elements'
|
|
3
3
|
|
|
4
|
-
import type { TableHandlePopoverItemEvents, TableHandlePopoverItemProps } from './types'
|
|
4
|
+
import type { TableHandlePopoverItemEvents, TableHandlePopoverItemProps } from './types.ts'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useTableHandleRoot } from "./setup"
|
|
4
|
-
import { tableHandleRootEvents, tableHandleRootProps, type TableHandleRootEvents, type TableHandleRootProps } from "./types"
|
|
3
|
+
import { useTableHandleRoot } from "./setup.ts"
|
|
4
|
+
import { tableHandleRootEvents, tableHandleRootProps, type TableHandleRootEvents, type TableHandleRootProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TableHandleRootElementBase: BaseElementConstructor<TableHandleRootProps> = defineCustomElement<
|
|
7
7
|
TableHandleRootProps,
|
|
@@ -10,21 +10,21 @@ import {
|
|
|
10
10
|
import { defineDOMEventHandler, type Editor } from '@prosekit/core'
|
|
11
11
|
import type { EditorView } from '@prosekit/pm/view'
|
|
12
12
|
|
|
13
|
-
import { useEditorExtension } from '../../../hooks/use-editor-extension'
|
|
14
|
-
import { useEditorTyping } from '../../../hooks/use-editor-typing'
|
|
15
|
-
import { useScrolling } from '../../../hooks/use-scrolling'
|
|
16
|
-
import { useSelecting } from '../../../hooks/use-selecting'
|
|
13
|
+
import { useEditorExtension } from '../../../hooks/use-editor-extension.ts'
|
|
14
|
+
import { useEditorTyping } from '../../../hooks/use-editor-typing.ts'
|
|
15
|
+
import { useScrolling } from '../../../hooks/use-scrolling.ts'
|
|
16
|
+
import { useSelecting } from '../../../hooks/use-selecting.ts'
|
|
17
17
|
import {
|
|
18
18
|
defaultTableHandleDndContext,
|
|
19
19
|
tableHandleDndContext,
|
|
20
20
|
tableHandleRootContext,
|
|
21
21
|
type TableHandleDndContext,
|
|
22
22
|
type TableHandleRootContext,
|
|
23
|
-
} from '../context'
|
|
24
|
-
import { useDrop } from '../hooks/use-drop'
|
|
25
|
-
import { getHoveringCell, isHoveringCellInfoEqual, type HoveringCellInfo } from '../utils'
|
|
23
|
+
} from '../context.ts'
|
|
24
|
+
import { useDrop } from '../hooks/use-drop.ts'
|
|
25
|
+
import { getHoveringCell, isHoveringCellInfoEqual, type HoveringCellInfo } from '../utils.ts'
|
|
26
26
|
|
|
27
|
-
import type { TableHandleRootProps } from './types'
|
|
27
|
+
import type { TableHandleRootProps } from './types.ts'
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
30
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useTableHandleRowRoot } from "./setup"
|
|
4
|
-
import { tableHandleRowRootEvents, tableHandleRowRootProps, type TableHandleRowRootEvents, type TableHandleRowRootProps } from "./types"
|
|
3
|
+
import { useTableHandleRowRoot } from "./setup.ts"
|
|
4
|
+
import { tableHandleRowRootEvents, tableHandleRowRootProps, type TableHandleRowRootEvents, type TableHandleRowRootProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TableHandleRowRootElementBase: BaseElementConstructor<TableHandleRowRootProps> = defineCustomElement<
|
|
7
7
|
TableHandleRowRootProps,
|
|
@@ -11,11 +11,11 @@ import { menuRootEvents, menuRootProps, useMenuRoot } from '@aria-ui/menu/elemen
|
|
|
11
11
|
import { useOverlayPositionerState } from '@aria-ui/overlay/elements'
|
|
12
12
|
import { usePresence } from '@aria-ui/presence'
|
|
13
13
|
|
|
14
|
-
import { getStateWithDefaults } from '../../../utils/get-default-state'
|
|
15
|
-
import { getSafeEditorView } from '../../../utils/get-safe-editor-view'
|
|
16
|
-
import { tableHandleRootContext } from '../context'
|
|
14
|
+
import { getStateWithDefaults } from '../../../utils/get-default-state.ts'
|
|
15
|
+
import { getSafeEditorView } from '../../../utils/get-safe-editor-view.ts'
|
|
16
|
+
import { tableHandleRootContext } from '../context.ts'
|
|
17
17
|
|
|
18
|
-
import type { TableHandleRowRootEvents, TableHandleRowRootProps } from './types'
|
|
18
|
+
import type { TableHandleRowRootEvents, TableHandleRowRootProps } from './types.ts'
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useTableHandleRowTrigger } from "./setup"
|
|
4
|
-
import { tableHandleRowTriggerEvents, tableHandleRowTriggerProps, type TableHandleRowTriggerEvents, type TableHandleRowTriggerProps } from "./types"
|
|
3
|
+
import { useTableHandleRowTrigger } from "./setup.ts"
|
|
4
|
+
import { tableHandleRowTriggerEvents, tableHandleRowTriggerProps, type TableHandleRowTriggerEvents, type TableHandleRowTriggerProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TableHandleRowTriggerElementBase: BaseElementConstructor<TableHandleRowTriggerProps> = defineCustomElement<
|
|
7
7
|
TableHandleRowTriggerProps,
|
|
@@ -2,10 +2,10 @@ import { useEffect, useEventListener, type ConnectableElement, type SetupOptions
|
|
|
2
2
|
import { useMenuTrigger } from '@aria-ui/menu/elements'
|
|
3
3
|
import { selectTableRow } 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 { TableHandleRowTriggerEvents, TableHandleRowTriggerProps } from './types'
|
|
8
|
+
import type { TableHandleRowTriggerEvents, TableHandleRowTriggerProps } from './types.ts'
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @internal
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// This file is generated by packages/dev/src/gen-components.ts
|
|
2
2
|
|
|
3
|
-
export { TooltipContentElement } from './tooltip-content/element.gen'
|
|
4
|
-
export { tooltipContentEvents, tooltipContentProps, type TooltipContentEvents, type TooltipContentProps } from './tooltip-content/types'
|
|
5
|
-
export { useTooltipContent } from './tooltip-content/setup'
|
|
3
|
+
export { TooltipContentElement } from './tooltip-content/element.gen.ts'
|
|
4
|
+
export { tooltipContentEvents, tooltipContentProps, type TooltipContentEvents, type TooltipContentProps } from './tooltip-content/types.ts'
|
|
5
|
+
export { useTooltipContent } from './tooltip-content/setup.ts'
|
|
6
6
|
|
|
7
|
-
export { TooltipRootElement } from './tooltip-root/element.gen'
|
|
8
|
-
export { tooltipRootEvents, tooltipRootProps, type TooltipRootEvents, type TooltipRootProps } from './tooltip-root/types'
|
|
9
|
-
export { useTooltipRoot } from './tooltip-root/setup'
|
|
7
|
+
export { TooltipRootElement } from './tooltip-root/element.gen.ts'
|
|
8
|
+
export { tooltipRootEvents, tooltipRootProps, type TooltipRootEvents, type TooltipRootProps } from './tooltip-root/types.ts'
|
|
9
|
+
export { useTooltipRoot } from './tooltip-root/setup.ts'
|
|
10
10
|
|
|
11
|
-
export { TooltipTriggerElement } from './tooltip-trigger/element.gen'
|
|
12
|
-
export { tooltipTriggerEvents, tooltipTriggerProps, type TooltipTriggerEvents, type TooltipTriggerProps } from './tooltip-trigger/types'
|
|
13
|
-
export { useTooltipTrigger } from './tooltip-trigger/setup'
|
|
11
|
+
export { TooltipTriggerElement } from './tooltip-trigger/element.gen.ts'
|
|
12
|
+
export { tooltipTriggerEvents, tooltipTriggerProps, type TooltipTriggerEvents, type TooltipTriggerProps } from './tooltip-trigger/types.ts'
|
|
13
|
+
export { useTooltipTrigger } from './tooltip-trigger/setup.ts'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useTooltipContent } from "./setup"
|
|
4
|
-
import { tooltipContentEvents, tooltipContentProps, type TooltipContentEvents, type TooltipContentProps } from "./types"
|
|
3
|
+
import { useTooltipContent } from "./setup.ts"
|
|
4
|
+
import { tooltipContentEvents, tooltipContentProps, type TooltipContentEvents, type TooltipContentProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TooltipContentElementBase: BaseElementConstructor<TooltipContentProps> = defineCustomElement<
|
|
7
7
|
TooltipContentProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useTooltipRoot } from "./setup"
|
|
4
|
-
import { tooltipRootEvents, tooltipRootProps, type TooltipRootEvents, type TooltipRootProps } from "./types"
|
|
3
|
+
import { useTooltipRoot } from "./setup.ts"
|
|
4
|
+
import { tooltipRootEvents, tooltipRootProps, type TooltipRootEvents, type TooltipRootProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TooltipRootElementBase: BaseElementConstructor<TooltipRootProps> = defineCustomElement<
|
|
7
7
|
TooltipRootProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineCustomElement, registerCustomElement, type BaseElementConstructor } from "@aria-ui/core"
|
|
2
2
|
|
|
3
|
-
import { useTooltipTrigger } from "./setup"
|
|
4
|
-
import { tooltipTriggerEvents, tooltipTriggerProps, type TooltipTriggerEvents, type TooltipTriggerProps } from "./types"
|
|
3
|
+
import { useTooltipTrigger } from "./setup.ts"
|
|
4
|
+
import { tooltipTriggerEvents, tooltipTriggerProps, type TooltipTriggerEvents, type TooltipTriggerProps } from "./types.ts"
|
|
5
5
|
|
|
6
6
|
const TooltipTriggerElementBase: BaseElementConstructor<TooltipTriggerProps> = defineCustomElement<
|
|
7
7
|
TooltipTriggerProps,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ConnectableElement, ReadonlySignal } from '@aria-ui/core'
|
|
2
2
|
import { defineFocusChangeHandler, type Editor, type FocusChangeHandler } from '@prosekit/core'
|
|
3
3
|
|
|
4
|
-
import { useEditorExtension } from './use-editor-extension'
|
|
4
|
+
import { useEditorExtension } from './use-editor-extension.ts'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSignal, type ConnectableElement, type ReadonlySignal } from '@aria-ui/core'
|
|
2
2
|
import { defineDOMEventHandler, union, type Editor } from '@prosekit/core'
|
|
3
3
|
|
|
4
|
-
import { useEditorExtension } from './use-editor-extension'
|
|
4
|
+
import { useEditorExtension } from './use-editor-extension.ts'
|
|
5
5
|
|
|
6
6
|
export function useEditorTyping(
|
|
7
7
|
host: ConnectableElement,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ConnectableElement, ReadonlySignal } from '@aria-ui/core'
|
|
2
2
|
import { defineUpdateHandler, type Editor, type UpdateHandler } from '@prosekit/core'
|
|
3
3
|
|
|
4
|
-
import { useEditorExtension } from './use-editor-extension'
|
|
4
|
+
import { useEditorExtension } from './use-editor-extension.ts'
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @internal
|
package/src/hooks/use-keymap.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ConnectableElement, ReadonlySignal } from '@aria-ui/core'
|
|
2
2
|
import { defineKeymap, type Editor, type Keymap } from '@prosekit/core'
|
|
3
3
|
|
|
4
|
-
import { useEditorExtension } from './use-editor-extension'
|
|
4
|
+
import { useEditorExtension } from './use-editor-extension.ts'
|
|
5
5
|
|
|
6
6
|
export function useKeymap(
|
|
7
7
|
host: ConnectableElement,
|
|
@@ -2,7 +2,7 @@ import type { ReadonlySignal } from '@aria-ui/core'
|
|
|
2
2
|
import { createSignal, useEffect, type ConnectableElement } from '@aria-ui/core'
|
|
3
3
|
import type { Editor } from '@prosekit/core'
|
|
4
4
|
|
|
5
|
-
import { getSafeEditorView } from '../utils/get-safe-editor-view'
|
|
5
|
+
import { getSafeEditorView } from '../utils/get-safe-editor-view.ts'
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Detect if the user is selecting text inside the editor, in which case some
|
package/src/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { queueExtension } from './queue-extension'
|
|
1
|
+
export { queueExtension } from './queue-extension.ts'
|
package/src/utils/fade-color.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createSignal, type PropDeclarations, type SignalState } from '@aria-ui/core'
|
|
2
2
|
import { describe, expect, it } from 'vitest'
|
|
3
3
|
|
|
4
|
-
import { getStateWithDefaults } from './get-default-state'
|
|
4
|
+
import { getStateWithDefaults } from './get-default-state.ts'
|
|
5
5
|
|
|
6
6
|
type TestProps = {
|
|
7
7
|
bool: boolean
|