@prosekit/react 0.7.0-beta.3 → 0.7.0-beta.5
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/editor-context.js +0 -2
- package/dist/editor-context.js.map +1 -1
- package/dist/prosekit-react-autocomplete.d.ts +10 -61
- package/dist/prosekit-react-autocomplete.d.ts.map +1 -1
- package/dist/prosekit-react-autocomplete.js +30 -49
- package/dist/prosekit-react-autocomplete.js.map +1 -1
- package/dist/prosekit-react-block-handle.d.ts +10 -61
- package/dist/prosekit-react-block-handle.d.ts.map +1 -1
- package/dist/prosekit-react-block-handle.js +30 -49
- package/dist/prosekit-react-block-handle.js.map +1 -1
- package/dist/prosekit-react-drop-indicator.d.ts +2 -13
- package/dist/prosekit-react-drop-indicator.d.ts.map +1 -1
- package/dist/prosekit-react-drop-indicator.js +13 -9
- package/dist/prosekit-react-drop-indicator.js.map +1 -1
- package/dist/prosekit-react-inline-popover.d.ts +6 -37
- package/dist/prosekit-react-inline-popover.d.ts.map +1 -1
- package/dist/prosekit-react-inline-popover.js +23 -29
- package/dist/prosekit-react-inline-popover.js.map +1 -1
- package/dist/prosekit-react-menu.d.ts +48 -88
- package/dist/prosekit-react-menu.d.ts.map +1 -1
- package/dist/prosekit-react-menu.js +72 -71
- package/dist/prosekit-react-menu.js.map +1 -1
- package/dist/prosekit-react-popover.d.ts +8 -49
- package/dist/prosekit-react-popover.d.ts.map +1 -1
- package/dist/prosekit-react-popover.js +26 -39
- package/dist/prosekit-react-popover.js.map +1 -1
- package/dist/prosekit-react-resizable.d.ts +4 -25
- package/dist/prosekit-react-resizable.d.ts.map +1 -1
- package/dist/prosekit-react-resizable.js +20 -19
- package/dist/prosekit-react-resizable.js.map +1 -1
- package/dist/prosekit-react-table-handle.d.ts +22 -133
- package/dist/prosekit-react-table-handle.d.ts.map +1 -1
- package/dist/prosekit-react-table-handle.js +67 -109
- package/dist/prosekit-react-table-handle.js.map +1 -1
- package/dist/prosekit-react-tooltip.d.ts +8 -49
- package/dist/prosekit-react-tooltip.d.ts.map +1 -1
- package/dist/prosekit-react-tooltip.js +26 -39
- package/dist/prosekit-react-tooltip.js.map +1 -1
- package/dist/prosekit-react.d.ts +0 -21
- package/dist/prosekit-react.d.ts.map +1 -1
- package/dist/prosekit-react.js +1 -26
- package/dist/prosekit-react.js.map +1 -1
- package/package.json +4 -4
- package/src/components/autocomplete/autocomplete-empty.gen.ts +3 -13
- package/src/components/autocomplete/autocomplete-item.gen.ts +3 -13
- package/src/components/autocomplete/autocomplete-popup.gen.ts +3 -13
- package/src/components/autocomplete/autocomplete-positioner.gen.ts +3 -13
- package/src/components/autocomplete/autocomplete-root.gen.ts +3 -13
- package/src/components/autocomplete/index.gen.ts +1 -3
- package/src/components/autocomplete/index.ts +2 -0
- package/src/components/block-handle/block-handle-add.gen.ts +3 -13
- package/src/components/block-handle/block-handle-draggable.gen.ts +3 -13
- package/src/components/block-handle/block-handle-popup.gen.ts +3 -13
- package/src/components/block-handle/block-handle-positioner.gen.ts +3 -13
- package/src/components/block-handle/block-handle-root.gen.ts +3 -13
- package/src/components/block-handle/index.gen.ts +1 -3
- package/src/components/block-handle/index.ts +2 -0
- package/src/components/drop-indicator/drop-indicator.gen.ts +3 -13
- package/src/components/drop-indicator/index.gen.ts +1 -3
- package/src/components/drop-indicator/index.ts +2 -0
- package/src/components/inline-popover/index.gen.ts +1 -3
- package/src/components/inline-popover/index.ts +2 -0
- package/src/components/inline-popover/inline-popover-popup.gen.ts +3 -13
- package/src/components/inline-popover/inline-popover-positioner.gen.ts +3 -13
- package/src/components/inline-popover/inline-popover-root.gen.ts +3 -13
- package/src/components/menu/index.gen.ts +1 -3
- package/src/components/menu/index.ts +2 -0
- package/src/components/menu/menu-item.gen.ts +3 -13
- package/src/components/menu/menu-popup.gen.ts +3 -13
- package/src/components/menu/menu-positioner.gen.ts +3 -13
- package/src/components/menu/menu-root.gen.ts +3 -13
- package/src/components/menu/menu-submenu-root.gen.ts +49 -17
- package/src/components/menu/menu-submenu-trigger.gen.ts +28 -19
- package/src/components/menu/menu-trigger.gen.ts +3 -13
- package/src/components/popover/index.gen.ts +1 -3
- package/src/components/popover/index.ts +2 -0
- package/src/components/popover/popover-popup.gen.ts +3 -13
- package/src/components/popover/popover-positioner.gen.ts +3 -13
- package/src/components/popover/popover-root.gen.ts +3 -13
- package/src/components/popover/popover-trigger.gen.ts +3 -13
- package/src/components/resizable/index.gen.ts +1 -3
- package/src/components/resizable/index.ts +2 -0
- package/src/components/resizable/resizable-handle.gen.ts +3 -13
- package/src/components/resizable/resizable-root.gen.ts +3 -13
- package/src/components/table-handle/index.gen.ts +1 -3
- package/src/components/table-handle/index.ts +2 -0
- package/src/components/table-handle/table-handle-column-menu-root.gen.ts +3 -13
- package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +3 -13
- package/src/components/table-handle/table-handle-column-popup.gen.ts +3 -13
- package/src/components/table-handle/table-handle-column-positioner.gen.ts +3 -13
- package/src/components/table-handle/table-handle-drag-preview.gen.ts +3 -13
- package/src/components/table-handle/table-handle-drop-indicator.gen.ts +3 -13
- package/src/components/table-handle/table-handle-root.gen.ts +3 -13
- package/src/components/table-handle/table-handle-row-menu-root.gen.ts +3 -13
- package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +3 -13
- package/src/components/table-handle/table-handle-row-popup.gen.ts +3 -13
- package/src/components/table-handle/table-handle-row-positioner.gen.ts +3 -13
- package/src/components/tooltip/index.gen.ts +1 -3
- package/src/components/tooltip/index.ts +2 -0
- package/src/components/tooltip/tooltip-popup.gen.ts +3 -13
- package/src/components/tooltip/tooltip-positioner.gen.ts +3 -13
- package/src/components/tooltip/tooltip-root.gen.ts +3 -13
- package/src/components/tooltip/tooltip-trigger.gen.ts +3 -13
- package/src/index.ts +2 -0
|
@@ -1,12 +1,6 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
2
2
|
import { ResizableHandleElement, ResizableHandleProps as ResizableHandleProps$1, ResizableRootElement, ResizableRootEvents, ResizableRootProps as ResizableRootProps$1 } from "@prosekit/web/resizable";
|
|
3
|
-
|
|
4
|
-
//#region src/components/resizable/resizable-root.gen.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Props for the {@link ResizableRoot} React component.
|
|
7
|
-
*
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
3
|
+
/** Props for the {@link ResizableRoot} React component. */
|
|
10
4
|
interface ResizableRootProps {
|
|
11
5
|
/**
|
|
12
6
|
* The width of the resizable element.
|
|
@@ -31,19 +25,9 @@ interface ResizableRootProps {
|
|
|
31
25
|
/** Emitted when a resize operation ends. */
|
|
32
26
|
onResizeEnd?: (event: ResizableRootEvents['resizeEnd']) => void;
|
|
33
27
|
}
|
|
34
|
-
/**
|
|
35
|
-
* A React component that renders an `prosekit-resizable-root` custom element.
|
|
36
|
-
*
|
|
37
|
-
* @public
|
|
38
|
-
*/
|
|
28
|
+
/** A React component that renders an `prosekit-resizable-root` custom element. */
|
|
39
29
|
declare const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & HTMLAttributes<ResizableRootElement> & RefAttributes<ResizableRootElement>>;
|
|
40
|
-
|
|
41
|
-
//#region src/components/resizable/resizable-handle.gen.d.ts
|
|
42
|
-
/**
|
|
43
|
-
* Props for the {@link ResizableHandle} React component.
|
|
44
|
-
*
|
|
45
|
-
* @public
|
|
46
|
-
*/
|
|
30
|
+
/** Props for the {@link ResizableHandle} React component. */
|
|
47
31
|
interface ResizableHandleProps {
|
|
48
32
|
/**
|
|
49
33
|
* The position of the handle.
|
|
@@ -52,12 +36,7 @@ interface ResizableHandleProps {
|
|
|
52
36
|
*/
|
|
53
37
|
position?: ResizableHandleProps$1['position'];
|
|
54
38
|
}
|
|
55
|
-
/**
|
|
56
|
-
* A React component that renders an `prosekit-resizable-handle` custom element.
|
|
57
|
-
*
|
|
58
|
-
* @public
|
|
59
|
-
*/
|
|
39
|
+
/** A React component that renders an `prosekit-resizable-handle` custom element. */
|
|
60
40
|
declare const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>>;
|
|
61
|
-
//#endregion
|
|
62
41
|
export { ResizableHandle, type ResizableHandleProps, ResizableRoot, type ResizableRootProps };
|
|
63
42
|
//# sourceMappingURL=prosekit-react-resizable.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prosekit-react-resizable.d.ts","names":[],"sources":["../src/components/resizable/resizable-root.gen.ts","../src/components/resizable/resizable-handle.gen.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"prosekit-react-resizable.d.ts","names":[],"sources":["../src/components/resizable/resizable-root.gen.ts","../src/components/resizable/resizable-handle.gen.ts"],"mappings":";;;UAMiB,kBAAA;EAAkB;;;;;EAMjC,KAAA,GAAQ,oBAAA;EAgBc;;;;;EAVtB,MAAA,GAAS,oBAAA;EAAA;;;;;EAMT,WAAA,GAAc,oBAAA;EAId;EAFA,aAAA,IAAiB,KAAA,EAAO,mBAAA;EAET;EAAf,WAAA,IAAe,KAAA,EAAO,mBAAA;AAAA;AAkDxB;AAAA,cAAa,aAAA,EAAe,yBAAA,CAA0B,kBAAA,GAAqB,cAAA,CAAe,oBAAA,IAAwB,aAAA,CAAc,oBAAA;;UCxE/G,oBAAA;EDAkB;;;;;ECMjC,QAAA,GAAW,sBAAA;AAAA;;cAgCA,eAAA,EAAiB,yBAAA,CAA0B,oBAAA,GAAuB,cAAA,CAAe,sBAAA,IAA0B,aAAA,CAAc,sBAAA"}
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
+
"use client";
|
|
1
2
|
import { createElement, forwardRef, useCallback, useLayoutEffect, useRef } from "react";
|
|
2
3
|
import { registerResizableHandleElement, registerResizableRootElement } from "@prosekit/web/resizable";
|
|
3
|
-
//#region src/components/resizable/resizable-root.gen.ts
|
|
4
|
-
/**
|
|
5
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
6
|
-
*/
|
|
7
4
|
function ResizableRootComponent(props, forwardedRef) {
|
|
8
5
|
registerResizableRootElement();
|
|
9
6
|
const elementRef = useRef(null);
|
|
@@ -39,17 +36,8 @@ function ResizableRootComponent(props, forwardedRef) {
|
|
|
39
36
|
suppressHydrationWarning: true
|
|
40
37
|
});
|
|
41
38
|
}
|
|
42
|
-
/**
|
|
43
|
-
* A React component that renders an `prosekit-resizable-root` custom element.
|
|
44
|
-
*
|
|
45
|
-
* @public
|
|
46
|
-
*/
|
|
39
|
+
/** A React component that renders an `prosekit-resizable-root` custom element. */
|
|
47
40
|
const ResizableRoot = /* @__PURE__ */ forwardRef(ResizableRootComponent);
|
|
48
|
-
//#endregion
|
|
49
|
-
//#region src/components/resizable/resizable-handle.gen.ts
|
|
50
|
-
/**
|
|
51
|
-
* This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
|
|
52
|
-
*/
|
|
53
41
|
function ResizableHandleComponent(props, forwardedRef) {
|
|
54
42
|
registerResizableHandleElement();
|
|
55
43
|
const elementRef = useRef(null);
|
|
@@ -70,13 +58,26 @@ function ResizableHandleComponent(props, forwardedRef) {
|
|
|
70
58
|
suppressHydrationWarning: true
|
|
71
59
|
});
|
|
72
60
|
}
|
|
61
|
+
/** A React component that renders an `prosekit-resizable-handle` custom element. */
|
|
62
|
+
const ResizableHandle = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
|
|
73
63
|
/**
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
64
|
+
|
|
65
|
+
@module
|
|
66
|
+
|
|
67
|
+
## Anatomy
|
|
68
|
+
|
|
69
|
+
```jsx
|
|
70
|
+
import {
|
|
71
|
+
ResizableHandle,
|
|
72
|
+
ResizableRoot,
|
|
73
|
+
} from 'prosekit/react/resizable'
|
|
74
|
+
|
|
75
|
+
<ResizableRoot>
|
|
76
|
+
<img src="..." />
|
|
77
|
+
<ResizableHandle>...</ResizableHandle>
|
|
78
|
+
</ResizableRoot>
|
|
79
|
+
```
|
|
77
80
|
*/
|
|
78
|
-
const ResizableHandle = /* @__PURE__ */ forwardRef(ResizableHandleComponent);
|
|
79
|
-
//#endregion
|
|
80
81
|
export { ResizableHandle, ResizableRoot };
|
|
81
82
|
|
|
82
83
|
//# sourceMappingURL=prosekit-react-resizable.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prosekit-react-resizable.js","names":[],"sources":["../src/components/resizable/resizable-root.gen.ts","../src/components/resizable/resizable-handle.gen.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"prosekit-react-resizable.js","names":[],"sources":["../src/components/resizable/resizable-root.gen.ts","../src/components/resizable/resizable-handle.gen.ts","../src/components/resizable/index.ts"],"sourcesContent":["// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerResizableRootElement, type ResizableRootElement, type ResizableRootProps as ResizableRootElementProps, type ResizableRootEvents } from '@prosekit/web/resizable';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/** Props for the {@link ResizableRoot} React component. */\nexport interface ResizableRootProps {\n /**\n * The width of the resizable element.\n *\n * @default null\n */\n width?: ResizableRootElementProps['width'];\n /**\n * The height of the resizable element.\n *\n * @default null\n */\n height?: ResizableRootElementProps['height'];\n /**\n * The aspect ratio of the resizable element.\n *\n * @default null\n */\n aspectRatio?: ResizableRootElementProps['aspectRatio'];\n /** Emitted when a resize operation starts. */\n onResizeStart?: (event: ResizableRootEvents['resizeStart']) => void;\n /** Emitted when a resize operation ends. */\n onResizeEnd?: (event: ResizableRootEvents['resizeEnd']) => void;\n}\n\nfunction ResizableRootComponent(props: ResizableRootProps, forwardedRef: ForwardedRef<ResizableRootElement>) {\n registerResizableRootElement();\n\n const elementRef = useRef<ResizableRootElement>(null);\n const handlersRef = useRef<Array<((event: Event) => void) | undefined>>([]);\n\n const { aspectRatio: p0, height: p1, width: p2, onResizeEnd: e0, onResizeStart: e1, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { aspectRatio: p0, height: p1, width: p2 });\n handlersRef.current = [e0, e1] as Array<((event: Event) => void) | undefined>;\n });\n\n useLayoutEffect(() => {\n const element = elementRef.current;\n if (!element) return;\n const ac = new AbortController();\n for (const [index, eventName] of ['resizeEnd', 'resizeStart'].entries()) {\n element.addEventListener(\n eventName,\n (event: Event) => {\n handlersRef.current[index]?.(event);\n },\n { signal: ac.signal },\n );\n }\n return () => ac.abort();\n }, []);\n\n const mergedRef = useCallback(\n (element: ResizableRootElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-resizable-root', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-resizable-root` custom element. */\nexport const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & HTMLAttributes<ResizableRootElement> & RefAttributes<ResizableRootElement>> = /* @__PURE__ */ forwardRef(ResizableRootComponent);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerResizableHandleElement, type ResizableHandleElement, type ResizableHandleProps as ResizableHandleElementProps } from '@prosekit/web/resizable';\nimport { createElement, forwardRef, useCallback, useRef, type ForwardedRef, type ForwardRefExoticComponent, type HTMLAttributes, type RefAttributes, useLayoutEffect } from 'react';\n\n/** Props for the {@link ResizableHandle} React component. */\nexport interface ResizableHandleProps {\n /**\n * The position of the handle.\n *\n * @default \"bottom-right\"\n */\n position?: ResizableHandleElementProps['position'];\n}\n\nfunction ResizableHandleComponent(props: ResizableHandleProps, forwardedRef: ForwardedRef<ResizableHandleElement>) {\n registerResizableHandleElement();\n\n const elementRef = useRef<ResizableHandleElement>(null);\n\n const { position: p0, ...restProps } = props;\n\n useLayoutEffect(() => {\n const element = elementRef.current as Record<string, unknown> | null;\n if (!element) return;\n Object.assign(element, { position: p0 });\n });\n\n const mergedRef = useCallback(\n (element: ResizableHandleElement | null) => {\n elementRef.current = element;\n if (typeof forwardedRef === 'function') {\n forwardedRef(element);\n } else if (forwardedRef) {\n forwardedRef.current = element;\n }\n },\n [forwardedRef],\n );\n\n return createElement('prosekit-resizable-handle', { ...restProps, ref: mergedRef, suppressHydrationWarning: true });\n}\n\n/** A React component that renders an `prosekit-resizable-handle` custom element. */\nexport const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & HTMLAttributes<ResizableHandleElement> & RefAttributes<ResizableHandleElement>> = /* @__PURE__ */ forwardRef(ResizableHandleComponent);\n","/**\n\n@module\n\n## Anatomy\n\n```jsx\nimport {\n ResizableHandle,\n ResizableRoot,\n} from 'prosekit/react/resizable'\n\n<ResizableRoot>\n <img src=\"...\" />\n <ResizableHandle>...</ResizableHandle>\n</ResizableRoot>\n```\n*/\n\n'use client'\n\nexport * from './index.gen.ts'\n"],"mappings":";;;AA+BA,SAAS,uBAAuB,OAA2B,cAAkD;AAC3G,+BAA8B;CAE9B,MAAM,aAAa,OAA6B,KAAK;CACrD,MAAM,cAAc,OAAoD,EAAE,CAAC;CAE3E,MAAM,EAAE,aAAa,IAAI,QAAQ,IAAI,OAAO,IAAI,aAAa,IAAI,eAAe,IAAI,GAAG,cAAc;AAErG,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;AACd,SAAO,OAAO,SAAS;GAAE,aAAa;GAAI,QAAQ;GAAI,OAAO;GAAI,CAAC;AAClE,cAAY,UAAU,CAAC,IAAI,GAAG;GAC9B;AAEF,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;EACd,MAAM,KAAK,IAAI,iBAAiB;AAChC,OAAK,MAAM,CAAC,OAAO,cAAc,CAAC,aAAa,cAAc,CAAC,SAAS,CACrE,SAAQ,iBACN,YACC,UAAiB;AAChB,eAAY,QAAQ,SAAS,MAAM;KAErC,EAAE,QAAQ,GAAG,QAAQ,CACtB;AAEH,eAAa,GAAG,OAAO;IACtB,EAAE,CAAC;CAEN,MAAM,YAAY,aACf,YAAyC;AACxC,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,2BAA2B;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;AAInH,MAAa,gBAA4J,2BAAW,uBAAuB;AC/D3M,SAAS,yBAAyB,OAA6B,cAAoD;AACjH,iCAAgC;CAEhC,MAAM,aAAa,OAA+B,KAAK;CAEvD,MAAM,EAAE,UAAU,IAAI,GAAG,cAAc;AAEvC,uBAAsB;EACpB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;AACd,SAAO,OAAO,SAAS,EAAE,UAAU,IAAI,CAAC;GACxC;CAEF,MAAM,YAAY,aACf,YAA2C;AAC1C,aAAW,UAAU;AACrB,MAAI,OAAO,iBAAiB,WAC1B,cAAa,QAAQ;WACZ,aACT,cAAa,UAAU;IAG3B,CAAC,aAAa,CACf;AAED,QAAO,cAAc,6BAA6B;EAAE,GAAG;EAAW,KAAK;EAAW,0BAA0B;EAAM,CAAC;;;AAIrH,MAAa,kBAAoK,2BAAW,yBAAyB"}
|
|
@@ -1,26 +1,10 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
2
2
|
import { TableHandleColumnMenuRootElement, TableHandleColumnMenuRootProps as TableHandleColumnMenuRootProps$1, TableHandleColumnMenuTriggerElement, TableHandleColumnMenuTriggerProps as TableHandleColumnMenuTriggerProps$1, TableHandleColumnPopupElement, TableHandleColumnPositionerElement, TableHandleColumnPositionerProps as TableHandleColumnPositionerProps$1, TableHandleDragPreviewElement, TableHandleDragPreviewProps as TableHandleDragPreviewProps$1, TableHandleDropIndicatorElement, TableHandleDropIndicatorProps as TableHandleDropIndicatorProps$1, TableHandleRootElement, TableHandleRootProps as TableHandleRootProps$1, TableHandleRowMenuRootElement, TableHandleRowMenuRootProps as TableHandleRowMenuRootProps$1, TableHandleRowMenuTriggerElement, TableHandleRowMenuTriggerProps as TableHandleRowMenuTriggerProps$1, TableHandleRowPopupElement, TableHandleRowPositionerElement, TableHandleRowPositionerProps as TableHandleRowPositionerProps$1 } from "@prosekit/web/table-handle";
|
|
3
|
-
|
|
4
|
-
//#region src/components/table-handle/table-handle-column-popup.gen.d.ts
|
|
5
|
-
/**
|
|
6
|
-
* Props for the {@link TableHandleColumnPopup} React component.
|
|
7
|
-
*
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
3
|
+
/** Props for the {@link TableHandleColumnPopup} React component. */
|
|
10
4
|
interface TableHandleColumnPopupProps {}
|
|
11
|
-
/**
|
|
12
|
-
* A React component that renders an `prosekit-table-handle-column-popup` custom element.
|
|
13
|
-
*
|
|
14
|
-
* @public
|
|
15
|
-
*/
|
|
5
|
+
/** A React component that renders an `prosekit-table-handle-column-popup` custom element. */
|
|
16
6
|
declare const TableHandleColumnPopup: ForwardRefExoticComponent<TableHandleColumnPopupProps & HTMLAttributes<TableHandleColumnPopupElement> & RefAttributes<TableHandleColumnPopupElement>>;
|
|
17
|
-
|
|
18
|
-
//#region src/components/table-handle/table-handle-column-positioner.gen.d.ts
|
|
19
|
-
/**
|
|
20
|
-
* Props for the {@link TableHandleColumnPositioner} React component.
|
|
21
|
-
*
|
|
22
|
-
* @public
|
|
23
|
-
*/
|
|
7
|
+
/** Props for the {@link TableHandleColumnPositioner} React component. */
|
|
24
8
|
interface TableHandleColumnPositionerProps {
|
|
25
9
|
/**
|
|
26
10
|
* The placement of the popover, relative to the hovered table cell.
|
|
@@ -149,19 +133,9 @@ interface TableHandleColumnPositionerProps {
|
|
|
149
133
|
*/
|
|
150
134
|
editor?: TableHandleColumnPositionerProps$1['editor'];
|
|
151
135
|
}
|
|
152
|
-
/**
|
|
153
|
-
* A React component that renders an `prosekit-table-handle-column-positioner` custom element.
|
|
154
|
-
*
|
|
155
|
-
* @public
|
|
156
|
-
*/
|
|
136
|
+
/** A React component that renders an `prosekit-table-handle-column-positioner` custom element. */
|
|
157
137
|
declare const TableHandleColumnPositioner: ForwardRefExoticComponent<TableHandleColumnPositionerProps & HTMLAttributes<TableHandleColumnPositionerElement> & RefAttributes<TableHandleColumnPositionerElement>>;
|
|
158
|
-
|
|
159
|
-
//#region src/components/table-handle/table-handle-column-menu-root.gen.d.ts
|
|
160
|
-
/**
|
|
161
|
-
* Props for the {@link TableHandleColumnMenuRoot} React component.
|
|
162
|
-
*
|
|
163
|
-
* @public
|
|
164
|
-
*/
|
|
138
|
+
/** Props for the {@link TableHandleColumnMenuRoot} React component. */
|
|
165
139
|
interface TableHandleColumnMenuRootProps {
|
|
166
140
|
/**
|
|
167
141
|
* Whether the overlay is initially open.
|
|
@@ -179,19 +153,9 @@ interface TableHandleColumnMenuRootProps {
|
|
|
179
153
|
*/
|
|
180
154
|
disabled?: TableHandleColumnMenuRootProps$1['disabled'];
|
|
181
155
|
}
|
|
182
|
-
/**
|
|
183
|
-
* A React component that renders an `prosekit-table-handle-column-menu-root` custom element.
|
|
184
|
-
*
|
|
185
|
-
* @public
|
|
186
|
-
*/
|
|
156
|
+
/** A React component that renders an `prosekit-table-handle-column-menu-root` custom element. */
|
|
187
157
|
declare const TableHandleColumnMenuRoot: ForwardRefExoticComponent<TableHandleColumnMenuRootProps & HTMLAttributes<TableHandleColumnMenuRootElement> & RefAttributes<TableHandleColumnMenuRootElement>>;
|
|
188
|
-
|
|
189
|
-
//#region src/components/table-handle/table-handle-column-menu-trigger.gen.d.ts
|
|
190
|
-
/**
|
|
191
|
-
* Props for the {@link TableHandleColumnMenuTrigger} React component.
|
|
192
|
-
*
|
|
193
|
-
* @public
|
|
194
|
-
*/
|
|
158
|
+
/** Props for the {@link TableHandleColumnMenuTrigger} React component. */
|
|
195
159
|
interface TableHandleColumnMenuTriggerProps {
|
|
196
160
|
/**
|
|
197
161
|
* @default null
|
|
@@ -199,19 +163,9 @@ interface TableHandleColumnMenuTriggerProps {
|
|
|
199
163
|
*/
|
|
200
164
|
editor?: TableHandleColumnMenuTriggerProps$1['editor'];
|
|
201
165
|
}
|
|
202
|
-
/**
|
|
203
|
-
* A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element.
|
|
204
|
-
*
|
|
205
|
-
* @public
|
|
206
|
-
*/
|
|
166
|
+
/** A React component that renders an `prosekit-table-handle-column-menu-trigger` custom element. */
|
|
207
167
|
declare const TableHandleColumnMenuTrigger: ForwardRefExoticComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes<TableHandleColumnMenuTriggerElement> & RefAttributes<TableHandleColumnMenuTriggerElement>>;
|
|
208
|
-
|
|
209
|
-
//#region src/components/table-handle/table-handle-drag-preview.gen.d.ts
|
|
210
|
-
/**
|
|
211
|
-
* Props for the {@link TableHandleDragPreview} React component.
|
|
212
|
-
*
|
|
213
|
-
* @public
|
|
214
|
-
*/
|
|
168
|
+
/** Props for the {@link TableHandleDragPreview} React component. */
|
|
215
169
|
interface TableHandleDragPreviewProps {
|
|
216
170
|
/**
|
|
217
171
|
* @default null
|
|
@@ -219,19 +173,9 @@ interface TableHandleDragPreviewProps {
|
|
|
219
173
|
*/
|
|
220
174
|
editor?: TableHandleDragPreviewProps$1['editor'];
|
|
221
175
|
}
|
|
222
|
-
/**
|
|
223
|
-
* A React component that renders an `prosekit-table-handle-drag-preview` custom element.
|
|
224
|
-
*
|
|
225
|
-
* @public
|
|
226
|
-
*/
|
|
176
|
+
/** A React component that renders an `prosekit-table-handle-drag-preview` custom element. */
|
|
227
177
|
declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & HTMLAttributes<TableHandleDragPreviewElement> & RefAttributes<TableHandleDragPreviewElement>>;
|
|
228
|
-
|
|
229
|
-
//#region src/components/table-handle/table-handle-drop-indicator.gen.d.ts
|
|
230
|
-
/**
|
|
231
|
-
* Props for the {@link TableHandleDropIndicator} React component.
|
|
232
|
-
*
|
|
233
|
-
* @public
|
|
234
|
-
*/
|
|
178
|
+
/** Props for the {@link TableHandleDropIndicator} React component. */
|
|
235
179
|
interface TableHandleDropIndicatorProps {
|
|
236
180
|
/**
|
|
237
181
|
* @default null
|
|
@@ -239,19 +183,9 @@ interface TableHandleDropIndicatorProps {
|
|
|
239
183
|
*/
|
|
240
184
|
editor?: TableHandleDropIndicatorProps$1['editor'];
|
|
241
185
|
}
|
|
242
|
-
/**
|
|
243
|
-
* A React component that renders an `prosekit-table-handle-drop-indicator` custom element.
|
|
244
|
-
*
|
|
245
|
-
* @public
|
|
246
|
-
*/
|
|
186
|
+
/** A React component that renders an `prosekit-table-handle-drop-indicator` custom element. */
|
|
247
187
|
declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & HTMLAttributes<TableHandleDropIndicatorElement> & RefAttributes<TableHandleDropIndicatorElement>>;
|
|
248
|
-
|
|
249
|
-
//#region src/components/table-handle/table-handle-root.gen.d.ts
|
|
250
|
-
/**
|
|
251
|
-
* Props for the {@link TableHandleRoot} React component.
|
|
252
|
-
*
|
|
253
|
-
* @public
|
|
254
|
-
*/
|
|
188
|
+
/** Props for the {@link TableHandleRoot} React component. */
|
|
255
189
|
interface TableHandleRootProps {
|
|
256
190
|
/**
|
|
257
191
|
* The ProseKit editor instance.
|
|
@@ -261,33 +195,13 @@ interface TableHandleRootProps {
|
|
|
261
195
|
*/
|
|
262
196
|
editor?: TableHandleRootProps$1['editor'];
|
|
263
197
|
}
|
|
264
|
-
/**
|
|
265
|
-
* A React component that renders an `prosekit-table-handle-root` custom element.
|
|
266
|
-
*
|
|
267
|
-
* @public
|
|
268
|
-
*/
|
|
198
|
+
/** A React component that renders an `prosekit-table-handle-root` custom element. */
|
|
269
199
|
declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & HTMLAttributes<TableHandleRootElement> & RefAttributes<TableHandleRootElement>>;
|
|
270
|
-
|
|
271
|
-
//#region src/components/table-handle/table-handle-row-popup.gen.d.ts
|
|
272
|
-
/**
|
|
273
|
-
* Props for the {@link TableHandleRowPopup} React component.
|
|
274
|
-
*
|
|
275
|
-
* @public
|
|
276
|
-
*/
|
|
200
|
+
/** Props for the {@link TableHandleRowPopup} React component. */
|
|
277
201
|
interface TableHandleRowPopupProps {}
|
|
278
|
-
/**
|
|
279
|
-
* A React component that renders an `prosekit-table-handle-row-popup` custom element.
|
|
280
|
-
*
|
|
281
|
-
* @public
|
|
282
|
-
*/
|
|
202
|
+
/** A React component that renders an `prosekit-table-handle-row-popup` custom element. */
|
|
283
203
|
declare const TableHandleRowPopup: ForwardRefExoticComponent<TableHandleRowPopupProps & HTMLAttributes<TableHandleRowPopupElement> & RefAttributes<TableHandleRowPopupElement>>;
|
|
284
|
-
|
|
285
|
-
//#region src/components/table-handle/table-handle-row-positioner.gen.d.ts
|
|
286
|
-
/**
|
|
287
|
-
* Props for the {@link TableHandleRowPositioner} React component.
|
|
288
|
-
*
|
|
289
|
-
* @public
|
|
290
|
-
*/
|
|
204
|
+
/** Props for the {@link TableHandleRowPositioner} React component. */
|
|
291
205
|
interface TableHandleRowPositionerProps {
|
|
292
206
|
/**
|
|
293
207
|
* The placement of the popover, relative to the hovered table cell.
|
|
@@ -416,19 +330,9 @@ interface TableHandleRowPositionerProps {
|
|
|
416
330
|
*/
|
|
417
331
|
editor?: TableHandleRowPositionerProps$1['editor'];
|
|
418
332
|
}
|
|
419
|
-
/**
|
|
420
|
-
* A React component that renders an `prosekit-table-handle-row-positioner` custom element.
|
|
421
|
-
*
|
|
422
|
-
* @public
|
|
423
|
-
*/
|
|
333
|
+
/** A React component that renders an `prosekit-table-handle-row-positioner` custom element. */
|
|
424
334
|
declare const TableHandleRowPositioner: ForwardRefExoticComponent<TableHandleRowPositionerProps & HTMLAttributes<TableHandleRowPositionerElement> & RefAttributes<TableHandleRowPositionerElement>>;
|
|
425
|
-
|
|
426
|
-
//#region src/components/table-handle/table-handle-row-menu-root.gen.d.ts
|
|
427
|
-
/**
|
|
428
|
-
* Props for the {@link TableHandleRowMenuRoot} React component.
|
|
429
|
-
*
|
|
430
|
-
* @public
|
|
431
|
-
*/
|
|
335
|
+
/** Props for the {@link TableHandleRowMenuRoot} React component. */
|
|
432
336
|
interface TableHandleRowMenuRootProps {
|
|
433
337
|
/**
|
|
434
338
|
* Whether the overlay is initially open.
|
|
@@ -446,19 +350,9 @@ interface TableHandleRowMenuRootProps {
|
|
|
446
350
|
*/
|
|
447
351
|
disabled?: TableHandleRowMenuRootProps$1['disabled'];
|
|
448
352
|
}
|
|
449
|
-
/**
|
|
450
|
-
* A React component that renders an `prosekit-table-handle-row-menu-root` custom element.
|
|
451
|
-
*
|
|
452
|
-
* @public
|
|
453
|
-
*/
|
|
353
|
+
/** A React component that renders an `prosekit-table-handle-row-menu-root` custom element. */
|
|
454
354
|
declare const TableHandleRowMenuRoot: ForwardRefExoticComponent<TableHandleRowMenuRootProps & HTMLAttributes<TableHandleRowMenuRootElement> & RefAttributes<TableHandleRowMenuRootElement>>;
|
|
455
|
-
|
|
456
|
-
//#region src/components/table-handle/table-handle-row-menu-trigger.gen.d.ts
|
|
457
|
-
/**
|
|
458
|
-
* Props for the {@link TableHandleRowMenuTrigger} React component.
|
|
459
|
-
*
|
|
460
|
-
* @public
|
|
461
|
-
*/
|
|
355
|
+
/** Props for the {@link TableHandleRowMenuTrigger} React component. */
|
|
462
356
|
interface TableHandleRowMenuTriggerProps {
|
|
463
357
|
/**
|
|
464
358
|
* @default null
|
|
@@ -466,12 +360,7 @@ interface TableHandleRowMenuTriggerProps {
|
|
|
466
360
|
*/
|
|
467
361
|
editor?: TableHandleRowMenuTriggerProps$1['editor'];
|
|
468
362
|
}
|
|
469
|
-
/**
|
|
470
|
-
* A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element.
|
|
471
|
-
*
|
|
472
|
-
* @public
|
|
473
|
-
*/
|
|
363
|
+
/** A React component that renders an `prosekit-table-handle-row-menu-trigger` custom element. */
|
|
474
364
|
declare const TableHandleRowMenuTrigger: ForwardRefExoticComponent<TableHandleRowMenuTriggerProps & HTMLAttributes<TableHandleRowMenuTriggerElement> & RefAttributes<TableHandleRowMenuTriggerElement>>;
|
|
475
|
-
//#endregion
|
|
476
365
|
export { TableHandleColumnMenuRoot, type TableHandleColumnMenuRootProps, TableHandleColumnMenuTrigger, type TableHandleColumnMenuTriggerProps, TableHandleColumnPopup, type TableHandleColumnPopupProps, TableHandleColumnPositioner, type TableHandleColumnPositionerProps, TableHandleDragPreview, type TableHandleDragPreviewProps, TableHandleDropIndicator, type TableHandleDropIndicatorProps, TableHandleRoot, type TableHandleRootProps, TableHandleRowMenuRoot, type TableHandleRowMenuRootProps, TableHandleRowMenuTrigger, type TableHandleRowMenuTriggerProps, TableHandleRowPopup, type TableHandleRowPopupProps, TableHandleRowPositioner, type TableHandleRowPositionerProps };
|
|
477
366
|
//# sourceMappingURL=prosekit-react-table-handle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prosekit-react-table-handle.d.ts","names":[],"sources":["../src/components/table-handle/table-handle-column-popup.gen.ts","../src/components/table-handle/table-handle-column-positioner.gen.ts","../src/components/table-handle/table-handle-column-menu-root.gen.ts","../src/components/table-handle/table-handle-column-menu-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-popup.gen.ts","../src/components/table-handle/table-handle-row-positioner.gen.ts","../src/components/table-handle/table-handle-row-menu-root.gen.ts","../src/components/table-handle/table-handle-row-menu-trigger.gen.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"prosekit-react-table-handle.d.ts","names":[],"sources":["../src/components/table-handle/table-handle-column-popup.gen.ts","../src/components/table-handle/table-handle-column-positioner.gen.ts","../src/components/table-handle/table-handle-column-menu-root.gen.ts","../src/components/table-handle/table-handle-column-menu-trigger.gen.ts","../src/components/table-handle/table-handle-drag-preview.gen.ts","../src/components/table-handle/table-handle-drop-indicator.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-popup.gen.ts","../src/components/table-handle/table-handle-row-positioner.gen.ts","../src/components/table-handle/table-handle-row-menu-root.gen.ts","../src/components/table-handle/table-handle-row-menu-trigger.gen.ts"],"mappings":"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"}
|