@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,5 +1,4 @@
1
1
  import { inject, provide } from "vue";
2
- //#region src/injection/editor-context.ts
3
2
  const symbol = Symbol("prosekit-vue-editor-context");
4
3
  /**
5
4
  * @internal
@@ -13,7 +12,6 @@ function provideEditor(editor) {
13
12
  function useEditorContext() {
14
13
  return inject(symbol, void 0);
15
14
  }
16
- //#endregion
17
15
  export { useEditorContext as n, provideEditor as t };
18
16
 
19
17
  //# sourceMappingURL=editor-context.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"editor-context.js","names":[],"sources":["../src/injection/editor-context.ts"],"sourcesContent":["import type { Editor, Extension } from '@prosekit/core'\nimport { inject, provide, type InjectionKey } from 'vue'\n\nconst symbol = Symbol('prosekit-vue-editor-context') as InjectionKey<Editor>\n\n/**\n * @internal\n */\nexport function provideEditor(editor: Editor): void {\n provide(symbol, editor)\n}\n\n/**\n * @internal\n */\nexport function useEditorContext<E extends Extension>(): Editor<E> | undefined {\n return inject(symbol, undefined)\n}\n"],"mappings":";;AAGA,MAAM,SAAS,OAAO,8BAA8B;;;;AAKpD,SAAgB,cAAc,QAAsB;AAClD,SAAQ,QAAQ,OAAO;;;;;AAMzB,SAAgB,mBAA+D;AAC7E,QAAO,OAAO,QAAQ,KAAA,EAAU"}
1
+ {"version":3,"file":"editor-context.js","names":[],"sources":["../src/injection/editor-context.ts"],"sourcesContent":["import type { Editor, Extension } from '@prosekit/core'\nimport { inject, provide, type InjectionKey } from 'vue'\n\nconst symbol = Symbol('prosekit-vue-editor-context') as InjectionKey<Editor>\n\n/**\n * @internal\n */\nexport function provideEditor(editor: Editor): void {\n provide(symbol, editor)\n}\n\n/**\n * @internal\n */\nexport function useEditorContext<E extends Extension>(): Editor<E> | undefined {\n return inject(symbol, undefined)\n}\n"],"mappings":";AAGA,MAAM,SAAS,OAAO,8BAA8B;;;;AAKpD,SAAgB,cAAc,QAAsB;AAClD,SAAQ,QAAQ,OAAO;;;;;AAMzB,SAAgB,mBAA+D;AAC7E,QAAO,OAAO,QAAQ,KAAA,EAAU"}
@@ -1,26 +1,10 @@
1
1
  import { DefineSetupFnComponent, HTMLAttributes } from "vue";
2
2
  import { AutocompleteItemEvents, AutocompleteItemProps as AutocompleteItemProps$1, AutocompletePopupEvents, AutocompletePositionerProps as AutocompletePositionerProps$1, AutocompleteRootEvents, AutocompleteRootProps as AutocompleteRootProps$1 } from "@prosekit/web/autocomplete";
3
-
4
- //#region src/components/autocomplete/autocomplete-empty.gen.d.ts
5
- /**
6
- * Props for the {@link AutocompleteEmpty} Vue component.
7
- *
8
- * @public
9
- */
3
+ /** Props for the {@link AutocompleteEmpty} Vue component. */
10
4
  interface AutocompleteEmptyProps {}
11
- /**
12
- * A Vue component that renders an `prosekit-autocomplete-empty` custom element.
13
- *
14
- * @public
15
- */
5
+ /** A Vue component that renders an `prosekit-autocomplete-empty` custom element. */
16
6
  declare const AutocompleteEmpty: DefineSetupFnComponent<AutocompleteEmptyProps & HTMLAttributes>;
17
- //#endregion
18
- //#region src/components/autocomplete/autocomplete-item.gen.d.ts
19
- /**
20
- * Props for the {@link AutocompleteItem} Vue component.
21
- *
22
- * @public
23
- */
7
+ /** Props for the {@link AutocompleteItem} Vue component. */
24
8
  interface AutocompleteItemProps {
25
9
  /**
26
10
  * The value of the item, which will be matched against the query.
@@ -39,19 +23,9 @@ interface AutocompleteItemProps {
39
23
  /** Emitted when the the item is selected. */
40
24
  onSelect?: (event: AutocompleteItemEvents['select']) => void;
41
25
  }
42
- /**
43
- * A Vue component that renders an `prosekit-autocomplete-item` custom element.
44
- *
45
- * @public
46
- */
26
+ /** A Vue component that renders an `prosekit-autocomplete-item` custom element. */
47
27
  declare const AutocompleteItem: DefineSetupFnComponent<AutocompleteItemProps & HTMLAttributes>;
48
- //#endregion
49
- //#region src/components/autocomplete/autocomplete-popup.gen.d.ts
50
- /**
51
- * Props for the {@link AutocompletePopup} Vue component.
52
- *
53
- * @public
54
- */
28
+ /** Props for the {@link AutocompletePopup} Vue component. */
55
29
  interface AutocompletePopupProps {
56
30
  /**
57
31
  * Emitted when the selected value changes. Only available when multiple is
@@ -64,19 +38,9 @@ interface AutocompletePopupProps {
64
38
  */
65
39
  onValuesChange?: (event: AutocompletePopupEvents['valuesChange']) => void;
66
40
  }
67
- /**
68
- * A Vue component that renders an `prosekit-autocomplete-popup` custom element.
69
- *
70
- * @public
71
- */
41
+ /** A Vue component that renders an `prosekit-autocomplete-popup` custom element. */
72
42
  declare const AutocompletePopup: DefineSetupFnComponent<AutocompletePopupProps & HTMLAttributes>;
73
- //#endregion
74
- //#region src/components/autocomplete/autocomplete-positioner.gen.d.ts
75
- /**
76
- * Props for the {@link AutocompletePositioner} Vue component.
77
- *
78
- * @public
79
- */
43
+ /** Props for the {@link AutocompletePositioner} Vue component. */
80
44
  interface AutocompletePositionerProps {
81
45
  /**
82
46
  * The placement of the popover, relative to the text cursor.
@@ -181,19 +145,9 @@ interface AutocompletePositionerProps {
181
145
  */
182
146
  altBoundary?: AutocompletePositionerProps$1['altBoundary'];
183
147
  }
184
- /**
185
- * A Vue component that renders an `prosekit-autocomplete-positioner` custom element.
186
- *
187
- * @public
188
- */
148
+ /** A Vue component that renders an `prosekit-autocomplete-positioner` custom element. */
189
149
  declare const AutocompletePositioner: DefineSetupFnComponent<AutocompletePositionerProps & HTMLAttributes>;
190
- //#endregion
191
- //#region src/components/autocomplete/autocomplete-root.gen.d.ts
192
- /**
193
- * Props for the {@link AutocompleteRoot} Vue component.
194
- *
195
- * @public
196
- */
150
+ /** Props for the {@link AutocompleteRoot} Vue component. */
197
151
  interface AutocompleteRootProps {
198
152
  /**
199
153
  * The ProseKit editor instance.
@@ -230,12 +184,7 @@ interface AutocompleteRootProps {
230
184
  */
231
185
  onValuesChange?: (event: AutocompleteRootEvents['valuesChange']) => void;
232
186
  }
233
- /**
234
- * A Vue component that renders an `prosekit-autocomplete-root` custom element.
235
- *
236
- * @public
237
- */
187
+ /** A Vue component that renders an `prosekit-autocomplete-root` custom element. */
238
188
  declare const AutocompleteRoot: DefineSetupFnComponent<AutocompleteRootProps & HTMLAttributes>;
239
- //#endregion
240
189
  export { AutocompleteEmpty, type AutocompleteEmptyProps, AutocompleteItem, type AutocompleteItemProps, AutocompletePopup, type AutocompletePopupProps, AutocompletePositioner, type AutocompletePositionerProps, AutocompleteRoot, type AutocompleteRootProps };
241
190
  //# sourceMappingURL=prosekit-vue-autocomplete.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-vue-autocomplete.d.ts","names":[],"sources":["../src/components/autocomplete/autocomplete-empty.gen.ts","../src/components/autocomplete/autocomplete-item.gen.ts","../src/components/autocomplete/autocomplete-popup.gen.ts","../src/components/autocomplete/autocomplete-positioner.gen.ts","../src/components/autocomplete/autocomplete-root.gen.ts"],"mappings":";;;;AAYA;;;;;AAAA,UAAiB,sBAAA;;;;;;cAOJ,iBAAA,EAAmB,sBAAA,CAAuB,sBAAA,GAAyB,cAAA;;;;;;;AAAhF;UCPiB,qBAAA;;;;;;;;EAQf,KAAA,GAAQ,uBAAA;EDDsE;;;;;ECO9E,QAAA,GAAW,uBAAA;EAdI;EAgBf,QAAA,IAAY,KAAA,EAAO,sBAAA;AAAA;;;;;;cAQR,gBAAA,EAAkB,sBAAA,CAAuB,qBAAA,GAAwB,cAAA;;;;;;;ADjB9E;UEPiB,sBAAA;;;;;EAKf,aAAA,IAAiB,KAAA,EAAO,uBAAA;EFE4B;;;;EEGpD,cAAA,IAAkB,KAAA,EAAO,uBAAA;AAAA;;;;ADV3B;;cCkBa,iBAAA,EAAmB,sBAAA,CAAuB,sBAAA,GAAyB,cAAA;;;;;;;AFXhF;UGPiB,2BAAA;;;;;;EAMf,SAAA,GAAY,6BAAA;EHCkB;;;;;EGK9B,MAAA,GAAS,6BAAA;;EAET,MAAA,GAAS,6BAAA;EFdM;EEgBf,KAAA,GAAQ,6BAAA;;EAER,WAAA,GAAc,6BAAA;EFJH;EEMX,QAAA,GAAW,6BAAA;EFJ8B;EEMzC,eAAA,GAAkB,6BAAA;EFdlB;;;;;EEoBA,QAAA,GAAW,6BAAA;EFZC;;;AAQd;;;;EEYE,UAAA,GAAa,6BAAA;EFZgB;;;;;;;;EEqB7B,IAAA,GAAO,6BAAA;;;AD7CT;;;ECmDE,KAAA,GAAQ,6BAAA;ED9CR;;;;;;ECqDA,OAAA,GAAU,6BAAA;EDhDsD;AAQlE;;;;;EC+CE,SAAA,GAAY,6BAAA;ED/CwC;;;;;;ECsDpD,UAAA,GAAa,6BAAA;;;;AAxEf;;;EA+EE,IAAA,GAAO,6BAAA;EAnEE;;;;;;EA0ET,YAAA,GAAe,6BAAA;EAlDF;;;;;;;EA0Db,cAAA,GAAiB,6BAAA;EAAA;;;;;;;EAQjB,WAAA,GAAc,6BAAA;AAAA;;;;;;cAQH,sBAAA,EAAwB,sBAAA,CAAuB,2BAAA,GAA8B,cAAA;;;;;;;AHvG1F;UILiB,qBAAA;;;;;;;EAOf,MAAA,GAAS,uBAAA;EJF4C;;;;;EIQrD,KAAA,GAAQ,uBAAA;;AHfV;;;;;EGsBE,MAAA,GAAS,uBAAA;EHNgC;EGQzC,YAAA,IAAgB,KAAA,EAAO,sBAAA;EHhBvB;EGkBA,aAAA,IAAiB,KAAA,EAAO,sBAAA;EHZxB;;;;EGiBA,aAAA,IAAiB,KAAA,EAAO,sBAAA;EHf2B;;AAQrD;;EGYE,cAAA,IAAkB,KAAA,EAAO,sBAAA;AAAA;;;;;;cAQd,gBAAA,EAAkB,sBAAA,CAAuB,qBAAA,GAAwB,cAAA"}
1
+ {"version":3,"file":"prosekit-vue-autocomplete.d.ts","names":[],"sources":["../src/components/autocomplete/autocomplete-empty.gen.ts","../src/components/autocomplete/autocomplete-item.gen.ts","../src/components/autocomplete/autocomplete-popup.gen.ts","../src/components/autocomplete/autocomplete-positioner.gen.ts","../src/components/autocomplete/autocomplete-root.gen.ts"],"mappings":";;;UAMiB,sBAAA;;cAGJ,iBAAA,EAAmB,sBAAA,CAAuB,sBAAA,GAAyB,cAAA;;UCH/D,qBAAA;EDAsB;;;;AAGvC;;;ECKE,KAAA,GAAQ,uBAAA;EDLsE;;;;;ECW9E,QAAA,GAAW,uBA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A,EAAO,sBAAA;EHVZ;EGYX,aAAA,IAAiB,KAAA,EAAO,sBAAA;EHViB;;;;EGezC,aAAA,IAAiB,KAAA,EAAO,sBAAA;EHjBb;;;;EGsBX,cAAA,IAAkB,KAAA,EAAO,sBAAA;AAAA;AHhB3B;AAAA,cGoBa,gBAAA,EAAkB,sBAAA,CAAuB,qBAAA,GAAwB,cAAA"}
@@ -1,31 +1,14 @@
1
1
  import { n as useEditorContext } from "./editor-context.js";
2
2
  import { computed, defineComponent, h, shallowRef, watchEffect } from "vue";
3
3
  import { registerAutocompleteEmptyElement, registerAutocompleteItemElement, registerAutocompletePopupElement, registerAutocompletePositionerElement, registerAutocompleteRootElement } from "@prosekit/web/autocomplete";
4
- //#region src/components/autocomplete/autocomplete-empty.gen.ts
5
- /**
6
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
7
- */
8
- /**
9
- * A Vue component that renders an `prosekit-autocomplete-empty` custom element.
10
- *
11
- * @public
12
- */
4
+ /** A Vue component that renders an `prosekit-autocomplete-empty` custom element. */
13
5
  const AutocompleteEmpty = /* @__PURE__ */ defineComponent((props, { slots }) => {
14
6
  registerAutocompleteEmptyElement();
15
7
  return () => {
16
8
  return h("prosekit-autocomplete-empty", props, slots.default?.());
17
9
  };
18
10
  }, { props: [] });
19
- //#endregion
20
- //#region src/components/autocomplete/autocomplete-item.gen.ts
21
- /**
22
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
23
- */
24
- /**
25
- * A Vue component that renders an `prosekit-autocomplete-item` custom element.
26
- *
27
- * @public
28
- */
11
+ /** A Vue component that renders an `prosekit-autocomplete-item` custom element. */
29
12
  const AutocompleteItem = /* @__PURE__ */ defineComponent((props, { slots }) => {
30
13
  registerAutocompleteItemElement();
31
14
  const elementRef = shallowRef(null);
@@ -70,16 +53,7 @@ const AutocompleteItem = /* @__PURE__ */ defineComponent((props, { slots }) => {
70
53
  "value",
71
54
  "onSelect"
72
55
  ] });
73
- //#endregion
74
- //#region src/components/autocomplete/autocomplete-popup.gen.ts
75
- /**
76
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
77
- */
78
- /**
79
- * A Vue component that renders an `prosekit-autocomplete-popup` custom element.
80
- *
81
- * @public
82
- */
56
+ /** A Vue component that renders an `prosekit-autocomplete-popup` custom element. */
83
57
  const AutocompletePopup = /* @__PURE__ */ defineComponent((props, { slots }) => {
84
58
  registerAutocompletePopupElement();
85
59
  const elementRef = shallowRef(null);
@@ -112,16 +86,7 @@ const AutocompletePopup = /* @__PURE__ */ defineComponent((props, { slots }) =>
112
86
  }, slots.default?.());
113
87
  };
114
88
  }, { props: ["onValueChange", "onValuesChange"] });
115
- //#endregion
116
- //#region src/components/autocomplete/autocomplete-positioner.gen.ts
117
- /**
118
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
119
- */
120
- /**
121
- * A Vue component that renders an `prosekit-autocomplete-positioner` custom element.
122
- *
123
- * @public
124
- */
89
+ /** A Vue component that renders an `prosekit-autocomplete-positioner` custom element. */
125
90
  const AutocompletePositioner = /* @__PURE__ */ defineComponent((props, { slots }) => {
126
91
  registerAutocompletePositionerElement();
127
92
  const elementRef = shallowRef(null);
@@ -200,16 +165,7 @@ const AutocompletePositioner = /* @__PURE__ */ defineComponent((props, { slots }
200
165
  "shift",
201
166
  "strategy"
202
167
  ] });
203
- //#endregion
204
- //#region src/components/autocomplete/autocomplete-root.gen.ts
205
- /**
206
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
207
- */
208
- /**
209
- * A Vue component that renders an `prosekit-autocomplete-root` custom element.
210
- *
211
- * @public
212
- */
168
+ /** A Vue component that renders an `prosekit-autocomplete-root` custom element. */
213
169
  const AutocompleteRoot = /* @__PURE__ */ defineComponent((props, { slots }) => {
214
170
  registerAutocompleteRootElement();
215
171
  const elementRef = shallowRef(null);
@@ -272,7 +228,6 @@ const AutocompleteRoot = /* @__PURE__ */ defineComponent((props, { slots }) => {
272
228
  "onValueChange",
273
229
  "onValuesChange"
274
230
  ] });
275
- //#endregion
276
231
  export { AutocompleteEmpty, AutocompleteItem, AutocompletePopup, AutocompletePositioner, AutocompleteRoot };
277
232
 
278
233
  //# sourceMappingURL=prosekit-vue-autocomplete.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-vue-autocomplete.js","names":[],"sources":["../src/components/autocomplete/autocomplete-empty.gen.ts","../src/components/autocomplete/autocomplete-item.gen.ts","../src/components/autocomplete/autocomplete-popup.gen.ts","../src/components/autocomplete/autocomplete-positioner.gen.ts","../src/components/autocomplete/autocomplete-root.gen.ts"],"sourcesContent":["/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerAutocompleteEmptyElement } from '@prosekit/web/autocomplete';\nimport { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes } from 'vue';\n\n/**\n * Props for the {@link AutocompleteEmpty} Vue component.\n *\n * @public\n */\nexport interface AutocompleteEmptyProps {}\n\n/**\n * A Vue component that renders an `prosekit-autocomplete-empty` custom element.\n *\n * @public\n */\nexport const AutocompleteEmpty: DefineSetupFnComponent<AutocompleteEmptyProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<AutocompleteEmptyProps & HTMLAttributes>(\n (props, { slots }) => {\n registerAutocompleteEmptyElement();\n\n return () => {\n return h('prosekit-autocomplete-empty', props, slots.default?.());\n };\n },\n { props: [] },\n);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerAutocompleteItemElement, type AutocompleteItemEvents, type AutocompleteItemProps as AutocompleteItemElementProps } from '@prosekit/web/autocomplete';\nimport { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';\n\n/**\n * Props for the {@link AutocompleteItem} Vue component.\n *\n * @public\n */\nexport interface AutocompleteItemProps {\n /**\n * The value of the item, which will be matched against the query.\n *\n * If not provided, the value is the item's text content.\n *\n * @default \"\"\n */\n value?: AutocompleteItemElementProps['value'];\n /**\n * Whether this option is disabled.\n *\n * @default false\n */\n disabled?: AutocompleteItemElementProps['disabled'];\n /** Emitted when the the item is selected. */\n onSelect?: (event: AutocompleteItemEvents['select']) => void;\n}\n\n/**\n * A Vue component that renders an `prosekit-autocomplete-item` custom element.\n *\n * @public\n */\nexport const AutocompleteItem: DefineSetupFnComponent<AutocompleteItemProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<AutocompleteItemProps & HTMLAttributes>(\n (props, { slots }) => {\n registerAutocompleteItemElement();\n\n const elementRef = shallowRef<HTMLElement | null>(null);\n\n const splittedProps = computed(() => {\n const { disabled: p0, value: p1, onSelect: e0, ...restProps } = props;\n return [[p0, p1, e0], restProps] as const;\n });\n\n const handlers: Array<((event: any) => void) | undefined> = [];\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const [p0, p1, e0] = splittedProps.value[0];\n\n Object.assign(element, { disabled: p0, value: p1 });\n\n handlers.length = 0;\n handlers.push(e0);\n });\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const ac = new AbortController();\n for (const [index, eventName] of ['select'].entries()) {\n element.addEventListener(\n eventName,\n (event: Event) => {\n handlers[index]?.(event);\n },\n { signal: ac.signal },\n );\n }\n return () => ac.abort();\n });\n\n return () => {\n const restProps = splittedProps.value[1];\n return h('prosekit-autocomplete-item', { ...restProps, ref: elementRef }, slots.default?.());\n };\n },\n { props: ['disabled', 'value', 'onSelect'] },\n);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerAutocompletePopupElement, type AutocompletePopupEvents } from '@prosekit/web/autocomplete';\nimport { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';\n\n/**\n * Props for the {@link AutocompletePopup} Vue component.\n *\n * @public\n */\nexport interface AutocompletePopupProps {\n /**\n * Emitted when the selected value changes. Only available when multiple is\n * false.\n */\n onValueChange?: (event: AutocompletePopupEvents['valueChange']) => void;\n /**\n * Emitted when the selected values change. Only available when multiple is\n * true.\n */\n onValuesChange?: (event: AutocompletePopupEvents['valuesChange']) => void;\n}\n\n/**\n * A Vue component that renders an `prosekit-autocomplete-popup` custom element.\n *\n * @public\n */\nexport const AutocompletePopup: DefineSetupFnComponent<AutocompletePopupProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<AutocompletePopupProps & HTMLAttributes>(\n (props, { slots }) => {\n registerAutocompletePopupElement();\n\n const elementRef = shallowRef<HTMLElement | null>(null);\n\n const splittedProps = computed(() => {\n const { onValueChange: e0, onValuesChange: e1, ...restProps } = props;\n return [[e0, e1], restProps] as const;\n });\n\n const handlers: Array<((event: any) => void) | undefined> = [];\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const [e0, e1] = splittedProps.value[0];\n\n handlers.length = 0;\n handlers.push(e0);\n handlers.push(e1);\n });\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const ac = new AbortController();\n for (const [index, eventName] of ['valueChange', 'valuesChange'].entries()) {\n element.addEventListener(\n eventName,\n (event: Event) => {\n handlers[index]?.(event);\n },\n { signal: ac.signal },\n );\n }\n return () => ac.abort();\n });\n\n return () => {\n const restProps = splittedProps.value[1];\n return h('prosekit-autocomplete-popup', { ...restProps, ref: elementRef }, slots.default?.());\n };\n },\n { props: ['onValueChange', 'onValuesChange'] },\n);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerAutocompletePositionerElement, type AutocompletePositionerProps as AutocompletePositionerElementProps } from '@prosekit/web/autocomplete';\nimport { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';\n\n/**\n * Props for the {@link AutocompletePositioner} Vue component.\n *\n * @public\n */\nexport interface AutocompletePositionerProps {\n /**\n * The placement of the popover, relative to the text cursor.\n *\n * @default \"bottom-start\"\n */\n placement?: AutocompletePositionerElementProps['placement'];\n /**\n * The distance between the popover and the hovered block.\n *\n * @default 4\n */\n offset?: AutocompletePositionerElementProps['offset'];\n /** @default true */\n inline?: AutocompletePositionerElementProps['inline'];\n /** @default true */\n hoist?: AutocompletePositionerElementProps['hoist'];\n /** @default true */\n fitViewport?: AutocompletePositionerElementProps['fitViewport'];\n /** @default \"The body element\" */\n boundary?: AutocompletePositionerElementProps['boundary'];\n /** @default 8 */\n overflowPadding?: AutocompletePositionerElementProps['overflowPadding'];\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: AutocompletePositionerElementProps['strategy'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: AutocompletePositionerElementProps['autoUpdate'];\n /**\n * Whether to flip the `placement` in order to keep it in view when the\n * preferred placement(s) will overflow the clipping boundary. You can also\n * provide an array of placements to try sequentially if the preferred\n * `placement` does not fit.\n *\n * @default true\n */\n flip?: AutocompletePositionerElementProps['flip'];\n /**\n * Whether the floating element should shift to keep it in view.\n *\n * @default true\n */\n shift?: AutocompletePositionerElementProps['shift'];\n /**\n * Whether the floating element can overlap the reference element to keep it\n * in view.\n *\n * @default false\n */\n overlap?: AutocompletePositionerElementProps['overlap'];\n /**\n * Whether to constrain the floating element's width so that it matches the\n * reference element.\n *\n * @default false\n */\n sameWidth?: AutocompletePositionerElementProps['sameWidth'];\n /**\n * Whether to constrain the floating element's height so that it matches the\n * reference element.\n *\n * @default false\n */\n sameHeight?: AutocompletePositionerElementProps['sameHeight'];\n /**\n * Whether to hide the floating element when the reference element or the\n * floating element is fully clipped.\n *\n * @default false\n */\n hide?: AutocompletePositionerElementProps['hide'];\n /**\n * Describes the root boundary that the element will be checked for overflow relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.\n *\n * @default 'viewport'\n */\n rootBoundary?: AutocompletePositionerElementProps['rootBoundary'];\n /**\n * The element that will be used to check for overflow. Please see\n * https://floating-ui.com/docs/detectoverflow#elementcontext for more\n * information.\n *\n * @default 'floating'\n */\n elementContext?: AutocompletePositionerElementProps['elementContext'];\n /**\n * Whether to check the alternate elementContext's boundary. Please see\n * https://floating-ui.com/docs/detectoverflow#altboundary for more\n * information.\n *\n * @default false\n */\n altBoundary?: AutocompletePositionerElementProps['altBoundary'];\n}\n\n/**\n * A Vue component that renders an `prosekit-autocomplete-positioner` custom element.\n *\n * @public\n */\nexport const AutocompletePositioner: DefineSetupFnComponent<AutocompletePositionerProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<AutocompletePositionerProps & HTMLAttributes>(\n (props, { slots }) => {\n registerAutocompletePositionerElement();\n\n const elementRef = shallowRef<HTMLElement | null>(null);\n\n const splittedProps = computed(() => {\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, elementContext: p3, fitViewport: p4, flip: p5, hide: p6, hoist: p7, inline: p8, offset: p9, overflowPadding: p10, overlap: p11, placement: p12, rootBoundary: p13, sameHeight: p14, sameWidth: p15, shift: p16, strategy: p17, ...restProps } = props;\n return [[p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17], restProps] as const;\n });\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17] = splittedProps.value[0];\n\n Object.assign(element, { altBoundary: p0, autoUpdate: p1, boundary: p2, elementContext: p3, fitViewport: p4, flip: p5, hide: p6, hoist: p7, inline: p8, offset: p9, overflowPadding: p10, overlap: p11, placement: p12, rootBoundary: p13, sameHeight: p14, sameWidth: p15, shift: p16, strategy: p17 });\n });\n\n return () => {\n const restProps = splittedProps.value[1];\n return h('prosekit-autocomplete-positioner', { ...restProps, ref: elementRef }, slots.default?.());\n };\n },\n { props: ['altBoundary', 'autoUpdate', 'boundary', 'elementContext', 'fitViewport', 'flip', 'hide', 'hoist', 'inline', 'offset', 'overflowPadding', 'overlap', 'placement', 'rootBoundary', 'sameHeight', 'sameWidth', 'shift', 'strategy'] },\n);\n","/**\n * This file is auto-generated by the \"@aria-ui/cli\" tool. Do not edit this file directly.\n */\n\nimport { registerAutocompleteRootElement, type AutocompleteRootEvents, type AutocompleteRootProps as AutocompleteRootElementProps } from '@prosekit/web/autocomplete';\nimport { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';\n\nimport { useEditorContext } from '../../injection/editor-context.ts';\n\n/**\n * Props for the {@link AutocompleteRoot} Vue component.\n *\n * @public\n */\nexport interface AutocompleteRootProps {\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: AutocompleteRootElementProps['editor'];\n /**\n * The regular expression to match the query text to autocomplete.\n *\n * @default null\n */\n regex?: AutocompleteRootElementProps['regex'];\n /**\n * The filter function to determine if an item should be shown in the\n * listbox.\n *\n * @default defaultItemFilter\n */\n filter?: AutocompleteRootElementProps['filter'];\n /** Fired when the open state changes. */\n onOpenChange?: (event: AutocompleteRootEvents['openChange']) => void;\n /** Fired when the query changes. */\n onQueryChange?: (event: AutocompleteRootEvents['queryChange']) => void;\n /**\n * Emitted when the selected value changes. Only available when multiple is\n * false.\n */\n onValueChange?: (event: AutocompleteRootEvents['valueChange']) => void;\n /**\n * Emitted when the selected values change. Only available when multiple is\n * true.\n */\n onValuesChange?: (event: AutocompleteRootEvents['valuesChange']) => void;\n}\n\n/**\n * A Vue component that renders an `prosekit-autocomplete-root` custom element.\n *\n * @public\n */\nexport const AutocompleteRoot: DefineSetupFnComponent<AutocompleteRootProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<AutocompleteRootProps & HTMLAttributes>(\n (props, { slots }) => {\n registerAutocompleteRootElement();\n\n const elementRef = shallowRef<HTMLElement | null>(null);\n\n const p0Fallback = useEditorContext();\n\n const splittedProps = computed(() => {\n const { editor: p0, filter: p1, regex: p2, onOpenChange: e0, onQueryChange: e1, onValueChange: e2, onValuesChange: e3, ...restProps } = props;\n return [[p0, p1, p2, e0, e1, e2, e3], restProps] as const;\n });\n\n const handlers: Array<((event: any) => void) | undefined> = [];\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const [p0, p1, p2, e0, e1, e2, e3] = splittedProps.value[0];\n\n Object.assign(element, { editor: p0 ?? p0Fallback, filter: p1, regex: p2 });\n\n handlers.length = 0;\n handlers.push(e0);\n handlers.push(e1);\n handlers.push(e2);\n handlers.push(e3);\n });\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const ac = new AbortController();\n for (const [index, eventName] of ['openChange', 'queryChange', 'valueChange', 'valuesChange'].entries()) {\n element.addEventListener(\n eventName,\n (event: Event) => {\n handlers[index]?.(event);\n },\n { signal: ac.signal },\n );\n }\n return () => ac.abort();\n });\n\n return () => {\n const restProps = splittedProps.value[1];\n return h('prosekit-autocomplete-root', { ...restProps, ref: elementRef }, slots.default?.());\n };\n },\n { props: ['editor', 'filter', 'regex', 'onOpenChange', 'onQueryChange', 'onValueChange', 'onValuesChange'] },\n);\n"],"mappings":";;;;;;;;;;;;AAmBA,MAAa,oBAAqG,iCAC/G,OAAO,EAAE,YAAY;AACpB,mCAAkC;AAElC,cAAa;AACX,SAAO,EAAE,+BAA+B,OAAO,MAAM,WAAW,CAAC;;GAGrE,EAAE,OAAO,EAAE,EAAE,CACd;;;;;;;;;;;ACQD,MAAa,mBAAmG,iCAC7G,OAAO,EAAE,YAAY;AACpB,kCAAiC;CAEjC,MAAM,aAAa,WAA+B,KAAK;CAEvD,MAAM,gBAAgB,eAAe;EACnC,MAAM,EAAE,UAAU,IAAI,OAAO,IAAI,UAAU,IAAI,GAAG,cAAc;AAChE,SAAO,CAAC;GAAC;GAAI;GAAI;GAAG,EAAE,UAAU;GAChC;CAEF,MAAM,WAAsD,EAAE;AAE9D,mBAAkB;EAChB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;EAEd,MAAM,CAAC,IAAI,IAAI,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UAAiB;AAChB,YAAS,SAAS,MAAM;KAE1B,EAAE,QAAQ,GAAG,QAAQ,CACtB;AAEH,eAAa,GAAG,OAAO;GACvB;AAEF,cAAa;EACX,MAAM,YAAY,cAAc,MAAM;AACtC,SAAO,EAAE,8BAA8B;GAAE,GAAG;GAAW,KAAK;GAAY,EAAE,MAAM,WAAW,CAAC;;GAGhG,EAAE,OAAO;CAAC;CAAU;CAAU;CAAS;CAAgB;CAAiB;CAAiB;CAAiB,EAAE,CAC7G"}
1
+ {"version":3,"file":"prosekit-vue-autocomplete.js","names":[],"sources":["../src/components/autocomplete/autocomplete-empty.gen.ts","../src/components/autocomplete/autocomplete-item.gen.ts","../src/components/autocomplete/autocomplete-popup.gen.ts","../src/components/autocomplete/autocomplete-positioner.gen.ts","../src/components/autocomplete/autocomplete-root.gen.ts"],"sourcesContent":["// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerAutocompleteEmptyElement } from '@prosekit/web/autocomplete';\nimport { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes } from 'vue';\n\n/** Props for the {@link AutocompleteEmpty} Vue component. */\nexport interface AutocompleteEmptyProps {}\n\n/** A Vue component that renders an `prosekit-autocomplete-empty` custom element. */\nexport const AutocompleteEmpty: DefineSetupFnComponent<AutocompleteEmptyProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<AutocompleteEmptyProps & HTMLAttributes>(\n (props, { slots }) => {\n registerAutocompleteEmptyElement();\n\n return () => {\n return h('prosekit-autocomplete-empty', props, slots.default?.());\n };\n },\n { props: [] },\n);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerAutocompleteItemElement, type AutocompleteItemEvents, type AutocompleteItemProps as AutocompleteItemElementProps } from '@prosekit/web/autocomplete';\nimport { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';\n\n/** Props for the {@link AutocompleteItem} Vue component. */\nexport interface AutocompleteItemProps {\n /**\n * The value of the item, which will be matched against the query.\n *\n * If not provided, the value is the item's text content.\n *\n * @default \"\"\n */\n value?: AutocompleteItemElementProps['value'];\n /**\n * Whether this option is disabled.\n *\n * @default false\n */\n disabled?: AutocompleteItemElementProps['disabled'];\n /** Emitted when the the item is selected. */\n onSelect?: (event: AutocompleteItemEvents['select']) => void;\n}\n\n/** A Vue component that renders an `prosekit-autocomplete-item` custom element. */\nexport const AutocompleteItem: DefineSetupFnComponent<AutocompleteItemProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<AutocompleteItemProps & HTMLAttributes>(\n (props, { slots }) => {\n registerAutocompleteItemElement();\n\n const elementRef = shallowRef<HTMLElement | null>(null);\n\n const splittedProps = computed(() => {\n const { disabled: p0, value: p1, onSelect: e0, ...restProps } = props;\n return [[p0, p1, e0], restProps] as const;\n });\n\n const handlers: Array<((event: any) => void) | undefined> = [];\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const [p0, p1, e0] = splittedProps.value[0];\n\n Object.assign(element, { disabled: p0, value: p1 });\n\n handlers.length = 0;\n handlers.push(e0);\n });\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const ac = new AbortController();\n for (const [index, eventName] of ['select'].entries()) {\n element.addEventListener(\n eventName,\n (event: Event) => {\n handlers[index]?.(event);\n },\n { signal: ac.signal },\n );\n }\n return () => ac.abort();\n });\n\n return () => {\n const restProps = splittedProps.value[1];\n return h('prosekit-autocomplete-item', { ...restProps, ref: elementRef }, slots.default?.());\n };\n },\n { props: ['disabled', 'value', 'onSelect'] },\n);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerAutocompletePopupElement, type AutocompletePopupEvents } from '@prosekit/web/autocomplete';\nimport { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';\n\n/** Props for the {@link AutocompletePopup} Vue component. */\nexport interface AutocompletePopupProps {\n /**\n * Emitted when the selected value changes. Only available when multiple is\n * false.\n */\n onValueChange?: (event: AutocompletePopupEvents['valueChange']) => void;\n /**\n * Emitted when the selected values change. Only available when multiple is\n * true.\n */\n onValuesChange?: (event: AutocompletePopupEvents['valuesChange']) => void;\n}\n\n/** A Vue component that renders an `prosekit-autocomplete-popup` custom element. */\nexport const AutocompletePopup: DefineSetupFnComponent<AutocompletePopupProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<AutocompletePopupProps & HTMLAttributes>(\n (props, { slots }) => {\n registerAutocompletePopupElement();\n\n const elementRef = shallowRef<HTMLElement | null>(null);\n\n const splittedProps = computed(() => {\n const { onValueChange: e0, onValuesChange: e1, ...restProps } = props;\n return [[e0, e1], restProps] as const;\n });\n\n const handlers: Array<((event: any) => void) | undefined> = [];\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const [e0, e1] = splittedProps.value[0];\n\n handlers.length = 0;\n handlers.push(e0);\n handlers.push(e1);\n });\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const ac = new AbortController();\n for (const [index, eventName] of ['valueChange', 'valuesChange'].entries()) {\n element.addEventListener(\n eventName,\n (event: Event) => {\n handlers[index]?.(event);\n },\n { signal: ac.signal },\n );\n }\n return () => ac.abort();\n });\n\n return () => {\n const restProps = splittedProps.value[1];\n return h('prosekit-autocomplete-popup', { ...restProps, ref: elementRef }, slots.default?.());\n };\n },\n { props: ['onValueChange', 'onValuesChange'] },\n);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerAutocompletePositionerElement, type AutocompletePositionerProps as AutocompletePositionerElementProps } from '@prosekit/web/autocomplete';\nimport { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';\n\n/** Props for the {@link AutocompletePositioner} Vue component. */\nexport interface AutocompletePositionerProps {\n /**\n * The placement of the popover, relative to the text cursor.\n *\n * @default \"bottom-start\"\n */\n placement?: AutocompletePositionerElementProps['placement'];\n /**\n * The distance between the popover and the hovered block.\n *\n * @default 4\n */\n offset?: AutocompletePositionerElementProps['offset'];\n /** @default true */\n inline?: AutocompletePositionerElementProps['inline'];\n /** @default true */\n hoist?: AutocompletePositionerElementProps['hoist'];\n /** @default true */\n fitViewport?: AutocompletePositionerElementProps['fitViewport'];\n /** @default \"The body element\" */\n boundary?: AutocompletePositionerElementProps['boundary'];\n /** @default 8 */\n overflowPadding?: AutocompletePositionerElementProps['overflowPadding'];\n /**\n * The strategy to use for positioning\n *\n * @default \"absolute\"\n */\n strategy?: AutocompletePositionerElementProps['strategy'];\n /**\n * Options to activate auto-update listeners\n *\n * @see https://floating-ui.com/docs/autoUpdate\n *\n * @default true\n */\n autoUpdate?: AutocompletePositionerElementProps['autoUpdate'];\n /**\n * Whether to flip the `placement` in order to keep it in view when the\n * preferred placement(s) will overflow the clipping boundary. You can also\n * provide an array of placements to try sequentially if the preferred\n * `placement` does not fit.\n *\n * @default true\n */\n flip?: AutocompletePositionerElementProps['flip'];\n /**\n * Whether the floating element should shift to keep it in view.\n *\n * @default true\n */\n shift?: AutocompletePositionerElementProps['shift'];\n /**\n * Whether the floating element can overlap the reference element to keep it\n * in view.\n *\n * @default false\n */\n overlap?: AutocompletePositionerElementProps['overlap'];\n /**\n * Whether to constrain the floating element's width so that it matches the\n * reference element.\n *\n * @default false\n */\n sameWidth?: AutocompletePositionerElementProps['sameWidth'];\n /**\n * Whether to constrain the floating element's height so that it matches the\n * reference element.\n *\n * @default false\n */\n sameHeight?: AutocompletePositionerElementProps['sameHeight'];\n /**\n * Whether to hide the floating element when the reference element or the\n * floating element is fully clipped.\n *\n * @default false\n */\n hide?: AutocompletePositionerElementProps['hide'];\n /**\n * Describes the root boundary that the element will be checked for overflow relative to.\n * Please see https://floating-ui.com/docs/detectoverflow#rootboundary for more information.\n *\n * @default 'viewport'\n */\n rootBoundary?: AutocompletePositionerElementProps['rootBoundary'];\n /**\n * The element that will be used to check for overflow. Please see\n * https://floating-ui.com/docs/detectoverflow#elementcontext for more\n * information.\n *\n * @default 'floating'\n */\n elementContext?: AutocompletePositionerElementProps['elementContext'];\n /**\n * Whether to check the alternate elementContext's boundary. Please see\n * https://floating-ui.com/docs/detectoverflow#altboundary for more\n * information.\n *\n * @default false\n */\n altBoundary?: AutocompletePositionerElementProps['altBoundary'];\n}\n\n/** A Vue component that renders an `prosekit-autocomplete-positioner` custom element. */\nexport const AutocompletePositioner: DefineSetupFnComponent<AutocompletePositionerProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<AutocompletePositionerProps & HTMLAttributes>(\n (props, { slots }) => {\n registerAutocompletePositionerElement();\n\n const elementRef = shallowRef<HTMLElement | null>(null);\n\n const splittedProps = computed(() => {\n const { altBoundary: p0, autoUpdate: p1, boundary: p2, elementContext: p3, fitViewport: p4, flip: p5, hide: p6, hoist: p7, inline: p8, offset: p9, overflowPadding: p10, overlap: p11, placement: p12, rootBoundary: p13, sameHeight: p14, sameWidth: p15, shift: p16, strategy: p17, ...restProps } = props;\n return [[p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17], restProps] as const;\n });\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17] = splittedProps.value[0];\n\n Object.assign(element, { altBoundary: p0, autoUpdate: p1, boundary: p2, elementContext: p3, fitViewport: p4, flip: p5, hide: p6, hoist: p7, inline: p8, offset: p9, overflowPadding: p10, overlap: p11, placement: p12, rootBoundary: p13, sameHeight: p14, sameWidth: p15, shift: p16, strategy: p17 });\n });\n\n return () => {\n const restProps = splittedProps.value[1];\n return h('prosekit-autocomplete-positioner', { ...restProps, ref: elementRef }, slots.default?.());\n };\n },\n { props: ['altBoundary', 'autoUpdate', 'boundary', 'elementContext', 'fitViewport', 'flip', 'hide', 'hoist', 'inline', 'offset', 'overflowPadding', 'overlap', 'placement', 'rootBoundary', 'sameHeight', 'sameWidth', 'shift', 'strategy'] },\n);\n","// This file is auto-generated by \"@aria-ui/cli\". Do not edit this file directly.\n\nimport { registerAutocompleteRootElement, type AutocompleteRootEvents, type AutocompleteRootProps as AutocompleteRootElementProps } from '@prosekit/web/autocomplete';\nimport { defineComponent, h, type DefineSetupFnComponent, type HTMLAttributes, shallowRef, computed, watchEffect } from 'vue';\n\nimport { useEditorContext } from '../../injection/editor-context.ts';\n\n/** Props for the {@link AutocompleteRoot} Vue component. */\nexport interface AutocompleteRootProps {\n /**\n * The ProseKit editor instance.\n *\n * @default null\n * @hidden\n */\n editor?: AutocompleteRootElementProps['editor'];\n /**\n * The regular expression to match the query text to autocomplete.\n *\n * @default null\n */\n regex?: AutocompleteRootElementProps['regex'];\n /**\n * The filter function to determine if an item should be shown in the\n * listbox.\n *\n * @default defaultItemFilter\n */\n filter?: AutocompleteRootElementProps['filter'];\n /** Fired when the open state changes. */\n onOpenChange?: (event: AutocompleteRootEvents['openChange']) => void;\n /** Fired when the query changes. */\n onQueryChange?: (event: AutocompleteRootEvents['queryChange']) => void;\n /**\n * Emitted when the selected value changes. Only available when multiple is\n * false.\n */\n onValueChange?: (event: AutocompleteRootEvents['valueChange']) => void;\n /**\n * Emitted when the selected values change. Only available when multiple is\n * true.\n */\n onValuesChange?: (event: AutocompleteRootEvents['valuesChange']) => void;\n}\n\n/** A Vue component that renders an `prosekit-autocomplete-root` custom element. */\nexport const AutocompleteRoot: DefineSetupFnComponent<AutocompleteRootProps & HTMLAttributes> = /* @__PURE__ */ defineComponent<AutocompleteRootProps & HTMLAttributes>(\n (props, { slots }) => {\n registerAutocompleteRootElement();\n\n const elementRef = shallowRef<HTMLElement | null>(null);\n\n const p0Fallback = useEditorContext();\n\n const splittedProps = computed(() => {\n const { editor: p0, filter: p1, regex: p2, onOpenChange: e0, onQueryChange: e1, onValueChange: e2, onValuesChange: e3, ...restProps } = props;\n return [[p0, p1, p2, e0, e1, e2, e3], restProps] as const;\n });\n\n const handlers: Array<((event: any) => void) | undefined> = [];\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const [p0, p1, p2, e0, e1, e2, e3] = splittedProps.value[0];\n\n Object.assign(element, { editor: p0 ?? p0Fallback, filter: p1, regex: p2 });\n\n handlers.length = 0;\n handlers.push(e0);\n handlers.push(e1);\n handlers.push(e2);\n handlers.push(e3);\n });\n\n watchEffect(() => {\n const element = elementRef.value;\n if (!element) return;\n\n const ac = new AbortController();\n for (const [index, eventName] of ['openChange', 'queryChange', 'valueChange', 'valuesChange'].entries()) {\n element.addEventListener(\n eventName,\n (event: Event) => {\n handlers[index]?.(event);\n },\n { signal: ac.signal },\n );\n }\n return () => ac.abort();\n });\n\n return () => {\n const restProps = splittedProps.value[1];\n return h('prosekit-autocomplete-root', { ...restProps, ref: elementRef }, slots.default?.());\n };\n },\n { props: ['editor', 'filter', 'regex', 'onOpenChange', 'onQueryChange', 'onValueChange', 'onValuesChange'] },\n);\n"],"mappings":";;;;AASA,MAAa,oBAAqG,iCAC/G,OAAO,EAAE,YAAY;AACpB,mCAAkC;AAElC,cAAa;AACX,SAAO,EAAE,+BAA+B,OAAO,MAAM,WAAW,CAAC;;GAGrE,EAAE,OAAO,EAAE,EAAE,CACd;;ACQD,MAAa,mBAAmG,iCAC7G,OAAO,EAAE,YAAY;AACpB,kCAAiC;CAEjC,MAAM,aAAa,WAA+B,KAAK;CAEvD,MAAM,gBAAgB,eAAe;EACnC,MAAM,EAAE,UAAU,IAAI,OAAO,IAAI,UAAU,IAAI,GAAG,cAAc;AAChE,SAAO,CAAC;GAAC;GAAI;GAAI;GAAG,EAAE,UAAU;GAChC;CAEF,MAAM,WAAsD,EAAE;AAE9D,mBAAkB;EAChB,MAAM,UAAU,WAAW;AAC3B,MAAI,CAAC,QAAS;EAEd,MAAM,CAAC,IAAI,IAAI,MAAM,cAAc,MAAM;AAEzC,SAAO,OAAO,SAAS;GAAE,UAAU;GAAI,OAAO;GAAI,CAAC;AAEnD,WAAS,SAAS;AAClB,WAAS,KAA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,SAAO,EAAE,8BAA8B;GAAE,GAAG;GAAW,KAAK;GAAY,EAAE,MAAM,WAAW,CAAC;;GAGhG,EAAE,OAAO;CAAC;CAAU;CAAU;CAAS;CAAgB;CAAiB;CAAiB;CAAiB,EAAE,CAC7G"}
@@ -1,12 +1,6 @@
1
1
  import { DefineSetupFnComponent, HTMLAttributes } from "vue";
2
2
  import { BlockHandleAddProps as BlockHandleAddProps$1, BlockHandleDraggableProps as BlockHandleDraggableProps$1, BlockHandlePositionerProps as BlockHandlePositionerProps$1, BlockHandleRootEvents, BlockHandleRootProps as BlockHandleRootProps$1 } from "@prosekit/web/block-handle";
3
-
4
- //#region src/components/block-handle/block-handle-add.gen.d.ts
5
- /**
6
- * Props for the {@link BlockHandleAdd} Vue component.
7
- *
8
- * @public
9
- */
3
+ /** Props for the {@link BlockHandleAdd} Vue component. */
10
4
  interface BlockHandleAddProps {
11
5
  /**
12
6
  * The ProseKit editor instance.
@@ -16,19 +10,9 @@ interface BlockHandleAddProps {
16
10
  */
17
11
  editor?: BlockHandleAddProps$1['editor'];
18
12
  }
19
- /**
20
- * A Vue component that renders an `prosekit-block-handle-add` custom element.
21
- *
22
- * @public
23
- */
13
+ /** A Vue component that renders an `prosekit-block-handle-add` custom element. */
24
14
  declare const BlockHandleAdd: DefineSetupFnComponent<BlockHandleAddProps & HTMLAttributes>;
25
- //#endregion
26
- //#region src/components/block-handle/block-handle-draggable.gen.d.ts
27
- /**
28
- * Props for the {@link BlockHandleDraggable} Vue component.
29
- *
30
- * @public
31
- */
15
+ /** Props for the {@link BlockHandleDraggable} Vue component. */
32
16
  interface BlockHandleDraggableProps {
33
17
  /**
34
18
  * The ProseKit editor instance.
@@ -38,33 +22,13 @@ interface BlockHandleDraggableProps {
38
22
  */
39
23
  editor?: BlockHandleDraggableProps$1['editor'];
40
24
  }
41
- /**
42
- * A Vue component that renders an `prosekit-block-handle-draggable` custom element.
43
- *
44
- * @public
45
- */
25
+ /** A Vue component that renders an `prosekit-block-handle-draggable` custom element. */
46
26
  declare const BlockHandleDraggable: DefineSetupFnComponent<BlockHandleDraggableProps & HTMLAttributes>;
47
- //#endregion
48
- //#region src/components/block-handle/block-handle-popup.gen.d.ts
49
- /**
50
- * Props for the {@link BlockHandlePopup} Vue component.
51
- *
52
- * @public
53
- */
27
+ /** Props for the {@link BlockHandlePopup} Vue component. */
54
28
  interface BlockHandlePopupProps {}
55
- /**
56
- * A Vue component that renders an `prosekit-block-handle-popup` custom element.
57
- *
58
- * @public
59
- */
29
+ /** A Vue component that renders an `prosekit-block-handle-popup` custom element. */
60
30
  declare const BlockHandlePopup: DefineSetupFnComponent<BlockHandlePopupProps & HTMLAttributes>;
61
- //#endregion
62
- //#region src/components/block-handle/block-handle-positioner.gen.d.ts
63
- /**
64
- * Props for the {@link BlockHandlePositioner} Vue component.
65
- *
66
- * @public
67
- */
31
+ /** Props for the {@link BlockHandlePositioner} Vue component. */
68
32
  interface BlockHandlePositionerProps {
69
33
  /**
70
34
  * The placement of the popover, relative to the hovered block.
@@ -187,19 +151,9 @@ interface BlockHandlePositionerProps {
187
151
  */
188
152
  altBoundary?: BlockHandlePositionerProps$1['altBoundary'];
189
153
  }
190
- /**
191
- * A Vue component that renders an `prosekit-block-handle-positioner` custom element.
192
- *
193
- * @public
194
- */
154
+ /** A Vue component that renders an `prosekit-block-handle-positioner` custom element. */
195
155
  declare const BlockHandlePositioner: DefineSetupFnComponent<BlockHandlePositionerProps & HTMLAttributes>;
196
- //#endregion
197
- //#region src/components/block-handle/block-handle-root.gen.d.ts
198
- /**
199
- * Props for the {@link BlockHandleRoot} Vue component.
200
- *
201
- * @public
202
- */
156
+ /** Props for the {@link BlockHandleRoot} Vue component. */
203
157
  interface BlockHandleRootProps {
204
158
  /**
205
159
  * The ProseKit editor instance.
@@ -211,12 +165,7 @@ interface BlockHandleRootProps {
211
165
  /** Fired when the hovered block changes. */
212
166
  onStateChange?: (event: BlockHandleRootEvents['stateChange']) => void;
213
167
  }
214
- /**
215
- * A Vue component that renders an `prosekit-block-handle-root` custom element.
216
- *
217
- * @public
218
- */
168
+ /** A Vue component that renders an `prosekit-block-handle-root` custom element. */
219
169
  declare const BlockHandleRoot: DefineSetupFnComponent<BlockHandleRootProps & HTMLAttributes>;
220
- //#endregion
221
170
  export { BlockHandleAdd, type BlockHandleAddProps, BlockHandleDraggable, type BlockHandleDraggableProps, BlockHandlePopup, type BlockHandlePopupProps, BlockHandlePositioner, type BlockHandlePositionerProps, BlockHandleRoot, type BlockHandleRootProps };
222
171
  //# sourceMappingURL=prosekit-vue-block-handle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prosekit-vue-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-popup.gen.ts","../src/components/block-handle/block-handle-positioner.gen.ts","../src/components/block-handle/block-handle-root.gen.ts"],"mappings":";;;;;;;;AA6BA;UAfiB,mBAAA;;;;;;;EAOf,MAAA,GAAS,qBAAA;AAAA;;;;;;cAQE,cAAA,EAAgB,sBAAA,CAAuB,mBAAA,GAAsB,cAAA;;;;;;;AAA1E;UCfiB,yBAAA;;;;;;;EAOf,MAAA,GAAS,2BAAA;AAAA;;;;;;cAQE,oBAAA,EAAsB,sBAAA,CAAuB,yBAAA,GAA4B,cAAA;;;ADftF;;;;;AAAA,UEFiB,qBAAA;;;;;;cAOJ,gBAAA,EAAkB,sBAAA,CAAuB,qBAAA,GAAwB,cAAA;;;;;;;AFU9E;UGjBiB,0BAAA;;;;;;EAMf,SAAA,GAAY,4BAAA;EHWe;;;;;;EGJ3B,KAAA,GAAQ,4BAAA;;AFXV;;;EEgBE,IAAA,GAAO,4BAAA;EFTkC;AAQ3C;;;EEME,KAAA,GAAQ,4BAAA;EFN4E;;;;EEWpF,IAAA,GAAO,4BAAA;EFXiD;;;;;EEiBxD,QAAA,GAAW,4BAAA;;ADlCb;;;;;AAOA;ECmCE,UAAA,GAAa,4BAAA;;;;;;EAMb,MAAA,GAAS,4BAAA;EDzCoB;;;;;;ECgD7B,OAAA,GAAU,4BAAA;;AAvDZ;;;;;EA8DE,WAAA,GAAc,4BAAA;EAvCN;;;;;;EA8CR,SAAA,GAAY,4BAAA;EAAA;;;;;;EAOZ,UAAA,GAAa,4BAAA;EA4CC;;;;;;EArCd,MAAA,GAAS,4BAAA;EAjET;;;;;;EAwEA,QAAA,GAAW,4BAAA;EAxDA;;;;;;EA+DX,YAAA,GAAe,4BAAA;EAnCf;;;;;;EA0CA,eAAA,GAAkB,4BAAA;EArBT;;;;;;;EA6BT,cAAA,GAAiB,4BAAA;EAAA;;;;;AAgBnB;;EARE,WAAA,GAAc,4BAAA;AAAA;;;;;;cAQH,qBAAA,EAAuB,sBAAA,CAAuB,0BAAA,GAA6B,cAAA;;;;;;;AH/GxF;UIfiB,oBAAA;;;;;;;EAOf,MAAA,GAAS,sBAAA;EJQyC;EINlD,aAAA,IAAiB,KAAA,EAAO,qBAAA;AAAA;;;;;AHT1B;cGiBa,eAAA,EAAiB,sBAAA,CAAuB,oBAAA,GAAuB,cAAA"}
1
+ {"version":3,"file":"prosekit-vue-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-popup.gen.ts","../src/components/block-handle/block-handle-positioner.gen.ts","../src/components/block-handle/block-handle-root.gen.ts"],"mappings":";;;UAQiB,mBAAA;EAAmB;;;;AAWpC;;EAJE,MAAA,GAAS,qBAAA;AAAA;;cAIE,cAAA,EAAgB,sBAAA,CAAuB,mBAAA,GAAsB,cAAA;;UCXzD,yBAAA;EDAmB;;;;AAWpC;;ECJE,MAAA,GAAS,2BAAA;AAAA;;cAIE,oBAAA,EAAsB,sBAAA,CAAuB,yBAAA,GAA4B,cAAA;;UCbrE,qBAAA;;cAGJ,gBAAA,EAAkB,sBAAA,CAAuB,qBAAA,GAAwB,cAAA;;UCH7D,0BAAA;EHEmB;;;;AAWpC;EGPE,SAAA,GAAY,4BAAA;;;;;;;EAOZ,KAAA,GAAQ,4BAAA;EHA0C;;;;EGKlD,IAAA,GAAO,4BAAA;EFhBQ;;;;EEqBf,KAAA,GAAQ,4BAAA;EFVG;;;;EEeX,IAAA,GAAO,4BAAA;EFf0B;;;;;EEqBjC,QAAA,GAAW,4BAAA;EFrBuF;;;ACbpG;;;;EC0CE,UAAA,GAAa,4BAAA;EDvCF;;;;;EC6CX,MAAA,GAAS,4BAAA;ED7C0C;;;;;;ECoDnD,OAAA,GAAU,4BAAA;;AAvDZ;;;;;EA8DE,WAAA,GAAc,4BAAA;EAvCN;;;;;;EA8CR,SAAA,GAAY,4BAAA;EAAA;;;;;;EAOZ,UAAA,GAAa,4BAAA;EA4CC;;;;;;EArCd,MAAA,GAAS,4BAAA;EAjET;;;;;;EAwEA,QAAA,GAAW,4BAAA;EAxDA;;;;;;EA+DX,YAAA,GAAe,4BAAA;EAnCf;;;;;;EA0CA,eAAA,GAAkB,4BAAA;EArBT;;;;;;;EA6BT,cAAA,GAAiB,4BAAA;EAAA;;;;;AAYnB;;EAJE,WAAA,GAAc,4BAAA;AAAA;;cAIH,qBAAA,EAAuB,sBAAA,CAAuB,0BAAA,GAA6B,cAAA;;UC1HvE,oBAAA;EJAmB;;;;AAWpC;;EIJE,MAAA,GAAS,sBAAA;EJIyC;EIFlD,aAAA,IAAiB,KAAA,EAAO,qBAAA;AAAA;;cAIb,eAAA,EAAiB,sBAAA,CAAuB,oBAAA,GAAuB,cAAA"}
@@ -1,15 +1,7 @@
1
1
  import { n as useEditorContext } from "./editor-context.js";
2
2
  import { computed, defineComponent, h, shallowRef, watchEffect } from "vue";
3
3
  import { registerBlockHandleAddElement, registerBlockHandleDraggableElement, registerBlockHandlePopupElement, registerBlockHandlePositionerElement, registerBlockHandleRootElement } from "@prosekit/web/block-handle";
4
- //#region src/components/block-handle/block-handle-add.gen.ts
5
- /**
6
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
7
- */
8
- /**
9
- * A Vue component that renders an `prosekit-block-handle-add` custom element.
10
- *
11
- * @public
12
- */
4
+ /** A Vue component that renders an `prosekit-block-handle-add` custom element. */
13
5
  const BlockHandleAdd = /* @__PURE__ */ defineComponent((props, { slots }) => {
14
6
  registerBlockHandleAddElement();
15
7
  const elementRef = shallowRef(null);
@@ -32,16 +24,7 @@ const BlockHandleAdd = /* @__PURE__ */ defineComponent((props, { slots }) => {
32
24
  }, slots.default?.());
33
25
  };
34
26
  }, { props: ["editor"] });
35
- //#endregion
36
- //#region src/components/block-handle/block-handle-draggable.gen.ts
37
- /**
38
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
39
- */
40
- /**
41
- * A Vue component that renders an `prosekit-block-handle-draggable` custom element.
42
- *
43
- * @public
44
- */
27
+ /** A Vue component that renders an `prosekit-block-handle-draggable` custom element. */
45
28
  const BlockHandleDraggable = /* @__PURE__ */ defineComponent((props, { slots }) => {
46
29
  registerBlockHandleDraggableElement();
47
30
  const elementRef = shallowRef(null);
@@ -64,32 +47,14 @@ const BlockHandleDraggable = /* @__PURE__ */ defineComponent((props, { slots })
64
47
  }, slots.default?.());
65
48
  };
66
49
  }, { props: ["editor"] });
67
- //#endregion
68
- //#region src/components/block-handle/block-handle-popup.gen.ts
69
- /**
70
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
71
- */
72
- /**
73
- * A Vue component that renders an `prosekit-block-handle-popup` custom element.
74
- *
75
- * @public
76
- */
50
+ /** A Vue component that renders an `prosekit-block-handle-popup` custom element. */
77
51
  const BlockHandlePopup = /* @__PURE__ */ defineComponent((props, { slots }) => {
78
52
  registerBlockHandlePopupElement();
79
53
  return () => {
80
54
  return h("prosekit-block-handle-popup", props, slots.default?.());
81
55
  };
82
56
  }, { props: [] });
83
- //#endregion
84
- //#region src/components/block-handle/block-handle-positioner.gen.ts
85
- /**
86
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
87
- */
88
- /**
89
- * A Vue component that renders an `prosekit-block-handle-positioner` custom element.
90
- *
91
- * @public
92
- */
57
+ /** A Vue component that renders an `prosekit-block-handle-positioner` custom element. */
93
58
  const BlockHandlePositioner = /* @__PURE__ */ defineComponent((props, { slots }) => {
94
59
  registerBlockHandlePositionerElement();
95
60
  const elementRef = shallowRef(null);
@@ -168,16 +133,7 @@ const BlockHandlePositioner = /* @__PURE__ */ defineComponent((props, { slots })
168
133
  "shift",
169
134
  "strategy"
170
135
  ] });
171
- //#endregion
172
- //#region src/components/block-handle/block-handle-root.gen.ts
173
- /**
174
- * This file is auto-generated by the "@aria-ui/cli" tool. Do not edit this file directly.
175
- */
176
- /**
177
- * A Vue component that renders an `prosekit-block-handle-root` custom element.
178
- *
179
- * @public
180
- */
136
+ /** A Vue component that renders an `prosekit-block-handle-root` custom element. */
181
137
  const BlockHandleRoot = /* @__PURE__ */ defineComponent((props, { slots }) => {
182
138
  registerBlockHandleRootElement();
183
139
  const elementRef = shallowRef(null);
@@ -212,7 +168,6 @@ const BlockHandleRoot = /* @__PURE__ */ defineComponent((props, { slots }) => {
212
168
  }, slots.default?.());
213
169
  };
214
170
  }, { props: ["editor", "onStateChange"] });
215
- //#endregion
216
171
  export { BlockHandleAdd, BlockHandleDraggable, BlockHandlePopup, BlockHandlePositioner, BlockHandleRoot };
217
172
 
218
173
  //# sourceMappingURL=prosekit-vue-block-handle.js.map