@prosekit/web 0.8.0-beta.2 → 0.8.0-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/get-safe-editor-view.js +0 -2
- package/dist/get-safe-editor-view.js.map +1 -1
- package/dist/prosekit-web-autocomplete.d.ts +47 -19
- package/dist/prosekit-web-autocomplete.d.ts.map +1 -1
- package/dist/prosekit-web-autocomplete.js +47 -27
- package/dist/prosekit-web-autocomplete.js.map +1 -1
- package/dist/prosekit-web-block-handle.d.ts +43 -16
- package/dist/prosekit-web-block-handle.d.ts.map +1 -1
- package/dist/prosekit-web-block-handle.js +43 -33
- package/dist/prosekit-web-block-handle.js.map +1 -1
- package/dist/prosekit-web-drop-indicator.d.ts +3 -4
- package/dist/prosekit-web-drop-indicator.d.ts.map +1 -1
- package/dist/prosekit-web-drop-indicator.js +3 -3
- package/dist/prosekit-web-drop-indicator.js.map +1 -1
- package/dist/prosekit-web-inline-popover.d.ts +34 -10
- package/dist/prosekit-web-inline-popover.d.ts.map +1 -1
- package/dist/prosekit-web-inline-popover.js +31 -19
- package/dist/prosekit-web-inline-popover.js.map +1 -1
- package/dist/prosekit-web-menu.d.ts +121 -5
- package/dist/prosekit-web-menu.d.ts.map +1 -1
- package/dist/prosekit-web-menu.js +115 -10
- package/dist/prosekit-web-menu.js.map +1 -1
- package/dist/prosekit-web-popover.d.ts +64 -5
- package/dist/prosekit-web-popover.d.ts.map +1 -1
- package/dist/prosekit-web-popover.js +60 -7
- package/dist/prosekit-web-popover.js.map +1 -1
- package/dist/prosekit-web-resizable.d.ts +14 -7
- package/dist/prosekit-web-resizable.d.ts.map +1 -1
- package/dist/prosekit-web-resizable.js +14 -12
- package/dist/prosekit-web-resizable.js.map +1 -1
- package/dist/prosekit-web-table-handle.d.ts +73 -36
- package/dist/prosekit-web-table-handle.d.ts.map +1 -1
- package/dist/prosekit-web-table-handle.js +73 -65
- package/dist/prosekit-web-table-handle.js.map +1 -1
- package/dist/prosekit-web-tooltip.d.ts +61 -5
- package/dist/prosekit-web-tooltip.d.ts.map +1 -1
- package/dist/prosekit-web-tooltip.js +58 -7
- package/dist/prosekit-web-tooltip.js.map +1 -1
- package/dist/prosekit-web.d.ts +0 -3
- package/dist/prosekit-web.d.ts.map +1 -1
- package/dist/prosekit-web.js +0 -2
- package/dist/prosekit-web.js.map +1 -1
- package/dist/use-editor-extension.js +0 -2
- package/dist/use-editor-extension.js.map +1 -1
- package/dist/use-scrolling.js +0 -4
- package/dist/use-scrolling.js.map +1 -1
- package/package.json +8 -8
- package/src/components/autocomplete/autocomplete-empty.ts +3 -4
- package/src/components/autocomplete/autocomplete-item.ts +11 -1
- package/src/components/autocomplete/autocomplete-popup.ts +11 -1
- package/src/components/autocomplete/autocomplete-positioner.ts +17 -1
- package/src/components/autocomplete/autocomplete-root.ts +5 -1
- package/src/components/block-handle/block-handle-add.ts +3 -1
- package/src/components/block-handle/block-handle-draggable.ts +9 -1
- package/src/components/block-handle/block-handle-popup.ts +9 -1
- package/src/components/block-handle/block-handle-positioner.ts +17 -1
- package/src/components/block-handle/block-handle-root.ts +5 -1
- package/src/components/drop-indicator/drop-indicator.ts +3 -1
- package/src/components/inline-popover/inline-popover-popup.ts +9 -1
- package/src/components/inline-popover/inline-popover-positioner.ts +17 -1
- package/src/components/inline-popover/inline-popover-root.ts +8 -1
- package/src/components/menu/index.ts +140 -43
- package/src/components/popover/index.ts +76 -23
- package/src/components/resizable/resizable-handle.ts +3 -1
- package/src/components/resizable/resizable-root.ts +11 -1
- package/src/components/table-handle/table-handle-column-menu-root.ts +3 -1
- package/src/components/table-handle/table-handle-column-menu-trigger.ts +3 -1
- package/src/components/table-handle/table-handle-column-popup.ts +9 -1
- package/src/components/table-handle/table-handle-column-positioner.ts +17 -1
- package/src/components/table-handle/table-handle-drag-preview.ts +3 -1
- package/src/components/table-handle/table-handle-drop-indicator.ts +3 -1
- package/src/components/table-handle/table-handle-root.ts +3 -1
- package/src/components/table-handle/table-handle-row-menu-root.ts +3 -1
- package/src/components/table-handle/table-handle-row-menu-trigger.ts +3 -1
- package/src/components/table-handle/table-handle-row-popup.ts +9 -1
- package/src/components/table-handle/table-handle-row-positioner.ts +17 -1
- package/src/components/tooltip/index.ts +73 -22
|
@@ -9,7 +9,6 @@ import { MenuRootPropsDeclaration, setupMenuRoot, setupMenuTrigger } from "@aria
|
|
|
9
9
|
import { moveTableColumn, moveTableRow, selectTableColumn, selectTableRow } from "@prosekit/extensions/table";
|
|
10
10
|
import { computePosition, offset } from "@floating-ui/dom";
|
|
11
11
|
import { TableMap, cellAround } from "prosemirror-tables";
|
|
12
|
-
//#region src/components/table-handle/store.ts
|
|
13
12
|
function noop() {}
|
|
14
13
|
function returnTrue() {
|
|
15
14
|
return true;
|
|
@@ -76,8 +75,6 @@ function createTableHandleStore(getHoveringCellInfo, getCanShow) {
|
|
|
76
75
|
* @internal
|
|
77
76
|
*/
|
|
78
77
|
const tableHandleStoreContext = createContext("prosekit-table-handle-store");
|
|
79
|
-
//#endregion
|
|
80
|
-
//#region src/components/table-handle/table-handle-column-popup.ts
|
|
81
78
|
/** @internal */
|
|
82
79
|
const TableHandleColumnPopupPropsDeclaration = defineProps({});
|
|
83
80
|
/** @internal */
|
|
@@ -88,15 +85,21 @@ function setupTableHandleColumnPopup(host, _props) {
|
|
|
88
85
|
}
|
|
89
86
|
const TableHandleColumnPopupElementBase = defineCustomElement(setupTableHandleColumnPopup, TableHandleColumnPopupPropsDeclaration);
|
|
90
87
|
/**
|
|
91
|
-
*
|
|
88
|
+
* `<prosekit-table-handle-column-popup>` custom element.
|
|
89
|
+
*
|
|
90
|
+
* Properties: {@link TableHandleColumnPopupProps}
|
|
91
|
+
*
|
|
92
|
+
* Data attributes:
|
|
93
|
+
*
|
|
94
|
+
* | Attribute | Description |
|
|
95
|
+
* | --- | --- |
|
|
96
|
+
* | `data-state` | `"open"` when visible, `"closed"` otherwise |
|
|
92
97
|
*/
|
|
93
98
|
var TableHandleColumnPopupElement = class extends TableHandleColumnPopupElementBase {};
|
|
94
99
|
/** @internal */
|
|
95
100
|
function registerTableHandleColumnPopupElement() {
|
|
96
101
|
registerCustomElement("prosekit-table-handle-column-popup", TableHandleColumnPopupElement);
|
|
97
102
|
}
|
|
98
|
-
//#endregion
|
|
99
|
-
//#region src/utils/use-html-element-at.ts
|
|
100
103
|
function useHTMLElementAt(getEditor, getPos) {
|
|
101
104
|
return computed(() => {
|
|
102
105
|
const editor = getEditor();
|
|
@@ -106,8 +109,6 @@ function useHTMLElementAt(getEditor, getPos) {
|
|
|
106
109
|
if (element && isHTMLElement(element)) return element;
|
|
107
110
|
});
|
|
108
111
|
}
|
|
109
|
-
//#endregion
|
|
110
|
-
//#region src/components/table-handle/shared.ts
|
|
111
112
|
/** @internal */
|
|
112
113
|
const SharedTableHandlePositionerPropsDeclaration = defineProps({
|
|
113
114
|
...OverlayPositionerPropsDeclaration,
|
|
@@ -142,8 +143,6 @@ const SharedTableHandlePositionerPropsDeclaration = defineProps({
|
|
|
142
143
|
type: "json"
|
|
143
144
|
}
|
|
144
145
|
});
|
|
145
|
-
//#endregion
|
|
146
|
-
//#region src/components/table-handle/table-handle-column-positioner.ts
|
|
147
146
|
/** @internal */
|
|
148
147
|
const TableHandleColumnPositionerPropsDeclaration = defineProps({
|
|
149
148
|
...SharedTableHandlePositionerPropsDeclaration,
|
|
@@ -166,15 +165,29 @@ function setupTableHandleColumnPositioner(host, props) {
|
|
|
166
165
|
}
|
|
167
166
|
const TableHandleColumnPositionerElementBase = defineCustomElement(setupTableHandleColumnPositioner, TableHandleColumnPositionerPropsDeclaration);
|
|
168
167
|
/**
|
|
169
|
-
*
|
|
168
|
+
* `<prosekit-table-handle-column-positioner>` custom element.
|
|
169
|
+
*
|
|
170
|
+
* Properties: {@link TableHandleColumnPositionerProps}
|
|
171
|
+
*
|
|
172
|
+
* Data attributes:
|
|
173
|
+
*
|
|
174
|
+
* | Attribute | Description |
|
|
175
|
+
* | --- | --- |
|
|
176
|
+
* | `data-state` | `"open"` when visible, `"closed"` otherwise |
|
|
177
|
+
* | `data-side` | The side of the anchor element the positioner is on |
|
|
178
|
+
* | `data-align` | The alignment of the positioner relative to the anchor element |
|
|
179
|
+
*
|
|
180
|
+
* CSS variables:
|
|
181
|
+
*
|
|
182
|
+
* | Variable | Description |
|
|
183
|
+
* | --- | --- |
|
|
184
|
+
* | `--transform-origin` | The coordinates that this element is anchored to. Useful for scale animations. |
|
|
170
185
|
*/
|
|
171
186
|
var TableHandleColumnPositionerElement = class extends TableHandleColumnPositionerElementBase {};
|
|
172
187
|
/** @internal */
|
|
173
188
|
function registerTableHandleColumnPositionerElement() {
|
|
174
189
|
registerCustomElement("prosekit-table-handle-column-positioner", TableHandleColumnPositionerElement);
|
|
175
190
|
}
|
|
176
|
-
//#endregion
|
|
177
|
-
//#region src/components/table-handle/table-handle-column-menu-root.ts
|
|
178
191
|
/** @internal */
|
|
179
192
|
const TableHandleColumnMenuRootPropsDeclaration = defineProps(MenuRootPropsDeclaration);
|
|
180
193
|
/** @internal */
|
|
@@ -190,15 +203,15 @@ function setupTableHandleColumnMenuRoot(host, props) {
|
|
|
190
203
|
}
|
|
191
204
|
const TableHandleColumnMenuRootElementBase = defineCustomElement(setupTableHandleColumnMenuRoot, TableHandleColumnMenuRootPropsDeclaration);
|
|
192
205
|
/**
|
|
193
|
-
*
|
|
206
|
+
* `<prosekit-table-handle-column-menu-root>` custom element.
|
|
207
|
+
*
|
|
208
|
+
* Properties: {@link TableHandleColumnMenuRootProps}
|
|
194
209
|
*/
|
|
195
210
|
var TableHandleColumnMenuRootElement = class extends TableHandleColumnMenuRootElementBase {};
|
|
196
211
|
/** @internal */
|
|
197
212
|
function registerTableHandleColumnMenuRootElement() {
|
|
198
213
|
registerCustomElement("prosekit-table-handle-column-menu-root", TableHandleColumnMenuRootElement);
|
|
199
214
|
}
|
|
200
|
-
//#endregion
|
|
201
|
-
//#region src/components/table-handle/use-empty-image.ts
|
|
202
215
|
/**
|
|
203
216
|
* Returns a function that returns a 1x1 transparent image. This is used to
|
|
204
217
|
* prevent the browser from showing the default drag image. An earth icon in
|
|
@@ -221,8 +234,6 @@ function useEmptyImage(host) {
|
|
|
221
234
|
});
|
|
222
235
|
return () => image;
|
|
223
236
|
}
|
|
224
|
-
//#endregion
|
|
225
|
-
//#region src/components/table-handle/table-handle-column-menu-trigger.ts
|
|
226
237
|
/** @internal */
|
|
227
238
|
const TableHandleColumnMenuTriggerPropsDeclaration = defineProps({ editor: {
|
|
228
239
|
default: null,
|
|
@@ -270,7 +281,9 @@ function setupTableHandleColumnMenuTrigger(host, props) {
|
|
|
270
281
|
}
|
|
271
282
|
const TableHandleColumnMenuTriggerElementBase = defineCustomElement(setupTableHandleColumnMenuTrigger, TableHandleColumnMenuTriggerPropsDeclaration);
|
|
272
283
|
/**
|
|
273
|
-
*
|
|
284
|
+
* `<prosekit-table-handle-column-menu-trigger>` custom element.
|
|
285
|
+
*
|
|
286
|
+
* Properties: {@link TableHandleColumnMenuTriggerProps}
|
|
274
287
|
*/
|
|
275
288
|
var TableHandleColumnMenuTriggerElement = class extends TableHandleColumnMenuTriggerElementBase {};
|
|
276
289
|
/**
|
|
@@ -279,8 +292,6 @@ var TableHandleColumnMenuTriggerElement = class extends TableHandleColumnMenuTri
|
|
|
279
292
|
function registerTableHandleColumnMenuTriggerElement() {
|
|
280
293
|
registerCustomElement("prosekit-table-handle-column-menu-trigger", TableHandleColumnMenuTriggerElement);
|
|
281
294
|
}
|
|
282
|
-
//#endregion
|
|
283
|
-
//#region src/components/table-handle/dnd.ts
|
|
284
295
|
function useInitDndPosition(host, getEditor, onInit) {
|
|
285
296
|
const getStore = tableHandleStoreContext.consume(host);
|
|
286
297
|
useEffect(host, () => {
|
|
@@ -345,8 +356,6 @@ function getDndRelatedDOMs(view, cellPos, draggingIndex, direction) {
|
|
|
345
356
|
cell
|
|
346
357
|
};
|
|
347
358
|
}
|
|
348
|
-
//#endregion
|
|
349
|
-
//#region src/utils/clone-element.ts
|
|
350
359
|
/**
|
|
351
360
|
* Creates a deep clone of an Element, including all computed styles so that
|
|
352
361
|
* it looks almost exactly the same as the original element.
|
|
@@ -407,8 +416,6 @@ function copyStyles(source, target, important) {
|
|
|
407
416
|
}
|
|
408
417
|
return styles.join("\n");
|
|
409
418
|
}
|
|
410
|
-
//#endregion
|
|
411
|
-
//#region src/utils/css-feature-detection.ts
|
|
412
419
|
const isColorMixSupported = once(() => {
|
|
413
420
|
try {
|
|
414
421
|
return CSS.supports("background-color", "color-mix(in srgb, red, blue)");
|
|
@@ -416,8 +423,6 @@ const isColorMixSupported = once(() => {
|
|
|
416
423
|
return false;
|
|
417
424
|
}
|
|
418
425
|
});
|
|
419
|
-
//#endregion
|
|
420
|
-
//#region src/utils/fade-color.ts
|
|
421
426
|
/**
|
|
422
427
|
* Convert a color to a color with opacity
|
|
423
428
|
* @param color - The color to convert
|
|
@@ -430,8 +435,6 @@ function fadeColor(color, opacity) {
|
|
|
430
435
|
return `color-mix(in srgb, ${color} ${opacity * 100}%, transparent ${transparentWeight}%)`;
|
|
431
436
|
}
|
|
432
437
|
}
|
|
433
|
-
//#endregion
|
|
434
|
-
//#region src/utils/get-effective-background-color.ts
|
|
435
438
|
function getEffectiveBackgroundColor(element) {
|
|
436
439
|
let current = element;
|
|
437
440
|
while (current) {
|
|
@@ -440,16 +443,12 @@ function getEffectiveBackgroundColor(element) {
|
|
|
440
443
|
current = current.parentElement;
|
|
441
444
|
}
|
|
442
445
|
}
|
|
443
|
-
//#endregion
|
|
444
|
-
//#region src/utils/inject-style.ts
|
|
445
446
|
function injectStyle(container, styleText) {
|
|
446
447
|
if (!styleText) return;
|
|
447
448
|
const style = getDocument(container).createElement("style");
|
|
448
449
|
style.textContent = styleText;
|
|
449
450
|
container.appendChild(style);
|
|
450
451
|
}
|
|
451
|
-
//#endregion
|
|
452
|
-
//#region src/components/table-handle/render-preview.ts
|
|
453
452
|
function clearPreviewDOM(previewRoot) {
|
|
454
453
|
while (previewRoot.firstChild) previewRoot.removeChild(previewRoot.firstChild);
|
|
455
454
|
}
|
|
@@ -498,8 +497,6 @@ function unsetSize(element) {
|
|
|
498
497
|
maxHeight: "unset"
|
|
499
498
|
});
|
|
500
499
|
}
|
|
501
|
-
//#endregion
|
|
502
|
-
//#region src/components/table-handle/table-handle-drag-preview.ts
|
|
503
500
|
/** @internal */
|
|
504
501
|
const TableHandleDragPreviewPropsDeclaration = defineProps({ editor: {
|
|
505
502
|
default: null,
|
|
@@ -591,7 +588,9 @@ function getVirtualElement(cell, x, y) {
|
|
|
591
588
|
}
|
|
592
589
|
const TableHandleDragPreviewElementBase = defineCustomElement(setupTableHandleDragPreview, TableHandleDragPreviewPropsDeclaration);
|
|
593
590
|
/**
|
|
594
|
-
*
|
|
591
|
+
* `<prosekit-table-handle-drag-preview>` custom element.
|
|
592
|
+
*
|
|
593
|
+
* Properties: {@link TableHandleDragPreviewProps}
|
|
595
594
|
*/
|
|
596
595
|
var TableHandleDragPreviewElement = class extends TableHandleDragPreviewElementBase {};
|
|
597
596
|
/**
|
|
@@ -600,8 +599,6 @@ var TableHandleDragPreviewElement = class extends TableHandleDragPreviewElementB
|
|
|
600
599
|
function registerTableHandleDragPreviewElement() {
|
|
601
600
|
registerCustomElement("prosekit-table-handle-drag-preview", TableHandleDragPreviewElement);
|
|
602
601
|
}
|
|
603
|
-
//#endregion
|
|
604
|
-
//#region src/components/table-handle/calc-drag-over.ts
|
|
605
602
|
function findDragOverElement(elements, pointer, axis) {
|
|
606
603
|
const startProp = axis === "x" ? "left" : "top";
|
|
607
604
|
const endProp = axis === "x" ? "right" : "bottom";
|
|
@@ -625,8 +622,6 @@ function getDragOverColumn(table, pointerX) {
|
|
|
625
622
|
function getDragOverRow(table, pointerY) {
|
|
626
623
|
return findDragOverElement(Array.from(table.querySelectorAll("tr")), pointerY, "y");
|
|
627
624
|
}
|
|
628
|
-
//#endregion
|
|
629
|
-
//#region src/components/table-handle/table-handle-drop-indicator.ts
|
|
630
625
|
const HANDLE_WIDTH = 2;
|
|
631
626
|
/** @internal */
|
|
632
627
|
const TableHandleDropIndicatorPropsDeclaration = defineProps({ editor: {
|
|
@@ -716,7 +711,9 @@ function useUpdateIndicatorPosition(host, getEditor, handleWidth) {
|
|
|
716
711
|
}
|
|
717
712
|
const TableHandleDropIndicatorElementBase = defineCustomElement(setupTableHandleDropIndicator, TableHandleDropIndicatorPropsDeclaration);
|
|
718
713
|
/**
|
|
719
|
-
*
|
|
714
|
+
* `<prosekit-table-handle-drop-indicator>` custom element.
|
|
715
|
+
*
|
|
716
|
+
* Properties: {@link TableHandleDropIndicatorProps}
|
|
720
717
|
*/
|
|
721
718
|
var TableHandleDropIndicatorElement = class extends TableHandleDropIndicatorElementBase {};
|
|
722
719
|
/**
|
|
@@ -725,8 +722,6 @@ var TableHandleDropIndicatorElement = class extends TableHandleDropIndicatorElem
|
|
|
725
722
|
function registerTableHandleDropIndicatorElement() {
|
|
726
723
|
registerCustomElement("prosekit-table-handle-drop-indicator", TableHandleDropIndicatorElement);
|
|
727
724
|
}
|
|
728
|
-
//#endregion
|
|
729
|
-
//#region src/hooks/use-editor-typing.ts
|
|
730
725
|
function useEditorTyping(host, getEditor) {
|
|
731
726
|
const typing = createSignal(false);
|
|
732
727
|
useEditorExtension(host, getEditor, union(defineDOMEventHandler("keypress", () => {
|
|
@@ -736,8 +731,6 @@ function useEditorTyping(host, getEditor) {
|
|
|
736
731
|
})));
|
|
737
732
|
return typing.get;
|
|
738
733
|
}
|
|
739
|
-
//#endregion
|
|
740
|
-
//#region src/hooks/use-selecting.ts
|
|
741
734
|
/**
|
|
742
735
|
* Detect if the user is selecting text inside the editor, in which case some
|
|
743
736
|
* components should be disabled or hidden.
|
|
@@ -772,8 +765,6 @@ function useSelecting(host, getEditor, getEnabled) {
|
|
|
772
765
|
});
|
|
773
766
|
return selecting.get;
|
|
774
767
|
}
|
|
775
|
-
//#endregion
|
|
776
|
-
//#region src/components/table-handle/use-drop.ts
|
|
777
768
|
function useDrop(host, getEditor, store) {
|
|
778
769
|
const getDndStore = () => store.dndStore;
|
|
779
770
|
const getDragging = computed(() => getDndStore().dragging.get());
|
|
@@ -834,8 +825,6 @@ function useDrop(host, getEditor, store) {
|
|
|
834
825
|
};
|
|
835
826
|
});
|
|
836
827
|
}
|
|
837
|
-
//#endregion
|
|
838
|
-
//#region src/components/table-handle/utils.ts
|
|
839
828
|
function isHoveringCellInfoEqual(a, b) {
|
|
840
829
|
if (!a && !b) return true;
|
|
841
830
|
if (!a || !b) return false;
|
|
@@ -881,8 +870,6 @@ function getCellPos(map, tableStart, rowIndex, colIndex) {
|
|
|
881
870
|
function getCellIndex(map, rowIndex, colIndex) {
|
|
882
871
|
return map.width * rowIndex + colIndex;
|
|
883
872
|
}
|
|
884
|
-
//#endregion
|
|
885
|
-
//#region src/components/table-handle/table-handle-root.ts
|
|
886
873
|
/** @internal */
|
|
887
874
|
const TableHandleRootPropsDeclaration = defineProps({ editor: {
|
|
888
875
|
default: null,
|
|
@@ -918,7 +905,9 @@ function defineCellHoverHandler(handler) {
|
|
|
918
905
|
}
|
|
919
906
|
const TableHandleRootElementBase = defineCustomElement(setupTableHandleRoot, TableHandleRootPropsDeclaration);
|
|
920
907
|
/**
|
|
921
|
-
*
|
|
908
|
+
* `<prosekit-table-handle-root>` custom element.
|
|
909
|
+
*
|
|
910
|
+
* Properties: {@link TableHandleRootProps}
|
|
922
911
|
*/
|
|
923
912
|
var TableHandleRootElement = class extends TableHandleRootElementBase {};
|
|
924
913
|
/**
|
|
@@ -927,8 +916,6 @@ var TableHandleRootElement = class extends TableHandleRootElementBase {};
|
|
|
927
916
|
function registerTableHandleRootElement() {
|
|
928
917
|
registerCustomElement("prosekit-table-handle-root", TableHandleRootElement);
|
|
929
918
|
}
|
|
930
|
-
//#endregion
|
|
931
|
-
//#region src/components/table-handle/table-handle-row-popup.ts
|
|
932
919
|
/** @internal */
|
|
933
920
|
const TableHandleRowPopupPropsDeclaration = defineProps({});
|
|
934
921
|
/** @internal */
|
|
@@ -939,15 +926,21 @@ function setupTableHandleRowPopup(host, _props) {
|
|
|
939
926
|
}
|
|
940
927
|
const TableHandleRowPopupElementBase = defineCustomElement(setupTableHandleRowPopup, TableHandleRowPopupPropsDeclaration);
|
|
941
928
|
/**
|
|
942
|
-
*
|
|
929
|
+
* `<prosekit-table-handle-row-popup>` custom element.
|
|
930
|
+
*
|
|
931
|
+
* Properties: {@link TableHandleRowPopupProps}
|
|
932
|
+
*
|
|
933
|
+
* Data attributes:
|
|
934
|
+
*
|
|
935
|
+
* | Attribute | Description |
|
|
936
|
+
* | --- | --- |
|
|
937
|
+
* | `data-state` | `"open"` when visible, `"closed"` otherwise |
|
|
943
938
|
*/
|
|
944
939
|
var TableHandleRowPopupElement = class extends TableHandleRowPopupElementBase {};
|
|
945
940
|
/** @internal */
|
|
946
941
|
function registerTableHandleRowPopupElement() {
|
|
947
942
|
registerCustomElement("prosekit-table-handle-row-popup", TableHandleRowPopupElement);
|
|
948
943
|
}
|
|
949
|
-
//#endregion
|
|
950
|
-
//#region src/components/table-handle/table-handle-row-positioner.ts
|
|
951
944
|
/** @internal */
|
|
952
945
|
const TableHandleRowPositionerPropsDeclaration = defineProps({
|
|
953
946
|
...SharedTableHandlePositionerPropsDeclaration,
|
|
@@ -970,15 +963,29 @@ function setupTableHandleRowPositioner(host, props) {
|
|
|
970
963
|
}
|
|
971
964
|
const TableHandleRowPositionerElementBase = defineCustomElement(setupTableHandleRowPositioner, TableHandleRowPositionerPropsDeclaration);
|
|
972
965
|
/**
|
|
973
|
-
*
|
|
966
|
+
* `<prosekit-table-handle-row-positioner>` custom element.
|
|
967
|
+
*
|
|
968
|
+
* Properties: {@link TableHandleRowPositionerProps}
|
|
969
|
+
*
|
|
970
|
+
* Data attributes:
|
|
971
|
+
*
|
|
972
|
+
* | Attribute | Description |
|
|
973
|
+
* | --- | --- |
|
|
974
|
+
* | `data-state` | `"open"` when visible, `"closed"` otherwise |
|
|
975
|
+
* | `data-side` | The side of the anchor element the positioner is on |
|
|
976
|
+
* | `data-align` | The alignment of the positioner relative to the anchor element |
|
|
977
|
+
*
|
|
978
|
+
* CSS variables:
|
|
979
|
+
*
|
|
980
|
+
* | Variable | Description |
|
|
981
|
+
* | --- | --- |
|
|
982
|
+
* | `--transform-origin` | The coordinates that this element is anchored to. Useful for scale animations. |
|
|
974
983
|
*/
|
|
975
984
|
var TableHandleRowPositionerElement = class extends TableHandleRowPositionerElementBase {};
|
|
976
985
|
/** @internal */
|
|
977
986
|
function registerTableHandleRowPositionerElement() {
|
|
978
987
|
registerCustomElement("prosekit-table-handle-row-positioner", TableHandleRowPositionerElement);
|
|
979
988
|
}
|
|
980
|
-
//#endregion
|
|
981
|
-
//#region src/components/table-handle/table-handle-row-menu-root.ts
|
|
982
989
|
/** @internal */
|
|
983
990
|
const TableHandleRowMenuRootPropsDeclaration = defineProps(MenuRootPropsDeclaration);
|
|
984
991
|
/** @internal */
|
|
@@ -994,15 +1001,15 @@ function setupTableHandleRowMenuRoot(host, props) {
|
|
|
994
1001
|
}
|
|
995
1002
|
const TableHandleRowMenuRootElementBase = defineCustomElement(setupTableHandleRowMenuRoot, TableHandleRowMenuRootPropsDeclaration);
|
|
996
1003
|
/**
|
|
997
|
-
*
|
|
1004
|
+
* `<prosekit-table-handle-row-menu-root>` custom element.
|
|
1005
|
+
*
|
|
1006
|
+
* Properties: {@link TableHandleRowMenuRootProps}
|
|
998
1007
|
*/
|
|
999
1008
|
var TableHandleRowMenuRootElement = class extends TableHandleRowMenuRootElementBase {};
|
|
1000
1009
|
/** @internal */
|
|
1001
1010
|
function registerTableHandleRowMenuRootElement() {
|
|
1002
1011
|
registerCustomElement("prosekit-table-handle-row-menu-root", TableHandleRowMenuRootElement);
|
|
1003
1012
|
}
|
|
1004
|
-
//#endregion
|
|
1005
|
-
//#region src/components/table-handle/table-handle-row-menu-trigger.ts
|
|
1006
1013
|
/** @internal */
|
|
1007
1014
|
const TableHandleRowMenuTriggerPropsDeclaration = defineProps({ editor: {
|
|
1008
1015
|
default: null,
|
|
@@ -1049,7 +1056,9 @@ function setupTableHandleRowMenuTrigger(host, props) {
|
|
|
1049
1056
|
}
|
|
1050
1057
|
const TableHandleRowMenuTriggerElementBase = defineCustomElement(setupTableHandleRowMenuTrigger, TableHandleRowMenuTriggerPropsDeclaration);
|
|
1051
1058
|
/**
|
|
1052
|
-
*
|
|
1059
|
+
* `<prosekit-table-handle-row-menu-trigger>` custom element.
|
|
1060
|
+
*
|
|
1061
|
+
* Properties: {@link TableHandleRowMenuTriggerProps}
|
|
1053
1062
|
*/
|
|
1054
1063
|
var TableHandleRowMenuTriggerElement = class extends TableHandleRowMenuTriggerElementBase {};
|
|
1055
1064
|
/**
|
|
@@ -1058,7 +1067,6 @@ var TableHandleRowMenuTriggerElement = class extends TableHandleRowMenuTriggerEl
|
|
|
1058
1067
|
function registerTableHandleRowMenuTriggerElement() {
|
|
1059
1068
|
registerCustomElement("prosekit-table-handle-row-menu-trigger", TableHandleRowMenuTriggerElement);
|
|
1060
1069
|
}
|
|
1061
|
-
//#endregion
|
|
1062
1070
|
export { TableHandleColumnMenuRootElement, TableHandleColumnMenuRootPropsDeclaration, TableHandleColumnMenuTriggerElement, TableHandleColumnMenuTriggerPropsDeclaration, TableHandleColumnPopupElement, TableHandleColumnPopupPropsDeclaration, TableHandleColumnPositionerElement, TableHandleColumnPositionerPropsDeclaration, TableHandleDragPreviewElement, TableHandleDragPreviewPropsDeclaration, TableHandleDropIndicatorElement, TableHandleDropIndicatorPropsDeclaration, TableHandleRootElement, TableHandleRootPropsDeclaration, TableHandleRowMenuRootElement, TableHandleRowMenuRootPropsDeclaration, TableHandleRowMenuTriggerElement, TableHandleRowMenuTriggerPropsDeclaration, TableHandleRowPopupElement, TableHandleRowPopupPropsDeclaration, TableHandleRowPositionerElement, TableHandleRowPositionerPropsDeclaration, registerTableHandleColumnMenuRootElement, registerTableHandleColumnMenuTriggerElement, registerTableHandleColumnPopupElement, registerTableHandleColumnPositionerElement, registerTableHandleDragPreviewElement, registerTableHandleDropIndicatorElement, registerTableHandleRootElement, registerTableHandleRowMenuRootElement, registerTableHandleRowMenuTriggerElement, registerTableHandleRowPopupElement, registerTableHandleRowPositionerElement, setupTableHandleColumnMenuRoot, setupTableHandleColumnMenuTrigger, setupTableHandleColumnPopup, setupTableHandleColumnPositioner, setupTableHandleDragPreview, setupTableHandleDropIndicator, setupTableHandleRoot, setupTableHandleRowMenuRoot, setupTableHandleRowMenuTrigger, setupTableHandleRowPopup, setupTableHandleRowPositioner };
|
|
1063
1071
|
|
|
1064
1072
|
//# sourceMappingURL=prosekit-web-table-handle.js.map
|