@prosekit/vue 0.7.0-beta.4 → 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.
Files changed (94) hide show
  1. package/dist/editor-context.js +0 -2
  2. package/dist/editor-context.js.map +1 -1
  3. package/dist/prosekit-vue-autocomplete.d.ts +10 -61
  4. package/dist/prosekit-vue-autocomplete.d.ts.map +1 -1
  5. package/dist/prosekit-vue-autocomplete.js +5 -50
  6. package/dist/prosekit-vue-autocomplete.js.map +1 -1
  7. package/dist/prosekit-vue-block-handle.d.ts +10 -61
  8. package/dist/prosekit-vue-block-handle.d.ts.map +1 -1
  9. package/dist/prosekit-vue-block-handle.js +5 -50
  10. package/dist/prosekit-vue-block-handle.js.map +1 -1
  11. package/dist/prosekit-vue-drop-indicator.d.ts +2 -13
  12. package/dist/prosekit-vue-drop-indicator.d.ts.map +1 -1
  13. package/dist/prosekit-vue-drop-indicator.js +1 -10
  14. package/dist/prosekit-vue-drop-indicator.js.map +1 -1
  15. package/dist/prosekit-vue-inline-popover.d.ts +6 -37
  16. package/dist/prosekit-vue-inline-popover.d.ts.map +1 -1
  17. package/dist/prosekit-vue-inline-popover.js +3 -30
  18. package/dist/prosekit-vue-inline-popover.js.map +1 -1
  19. package/dist/prosekit-vue-menu.d.ts +48 -88
  20. package/dist/prosekit-vue-menu.d.ts.map +1 -1
  21. package/dist/prosekit-vue-menu.js +70 -74
  22. package/dist/prosekit-vue-menu.js.map +1 -1
  23. package/dist/prosekit-vue-popover.d.ts +8 -49
  24. package/dist/prosekit-vue-popover.d.ts.map +1 -1
  25. package/dist/prosekit-vue-popover.js +4 -40
  26. package/dist/prosekit-vue-popover.js.map +1 -1
  27. package/dist/prosekit-vue-resizable.d.ts +4 -25
  28. package/dist/prosekit-vue-resizable.d.ts.map +1 -1
  29. package/dist/prosekit-vue-resizable.js +2 -20
  30. package/dist/prosekit-vue-resizable.js.map +1 -1
  31. package/dist/prosekit-vue-table-handle.d.ts +22 -133
  32. package/dist/prosekit-vue-table-handle.d.ts.map +1 -1
  33. package/dist/prosekit-vue-table-handle.js +11 -110
  34. package/dist/prosekit-vue-table-handle.js.map +1 -1
  35. package/dist/prosekit-vue-tooltip.d.ts +8 -49
  36. package/dist/prosekit-vue-tooltip.d.ts.map +1 -1
  37. package/dist/prosekit-vue-tooltip.js +4 -40
  38. package/dist/prosekit-vue-tooltip.js.map +1 -1
  39. package/dist/prosekit-vue.d.ts +0 -19
  40. package/dist/prosekit-vue.d.ts.map +1 -1
  41. package/dist/prosekit-vue.js +0 -24
  42. package/dist/prosekit-vue.js.map +1 -1
  43. package/package.json +3 -3
  44. package/src/components/autocomplete/autocomplete-empty.gen.ts +3 -13
  45. package/src/components/autocomplete/autocomplete-item.gen.ts +3 -13
  46. package/src/components/autocomplete/autocomplete-popup.gen.ts +3 -13
  47. package/src/components/autocomplete/autocomplete-positioner.gen.ts +3 -13
  48. package/src/components/autocomplete/autocomplete-root.gen.ts +3 -13
  49. package/src/components/autocomplete/index.gen.ts +1 -3
  50. package/src/components/block-handle/block-handle-add.gen.ts +3 -13
  51. package/src/components/block-handle/block-handle-draggable.gen.ts +3 -13
  52. package/src/components/block-handle/block-handle-popup.gen.ts +3 -13
  53. package/src/components/block-handle/block-handle-positioner.gen.ts +3 -13
  54. package/src/components/block-handle/block-handle-root.gen.ts +3 -13
  55. package/src/components/block-handle/index.gen.ts +1 -3
  56. package/src/components/drop-indicator/drop-indicator.gen.ts +3 -13
  57. package/src/components/drop-indicator/index.gen.ts +1 -3
  58. package/src/components/inline-popover/index.gen.ts +1 -3
  59. package/src/components/inline-popover/inline-popover-popup.gen.ts +3 -13
  60. package/src/components/inline-popover/inline-popover-positioner.gen.ts +3 -13
  61. package/src/components/inline-popover/inline-popover-root.gen.ts +3 -13
  62. package/src/components/menu/index.gen.ts +1 -3
  63. package/src/components/menu/menu-item.gen.ts +3 -13
  64. package/src/components/menu/menu-popup.gen.ts +3 -13
  65. package/src/components/menu/menu-positioner.gen.ts +3 -13
  66. package/src/components/menu/menu-root.gen.ts +3 -13
  67. package/src/components/menu/menu-submenu-root.gen.ts +68 -21
  68. package/src/components/menu/menu-submenu-trigger.gen.ts +41 -21
  69. package/src/components/menu/menu-trigger.gen.ts +3 -13
  70. package/src/components/popover/index.gen.ts +1 -3
  71. package/src/components/popover/popover-popup.gen.ts +3 -13
  72. package/src/components/popover/popover-positioner.gen.ts +3 -13
  73. package/src/components/popover/popover-root.gen.ts +3 -13
  74. package/src/components/popover/popover-trigger.gen.ts +3 -13
  75. package/src/components/resizable/index.gen.ts +1 -3
  76. package/src/components/resizable/resizable-handle.gen.ts +3 -13
  77. package/src/components/resizable/resizable-root.gen.ts +3 -13
  78. package/src/components/table-handle/index.gen.ts +1 -3
  79. package/src/components/table-handle/table-handle-column-menu-root.gen.ts +3 -13
  80. package/src/components/table-handle/table-handle-column-menu-trigger.gen.ts +3 -13
  81. package/src/components/table-handle/table-handle-column-popup.gen.ts +3 -13
  82. package/src/components/table-handle/table-handle-column-positioner.gen.ts +3 -13
  83. package/src/components/table-handle/table-handle-drag-preview.gen.ts +3 -13
  84. package/src/components/table-handle/table-handle-drop-indicator.gen.ts +3 -13
  85. package/src/components/table-handle/table-handle-root.gen.ts +3 -13
  86. package/src/components/table-handle/table-handle-row-menu-root.gen.ts +3 -13
  87. package/src/components/table-handle/table-handle-row-menu-trigger.gen.ts +3 -13
  88. package/src/components/table-handle/table-handle-row-popup.gen.ts +3 -13
  89. package/src/components/table-handle/table-handle-row-positioner.gen.ts +3 -13
  90. package/src/components/tooltip/index.gen.ts +1 -3
  91. package/src/components/tooltip/tooltip-popup.gen.ts +3 -13
  92. package/src/components/tooltip/tooltip-positioner.gen.ts +3 -13
  93. package/src/components/tooltip/tooltip-root.gen.ts +3 -13
  94. package/src/components/tooltip/tooltip-trigger.gen.ts +3 -13
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerMenuPopupElement, type MenuPopupProps as MenuPopupElementProps } from '@prosekit/web/menu';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link MenuPopup} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link MenuPopup} Vue component. */
13
7
  export interface MenuPopupProps {
14
8
  /**
15
9
  * By default, the MenuPopup element will listen for keydown events.
@@ -20,11 +14,7 @@ export interface MenuPopupProps {
20
14
  eventTarget?: MenuPopupElementProps['eventTarget'];
21
15
  }
22
16
 
23
- /**
24
- * A Vue component that renders an `prosekit-menu-popup` custom element.
25
- *
26
- * @public
27
- */
17
+ /** A Vue component that renders an `prosekit-menu-popup` custom element. */
28
18
  export const MenuPopup: DefineSetupFnComponent<MenuPopupProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<MenuPopupProps & HTMLAttributes>(
29
19
  (props, { slots }) => {
30
20
  registerMenuPopupElement();
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerMenuPositionerElement, type MenuPositionerProps as MenuPositionerElementProps } from '@prosekit/web/menu';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link MenuPositioner} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link MenuPositioner} Vue component. */
13
7
  export interface MenuPositionerProps {
14
8
  /**
15
9
  * The initial placement of the floating element
@@ -140,11 +134,7 @@ export interface MenuPositionerProps {
140
134
  altBoundary?: MenuPositionerElementProps['altBoundary'];
141
135
  }
142
136
 
143
- /**
144
- * A Vue component that renders an `prosekit-menu-positioner` custom element.
145
- *
146
- * @public
147
- */
137
+ /** A Vue component that renders an `prosekit-menu-positioner` custom element. */
148
138
  export const MenuPositioner: DefineSetupFnComponent<MenuPositionerProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<MenuPositionerProps & HTMLAttributes>(
149
139
  (props, { slots }) => {
150
140
  registerMenuPositionerElement();
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerMenuRootElement, type MenuRootEvents, type MenuRootProps as MenuRootElementProps } from '@prosekit/web/menu';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link MenuRoot} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link MenuRoot} Vue component. */
13
7
  export interface MenuRootProps {
14
8
  /**
15
9
  * Whether the overlay is initially open.
@@ -30,11 +24,7 @@ export interface MenuRootProps {
30
24
  onOpenChange?: (event: MenuRootEvents['openChange']) => void;
31
25
  }
32
26
 
33
- /**
34
- * A Vue component that renders an `prosekit-menu-root` custom element.
35
- *
36
- * @public
37
- */
27
+ /** A Vue component that renders an `prosekit-menu-root` custom element. */
38
28
  export const MenuRoot: DefineSetupFnComponent<MenuRootProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<MenuRootProps & HTMLAttributes>(
39
29
  (props, { slots }) => {
40
30
  registerMenuRootElement();
@@ -1,29 +1,76 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
4
-
5
- import { registerMenuSubmenuRootElement } from '@prosekit/web/menu';
6
- import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes } from 'vue';
7
-
8
- /**
9
- * Props for the {@link MenuSubmenuRoot} Vue component.
10
- *
11
- * @public
12
- */
13
- export interface MenuSubmenuRootProps {}
14
-
15
- /**
16
- * A Vue component that renders an `prosekit-menu-submenu-root` custom element.
17
- *
18
- * @public
19
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
2
+
3
+ import { registerMenuSubmenuRootElement, type MenuSubmenuRootEvents, type MenuSubmenuRootProps as MenuSubmenuRootElementProps } from '@prosekit/web/menu';
4
+ import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
5
+
6
+ /** Props for the {@link MenuSubmenuRoot} Vue component. */
7
+ export interface MenuSubmenuRootProps {
8
+ /**
9
+ * Whether the overlay is initially open.
10
+ * @default false
11
+ */
12
+ defaultOpen?: MenuSubmenuRootElementProps['defaultOpen'];
13
+ /**
14
+ * Whether the overlay is currently open.
15
+ * @default null
16
+ */
17
+ open?: MenuSubmenuRootElementProps['open'];
18
+ /**
19
+ * Whether the component should ignore user interaction.
20
+ * @default false
21
+ */
22
+ disabled?: MenuSubmenuRootElementProps['disabled'];
23
+ /** Emitted when the submenu is opened or closed. */
24
+ onOpenChange?: (event: MenuSubmenuRootEvents['openChange']) => void;
25
+ }
26
+
27
+ /** A Vue component that renders an `prosekit-menu-submenu-root` custom element. */
20
28
  export const MenuSubmenuRoot: DefineSetupFnComponent<MenuSubmenuRootProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<MenuSubmenuRootProps & HTMLAttributes>(
21
29
  (props, { slots }) => {
22
30
  registerMenuSubmenuRootElement();
23
31
 
32
+ const elementRef = shallowRef<HTMLElement | null>(null);
33
+
34
+ const splittedProps = computed(() => {
35
+ const { defaultOpen: p0, disabled: p1, open: p2, onOpenChange: e0, ...restProps } = props;
36
+ return [[p0, p1, p2, e0], restProps] as const;
37
+ });
38
+
39
+ const handlers: Array<((event: any) => void) | undefined> = [];
40
+
41
+ watchEffect(() => {
42
+ const element = elementRef.value;
43
+ if (!element) return;
44
+
45
+ const [p0, p1, p2, e0] = splittedProps.value[0];
46
+
47
+ Object.assign(element, { defaultOpen: p0, disabled: p1, open: p2 });
48
+
49
+ handlers.length = 0;
50
+ handlers.push(e0);
51
+ });
52
+
53
+ watchEffect(() => {
54
+ const element = elementRef.value;
55
+ if (!element) return;
56
+
57
+ const ac = new AbortController();
58
+ for (const [index, eventName] of ['openChange'].entries()) {
59
+ element.addEventListener(
60
+ eventName,
61
+ (event: Event) => {
62
+ handlers[index]?.(event);
63
+ },
64
+ { signal: ac.signal },
65
+ );
66
+ }
67
+ return () => ac.abort();
68
+ });
69
+
24
70
  return () => {
25
- return h('prosekit-menu-submenu-root', props, slots.default?.());
71
+ const restProps = splittedProps.value[1];
72
+ return h('prosekit-menu-submenu-root', { ...restProps, ref: elementRef }, slots.default?.());
26
73
  };
27
74
  },
28
- { props: [] },
75
+ { props: ['defaultOpen', 'disabled', 'open', 'onOpenChange'] },
29
76
  );
@@ -1,29 +1,49 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
4
-
5
- import { registerMenuSubmenuTriggerElement } from '@prosekit/web/menu';
6
- import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes } from 'vue';
7
-
8
- /**
9
- * Props for the {@link MenuSubmenuTrigger} Vue component.
10
- *
11
- * @public
12
- */
13
- export interface MenuSubmenuTriggerProps {}
14
-
15
- /**
16
- * A Vue component that renders an `prosekit-menu-submenu-trigger` custom element.
17
- *
18
- * @public
19
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
2
+
3
+ import { registerMenuSubmenuTriggerElement, type MenuSubmenuTriggerProps as MenuSubmenuTriggerElementProps } from '@prosekit/web/menu';
4
+ import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
5
+
6
+ /** Props for the {@link MenuSubmenuTrigger} Vue component. */
7
+ export interface MenuSubmenuTriggerProps {
8
+ /**
9
+ * The unique value for this submenu trigger in the parent menu.
10
+ *
11
+ * @default ""
12
+ */
13
+ value?: MenuSubmenuTriggerElementProps['value'];
14
+ /**
15
+ * Whether this submenu trigger is disabled.
16
+ *
17
+ * @default false
18
+ */
19
+ disabled?: MenuSubmenuTriggerElementProps['disabled'];
20
+ }
21
+
22
+ /** A Vue component that renders an `prosekit-menu-submenu-trigger` custom element. */
20
23
  export const MenuSubmenuTrigger: DefineSetupFnComponent<MenuSubmenuTriggerProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<MenuSubmenuTriggerProps & HTMLAttributes>(
21
24
  (props, { slots }) => {
22
25
  registerMenuSubmenuTriggerElement();
23
26
 
27
+ const elementRef = shallowRef<HTMLElement | null>(null);
28
+
29
+ const splittedProps = computed(() => {
30
+ const { disabled: p0, value: p1, ...restProps } = props;
31
+ return [[p0, p1], restProps] as const;
32
+ });
33
+
34
+ watchEffect(() => {
35
+ const element = elementRef.value;
36
+ if (!element) return;
37
+
38
+ const [p0, p1] = splittedProps.value[0];
39
+
40
+ Object.assign(element, { disabled: p0, value: p1 });
41
+ });
42
+
24
43
  return () => {
25
- return h('prosekit-menu-submenu-trigger', props, slots.default?.());
44
+ const restProps = splittedProps.value[1];
45
+ return h('prosekit-menu-submenu-trigger', { ...restProps, ref: elementRef }, slots.default?.());
26
46
  };
27
47
  },
28
- { props: [] },
48
+ { props: ['disabled', 'value'] },
29
49
  );
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerMenuTriggerElement, type MenuTriggerEvents, type MenuTriggerProps as MenuTriggerElementProps } from '@prosekit/web/menu';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link MenuTrigger} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link MenuTrigger} Vue component. */
13
7
  export interface MenuTriggerProps {
14
8
  /**
15
9
  * Whether the component should ignore user interaction.
@@ -21,11 +15,7 @@ export interface MenuTriggerProps {
21
15
  onOpenChange?: (event: MenuTriggerEvents['openChange']) => void;
22
16
  }
23
17
 
24
- /**
25
- * A Vue component that renders an `prosekit-menu-trigger` custom element.
26
- *
27
- * @public
28
- */
18
+ /** A Vue component that renders an `prosekit-menu-trigger` custom element. */
29
19
  export const MenuTrigger: DefineSetupFnComponent<MenuTriggerProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<MenuTriggerProps & HTMLAttributes>(
30
20
  (props, { slots }) => {
31
21
  registerMenuTriggerElement();
@@ -1,6 +1,4 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  export { PopoverPopup, type PopoverPopupProps } from './popover-popup.gen.ts';
6
4
 
@@ -1,22 +1,12 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerPopoverPopupElement } from '@prosekit/web/popover';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link PopoverPopup} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link PopoverPopup} Vue component. */
13
7
  export interface PopoverPopupProps {}
14
8
 
15
- /**
16
- * A Vue component that renders an `prosekit-popover-popup` custom element.
17
- *
18
- * @public
19
- */
9
+ /** A Vue component that renders an `prosekit-popover-popup` custom element. */
20
10
  export const PopoverPopup: DefineSetupFnComponent<PopoverPopupProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<PopoverPopupProps & HTMLAttributes>(
21
11
  (props, { slots }) => {
22
12
  registerPopoverPopupElement();
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerPopoverPositionerElement, type PopoverPositionerProps as PopoverPositionerElementProps } from '@prosekit/web/popover';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link PopoverPositioner} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link PopoverPositioner} Vue component. */
13
7
  export interface PopoverPositionerProps {
14
8
  /**
15
9
  * The strategy to use for positioning
@@ -140,11 +134,7 @@ export interface PopoverPositionerProps {
140
134
  altBoundary?: PopoverPositionerElementProps['altBoundary'];
141
135
  }
142
136
 
143
- /**
144
- * A Vue component that renders an `prosekit-popover-positioner` custom element.
145
- *
146
- * @public
147
- */
137
+ /** A Vue component that renders an `prosekit-popover-positioner` custom element. */
148
138
  export const PopoverPositioner: DefineSetupFnComponent<PopoverPositionerProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<PopoverPositionerProps & HTMLAttributes>(
149
139
  (props, { slots }) => {
150
140
  registerPopoverPositionerElement();
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerPopoverRootElement, type PopoverRootEvents, type PopoverRootProps as PopoverRootElementProps } from '@prosekit/web/popover';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link PopoverRoot} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link PopoverRoot} Vue component. */
13
7
  export interface PopoverRootProps {
14
8
  /**
15
9
  * Whether the popover should be modal.
@@ -37,11 +31,7 @@ export interface PopoverRootProps {
37
31
  onOpenChange?: (event: PopoverRootEvents['openChange']) => void;
38
32
  }
39
33
 
40
- /**
41
- * A Vue component that renders an `prosekit-popover-root` custom element.
42
- *
43
- * @public
44
- */
34
+ /** A Vue component that renders an `prosekit-popover-root` custom element. */
45
35
  export const PopoverRoot: DefineSetupFnComponent<PopoverRootProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<PopoverRootProps & HTMLAttributes>(
46
36
  (props, { slots }) => {
47
37
  registerPopoverRootElement();
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerPopoverTriggerElement, type PopoverTriggerEvents, type PopoverTriggerProps as PopoverTriggerElementProps } from '@prosekit/web/popover';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link PopoverTrigger} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link PopoverTrigger} Vue component. */
13
7
  export interface PopoverTriggerProps {
14
8
  /**
15
9
  * Whether the component should ignore user interaction.
@@ -37,11 +31,7 @@ export interface PopoverTriggerProps {
37
31
  onOpenChange?: (event: PopoverTriggerEvents['openChange']) => void;
38
32
  }
39
33
 
40
- /**
41
- * A Vue component that renders an `prosekit-popover-trigger` custom element.
42
- *
43
- * @public
44
- */
34
+ /** A Vue component that renders an `prosekit-popover-trigger` custom element. */
45
35
  export const PopoverTrigger: DefineSetupFnComponent<PopoverTriggerProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<PopoverTriggerProps & HTMLAttributes>(
46
36
  (props, { slots }) => {
47
37
  registerPopoverTriggerElement();
@@ -1,6 +1,4 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  export { ResizableRoot, type ResizableRootProps } from './resizable-root.gen.ts';
6
4
 
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerResizableHandleElement, type ResizableHandleProps as ResizableHandleElementProps } from '@prosekit/web/resizable';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link ResizableHandle} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link ResizableHandle} Vue component. */
13
7
  export interface ResizableHandleProps {
14
8
  /**
15
9
  * The position of the handle.
@@ -19,11 +13,7 @@ export interface ResizableHandleProps {
19
13
  position?: ResizableHandleElementProps['position'];
20
14
  }
21
15
 
22
- /**
23
- * A Vue component that renders an `prosekit-resizable-handle` custom element.
24
- *
25
- * @public
26
- */
16
+ /** A Vue component that renders an `prosekit-resizable-handle` custom element. */
27
17
  export const ResizableHandle: DefineSetupFnComponent<ResizableHandleProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<ResizableHandleProps & HTMLAttributes>(
28
18
  (props, { slots }) => {
29
19
  registerResizableHandleElement();
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerResizableRootElement, type ResizableRootEvents, type ResizableRootProps as ResizableRootElementProps } from '@prosekit/web/resizable';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link ResizableRoot} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link ResizableRoot} Vue component. */
13
7
  export interface ResizableRootProps {
14
8
  /**
15
9
  * The width of the resizable element.
@@ -35,11 +29,7 @@ export interface ResizableRootProps {
35
29
  onResizeEnd?: (event: ResizableRootEvents['resizeEnd']) => void;
36
30
  }
37
31
 
38
- /**
39
- * A Vue component that renders an `prosekit-resizable-root` custom element.
40
- *
41
- * @public
42
- */
32
+ /** A Vue component that renders an `prosekit-resizable-root` custom element. */
43
33
  export const ResizableRoot: DefineSetupFnComponent<ResizableRootProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<ResizableRootProps & HTMLAttributes>(
44
34
  (props, { slots }) => {
45
35
  registerResizableRootElement();
@@ -1,6 +1,4 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  export { TableHandleColumnPopup, type TableHandleColumnPopupProps } from './table-handle-column-popup.gen.ts';
6
4
 
@@ -1,15 +1,9 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleColumnMenuRootElement, type TableHandleColumnMenuRootProps as TableHandleColumnMenuRootElementProps } from '@prosekit/web/table-handle';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link TableHandleColumnMenuRoot} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link TableHandleColumnMenuRoot} Vue component. */
13
7
  export interface TableHandleColumnMenuRootProps {
14
8
  /**
15
9
  * Whether the overlay is initially open.
@@ -28,11 +22,7 @@ export interface TableHandleColumnMenuRootProps {
28
22
  disabled?: TableHandleColumnMenuRootElementProps['disabled'];
29
23
  }
30
24
 
31
- /**
32
- * A Vue component that renders an `prosekit-table-handle-column-menu-root` custom element.
33
- *
34
- * @public
35
- */
25
+ /** A Vue component that renders an `prosekit-table-handle-column-menu-root` custom element. */
36
26
  export const TableHandleColumnMenuRoot: DefineSetupFnComponent<TableHandleColumnMenuRootProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<TableHandleColumnMenuRootProps & HTMLAttributes>(
37
27
  (props, { slots }) => {
38
28
  registerTableHandleColumnMenuRootElement();
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleColumnMenuTriggerElement, type TableHandleColumnMenuTriggerProps as TableHandleColumnMenuTriggerElementProps } from '@prosekit/web/table-handle';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
6
  import { useEditorContext } from '../../injection/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link TableHandleColumnMenuTrigger} Vue component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link TableHandleColumnMenuTrigger} Vue component. */
15
9
  export interface TableHandleColumnMenuTriggerProps {
16
10
  /**
17
11
  * @default null
@@ -20,11 +14,7 @@ export interface TableHandleColumnMenuTriggerProps {
20
14
  editor?: TableHandleColumnMenuTriggerElementProps['editor'];
21
15
  }
22
16
 
23
- /**
24
- * A Vue component that renders an `prosekit-table-handle-column-menu-trigger` custom element.
25
- *
26
- * @public
27
- */
17
+ /** A Vue component that renders an `prosekit-table-handle-column-menu-trigger` custom element. */
28
18
  export const TableHandleColumnMenuTrigger: DefineSetupFnComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<TableHandleColumnMenuTriggerProps & HTMLAttributes>(
29
19
  (props, { slots }) => {
30
20
  registerTableHandleColumnMenuTriggerElement();
@@ -1,22 +1,12 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleColumnPopupElement } from '@prosekit/web/table-handle';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes } from 'vue';
7
5
 
8
- /**
9
- * Props for the {@link TableHandleColumnPopup} Vue component.
10
- *
11
- * @public
12
- */
6
+ /** Props for the {@link TableHandleColumnPopup} Vue component. */
13
7
  export interface TableHandleColumnPopupProps {}
14
8
 
15
- /**
16
- * A Vue component that renders an `prosekit-table-handle-column-popup` custom element.
17
- *
18
- * @public
19
- */
9
+ /** A Vue component that renders an `prosekit-table-handle-column-popup` custom element. */
20
10
  export const TableHandleColumnPopup: DefineSetupFnComponent<TableHandleColumnPopupProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<TableHandleColumnPopupProps & HTMLAttributes>(
21
11
  (props, { slots }) => {
22
12
  registerTableHandleColumnPopupElement();
@@ -1,17 +1,11 @@
1
- /**
2
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
3
- */
1
+ // This file is auto-generated by "@aria-ui/cli". Do not edit this file directly.
4
2
 
5
3
  import { registerTableHandleColumnPositionerElement, type TableHandleColumnPositionerProps as TableHandleColumnPositionerElementProps } from '@prosekit/web/table-handle';
6
4
  import { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';
7
5
 
8
6
  import { useEditorContext } from '../../injection/editor-context.ts';
9
7
 
10
- /**
11
- * Props for the {@link TableHandleColumnPositioner} Vue component.
12
- *
13
- * @public
14
- */
8
+ /** Props for the {@link TableHandleColumnPositioner} Vue component. */
15
9
  export interface TableHandleColumnPositionerProps {
16
10
  /**
17
11
  * The placement of the popover, relative to the hovered table cell.
@@ -141,11 +135,7 @@ export interface TableHandleColumnPositionerProps {
141
135
  editor?: TableHandleColumnPositionerElementProps['editor'];
142
136
  }
143
137
 
144
- /**
145
- * A Vue component that renders an `prosekit-table-handle-column-positioner` custom element.
146
- *
147
- * @public
148
- */
138
+ /** A Vue component that renders an `prosekit-table-handle-column-positioner` custom element. */
149
139
  export const TableHandleColumnPositioner: DefineSetupFnComponent<TableHandleColumnPositionerProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<TableHandleColumnPositionerProps & HTMLAttributes>(
150
140
  (props, { slots }) => {
151
141
  registerTableHandleColumnPositionerElement();