@prosekit/react 0.6.0 → 0.6.2
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/{create-component-CBvs05W1.js → create-component-DzdxL6Ne.js} +4 -2
- package/dist/create-component-DzdxL6Ne.js.map +1 -0
- package/dist/{create-props-CkTwd_m_.d.ts → create-props-DTgCRwCm.d.ts} +3 -2
- package/dist/create-props-DTgCRwCm.d.ts.map +1 -0
- package/dist/{editor-context-Cci4uqN_.js → editor-context-cG0zkv13.js} +2 -1
- package/dist/editor-context-cG0zkv13.js.map +1 -0
- package/dist/prosekit-react-autocomplete.d.ts +11 -10
- package/dist/prosekit-react-autocomplete.d.ts.map +1 -0
- package/dist/prosekit-react-autocomplete.js +4 -3
- package/dist/prosekit-react-autocomplete.js.map +1 -0
- package/dist/prosekit-react-block-handle.d.ts +9 -8
- package/dist/prosekit-react-block-handle.d.ts.map +1 -0
- package/dist/prosekit-react-block-handle.js +4 -3
- package/dist/prosekit-react-block-handle.js.map +1 -0
- package/dist/prosekit-react-drop-indicator.d.ts +5 -4
- package/dist/prosekit-react-drop-indicator.d.ts.map +1 -0
- package/dist/prosekit-react-drop-indicator.js +4 -3
- package/dist/prosekit-react-drop-indicator.js.map +1 -0
- package/dist/prosekit-react-inline-popover.d.ts +5 -4
- package/dist/prosekit-react-inline-popover.d.ts.map +1 -0
- package/dist/prosekit-react-inline-popover.js +4 -3
- package/dist/prosekit-react-inline-popover.js.map +1 -0
- package/dist/prosekit-react-popover.d.ts +9 -8
- package/dist/prosekit-react-popover.d.ts.map +1 -0
- package/dist/prosekit-react-popover.js +4 -3
- package/dist/prosekit-react-popover.js.map +1 -0
- package/dist/prosekit-react-resizable.d.ts +7 -6
- package/dist/prosekit-react-resizable.d.ts.map +1 -0
- package/dist/prosekit-react-resizable.js +4 -3
- package/dist/prosekit-react-resizable.js.map +1 -0
- package/dist/prosekit-react-table-handle.d.ts +21 -20
- package/dist/prosekit-react-table-handle.d.ts.map +1 -0
- package/dist/prosekit-react-table-handle.js +4 -3
- package/dist/prosekit-react-table-handle.js.map +1 -0
- package/dist/prosekit-react-tooltip.d.ts +9 -8
- package/dist/prosekit-react-tooltip.d.ts.map +1 -0
- package/dist/prosekit-react-tooltip.js +4 -3
- package/dist/prosekit-react-tooltip.js.map +1 -0
- package/dist/prosekit-react.d.ts +94 -85
- package/dist/prosekit-react.d.ts.map +1 -0
- package/dist/prosekit-react.js +23 -29
- package/dist/prosekit-react.js.map +1 -0
- package/package.json +21 -21
- package/src/components/autocomplete/autocomplete-empty.gen.ts +34 -0
- package/src/components/autocomplete/autocomplete-item.gen.ts +34 -0
- package/src/components/autocomplete/autocomplete-list.gen.ts +34 -0
- package/src/components/autocomplete/autocomplete-popover.gen.ts +34 -0
- package/src/components/autocomplete/index.gen.ts +7 -0
- package/src/components/block-handle/block-handle-add.gen.ts +34 -0
- package/src/components/block-handle/block-handle-draggable.gen.ts +34 -0
- package/src/components/block-handle/block-handle-popover.gen.ts +34 -0
- package/src/components/block-handle/index.gen.ts +5 -0
- package/src/components/create-component.ts +137 -0
- package/src/components/create-props.ts +13 -0
- package/src/components/drop-indicator/drop-indicator.gen.ts +34 -0
- package/src/components/drop-indicator/index.gen.ts +1 -0
- package/src/components/inline-popover/index.gen.ts +1 -0
- package/src/components/inline-popover/inline-popover.gen.ts +34 -0
- package/src/components/merge-refs.ts +35 -0
- package/src/components/popover/index.gen.ts +5 -0
- package/src/components/popover/popover-content.gen.ts +34 -0
- package/src/components/popover/popover-root.gen.ts +34 -0
- package/src/components/popover/popover-trigger.gen.ts +34 -0
- package/src/components/prosekit.ts +37 -0
- package/src/components/resizable/index.gen.ts +3 -0
- package/src/components/resizable/resizable-handle.gen.ts +34 -0
- package/src/components/resizable/resizable-root.gen.ts +34 -0
- package/src/components/table-handle/index.gen.ts +17 -0
- package/src/components/table-handle/table-handle-column-root.gen.ts +34 -0
- package/src/components/table-handle/table-handle-column-trigger.gen.ts +34 -0
- package/src/components/table-handle/table-handle-drag-preview.gen.ts +34 -0
- package/src/components/table-handle/table-handle-drop-indicator.gen.ts +34 -0
- package/src/components/table-handle/table-handle-popover-content.gen.ts +34 -0
- package/src/components/table-handle/table-handle-popover-item.gen.ts +34 -0
- package/src/components/table-handle/table-handle-root.gen.ts +34 -0
- package/src/components/table-handle/table-handle-row-root.gen.ts +34 -0
- package/src/components/table-handle/table-handle-row-trigger.gen.ts +34 -0
- package/src/components/tooltip/index.gen.ts +5 -0
- package/src/components/tooltip/tooltip-content.gen.ts +34 -0
- package/src/components/tooltip/tooltip-root.gen.ts +34 -0
- package/src/components/tooltip/tooltip-trigger.gen.ts +34 -0
- package/src/contexts/editor-context.ts +23 -0
- package/src/extensions/react-mark-view.ts +93 -0
- package/src/extensions/react-node-view.ts +93 -0
- package/src/hooks/use-doc-change.ts +24 -0
- package/src/hooks/use-editor-derived-value.ts +85 -0
- package/src/hooks/use-editor-extension.ts +24 -0
- package/src/hooks/use-editor.ts +62 -0
- package/src/hooks/use-extension.ts +41 -0
- package/src/hooks/use-keymap.ts +15 -0
- package/src/hooks/use-priority-extension.ts +18 -0
- package/src/hooks/use-state-update.ts +24 -0
- package/src/index.ts +29 -0
- package/src/types.ts +6 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useEditorContext } from "./editor-context-
|
|
1
|
+
import { n as useEditorContext } from "./editor-context-cG0zkv13.js";
|
|
2
2
|
import { createElement, forwardRef, useEffect, useLayoutEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/components/merge-refs.ts
|
|
@@ -83,6 +83,7 @@ function createComponent(tagName, displayName, propNames, eventNames) {
|
|
|
83
83
|
const mergedRef = useMemo(() => mergeRefs([ref, setEl]), [ref]);
|
|
84
84
|
return createElement(tagName, {
|
|
85
85
|
...attributes,
|
|
86
|
+
suppressHydrationWarning: true,
|
|
86
87
|
ref: mergedRef
|
|
87
88
|
});
|
|
88
89
|
});
|
|
@@ -91,4 +92,5 @@ function createComponent(tagName, displayName, propNames, eventNames) {
|
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
//#endregion
|
|
94
|
-
export { createComponent };
|
|
95
|
+
export { createComponent as t };
|
|
96
|
+
//# sourceMappingURL=create-component-DzdxL6Ne.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-component-DzdxL6Ne.js","names":["cleanups: VoidFunction[]","properties: Record<string, unknown>","attributes: Record<string, unknown>","eventHandlers: Record<string, AnyFunction>","fixedEventHandlers: Record<string, AnyFunction>"],"sources":["../src/components/merge-refs.ts","../src/components/create-component.ts"],"sourcesContent":["import type { Ref } from 'react'\n\n/**\n * Assigns a value to a ref.\n * @returns The ref cleanup callback, if any.\n */\nfunction assignRef<T>(\n ref: Ref<T> | undefined,\n value: T | null,\n): VoidFunction | undefined | void {\n if (typeof ref === 'function') {\n return ref(value)\n } else if (ref) {\n ref.current = value\n }\n}\n\n/**\n * Merges multiple refs into a single one.\n */\nexport function mergeRefs<T>(refs: (Ref<T> | undefined)[]): Ref<T> {\n return (value: T | null) => {\n const cleanups: VoidFunction[] = []\n\n for (const ref of refs) {\n const cleanup = assignRef(ref, value)\n const isCleanup = typeof cleanup === 'function'\n cleanups.push(isCleanup ? cleanup : () => assignRef(ref, null))\n }\n\n return () => {\n for (const cleanup of cleanups) cleanup()\n }\n }\n}\n","import type { AnyFunction } from '@prosekit/core'\nimport {\n createElement,\n forwardRef,\n useEffect,\n useLayoutEffect,\n useMemo,\n useRef,\n useState,\n type ForwardRefExoticComponent,\n type HTMLAttributes,\n type RefAttributes,\n} from 'react'\n\nimport { useEditorContext } from '../contexts/editor-context'\n\nimport { mergeRefs } from './merge-refs'\n\nconst useIsomorphicLayoutEffect = typeof window !== 'undefined' ? useLayoutEffect : useEffect\n\nexport function createComponent<\n Props extends object,\n CustomElement extends HTMLElement,\n>(\n tagName: string,\n displayName: string,\n propNames: string[],\n eventNames: string[],\n): ForwardRefExoticComponent<\n Partial<Props> & RefAttributes<CustomElement> & HTMLAttributes<CustomElement>\n> {\n const hasEditor = propNames.includes('editor')\n const lowerCaseEventNameMap = new Map(\n eventNames.map((name) => [name.toLowerCase(), name]),\n )\n\n const Component = forwardRef<any, any>((props: Props, ref) => {\n const [el, setEl] = useState<HTMLElement | null>(null)\n\n const properties: Record<string, unknown> = {}\n const attributes: Record<string, unknown> = {}\n const eventHandlersRef = useRef<Record<string, AnyFunction>>({})\n const eventHandlers: Record<string, AnyFunction> = {}\n\n for (const [name, value] of Object.entries(props)) {\n if (value === undefined) {\n continue\n }\n\n if (propNames.includes(name)) {\n properties[name] = value\n continue\n }\n\n if (name.startsWith('on')) {\n const lowerCaseEventName = name.slice(2).toLowerCase()\n const eventName = lowerCaseEventNameMap.get(lowerCaseEventName)\n if (eventName) {\n const extractDetail = eventName.endsWith('Change')\n eventHandlers[eventName] = (event: Event) => {\n const handler = value as AnyFunction | null\n if (typeof handler === 'function') {\n handler(extractDetail ? (event as CustomEvent).detail : event)\n }\n }\n continue\n }\n }\n\n if (name === 'className') {\n attributes['class'] = value\n } else {\n attributes[name] = value\n }\n }\n\n const editor = useEditorContext()\n\n if (hasEditor && editor && !properties['editor']) {\n properties['editor'] = editor\n }\n\n // Set all properties.\n useIsomorphicLayoutEffect(() => {\n if (!el) return\n for (const [name, value] of Object.entries(properties)) {\n if (value !== undefined) {\n // @ts-expect-error: we know that name is a valid property name\n el[name] = value as unknown\n }\n }\n }, [el, ...propNames.map((name) => properties[name])])\n\n // Put all event listeners extracted from `props` into `eventHandlersRef`.\n useIsomorphicLayoutEffect(() => {\n eventHandlersRef.current = eventHandlers\n })\n\n // Register the event listeners to the element.\n useIsomorphicLayoutEffect(() => {\n if (!el) {\n return\n }\n\n const fixedEventHandlers: Record<string, AnyFunction> = {}\n\n for (const eventName of eventNames) {\n fixedEventHandlers[eventName] = (event: Event) => {\n eventHandlersRef.current[eventName]?.(event)\n }\n }\n\n for (const [name, handler] of Object.entries(fixedEventHandlers)) {\n el.addEventListener(name, handler)\n }\n\n return () => {\n for (const [name, handler] of Object.entries(fixedEventHandlers)) {\n el.removeEventListener(name, handler)\n }\n }\n }, [el])\n\n const mergedRef = useMemo(() => mergeRefs([ref, setEl]), [ref])\n\n return createElement(tagName, {\n ...attributes,\n // Suppress hydration warnings for web components as the attributes are set after the component is mounted.\n suppressHydrationWarning: true,\n ref: mergedRef,\n })\n })\n\n Component.displayName = displayName\n\n return Component\n}\n"],"mappings":";;;;;;;;AAMA,SAAS,UACP,KACA,OACiC;AACjC,KAAI,OAAO,QAAQ,WACjB,QAAO,IAAI,MAAM;UACR,IACT,KAAI,UAAU;;;;;AAOlB,SAAgB,UAAa,MAAsC;AACjE,SAAQ,UAAoB;EAC1B,MAAMA,WAA2B,EAAE;AAEnC,OAAK,MAAM,OAAO,MAAM;GACtB,MAAM,UAAU,UAAU,KAAK,MAAM;GACrC,MAAM,YAAY,OAAO,YAAY;AACrC,YAAS,KAAK,YAAY,gBAAgB,UAAU,KAAK,KAAK,CAAC;;AAGjE,eAAa;AACX,QAAK,MAAM,WAAW,SAAU,UAAS;;;;;;;ACb/C,MAAM,4BAA4B,OAAO,WAAW,cAAc,kBAAkB;AAEpF,SAAgB,gBAId,SACA,aACA,WACA,YAGA;CACA,MAAM,YAAY,UAAU,SAAS,SAAS;CAC9C,MAAM,wBAAwB,IAAI,IAChC,WAAW,KAAK,SAAS,CAAC,KAAK,aAAa,EAAE,KAAK,CAAC,CACrD;CAED,MAAM,YAAY,YAAsB,OAAc,QAAQ;EAC5D,MAAM,CAAC,IAAI,SAAS,SAA6B,KAAK;EAEtD,MAAMC,aAAsC,EAAE;EAC9C,MAAMC,aAAsC,EAAE;EAC9C,MAAM,mBAAmB,OAAoC,EAAE,CAAC;EAChE,MAAMC,gBAA6C,EAAE;AAErD,OAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,MAAM,EAAE;AACjD,OAAI,UAAU,OACZ;AAGF,OAAI,UAAU,SAAS,KAAK,EAAE;AAC5B,eAAW,QAAQ;AACnB;;AAGF,OAAI,KAAK,WAAW,KAAK,EAAE;IACzB,MAAM,qBAAqB,KAAK,MAAM,EAAE,CAAC,aAAa;IACtD,MAAM,YAAY,sBAAsB,IAAI,mBAAmB;AAC/D,QAAI,WAAW;KACb,MAAM,gBAAgB,UAAU,SAAS,SAAS;AAClD,mBAAc,cAAc,UAAiB;MAC3C,MAAM,UAAU;AAChB,UAAI,OAAO,YAAY,WACrB,SAAQ,gBAAiB,MAAsB,SAAS,MAAM;;AAGlE;;;AAIJ,OAAI,SAAS,YACX,YAAW,WAAW;OAEtB,YAAW,QAAQ;;EAIvB,MAAM,SAAS,kBAAkB;AAEjC,MAAI,aAAa,UAAU,CAAC,WAAW,UACrC,YAAW,YAAY;AAIzB,kCAAgC;AAC9B,OAAI,CAAC,GAAI;AACT,QAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,WAAW,CACpD,KAAI,UAAU,OAEZ,IAAG,QAAQ;KAGd,CAAC,IAAI,GAAG,UAAU,KAAK,SAAS,WAAW,MAAM,CAAC,CAAC;AAGtD,kCAAgC;AAC9B,oBAAiB,UAAU;IAC3B;AAGF,kCAAgC;AAC9B,OAAI,CAAC,GACH;GAGF,MAAMC,qBAAkD,EAAE;AAE1D,QAAK,MAAM,aAAa,WACtB,oBAAmB,cAAc,UAAiB;AAChD,qBAAiB,QAAQ,aAAa,MAAM;;AAIhD,QAAK,MAAM,CAAC,MAAM,YAAY,OAAO,QAAQ,mBAAmB,CAC9D,IAAG,iBAAiB,MAAM,QAAQ;AAGpC,gBAAa;AACX,SAAK,MAAM,CAAC,MAAM,YAAY,OAAO,QAAQ,mBAAmB,CAC9D,IAAG,oBAAoB,MAAM,QAAQ;;KAGxC,CAAC,GAAG,CAAC;EAER,MAAM,YAAY,cAAc,UAAU,CAAC,KAAK,MAAM,CAAC,EAAE,CAAC,IAAI,CAAC;AAE/D,SAAO,cAAc,SAAS;GAC5B,GAAG;GAEH,0BAA0B;GAC1B,KAAK;GACN,CAAC;GACF;AAEF,WAAU,cAAc;AAExB,QAAO"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
//#region src/components/create-props.d.ts
|
|
2
2
|
type CreateProps<Props extends { [PropName in keyof Props]: unknown }, Events extends { [EventName in keyof Events]: CustomEvent }> = Props & CreateEventProps<Events>;
|
|
3
|
-
type CreateEventProps<Events extends { [EventName in keyof Events]: CustomEvent }> = { [EventName in keyof Events as `on${Capitalize<string & EventName>}`]: (event: EventName extends `${string}Change` ? Events[EventName][
|
|
3
|
+
type CreateEventProps<Events extends { [EventName in keyof Events]: CustomEvent }> = { [EventName in keyof Events as `on${Capitalize<string & EventName>}`]: (event: EventName extends `${string}Change` ? Events[EventName]['detail'] : Events[EventName]) => void };
|
|
4
4
|
//#endregion
|
|
5
|
-
export { CreateProps };
|
|
5
|
+
export { CreateProps as t };
|
|
6
|
+
//# sourceMappingURL=create-props-DTgCRwCm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"create-props-DTgCRwCm.d.ts","names":[],"sources":["../src/components/create-props.ts"],"sourcesContent":[],"mappings":";KAAY,yCAAA,MACyB,KADd,GAAA,OAAA,EACc,EAAA,eAAA,gBACE,MAAA,MAAA,GAAS,WAAT,EAAS,CAAA,GAC5C,KAD4C,GACpC,gBADoC,CACnB,MADmB,CAAA;KAG3C,gBAFD,CAAA,eAAA,gBAAyB,MAGU,MAHV,GAGmB,WAHnB,EAAjB,CAAA,GAAA,gBAAgB,MAKN,MALM,IAAA,KAKS,UALT,CAAA,MAAA,GAK6B,SAL7B,CAAA,EAAA,GAAA,CAAA,KAAA,EAMjB,SANiB,SAAA,GAAA,MAAA,QAAA,GAMqB,MANrB,CAM4B,SAN5B,CAAA,CAAA,QAAA,CAAA,GAOpB,MAPoB,CAOb,SAPa,CAAA,EAAA,GAAA,IAAA,EAAQ"}
|
|
@@ -14,4 +14,5 @@ function useEditorContext() {
|
|
|
14
14
|
const EditorContextProvider = editorContext.Provider;
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
|
-
export {
|
|
17
|
+
export { useEditorContext as n, EditorContextProvider as t };
|
|
18
|
+
//# sourceMappingURL=editor-context-cG0zkv13.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"editor-context-cG0zkv13.js","names":["EditorContextProvider: Provider<Editor | null>"],"sources":["../src/contexts/editor-context.ts"],"sourcesContent":["import type {\n Editor,\n Extension,\n} from '@prosekit/core'\nimport {\n createContext,\n useContext,\n type Provider,\n} from 'react'\n\nconst editorContext = createContext<Editor | null>(null)\n\n/**\n * @internal\n */\nexport function useEditorContext<E extends Extension>(): Editor<E> | null {\n return useContext(editorContext)\n}\n\n/**\n * @internal\n */\nexport const EditorContextProvider: Provider<Editor | null> = editorContext.Provider\n"],"mappings":";;;AAUA,MAAM,gBAAgB,cAA6B,KAAK;;;;AAKxD,SAAgB,mBAA0D;AACxE,QAAO,WAAW,cAAc;;;;;AAMlC,MAAaA,wBAAiD,cAAc"}
|
|
@@ -1,34 +1,35 @@
|
|
|
1
|
-
import { CreateProps } from "./create-props-
|
|
1
|
+
import { t as CreateProps } from "./create-props-DTgCRwCm.js";
|
|
2
2
|
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
3
3
|
import { AutocompleteEmptyElement, AutocompleteEmptyEvents, AutocompleteEmptyProps as AutocompleteEmptyProps$1, AutocompleteItemElement, AutocompleteItemEvents, AutocompleteItemProps as AutocompleteItemProps$1, AutocompleteListElement, AutocompleteListEvents, AutocompleteListProps as AutocompleteListProps$1, AutocompletePopoverElement, AutocompletePopoverEvents, AutocompletePopoverProps as AutocompletePopoverProps$1 } from "@prosekit/web/autocomplete";
|
|
4
4
|
|
|
5
5
|
//#region src/components/autocomplete/autocomplete-empty.gen.d.ts
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Props for the {@link AutocompleteEmpty} component.
|
|
9
|
-
*/
|
|
8
|
+
* Props for the {@link AutocompleteEmpty} component.
|
|
9
|
+
*/
|
|
10
10
|
interface AutocompleteEmptyProps extends Partial<CreateProps<AutocompleteEmptyProps$1, AutocompleteEmptyEvents>> {}
|
|
11
11
|
declare const AutocompleteEmpty: ForwardRefExoticComponent<AutocompleteEmptyProps & RefAttributes<AutocompleteEmptyElement> & HTMLAttributes<AutocompleteEmptyElement>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/components/autocomplete/autocomplete-item.gen.d.ts
|
|
14
14
|
/**
|
|
15
|
-
* Props for the {@link AutocompleteItem} component.
|
|
16
|
-
*/
|
|
15
|
+
* Props for the {@link AutocompleteItem} component.
|
|
16
|
+
*/
|
|
17
17
|
interface AutocompleteItemProps extends Partial<CreateProps<AutocompleteItemProps$1, AutocompleteItemEvents>> {}
|
|
18
18
|
declare const AutocompleteItem: ForwardRefExoticComponent<AutocompleteItemProps & RefAttributes<AutocompleteItemElement> & HTMLAttributes<AutocompleteItemElement>>;
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/components/autocomplete/autocomplete-list.gen.d.ts
|
|
21
21
|
/**
|
|
22
|
-
* Props for the {@link AutocompleteList} component.
|
|
23
|
-
*/
|
|
22
|
+
* Props for the {@link AutocompleteList} component.
|
|
23
|
+
*/
|
|
24
24
|
interface AutocompleteListProps extends Partial<CreateProps<AutocompleteListProps$1, AutocompleteListEvents>> {}
|
|
25
25
|
declare const AutocompleteList: ForwardRefExoticComponent<AutocompleteListProps & RefAttributes<AutocompleteListElement> & HTMLAttributes<AutocompleteListElement>>;
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/components/autocomplete/autocomplete-popover.gen.d.ts
|
|
28
28
|
/**
|
|
29
|
-
* Props for the {@link AutocompletePopover} component.
|
|
30
|
-
*/
|
|
29
|
+
* Props for the {@link AutocompletePopover} component.
|
|
30
|
+
*/
|
|
31
31
|
interface AutocompletePopoverProps extends Partial<CreateProps<AutocompletePopoverProps$1, AutocompletePopoverEvents>> {}
|
|
32
32
|
declare const AutocompletePopover: ForwardRefExoticComponent<AutocompletePopoverProps & RefAttributes<AutocompletePopoverElement> & HTMLAttributes<AutocompletePopoverElement>>;
|
|
33
33
|
//#endregion
|
|
34
|
-
export { AutocompleteEmpty, type AutocompleteEmptyProps, AutocompleteItem, type AutocompleteItemProps, AutocompleteList, type AutocompleteListProps, AutocompletePopover, type AutocompletePopoverProps };
|
|
34
|
+
export { AutocompleteEmpty, type AutocompleteEmptyProps, AutocompleteItem, type AutocompleteItemProps, AutocompleteList, type AutocompleteListProps, AutocompletePopover, type AutocompletePopoverProps };
|
|
35
|
+
//# sourceMappingURL=prosekit-react-autocomplete.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-autocomplete.d.ts","names":[],"sources":["../src/components/autocomplete/autocomplete-empty.gen.ts","../src/components/autocomplete/autocomplete-item.gen.ts","../src/components/autocomplete/autocomplete-list.gen.ts","../src/components/autocomplete/autocomplete-popover.gen.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAmBA;AAAoE,UAAnD,sBAAA,SAA+B,OAAoB,CAAZ,WAAY,CAAA,wBAAA,EAAO,uBAAP,CAAA,CAAA,CAAA;AAAZ,cAE3C,iBAF2C,EAExB,yBAFwB,CAGtD,sBAHsD,GAItD,aAJsD,CAIxC,wBAJwC,CAAA,GAKtD,cALsD,CAKvC,wBALuC,CAAA,CAAA;;;;;AAAxD;AAAoE,UCAnD,qBAAA,SAA8B,ODAqB,CCAb,WDAa,CCAD,uBDAC,ECAM,sBDAN,CAAA,CAAA,CAAA;AAAZ,cCE3C,gBDF2C,ECEzB,yBDFyB,CCGtD,qBDHsD,GCItD,aDJsD,CCIxC,uBDJwC,CAAA,GCKtD,cDLsD,CCKvC,uBDLuC,CAAA,CAAA;;;;;AAAxD;AAAoE,UEAnD,qBAAA,SAA8B,OFAqB,CEAb,WFAa,CEAD,uBFAC,EEAM,sBFAN,CAAA,CAAA,CAAA;AAAZ,cEE3C,gBFF2C,EEEzB,yBFFyB,CEGtD,qBFHsD,GEItD,aFJsD,CEIxC,uBFJwC,CAAA,GEKtD,cFLsD,CEKvC,uBFLuC,CAAA,CAAA;;;;;AAAxD;AAAoE,UGAnD,wBAAA,SAAiC,OHAkB,CGAV,WHAU,CGAE,0BHAF,EGAS,yBHAT,CAAA,CAAA,CAAA;AAAZ,cGE3C,mBHF2C,EGEtB,yBHFsB,CGGtD,wBHHsD,GGItD,aHJsD,CGIxC,0BHJwC,CAAA,GGKtD,cHLsD,CGKvC,0BHLuC,CAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./editor-context-
|
|
2
|
-
import { createComponent } from "./create-component-
|
|
1
|
+
import "./editor-context-cG0zkv13.js";
|
|
2
|
+
import { t as createComponent } from "./create-component-DzdxL6Ne.js";
|
|
3
3
|
import { autocompleteEmptyEvents, autocompleteEmptyProps, autocompleteItemEvents, autocompleteItemProps, autocompleteListEvents, autocompleteListProps, autocompletePopoverEvents, autocompletePopoverProps } from "@prosekit/web/autocomplete";
|
|
4
4
|
|
|
5
5
|
//#region src/components/autocomplete/autocomplete-empty.gen.ts
|
|
@@ -18,4 +18,5 @@ const AutocompleteList = createComponent("prosekit-autocomplete-list", "Autocomp
|
|
|
18
18
|
const AutocompletePopover = createComponent("prosekit-autocomplete-popover", "AutocompletePopover", Object.keys(autocompletePopoverProps), Object.keys(autocompletePopoverEvents));
|
|
19
19
|
|
|
20
20
|
//#endregion
|
|
21
|
-
export { AutocompleteEmpty, AutocompleteItem, AutocompleteList, AutocompletePopover };
|
|
21
|
+
export { AutocompleteEmpty, AutocompleteItem, AutocompleteList, AutocompletePopover };
|
|
22
|
+
//# sourceMappingURL=prosekit-react-autocomplete.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-autocomplete.js","names":["AutocompleteEmpty: ForwardRefExoticComponent<\n AutocompleteEmptyProps &\n RefAttributes<AutocompleteEmptyElement> &\n HTMLAttributes<AutocompleteEmptyElement>\n>","AutocompleteItem: ForwardRefExoticComponent<\n AutocompleteItemProps &\n RefAttributes<AutocompleteItemElement> &\n HTMLAttributes<AutocompleteItemElement>\n>","AutocompleteList: ForwardRefExoticComponent<\n AutocompleteListProps &\n RefAttributes<AutocompleteListElement> &\n HTMLAttributes<AutocompleteListElement>\n>","AutocompletePopover: ForwardRefExoticComponent<\n AutocompletePopoverProps &\n RefAttributes<AutocompletePopoverElement> &\n HTMLAttributes<AutocompletePopoverElement>\n>"],"sources":["../src/components/autocomplete/autocomplete-empty.gen.ts","../src/components/autocomplete/autocomplete-item.gen.ts","../src/components/autocomplete/autocomplete-list.gen.ts","../src/components/autocomplete/autocomplete-popover.gen.ts"],"sourcesContent":["import {\n type AutocompleteEmptyElement,\n type AutocompleteEmptyProps as Props,\n type AutocompleteEmptyEvents as Events,\n autocompleteEmptyProps,\n autocompleteEmptyEvents,\n} from '@prosekit/web/autocomplete'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompleteEmpty} component.\n */\nexport interface AutocompleteEmptyProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const AutocompleteEmpty: ForwardRefExoticComponent<\n AutocompleteEmptyProps &\n RefAttributes<AutocompleteEmptyElement> &\n HTMLAttributes<AutocompleteEmptyElement>\n> = createComponent<\n AutocompleteEmptyProps, \n AutocompleteEmptyElement\n>(\n 'prosekit-autocomplete-empty',\n 'AutocompleteEmpty',\n Object.keys(autocompleteEmptyProps),\n Object.keys(autocompleteEmptyEvents),\n)\n","import {\n type AutocompleteItemElement,\n type AutocompleteItemProps as Props,\n type AutocompleteItemEvents as Events,\n autocompleteItemProps,\n autocompleteItemEvents,\n} from '@prosekit/web/autocomplete'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompleteItem} component.\n */\nexport interface AutocompleteItemProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const AutocompleteItem: ForwardRefExoticComponent<\n AutocompleteItemProps &\n RefAttributes<AutocompleteItemElement> &\n HTMLAttributes<AutocompleteItemElement>\n> = createComponent<\n AutocompleteItemProps, \n AutocompleteItemElement\n>(\n 'prosekit-autocomplete-item',\n 'AutocompleteItem',\n Object.keys(autocompleteItemProps),\n Object.keys(autocompleteItemEvents),\n)\n","import {\n type AutocompleteListElement,\n type AutocompleteListProps as Props,\n type AutocompleteListEvents as Events,\n autocompleteListProps,\n autocompleteListEvents,\n} from '@prosekit/web/autocomplete'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompleteList} component.\n */\nexport interface AutocompleteListProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const AutocompleteList: ForwardRefExoticComponent<\n AutocompleteListProps &\n RefAttributes<AutocompleteListElement> &\n HTMLAttributes<AutocompleteListElement>\n> = createComponent<\n AutocompleteListProps, \n AutocompleteListElement\n>(\n 'prosekit-autocomplete-list',\n 'AutocompleteList',\n Object.keys(autocompleteListProps),\n Object.keys(autocompleteListEvents),\n)\n","import {\n type AutocompletePopoverElement,\n type AutocompletePopoverProps as Props,\n type AutocompletePopoverEvents as Events,\n autocompletePopoverProps,\n autocompletePopoverEvents,\n} from '@prosekit/web/autocomplete'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link AutocompletePopover} component.\n */\nexport interface AutocompletePopoverProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const AutocompletePopover: ForwardRefExoticComponent<\n AutocompletePopoverProps &\n RefAttributes<AutocompletePopoverElement> &\n HTMLAttributes<AutocompletePopoverElement>\n> = createComponent<\n AutocompletePopoverProps, \n AutocompletePopoverElement\n>(\n 'prosekit-autocomplete-popover',\n 'AutocompletePopover',\n Object.keys(autocompletePopoverProps),\n Object.keys(autocompletePopoverEvents),\n)\n"],"mappings":";;;;;AAqBA,MAAaA,oBAIT,gBAIF,+BACA,qBACA,OAAO,KAAK,uBAAuB,EACnC,OAAO,KAAK,wBAAwB,CACrC;;;;ACZD,MAAaC,mBAIT,gBAIF,8BACA,oBACA,OAAO,KAAK,sBAAsB,EAClC,OAAO,KAAK,uBAAuB,CACpC;;;;ACZD,MAAaC,mBAIT,gBAIF,8BACA,oBACA,OAAO,KAAK,sBAAsB,EAClC,OAAO,KAAK,uBAAuB,CACpC;;;;ACZD,MAAaC,sBAIT,gBAIF,iCACA,uBACA,OAAO,KAAK,yBAAyB,EACrC,OAAO,KAAK,0BAA0B,CACvC"}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { CreateProps } from "./create-props-
|
|
1
|
+
import { t as CreateProps } from "./create-props-DTgCRwCm.js";
|
|
2
2
|
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
3
3
|
import { BlockHandleAddElement, BlockHandleAddEvents, BlockHandleAddProps as BlockHandleAddProps$1, BlockHandleDraggableElement, BlockHandleDraggableEvents, BlockHandleDraggableProps as BlockHandleDraggableProps$1, BlockHandlePopoverElement, BlockHandlePopoverEvents, BlockHandlePopoverProps as BlockHandlePopoverProps$1 } from "@prosekit/web/block-handle";
|
|
4
4
|
|
|
5
5
|
//#region src/components/block-handle/block-handle-add.gen.d.ts
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Props for the {@link BlockHandleAdd} component.
|
|
9
|
-
*/
|
|
8
|
+
* Props for the {@link BlockHandleAdd} component.
|
|
9
|
+
*/
|
|
10
10
|
interface BlockHandleAddProps extends Partial<CreateProps<BlockHandleAddProps$1, BlockHandleAddEvents>> {}
|
|
11
11
|
declare const BlockHandleAdd: ForwardRefExoticComponent<BlockHandleAddProps & RefAttributes<BlockHandleAddElement> & HTMLAttributes<BlockHandleAddElement>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/components/block-handle/block-handle-draggable.gen.d.ts
|
|
14
14
|
/**
|
|
15
|
-
* Props for the {@link BlockHandleDraggable} component.
|
|
16
|
-
*/
|
|
15
|
+
* Props for the {@link BlockHandleDraggable} component.
|
|
16
|
+
*/
|
|
17
17
|
interface BlockHandleDraggableProps extends Partial<CreateProps<BlockHandleDraggableProps$1, BlockHandleDraggableEvents>> {}
|
|
18
18
|
declare const BlockHandleDraggable: ForwardRefExoticComponent<BlockHandleDraggableProps & RefAttributes<BlockHandleDraggableElement> & HTMLAttributes<BlockHandleDraggableElement>>;
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/components/block-handle/block-handle-popover.gen.d.ts
|
|
21
21
|
/**
|
|
22
|
-
* Props for the {@link BlockHandlePopover} component.
|
|
23
|
-
*/
|
|
22
|
+
* Props for the {@link BlockHandlePopover} component.
|
|
23
|
+
*/
|
|
24
24
|
interface BlockHandlePopoverProps extends Partial<CreateProps<BlockHandlePopoverProps$1, BlockHandlePopoverEvents>> {}
|
|
25
25
|
declare const BlockHandlePopover: ForwardRefExoticComponent<BlockHandlePopoverProps & RefAttributes<BlockHandlePopoverElement> & HTMLAttributes<BlockHandlePopoverElement>>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { BlockHandleAdd, type BlockHandleAddProps, BlockHandleDraggable, type BlockHandleDraggableProps, BlockHandlePopover, type BlockHandlePopoverProps };
|
|
27
|
+
export { BlockHandleAdd, type BlockHandleAddProps, BlockHandleDraggable, type BlockHandleDraggableProps, BlockHandlePopover, type BlockHandlePopoverProps };
|
|
28
|
+
//# sourceMappingURL=prosekit-react-block-handle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-block-handle.d.ts","names":[],"sources":["../src/components/block-handle/block-handle-add.gen.ts","../src/components/block-handle/block-handle-draggable.gen.ts","../src/components/block-handle/block-handle-popover.gen.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAmBA;AAAiE,UAAhD,mBAAA,SAA4B,OAAoB,CAAZ,WAAY,CAAA,qBAAA,EAAO,oBAAP,CAAA,CAAA,CAAA;AAAZ,cAExC,cAFwC,EAExB,yBAFwB,CAGnD,mBAHmD,GAInD,aAJmD,CAIrC,qBAJqC,CAAA,GAKnD,cALmD,CAKpC,qBALoC,CAAA,CAAA;;;;;AAArD;AAAiE,UCAhD,yBAAA,SAAkC,ODAc,CCAN,WDAM,CCAM,2BDAN,ECAa,0BDAb,CAAA,CAAA,CAAA;AAAZ,cCExC,oBDFwC,ECElB,yBDFkB,CCGnD,yBDHmD,GCInD,aDJmD,CCIrC,2BDJqC,CAAA,GCKnD,cDLmD,CCKpC,2BDLoC,CAAA,CAAA;;;;;AAArD;AAAiE,UEAhD,uBAAA,SAAgC,OFAgB,CEAR,WFAQ,CEAI,yBFAJ,EEAW,wBFAX,CAAA,CAAA,CAAA;AAAZ,cEExC,kBFFwC,EEEpB,yBFFoB,CEGnD,uBFHmD,GEInD,aFJmD,CEIrC,yBFJqC,CAAA,GEKnD,cFLmD,CEKpC,yBFLoC,CAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./editor-context-
|
|
2
|
-
import { createComponent } from "./create-component-
|
|
1
|
+
import "./editor-context-cG0zkv13.js";
|
|
2
|
+
import { t as createComponent } from "./create-component-DzdxL6Ne.js";
|
|
3
3
|
import { blockHandleAddEvents, blockHandleAddProps, blockHandleDraggableEvents, blockHandleDraggableProps, blockHandlePopoverEvents, blockHandlePopoverProps } from "@prosekit/web/block-handle";
|
|
4
4
|
|
|
5
5
|
//#region src/components/block-handle/block-handle-add.gen.ts
|
|
@@ -14,4 +14,5 @@ const BlockHandleDraggable = createComponent("prosekit-block-handle-draggable",
|
|
|
14
14
|
const BlockHandlePopover = createComponent("prosekit-block-handle-popover", "BlockHandlePopover", Object.keys(blockHandlePopoverProps), Object.keys(blockHandlePopoverEvents));
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
|
-
export { BlockHandleAdd, BlockHandleDraggable, BlockHandlePopover };
|
|
17
|
+
export { BlockHandleAdd, BlockHandleDraggable, BlockHandlePopover };
|
|
18
|
+
//# sourceMappingURL=prosekit-react-block-handle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-block-handle.js","names":["BlockHandleAdd: ForwardRefExoticComponent<\n BlockHandleAddProps &\n RefAttributes<BlockHandleAddElement> &\n HTMLAttributes<BlockHandleAddElement>\n>","BlockHandleDraggable: ForwardRefExoticComponent<\n BlockHandleDraggableProps &\n RefAttributes<BlockHandleDraggableElement> &\n HTMLAttributes<BlockHandleDraggableElement>\n>","BlockHandlePopover: ForwardRefExoticComponent<\n BlockHandlePopoverProps &\n RefAttributes<BlockHandlePopoverElement> &\n HTMLAttributes<BlockHandlePopoverElement>\n>"],"sources":["../src/components/block-handle/block-handle-add.gen.ts","../src/components/block-handle/block-handle-draggable.gen.ts","../src/components/block-handle/block-handle-popover.gen.ts"],"sourcesContent":["import {\n type BlockHandleAddElement,\n type BlockHandleAddProps as Props,\n type BlockHandleAddEvents as Events,\n blockHandleAddProps,\n blockHandleAddEvents,\n} from '@prosekit/web/block-handle'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link BlockHandleAdd} component.\n */\nexport interface BlockHandleAddProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const BlockHandleAdd: ForwardRefExoticComponent<\n BlockHandleAddProps &\n RefAttributes<BlockHandleAddElement> &\n HTMLAttributes<BlockHandleAddElement>\n> = createComponent<\n BlockHandleAddProps, \n BlockHandleAddElement\n>(\n 'prosekit-block-handle-add',\n 'BlockHandleAdd',\n Object.keys(blockHandleAddProps),\n Object.keys(blockHandleAddEvents),\n)\n","import {\n type BlockHandleDraggableElement,\n type BlockHandleDraggableProps as Props,\n type BlockHandleDraggableEvents as Events,\n blockHandleDraggableProps,\n blockHandleDraggableEvents,\n} from '@prosekit/web/block-handle'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link BlockHandleDraggable} component.\n */\nexport interface BlockHandleDraggableProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const BlockHandleDraggable: ForwardRefExoticComponent<\n BlockHandleDraggableProps &\n RefAttributes<BlockHandleDraggableElement> &\n HTMLAttributes<BlockHandleDraggableElement>\n> = createComponent<\n BlockHandleDraggableProps, \n BlockHandleDraggableElement\n>(\n 'prosekit-block-handle-draggable',\n 'BlockHandleDraggable',\n Object.keys(blockHandleDraggableProps),\n Object.keys(blockHandleDraggableEvents),\n)\n","import {\n type BlockHandlePopoverElement,\n type BlockHandlePopoverProps as Props,\n type BlockHandlePopoverEvents as Events,\n blockHandlePopoverProps,\n blockHandlePopoverEvents,\n} from '@prosekit/web/block-handle'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link BlockHandlePopover} component.\n */\nexport interface BlockHandlePopoverProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const BlockHandlePopover: ForwardRefExoticComponent<\n BlockHandlePopoverProps &\n RefAttributes<BlockHandlePopoverElement> &\n HTMLAttributes<BlockHandlePopoverElement>\n> = createComponent<\n BlockHandlePopoverProps, \n BlockHandlePopoverElement\n>(\n 'prosekit-block-handle-popover',\n 'BlockHandlePopover',\n Object.keys(blockHandlePopoverProps),\n Object.keys(blockHandlePopoverEvents),\n)\n"],"mappings":";;;;;AAqBA,MAAaA,iBAIT,gBAIF,6BACA,kBACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC;;;;ACZD,MAAaC,uBAIT,gBAIF,mCACA,wBACA,OAAO,KAAK,0BAA0B,EACtC,OAAO,KAAK,2BAA2B,CACxC;;;;ACZD,MAAaC,qBAIT,gBAIF,iCACA,sBACA,OAAO,KAAK,wBAAwB,EACpC,OAAO,KAAK,yBAAyB,CACtC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { CreateProps } from "./create-props-
|
|
1
|
+
import { t as CreateProps } from "./create-props-DTgCRwCm.js";
|
|
2
2
|
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
3
3
|
import { DropIndicatorElement, DropIndicatorEvents, DropIndicatorProps as DropIndicatorProps$1 } from "@prosekit/web/drop-indicator";
|
|
4
4
|
|
|
5
5
|
//#region src/components/drop-indicator/drop-indicator.gen.d.ts
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Props for the {@link DropIndicator} component.
|
|
9
|
-
*/
|
|
8
|
+
* Props for the {@link DropIndicator} component.
|
|
9
|
+
*/
|
|
10
10
|
interface DropIndicatorProps extends Partial<CreateProps<DropIndicatorProps$1, DropIndicatorEvents>> {}
|
|
11
11
|
declare const DropIndicator: ForwardRefExoticComponent<DropIndicatorProps & RefAttributes<DropIndicatorElement> & HTMLAttributes<DropIndicatorElement>>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { DropIndicator, type DropIndicatorProps };
|
|
13
|
+
export { DropIndicator, type DropIndicatorProps };
|
|
14
|
+
//# sourceMappingURL=prosekit-react-drop-indicator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-drop-indicator.d.ts","names":[],"sources":["../src/components/drop-indicator/drop-indicator.gen.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAmBA;AAAgE,UAA/C,kBAAA,SAA2B,OAAoB,CAAZ,WAAY,CAAA,oBAAA,EAAO,mBAAP,CAAA,CAAA,CAAA;AAAZ,cAEvC,aAFuC,EAExB,yBAFwB,CAGlD,kBAHkD,GAIlD,aAJkD,CAIpC,oBAJoC,CAAA,GAKlD,cALkD,CAKnC,oBALmC,CAAA,CAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "./editor-context-
|
|
2
|
-
import { createComponent } from "./create-component-
|
|
1
|
+
import "./editor-context-cG0zkv13.js";
|
|
2
|
+
import { t as createComponent } from "./create-component-DzdxL6Ne.js";
|
|
3
3
|
import { dropIndicatorEvents, dropIndicatorProps } from "@prosekit/web/drop-indicator";
|
|
4
4
|
|
|
5
5
|
//#region src/components/drop-indicator/drop-indicator.gen.ts
|
|
6
6
|
const DropIndicator = createComponent("prosekit-drop-indicator", "DropIndicator", Object.keys(dropIndicatorProps), Object.keys(dropIndicatorEvents));
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
|
-
export { DropIndicator };
|
|
9
|
+
export { DropIndicator };
|
|
10
|
+
//# sourceMappingURL=prosekit-react-drop-indicator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-drop-indicator.js","names":["DropIndicator: ForwardRefExoticComponent<\n DropIndicatorProps &\n RefAttributes<DropIndicatorElement> &\n HTMLAttributes<DropIndicatorElement>\n>"],"sources":["../src/components/drop-indicator/drop-indicator.gen.ts"],"sourcesContent":["import {\n type DropIndicatorElement,\n type DropIndicatorProps as Props,\n type DropIndicatorEvents as Events,\n dropIndicatorProps,\n dropIndicatorEvents,\n} from '@prosekit/web/drop-indicator'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link DropIndicator} component.\n */\nexport interface DropIndicatorProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const DropIndicator: ForwardRefExoticComponent<\n DropIndicatorProps &\n RefAttributes<DropIndicatorElement> &\n HTMLAttributes<DropIndicatorElement>\n> = createComponent<\n DropIndicatorProps, \n DropIndicatorElement\n>(\n 'prosekit-drop-indicator',\n 'DropIndicator',\n Object.keys(dropIndicatorProps),\n Object.keys(dropIndicatorEvents),\n)\n"],"mappings":";;;;;AAqBA,MAAaA,gBAIT,gBAIF,2BACA,iBACA,OAAO,KAAK,mBAAmB,EAC/B,OAAO,KAAK,oBAAoB,CACjC"}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { CreateProps } from "./create-props-
|
|
1
|
+
import { t as CreateProps } from "./create-props-DTgCRwCm.js";
|
|
2
2
|
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
3
3
|
import { InlinePopoverElement, InlinePopoverEvents, InlinePopoverProps as InlinePopoverProps$1 } from "@prosekit/web/inline-popover";
|
|
4
4
|
|
|
5
5
|
//#region src/components/inline-popover/inline-popover.gen.d.ts
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Props for the {@link InlinePopover} component.
|
|
9
|
-
*/
|
|
8
|
+
* Props for the {@link InlinePopover} component.
|
|
9
|
+
*/
|
|
10
10
|
interface InlinePopoverProps extends Partial<CreateProps<InlinePopoverProps$1, InlinePopoverEvents>> {}
|
|
11
11
|
declare const InlinePopover: ForwardRefExoticComponent<InlinePopoverProps & RefAttributes<InlinePopoverElement> & HTMLAttributes<InlinePopoverElement>>;
|
|
12
12
|
//#endregion
|
|
13
|
-
export { InlinePopover, type InlinePopoverProps };
|
|
13
|
+
export { InlinePopover, type InlinePopoverProps };
|
|
14
|
+
//# sourceMappingURL=prosekit-react-inline-popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-inline-popover.d.ts","names":[],"sources":["../src/components/inline-popover/inline-popover.gen.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAmBA;AAAgE,UAA/C,kBAAA,SAA2B,OAAoB,CAAZ,WAAY,CAAA,oBAAA,EAAO,mBAAP,CAAA,CAAA,CAAA;AAAZ,cAEvC,aAFuC,EAExB,yBAFwB,CAGlD,kBAHkD,GAIlD,aAJkD,CAIpC,oBAJoC,CAAA,GAKlD,cALkD,CAKnC,oBALmC,CAAA,CAAA"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import "./editor-context-
|
|
2
|
-
import { createComponent } from "./create-component-
|
|
1
|
+
import "./editor-context-cG0zkv13.js";
|
|
2
|
+
import { t as createComponent } from "./create-component-DzdxL6Ne.js";
|
|
3
3
|
import { inlinePopoverEvents, inlinePopoverProps } from "@prosekit/web/inline-popover";
|
|
4
4
|
|
|
5
5
|
//#region src/components/inline-popover/inline-popover.gen.ts
|
|
6
6
|
const InlinePopover = createComponent("prosekit-inline-popover", "InlinePopover", Object.keys(inlinePopoverProps), Object.keys(inlinePopoverEvents));
|
|
7
7
|
|
|
8
8
|
//#endregion
|
|
9
|
-
export { InlinePopover };
|
|
9
|
+
export { InlinePopover };
|
|
10
|
+
//# sourceMappingURL=prosekit-react-inline-popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-inline-popover.js","names":["InlinePopover: ForwardRefExoticComponent<\n InlinePopoverProps &\n RefAttributes<InlinePopoverElement> &\n HTMLAttributes<InlinePopoverElement>\n>"],"sources":["../src/components/inline-popover/inline-popover.gen.ts"],"sourcesContent":["import {\n type InlinePopoverElement,\n type InlinePopoverProps as Props,\n type InlinePopoverEvents as Events,\n inlinePopoverProps,\n inlinePopoverEvents,\n} from '@prosekit/web/inline-popover'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link InlinePopover} component.\n */\nexport interface InlinePopoverProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const InlinePopover: ForwardRefExoticComponent<\n InlinePopoverProps &\n RefAttributes<InlinePopoverElement> &\n HTMLAttributes<InlinePopoverElement>\n> = createComponent<\n InlinePopoverProps, \n InlinePopoverElement\n>(\n 'prosekit-inline-popover',\n 'InlinePopover',\n Object.keys(inlinePopoverProps),\n Object.keys(inlinePopoverEvents),\n)\n"],"mappings":";;;;;AAqBA,MAAaA,gBAIT,gBAIF,2BACA,iBACA,OAAO,KAAK,mBAAmB,EAC/B,OAAO,KAAK,oBAAoB,CACjC"}
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { CreateProps } from "./create-props-
|
|
1
|
+
import { t as CreateProps } from "./create-props-DTgCRwCm.js";
|
|
2
2
|
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
3
3
|
import { PopoverContentElement, PopoverContentEvents, PopoverContentProps as PopoverContentProps$1, PopoverRootElement, PopoverRootEvents, PopoverRootProps as PopoverRootProps$1, PopoverTriggerElement, PopoverTriggerEvents, PopoverTriggerProps as PopoverTriggerProps$1 } from "@prosekit/web/popover";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/popover-content.gen.d.ts
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Props for the {@link PopoverContent} component.
|
|
9
|
-
*/
|
|
8
|
+
* Props for the {@link PopoverContent} component.
|
|
9
|
+
*/
|
|
10
10
|
interface PopoverContentProps extends Partial<CreateProps<PopoverContentProps$1, PopoverContentEvents>> {}
|
|
11
11
|
declare const PopoverContent: ForwardRefExoticComponent<PopoverContentProps & RefAttributes<PopoverContentElement> & HTMLAttributes<PopoverContentElement>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/components/popover/popover-root.gen.d.ts
|
|
14
14
|
/**
|
|
15
|
-
* Props for the {@link PopoverRoot} component.
|
|
16
|
-
*/
|
|
15
|
+
* Props for the {@link PopoverRoot} component.
|
|
16
|
+
*/
|
|
17
17
|
interface PopoverRootProps extends Partial<CreateProps<PopoverRootProps$1, PopoverRootEvents>> {}
|
|
18
18
|
declare const PopoverRoot: ForwardRefExoticComponent<PopoverRootProps & RefAttributes<PopoverRootElement> & HTMLAttributes<PopoverRootElement>>;
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/components/popover/popover-trigger.gen.d.ts
|
|
21
21
|
/**
|
|
22
|
-
* Props for the {@link PopoverTrigger} component.
|
|
23
|
-
*/
|
|
22
|
+
* Props for the {@link PopoverTrigger} component.
|
|
23
|
+
*/
|
|
24
24
|
interface PopoverTriggerProps extends Partial<CreateProps<PopoverTriggerProps$1, PopoverTriggerEvents>> {}
|
|
25
25
|
declare const PopoverTrigger: ForwardRefExoticComponent<PopoverTriggerProps & RefAttributes<PopoverTriggerElement> & HTMLAttributes<PopoverTriggerElement>>;
|
|
26
26
|
//#endregion
|
|
27
|
-
export { PopoverContent, type PopoverContentProps, PopoverRoot, type PopoverRootProps, PopoverTrigger, type PopoverTriggerProps };
|
|
27
|
+
export { PopoverContent, type PopoverContentProps, PopoverRoot, type PopoverRootProps, PopoverTrigger, type PopoverTriggerProps };
|
|
28
|
+
//# sourceMappingURL=prosekit-react-popover.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-popover.d.ts","names":[],"sources":["../src/components/popover/popover-content.gen.ts","../src/components/popover/popover-root.gen.ts","../src/components/popover/popover-trigger.gen.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAmBA;AAAiE,UAAhD,mBAAA,SAA4B,OAAoB,CAAZ,WAAY,CAAA,qBAAA,EAAO,oBAAP,CAAA,CAAA,CAAA;AAAZ,cAExC,cAFwC,EAExB,yBAFwB,CAGnD,mBAHmD,GAInD,aAJmD,CAIrC,qBAJqC,CAAA,GAKnD,cALmD,CAKpC,qBALoC,CAAA,CAAA;;;;;AAArD;AAAiE,UCAhD,gBAAA,SAAyB,ODAuB,CCAf,WDAe,CCAH,kBDAG,ECAI,iBDAJ,CAAA,CAAA,CAAA;AAAZ,cCExC,WDFwC,ECE3B,yBDF2B,CCGnD,gBDHmD,GCInD,aDJmD,CCIrC,kBDJqC,CAAA,GCKnD,cDLmD,CCKpC,kBDLoC,CAAA,CAAA;;;;;AAArD;AAAiE,UEAhD,mBAAA,SAA4B,OFAoB,CEAZ,WFAY,CEAA,qBFAA,EEAO,oBFAP,CAAA,CAAA,CAAA;AAAZ,cEExC,cFFwC,EEExB,yBFFwB,CEGnD,mBFHmD,GEInD,aFJmD,CEIrC,qBFJqC,CAAA,GEKnD,cFLmD,CEKpC,qBFLoC,CAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./editor-context-
|
|
2
|
-
import { createComponent } from "./create-component-
|
|
1
|
+
import "./editor-context-cG0zkv13.js";
|
|
2
|
+
import { t as createComponent } from "./create-component-DzdxL6Ne.js";
|
|
3
3
|
import { popoverContentEvents, popoverContentProps, popoverRootEvents, popoverRootProps, popoverTriggerEvents, popoverTriggerProps } from "@prosekit/web/popover";
|
|
4
4
|
|
|
5
5
|
//#region src/components/popover/popover-content.gen.ts
|
|
@@ -14,4 +14,5 @@ const PopoverRoot = createComponent("prosekit-popover-root", "PopoverRoot", Obje
|
|
|
14
14
|
const PopoverTrigger = createComponent("prosekit-popover-trigger", "PopoverTrigger", Object.keys(popoverTriggerProps), Object.keys(popoverTriggerEvents));
|
|
15
15
|
|
|
16
16
|
//#endregion
|
|
17
|
-
export { PopoverContent, PopoverRoot, PopoverTrigger };
|
|
17
|
+
export { PopoverContent, PopoverRoot, PopoverTrigger };
|
|
18
|
+
//# sourceMappingURL=prosekit-react-popover.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-popover.js","names":["PopoverContent: ForwardRefExoticComponent<\n PopoverContentProps &\n RefAttributes<PopoverContentElement> &\n HTMLAttributes<PopoverContentElement>\n>","PopoverRoot: ForwardRefExoticComponent<\n PopoverRootProps &\n RefAttributes<PopoverRootElement> &\n HTMLAttributes<PopoverRootElement>\n>","PopoverTrigger: ForwardRefExoticComponent<\n PopoverTriggerProps &\n RefAttributes<PopoverTriggerElement> &\n HTMLAttributes<PopoverTriggerElement>\n>"],"sources":["../src/components/popover/popover-content.gen.ts","../src/components/popover/popover-root.gen.ts","../src/components/popover/popover-trigger.gen.ts"],"sourcesContent":["import {\n type PopoverContentElement,\n type PopoverContentProps as Props,\n type PopoverContentEvents as Events,\n popoverContentProps,\n popoverContentEvents,\n} from '@prosekit/web/popover'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link PopoverContent} component.\n */\nexport interface PopoverContentProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const PopoverContent: ForwardRefExoticComponent<\n PopoverContentProps &\n RefAttributes<PopoverContentElement> &\n HTMLAttributes<PopoverContentElement>\n> = createComponent<\n PopoverContentProps, \n PopoverContentElement\n>(\n 'prosekit-popover-content',\n 'PopoverContent',\n Object.keys(popoverContentProps),\n Object.keys(popoverContentEvents),\n)\n","import {\n type PopoverRootElement,\n type PopoverRootProps as Props,\n type PopoverRootEvents as Events,\n popoverRootProps,\n popoverRootEvents,\n} from '@prosekit/web/popover'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link PopoverRoot} component.\n */\nexport interface PopoverRootProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const PopoverRoot: ForwardRefExoticComponent<\n PopoverRootProps &\n RefAttributes<PopoverRootElement> &\n HTMLAttributes<PopoverRootElement>\n> = createComponent<\n PopoverRootProps, \n PopoverRootElement\n>(\n 'prosekit-popover-root',\n 'PopoverRoot',\n Object.keys(popoverRootProps),\n Object.keys(popoverRootEvents),\n)\n","import {\n type PopoverTriggerElement,\n type PopoverTriggerProps as Props,\n type PopoverTriggerEvents as Events,\n popoverTriggerProps,\n popoverTriggerEvents,\n} from '@prosekit/web/popover'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link PopoverTrigger} component.\n */\nexport interface PopoverTriggerProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const PopoverTrigger: ForwardRefExoticComponent<\n PopoverTriggerProps &\n RefAttributes<PopoverTriggerElement> &\n HTMLAttributes<PopoverTriggerElement>\n> = createComponent<\n PopoverTriggerProps, \n PopoverTriggerElement\n>(\n 'prosekit-popover-trigger',\n 'PopoverTrigger',\n Object.keys(popoverTriggerProps),\n Object.keys(popoverTriggerEvents),\n)\n"],"mappings":";;;;;AAqBA,MAAaA,iBAIT,gBAIF,4BACA,kBACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC;;;;ACZD,MAAaC,cAIT,gBAIF,yBACA,eACA,OAAO,KAAK,iBAAiB,EAC7B,OAAO,KAAK,kBAAkB,CAC/B;;;;ACZD,MAAaC,iBAIT,gBAIF,4BACA,kBACA,OAAO,KAAK,oBAAoB,EAChC,OAAO,KAAK,qBAAqB,CAClC"}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { CreateProps } from "./create-props-
|
|
1
|
+
import { t as CreateProps } from "./create-props-DTgCRwCm.js";
|
|
2
2
|
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
3
3
|
import { ResizableHandleElement, ResizableHandleEvents, ResizableHandleProps as ResizableHandleProps$1, ResizableRootElement, ResizableRootEvents, ResizableRootProps as ResizableRootProps$1 } from "@prosekit/web/resizable";
|
|
4
4
|
|
|
5
5
|
//#region src/components/resizable/resizable-handle.gen.d.ts
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Props for the {@link ResizableHandle} component.
|
|
9
|
-
*/
|
|
8
|
+
* Props for the {@link ResizableHandle} component.
|
|
9
|
+
*/
|
|
10
10
|
interface ResizableHandleProps extends Partial<CreateProps<ResizableHandleProps$1, ResizableHandleEvents>> {}
|
|
11
11
|
declare const ResizableHandle: ForwardRefExoticComponent<ResizableHandleProps & RefAttributes<ResizableHandleElement> & HTMLAttributes<ResizableHandleElement>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/components/resizable/resizable-root.gen.d.ts
|
|
14
14
|
/**
|
|
15
|
-
* Props for the {@link ResizableRoot} component.
|
|
16
|
-
*/
|
|
15
|
+
* Props for the {@link ResizableRoot} component.
|
|
16
|
+
*/
|
|
17
17
|
interface ResizableRootProps extends Partial<CreateProps<ResizableRootProps$1, ResizableRootEvents>> {}
|
|
18
18
|
declare const ResizableRoot: ForwardRefExoticComponent<ResizableRootProps & RefAttributes<ResizableRootElement> & HTMLAttributes<ResizableRootElement>>;
|
|
19
19
|
//#endregion
|
|
20
|
-
export { ResizableHandle, type ResizableHandleProps, ResizableRoot, type ResizableRootProps };
|
|
20
|
+
export { ResizableHandle, type ResizableHandleProps, ResizableRoot, type ResizableRootProps };
|
|
21
|
+
//# sourceMappingURL=prosekit-react-resizable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-resizable.d.ts","names":[],"sources":["../src/components/resizable/resizable-handle.gen.ts","../src/components/resizable/resizable-root.gen.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAmBA;AAAkE,UAAjD,oBAAA,SAA6B,OAAoB,CAAZ,WAAY,CAAA,sBAAA,EAAO,qBAAP,CAAA,CAAA,CAAA;AAAZ,cAEzC,eAFyC,EAExB,yBAFwB,CAGpD,oBAHoD,GAIpD,aAJoD,CAItC,sBAJsC,CAAA,GAKpD,cALoD,CAKrC,sBALqC,CAAA,CAAA;;;;;AAAtD;AAAkE,UCAjD,kBAAA,SAA2B,ODAsB,CCAd,WDAc,CCAF,oBDAE,ECAK,mBDAL,CAAA,CAAA,CAAA;AAAZ,cCEzC,aDFyC,ECE1B,yBDF0B,CCGpD,kBDHoD,GCIpD,aDJoD,CCItC,oBDJsC,CAAA,GCKpD,cDLoD,CCKrC,oBDLqC,CAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./editor-context-
|
|
2
|
-
import { createComponent } from "./create-component-
|
|
1
|
+
import "./editor-context-cG0zkv13.js";
|
|
2
|
+
import { t as createComponent } from "./create-component-DzdxL6Ne.js";
|
|
3
3
|
import { resizableHandleEvents, resizableHandleProps, resizableRootEvents, resizableRootProps } from "@prosekit/web/resizable";
|
|
4
4
|
|
|
5
5
|
//#region src/components/resizable/resizable-handle.gen.ts
|
|
@@ -10,4 +10,5 @@ const ResizableHandle = createComponent("prosekit-resizable-handle", "ResizableH
|
|
|
10
10
|
const ResizableRoot = createComponent("prosekit-resizable-root", "ResizableRoot", Object.keys(resizableRootProps), Object.keys(resizableRootEvents));
|
|
11
11
|
|
|
12
12
|
//#endregion
|
|
13
|
-
export { ResizableHandle, ResizableRoot };
|
|
13
|
+
export { ResizableHandle, ResizableRoot };
|
|
14
|
+
//# sourceMappingURL=prosekit-react-resizable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-resizable.js","names":["ResizableHandle: ForwardRefExoticComponent<\n ResizableHandleProps &\n RefAttributes<ResizableHandleElement> &\n HTMLAttributes<ResizableHandleElement>\n>","ResizableRoot: ForwardRefExoticComponent<\n ResizableRootProps &\n RefAttributes<ResizableRootElement> &\n HTMLAttributes<ResizableRootElement>\n>"],"sources":["../src/components/resizable/resizable-handle.gen.ts","../src/components/resizable/resizable-root.gen.ts"],"sourcesContent":["import {\n type ResizableHandleElement,\n type ResizableHandleProps as Props,\n type ResizableHandleEvents as Events,\n resizableHandleProps,\n resizableHandleEvents,\n} from '@prosekit/web/resizable'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link ResizableHandle} component.\n */\nexport interface ResizableHandleProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const ResizableHandle: ForwardRefExoticComponent<\n ResizableHandleProps &\n RefAttributes<ResizableHandleElement> &\n HTMLAttributes<ResizableHandleElement>\n> = createComponent<\n ResizableHandleProps, \n ResizableHandleElement\n>(\n 'prosekit-resizable-handle',\n 'ResizableHandle',\n Object.keys(resizableHandleProps),\n Object.keys(resizableHandleEvents),\n)\n","import {\n type ResizableRootElement,\n type ResizableRootProps as Props,\n type ResizableRootEvents as Events,\n resizableRootProps,\n resizableRootEvents,\n} from '@prosekit/web/resizable'\nimport type {\n ForwardRefExoticComponent,\n HTMLAttributes,\n RefAttributes,\n} from 'react'\n\nimport { createComponent } from '../create-component'\nimport type { CreateProps } from '../create-props'\n\n/**\n * Props for the {@link ResizableRoot} component.\n */\nexport interface ResizableRootProps extends Partial<CreateProps<Props, Events>> {}\n \nexport const ResizableRoot: ForwardRefExoticComponent<\n ResizableRootProps &\n RefAttributes<ResizableRootElement> &\n HTMLAttributes<ResizableRootElement>\n> = createComponent<\n ResizableRootProps, \n ResizableRootElement\n>(\n 'prosekit-resizable-root',\n 'ResizableRoot',\n Object.keys(resizableRootProps),\n Object.keys(resizableRootEvents),\n)\n"],"mappings":";;;;;AAqBA,MAAaA,kBAIT,gBAIF,6BACA,mBACA,OAAO,KAAK,qBAAqB,EACjC,OAAO,KAAK,sBAAsB,CACnC;;;;ACZD,MAAaC,gBAIT,gBAIF,2BACA,iBACA,OAAO,KAAK,mBAAmB,EAC/B,OAAO,KAAK,oBAAoB,CACjC"}
|
|
@@ -1,69 +1,70 @@
|
|
|
1
|
-
import { CreateProps } from "./create-props-
|
|
1
|
+
import { t as CreateProps } from "./create-props-DTgCRwCm.js";
|
|
2
2
|
import { ForwardRefExoticComponent, HTMLAttributes, RefAttributes } from "react";
|
|
3
3
|
import { TableHandleColumnRootElement, TableHandleColumnRootEvents, TableHandleColumnRootProps as TableHandleColumnRootProps$1, TableHandleColumnTriggerElement, TableHandleColumnTriggerEvents, TableHandleColumnTriggerProps as TableHandleColumnTriggerProps$1, TableHandleDragPreviewElement, TableHandleDragPreviewEvents, TableHandleDragPreviewProps as TableHandleDragPreviewProps$1, TableHandleDropIndicatorElement, TableHandleDropIndicatorEvents, TableHandleDropIndicatorProps as TableHandleDropIndicatorProps$1, TableHandlePopoverContentElement, TableHandlePopoverContentEvents, TableHandlePopoverContentProps as TableHandlePopoverContentProps$1, TableHandlePopoverItemElement, TableHandlePopoverItemEvents, TableHandlePopoverItemProps as TableHandlePopoverItemProps$1, TableHandleRootElement, TableHandleRootEvents, TableHandleRootProps as TableHandleRootProps$1, TableHandleRowRootElement, TableHandleRowRootEvents, TableHandleRowRootProps as TableHandleRowRootProps$1, TableHandleRowTriggerElement, TableHandleRowTriggerEvents, TableHandleRowTriggerProps as TableHandleRowTriggerProps$1 } from "@prosekit/web/table-handle";
|
|
4
4
|
|
|
5
5
|
//#region src/components/table-handle/table-handle-column-root.gen.d.ts
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Props for the {@link TableHandleColumnRoot} component.
|
|
9
|
-
*/
|
|
8
|
+
* Props for the {@link TableHandleColumnRoot} component.
|
|
9
|
+
*/
|
|
10
10
|
interface TableHandleColumnRootProps extends Partial<CreateProps<TableHandleColumnRootProps$1, TableHandleColumnRootEvents>> {}
|
|
11
11
|
declare const TableHandleColumnRoot: ForwardRefExoticComponent<TableHandleColumnRootProps & RefAttributes<TableHandleColumnRootElement> & HTMLAttributes<TableHandleColumnRootElement>>;
|
|
12
12
|
//#endregion
|
|
13
13
|
//#region src/components/table-handle/table-handle-column-trigger.gen.d.ts
|
|
14
14
|
/**
|
|
15
|
-
* Props for the {@link TableHandleColumnTrigger} component.
|
|
16
|
-
*/
|
|
15
|
+
* Props for the {@link TableHandleColumnTrigger} component.
|
|
16
|
+
*/
|
|
17
17
|
interface TableHandleColumnTriggerProps extends Partial<CreateProps<TableHandleColumnTriggerProps$1, TableHandleColumnTriggerEvents>> {}
|
|
18
18
|
declare const TableHandleColumnTrigger: ForwardRefExoticComponent<TableHandleColumnTriggerProps & RefAttributes<TableHandleColumnTriggerElement> & HTMLAttributes<TableHandleColumnTriggerElement>>;
|
|
19
19
|
//#endregion
|
|
20
20
|
//#region src/components/table-handle/table-handle-drag-preview.gen.d.ts
|
|
21
21
|
/**
|
|
22
|
-
* Props for the {@link TableHandleDragPreview} component.
|
|
23
|
-
*/
|
|
22
|
+
* Props for the {@link TableHandleDragPreview} component.
|
|
23
|
+
*/
|
|
24
24
|
interface TableHandleDragPreviewProps extends Partial<CreateProps<TableHandleDragPreviewProps$1, TableHandleDragPreviewEvents>> {}
|
|
25
25
|
declare const TableHandleDragPreview: ForwardRefExoticComponent<TableHandleDragPreviewProps & RefAttributes<TableHandleDragPreviewElement> & HTMLAttributes<TableHandleDragPreviewElement>>;
|
|
26
26
|
//#endregion
|
|
27
27
|
//#region src/components/table-handle/table-handle-drop-indicator.gen.d.ts
|
|
28
28
|
/**
|
|
29
|
-
* Props for the {@link TableHandleDropIndicator} component.
|
|
30
|
-
*/
|
|
29
|
+
* Props for the {@link TableHandleDropIndicator} component.
|
|
30
|
+
*/
|
|
31
31
|
interface TableHandleDropIndicatorProps extends Partial<CreateProps<TableHandleDropIndicatorProps$1, TableHandleDropIndicatorEvents>> {}
|
|
32
32
|
declare const TableHandleDropIndicator: ForwardRefExoticComponent<TableHandleDropIndicatorProps & RefAttributes<TableHandleDropIndicatorElement> & HTMLAttributes<TableHandleDropIndicatorElement>>;
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/components/table-handle/table-handle-popover-content.gen.d.ts
|
|
35
35
|
/**
|
|
36
|
-
* Props for the {@link TableHandlePopoverContent} component.
|
|
37
|
-
*/
|
|
36
|
+
* Props for the {@link TableHandlePopoverContent} component.
|
|
37
|
+
*/
|
|
38
38
|
interface TableHandlePopoverContentProps extends Partial<CreateProps<TableHandlePopoverContentProps$1, TableHandlePopoverContentEvents>> {}
|
|
39
39
|
declare const TableHandlePopoverContent: ForwardRefExoticComponent<TableHandlePopoverContentProps & RefAttributes<TableHandlePopoverContentElement> & HTMLAttributes<TableHandlePopoverContentElement>>;
|
|
40
40
|
//#endregion
|
|
41
41
|
//#region src/components/table-handle/table-handle-popover-item.gen.d.ts
|
|
42
42
|
/**
|
|
43
|
-
* Props for the {@link TableHandlePopoverItem} component.
|
|
44
|
-
*/
|
|
43
|
+
* Props for the {@link TableHandlePopoverItem} component.
|
|
44
|
+
*/
|
|
45
45
|
interface TableHandlePopoverItemProps extends Partial<CreateProps<TableHandlePopoverItemProps$1, TableHandlePopoverItemEvents>> {}
|
|
46
46
|
declare const TableHandlePopoverItem: ForwardRefExoticComponent<TableHandlePopoverItemProps & RefAttributes<TableHandlePopoverItemElement> & HTMLAttributes<TableHandlePopoverItemElement>>;
|
|
47
47
|
//#endregion
|
|
48
48
|
//#region src/components/table-handle/table-handle-root.gen.d.ts
|
|
49
49
|
/**
|
|
50
|
-
* Props for the {@link TableHandleRoot} component.
|
|
51
|
-
*/
|
|
50
|
+
* Props for the {@link TableHandleRoot} component.
|
|
51
|
+
*/
|
|
52
52
|
interface TableHandleRootProps extends Partial<CreateProps<TableHandleRootProps$1, TableHandleRootEvents>> {}
|
|
53
53
|
declare const TableHandleRoot: ForwardRefExoticComponent<TableHandleRootProps & RefAttributes<TableHandleRootElement> & HTMLAttributes<TableHandleRootElement>>;
|
|
54
54
|
//#endregion
|
|
55
55
|
//#region src/components/table-handle/table-handle-row-root.gen.d.ts
|
|
56
56
|
/**
|
|
57
|
-
* Props for the {@link TableHandleRowRoot} component.
|
|
58
|
-
*/
|
|
57
|
+
* Props for the {@link TableHandleRowRoot} component.
|
|
58
|
+
*/
|
|
59
59
|
interface TableHandleRowRootProps extends Partial<CreateProps<TableHandleRowRootProps$1, TableHandleRowRootEvents>> {}
|
|
60
60
|
declare const TableHandleRowRoot: ForwardRefExoticComponent<TableHandleRowRootProps & RefAttributes<TableHandleRowRootElement> & HTMLAttributes<TableHandleRowRootElement>>;
|
|
61
61
|
//#endregion
|
|
62
62
|
//#region src/components/table-handle/table-handle-row-trigger.gen.d.ts
|
|
63
63
|
/**
|
|
64
|
-
* Props for the {@link TableHandleRowTrigger} component.
|
|
65
|
-
*/
|
|
64
|
+
* Props for the {@link TableHandleRowTrigger} component.
|
|
65
|
+
*/
|
|
66
66
|
interface TableHandleRowTriggerProps extends Partial<CreateProps<TableHandleRowTriggerProps$1, TableHandleRowTriggerEvents>> {}
|
|
67
67
|
declare const TableHandleRowTrigger: ForwardRefExoticComponent<TableHandleRowTriggerProps & RefAttributes<TableHandleRowTriggerElement> & HTMLAttributes<TableHandleRowTriggerElement>>;
|
|
68
68
|
//#endregion
|
|
69
|
-
export { TableHandleColumnRoot, type TableHandleColumnRootProps, TableHandleColumnTrigger, type TableHandleColumnTriggerProps, TableHandleDragPreview, type TableHandleDragPreviewProps, TableHandleDropIndicator, type TableHandleDropIndicatorProps, TableHandlePopoverContent, type TableHandlePopoverContentProps, TableHandlePopoverItem, type TableHandlePopoverItemProps, TableHandleRoot, type TableHandleRootProps, TableHandleRowRoot, type TableHandleRowRootProps, TableHandleRowTrigger, type TableHandleRowTriggerProps };
|
|
69
|
+
export { TableHandleColumnRoot, type TableHandleColumnRootProps, TableHandleColumnTrigger, type TableHandleColumnTriggerProps, TableHandleDragPreview, type TableHandleDragPreviewProps, TableHandleDropIndicator, type TableHandleDropIndicatorProps, TableHandlePopoverContent, type TableHandlePopoverContentProps, TableHandlePopoverItem, type TableHandlePopoverItemProps, TableHandleRoot, type TableHandleRootProps, TableHandleRowRoot, type TableHandleRowRootProps, TableHandleRowTrigger, type TableHandleRowTriggerProps };
|
|
70
|
+
//# sourceMappingURL=prosekit-react-table-handle.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prosekit-react-table-handle.d.ts","names":[],"sources":["../src/components/table-handle/table-handle-column-root.gen.ts","../src/components/table-handle/table-handle-column-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-popover-content.gen.ts","../src/components/table-handle/table-handle-popover-item.gen.ts","../src/components/table-handle/table-handle-root.gen.ts","../src/components/table-handle/table-handle-row-root.gen.ts","../src/components/table-handle/table-handle-row-trigger.gen.ts"],"sourcesContent":[],"mappings":";;;;;;;;AAmBA;AAAwE,UAAvD,0BAAA,SAAmC,OAAoB,CAAZ,WAAY,CAAA,4BAAA,EAAO,2BAAP,CAAA,CAAA,CAAA;AAAZ,cAE/C,qBAF+C,EAExB,yBAFwB,CAG1D,0BAH0D,GAI1D,aAJ0D,CAI5C,4BAJ4C,CAAA,GAK1D,cAL0D,CAK3C,4BAL2C,CAAA,CAAA;;;;;AAA5D;AAAwE,UCAvD,6BAAA,SAAsC,ODAiB,CCAT,WDAS,CCAG,+BDAH,ECAU,8BDAV,CAAA,CAAA,CAAA;AAAZ,cCE/C,wBDF+C,ECErB,yBDFqB,CCG1D,6BDH0D,GCI1D,aDJ0D,CCI5C,+BDJ4C,CAAA,GCK1D,cDL0D,CCK3C,+BDL2C,CAAA,CAAA;;;;;AAA5D;AAAwE,UEAvD,2BAAA,SAAoC,OFAmB,CEAX,WFAW,CEAC,6BFAD,EEAQ,4BFAR,CAAA,CAAA,CAAA;AAAZ,cEE/C,sBFF+C,EEEvB,yBFFuB,CEG1D,2BFH0D,GEI1D,aFJ0D,CEI5C,6BFJ4C,CAAA,GEK1D,cFL0D,CEK3C,6BFL2C,CAAA,CAAA;;;;;AAA5D;AAAwE,UGAvD,6BAAA,SAAsC,OHAiB,CGAT,WHAS,CGAG,+BHAH,EGAU,8BHAV,CAAA,CAAA,CAAA;AAAZ,cGE/C,wBHF+C,EGErB,yBHFqB,CGG1D,6BHH0D,GGI1D,aHJ0D,CGI5C,+BHJ4C,CAAA,GGK1D,cHL0D,CGK3C,+BHL2C,CAAA,CAAA;;;;;AAA5D;AAAwE,UIAvD,8BAAA,SAAuC,OJAgB,CIAR,WJAQ,CIAI,gCJAJ,EIAW,+BJAX,CAAA,CAAA,CAAA;AAAZ,cIE/C,yBJF+C,EIEpB,yBJFoB,CIG1D,8BJH0D,GII1D,aJJ0D,CII5C,gCJJ4C,CAAA,GIK1D,cJL0D,CIK3C,gCJL2C,CAAA,CAAA;;;;;AAA5D;AAAwE,UKAvD,2BAAA,SAAoC,OLAmB,CKAX,WLAW,CKAC,6BLAD,EKAQ,4BLAR,CAAA,CAAA,CAAA;AAAZ,cKE/C,sBLF+C,EKEvB,yBLFuB,CKG1D,2BLH0D,GKI1D,aLJ0D,CKI5C,6BLJ4C,CAAA,GKK1D,cLL0D,CKK3C,6BLL2C,CAAA,CAAA;;;;;AAA5D;AAAwE,UMAvD,oBAAA,SAA6B,ONA0B,CMAlB,WNAkB,CMAN,sBNAM,EMAC,qBNAD,CAAA,CAAA,CAAA;AAAZ,cME/C,eNF+C,EME9B,yBNF8B,CMG1D,oBNH0D,GMI1D,aNJ0D,CMI5C,sBNJ4C,CAAA,GMK1D,cNL0D,CMK3C,sBNL2C,CAAA,CAAA;;;;;AAA5D;AAAwE,UOAvD,uBAAA,SAAgC,OPAuB,COAf,WPAe,COAH,yBPAG,EOAI,wBPAJ,CAAA,CAAA,CAAA;AAAZ,cOE/C,kBPF+C,EOE3B,yBPF2B,COG1D,uBPH0D,GOI1D,aPJ0D,COI5C,yBPJ4C,CAAA,GOK1D,cPL0D,COK3C,yBPL2C,CAAA,CAAA;;;;;AAA5D;AAAwE,UQAvD,0BAAA,SAAmC,ORAoB,CQAZ,WRAY,CQAA,4BRAA,EQAO,2BRAP,CAAA,CAAA,CAAA;AAAZ,cQE/C,qBRF+C,EQExB,yBRFwB,CQG1D,0BRH0D,GQI1D,aRJ0D,CQI5C,4BRJ4C,CAAA,GQK1D,cRL0D,CQK3C,4BRL2C,CAAA,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import "./editor-context-
|
|
2
|
-
import { createComponent } from "./create-component-
|
|
1
|
+
import "./editor-context-cG0zkv13.js";
|
|
2
|
+
import { t as createComponent } from "./create-component-DzdxL6Ne.js";
|
|
3
3
|
import { tableHandleColumnRootEvents, tableHandleColumnRootProps, tableHandleColumnTriggerEvents, tableHandleColumnTriggerProps, tableHandleDragPreviewEvents, tableHandleDragPreviewProps, tableHandleDropIndicatorEvents, tableHandleDropIndicatorProps, tableHandlePopoverContentEvents, tableHandlePopoverContentProps, tableHandlePopoverItemEvents, tableHandlePopoverItemProps, tableHandleRootEvents, tableHandleRootProps, tableHandleRowRootEvents, tableHandleRowRootProps, tableHandleRowTriggerEvents, tableHandleRowTriggerProps } from "@prosekit/web/table-handle";
|
|
4
4
|
|
|
5
5
|
//#region src/components/table-handle/table-handle-column-root.gen.ts
|
|
@@ -38,4 +38,5 @@ const TableHandleRowRoot = createComponent("prosekit-table-handle-row-root", "Ta
|
|
|
38
38
|
const TableHandleRowTrigger = createComponent("prosekit-table-handle-row-trigger", "TableHandleRowTrigger", Object.keys(tableHandleRowTriggerProps), Object.keys(tableHandleRowTriggerEvents));
|
|
39
39
|
|
|
40
40
|
//#endregion
|
|
41
|
-
export { TableHandleColumnRoot, TableHandleColumnTrigger, TableHandleDragPreview, TableHandleDropIndicator, TableHandlePopoverContent, TableHandlePopoverItem, TableHandleRoot, TableHandleRowRoot, TableHandleRowTrigger };
|
|
41
|
+
export { TableHandleColumnRoot, TableHandleColumnTrigger, TableHandleDragPreview, TableHandleDropIndicator, TableHandlePopoverContent, TableHandlePopoverItem, TableHandleRoot, TableHandleRowRoot, TableHandleRowTrigger };
|
|
42
|
+
//# sourceMappingURL=prosekit-react-table-handle.js.map
|