@abraca/nuxt 0.3.0 → 1.5.0
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/module.d.mts +26 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +51 -8
- package/dist/runtime/components/AAccountSwitcherModal.d.vue.ts +10 -0
- package/dist/runtime/components/AAccountSwitcherModal.vue +158 -0
- package/dist/runtime/components/AAccountSwitcherModal.vue.d.ts +10 -0
- package/dist/runtime/components/AClaimAccountModal.d.vue.ts +10 -0
- package/dist/runtime/components/AClaimAccountModal.vue +230 -0
- package/dist/runtime/components/AClaimAccountModal.vue.d.ts +10 -0
- package/dist/runtime/components/ACollaborationUsers.vue +1 -0
- package/dist/runtime/components/AColorPicker.vue +4 -2
- package/dist/runtime/components/ACommandPalette.vue +4 -2
- package/dist/runtime/components/AConnectServerModal.d.vue.ts +12 -0
- package/dist/runtime/components/AConnectServerModal.vue +200 -0
- package/dist/runtime/components/AConnectServerModal.vue.d.ts +12 -0
- package/dist/runtime/components/AConnectionStatus.vue +1 -0
- package/dist/runtime/components/ADocPickModal.d.vue.ts +13 -0
- package/dist/runtime/components/ADocPickModal.vue +71 -0
- package/dist/runtime/components/ADocPickModal.vue.d.ts +13 -0
- package/dist/runtime/components/ADocRenderer.d.vue.ts +1 -1
- package/dist/runtime/components/ADocRenderer.vue +6 -0
- package/dist/runtime/components/ADocRenderer.vue.d.ts +1 -1
- package/dist/runtime/components/ADocTypeSelect.vue +4 -3
- package/dist/runtime/components/ADocumentTree.d.vue.ts +3 -3
- package/dist/runtime/components/ADocumentTree.vue +118 -10
- package/dist/runtime/components/ADocumentTree.vue.d.ts +3 -3
- package/dist/runtime/components/AEditor.d.vue.ts +4 -4
- package/dist/runtime/components/AEditor.vue +16 -1
- package/dist/runtime/components/AEditor.vue.d.ts +4 -4
- package/dist/runtime/components/AFloatingWindow.d.vue.ts +54 -2
- package/dist/runtime/components/AFloatingWindow.vue +15 -14
- package/dist/runtime/components/AFloatingWindow.vue.d.ts +54 -2
- package/dist/runtime/components/AIconPicker.vue +2 -0
- package/dist/runtime/components/AInviteRedeemModal.d.vue.ts +10 -0
- package/dist/runtime/components/AInviteRedeemModal.vue +122 -0
- package/dist/runtime/components/AInviteRedeemModal.vue.d.ts +10 -0
- package/dist/runtime/components/ANodePanel.vue +10 -2
- package/dist/runtime/components/ANotifications.vue +3 -1
- package/dist/runtime/components/APermissionGuard.vue +1 -0
- package/dist/runtime/components/APresence.vue +1 -0
- package/dist/runtime/components/AProvider.d.vue.ts +0 -1
- package/dist/runtime/components/AProvider.vue +17 -4
- package/dist/runtime/components/AProvider.vue.d.ts +0 -1
- package/dist/runtime/components/ARoleBadge.vue +1 -0
- package/dist/runtime/components/ASpaceFormModal.d.vue.ts +16 -0
- package/dist/runtime/components/ASpaceFormModal.vue +182 -0
- package/dist/runtime/components/ASpaceFormModal.vue.d.ts +16 -0
- package/dist/runtime/components/AVoiceBar.vue +3 -1
- package/dist/runtime/components/AVoiceTile.vue +1 -0
- package/dist/runtime/components/AWindowLayer.vue +1 -0
- package/dist/runtime/components/aware/AArea.d.vue.ts +1 -1
- package/dist/runtime/components/aware/AArea.vue +2 -1
- package/dist/runtime/components/aware/AArea.vue.d.ts +1 -1
- package/dist/runtime/components/aware/AAvatar.vue +2 -0
- package/dist/runtime/components/aware/AButton.vue +2 -1
- package/dist/runtime/components/aware/ACursorLabel.vue +1 -0
- package/dist/runtime/components/aware/ADocBadge.vue +2 -0
- package/dist/runtime/components/aware/AFacepile.vue +2 -0
- package/dist/runtime/components/aware/AInput.vue +3 -2
- package/dist/runtime/components/aware/ASelect.vue +3 -2
- package/dist/runtime/components/aware/ATextarea.vue +3 -2
- package/dist/runtime/components/aware/AUserList.vue +2 -0
- package/dist/runtime/components/chat/AChatAgentStatus.d.vue.ts +15 -0
- package/dist/runtime/components/chat/AChatAgentStatus.vue +95 -0
- package/dist/runtime/components/chat/AChatAgentStatus.vue.d.ts +15 -0
- package/dist/runtime/components/chat/AChatDocLink.d.vue.ts +18 -0
- package/dist/runtime/components/chat/AChatDocLink.vue +29 -0
- package/dist/runtime/components/chat/AChatDocLink.vue.d.ts +18 -0
- package/dist/runtime/components/chat/AChatDocQuote.d.vue.ts +26 -0
- package/dist/runtime/components/chat/AChatDocQuote.vue +47 -0
- package/dist/runtime/components/chat/AChatDocQuote.vue.d.ts +26 -0
- package/dist/runtime/components/chat/AChatInput.d.vue.ts +45 -0
- package/dist/runtime/components/chat/AChatInput.vue +219 -0
- package/dist/runtime/components/chat/AChatInput.vue.d.ts +45 -0
- package/dist/runtime/components/chat/AChatList.d.vue.ts +59 -0
- package/dist/runtime/components/chat/AChatList.vue +184 -0
- package/dist/runtime/components/chat/AChatList.vue.d.ts +59 -0
- package/dist/runtime/components/chat/AChatMemberList.d.vue.ts +24 -0
- package/dist/runtime/components/chat/AChatMemberList.vue +97 -0
- package/dist/runtime/components/chat/AChatMemberList.vue.d.ts +24 -0
- package/dist/runtime/components/chat/AChatMessages.d.vue.ts +31 -0
- package/dist/runtime/components/chat/AChatMessages.vue +161 -0
- package/dist/runtime/components/chat/AChatMessages.vue.d.ts +31 -0
- package/dist/runtime/components/chat/AChatPanel.d.vue.ts +84 -0
- package/dist/runtime/components/chat/AChatPanel.vue +89 -0
- package/dist/runtime/components/chat/AChatPanel.vue.d.ts +84 -0
- package/dist/runtime/components/chat/AChatTypingIndicator.d.vue.ts +11 -0
- package/dist/runtime/components/chat/AChatTypingIndicator.vue +58 -0
- package/dist/runtime/components/chat/AChatTypingIndicator.vue.d.ts +11 -0
- package/dist/runtime/components/editor/AColorPalettePopover.d.vue.ts +23 -0
- package/dist/runtime/components/editor/AColorPalettePopover.vue +71 -0
- package/dist/runtime/components/editor/AColorPalettePopover.vue.d.ts +23 -0
- package/dist/runtime/components/editor/ADocLinkPopover.d.vue.ts +7 -0
- package/dist/runtime/components/editor/ADocLinkPopover.vue +74 -0
- package/dist/runtime/components/editor/ADocLinkPopover.vue.d.ts +7 -0
- package/dist/runtime/components/editor/AFileAudioPlayer.d.vue.ts +10 -0
- package/dist/runtime/components/editor/AFileAudioPlayer.vue +353 -0
- package/dist/runtime/components/editor/AFileAudioPlayer.vue.d.ts +10 -0
- package/dist/runtime/components/editor/AFileGlbViewer.d.vue.ts +13 -0
- package/dist/runtime/components/editor/AFileGlbViewer.vue +187 -0
- package/dist/runtime/components/editor/AFileGlbViewer.vue.d.ts +13 -0
- package/dist/runtime/components/editor/AFileVideoPlayer.d.vue.ts +7 -0
- package/dist/runtime/components/editor/AFileVideoPlayer.vue +62 -0
- package/dist/runtime/components/editor/AFileVideoPlayer.vue.d.ts +7 -0
- package/dist/runtime/components/editor/ALinkPopover.d.vue.ts +8 -0
- package/dist/runtime/components/editor/ALinkPopover.vue +149 -0
- package/dist/runtime/components/editor/ALinkPopover.vue.d.ts +8 -0
- package/dist/runtime/components/editor/ALocationPickerPopover.d.vue.ts +28 -0
- package/dist/runtime/components/editor/ALocationPickerPopover.vue +232 -0
- package/dist/runtime/components/editor/ALocationPickerPopover.vue.d.ts +28 -0
- package/dist/runtime/components/renderers/ACalendarRenderer.d.vue.ts +2 -0
- package/dist/runtime/components/renderers/ACalendarRenderer.vue +207 -327
- package/dist/runtime/components/renderers/ACalendarRenderer.vue.d.ts +2 -0
- package/dist/runtime/components/renderers/ACallRenderer.vue +3 -0
- package/dist/runtime/components/renderers/AChecklistRenderer.vue +1 -0
- package/dist/runtime/components/renderers/ADashboardRenderer.vue +14 -12
- package/dist/runtime/components/renderers/AGalleryRenderer.vue +120 -12
- package/dist/runtime/components/renderers/AGraphRenderer.vue +5 -2
- package/dist/runtime/components/renderers/AKanbanRenderer.vue +21 -5
- package/dist/runtime/components/renderers/AMapRenderer.vue +2 -0
- package/dist/runtime/components/renderers/AMediaRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/AMediaRenderer.vue +224 -0
- package/dist/runtime/components/renderers/AMediaRenderer.vue.d.ts +19 -0
- package/dist/runtime/components/renderers/AOutlineRenderer.vue +1 -0
- package/dist/runtime/components/renderers/ASpatialRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/ASpatialRenderer.vue +436 -0
- package/dist/runtime/components/renderers/ASpatialRenderer.vue.d.ts +19 -0
- package/dist/runtime/components/renderers/ATableRenderer.vue +65 -45
- package/dist/runtime/components/renderers/ATimelineRenderer.vue +282 -260
- package/dist/runtime/components/renderers/calendar/ACalendarDayCell.d.vue.ts +41 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayCell.vue +109 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayCell.vue.d.ts +41 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayView.d.vue.ts +49 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayView.vue +152 -0
- package/dist/runtime/components/renderers/calendar/ACalendarDayView.vue.d.ts +49 -0
- package/dist/runtime/components/renderers/calendar/ACalendarEventChip.d.vue.ts +39 -0
- package/dist/runtime/components/renderers/calendar/ACalendarEventChip.vue +101 -0
- package/dist/runtime/components/renderers/calendar/ACalendarEventChip.vue.d.ts +39 -0
- package/dist/runtime/components/renderers/calendar/ACalendarMonthView.d.vue.ts +43 -0
- package/dist/runtime/components/renderers/calendar/ACalendarMonthView.vue +87 -0
- package/dist/runtime/components/renderers/calendar/ACalendarMonthView.vue.d.ts +43 -0
- package/dist/runtime/components/renderers/calendar/ACalendarToolbar.d.vue.ts +38 -0
- package/dist/runtime/components/renderers/calendar/ACalendarToolbar.vue +206 -0
- package/dist/runtime/components/renderers/calendar/ACalendarToolbar.vue.d.ts +38 -0
- package/dist/runtime/components/renderers/calendar/ACalendarUnscheduled.d.vue.ts +28 -0
- package/dist/runtime/components/renderers/calendar/ACalendarUnscheduled.vue +33 -0
- package/dist/runtime/components/renderers/calendar/ACalendarUnscheduled.vue.d.ts +28 -0
- package/dist/runtime/components/renderers/calendar/ACalendarWeekView.d.vue.ts +50 -0
- package/dist/runtime/components/renderers/calendar/ACalendarWeekView.vue +188 -0
- package/dist/runtime/components/renderers/calendar/ACalendarWeekView.vue.d.ts +50 -0
- package/dist/runtime/components/renderers/media/MediaPlaylist.d.vue.ts +25 -0
- package/dist/runtime/components/renderers/media/MediaPlaylist.vue +115 -0
- package/dist/runtime/components/renderers/media/MediaPlaylist.vue.d.ts +25 -0
- package/dist/runtime/components/renderers/media/MediaSyncBar.d.vue.ts +21 -0
- package/dist/runtime/components/renderers/media/MediaSyncBar.vue +61 -0
- package/dist/runtime/components/renderers/media/MediaSyncBar.vue.d.ts +21 -0
- package/dist/runtime/components/renderers/media/MediaTransportBar.d.vue.ts +22 -0
- package/dist/runtime/components/renderers/media/MediaTransportBar.vue +98 -0
- package/dist/runtime/components/renderers/media/MediaTransportBar.vue.d.ts +22 -0
- package/dist/runtime/components/renderers/spatial/SpatialGround.d.vue.ts +20 -0
- package/dist/runtime/components/renderers/spatial/SpatialGround.vue +26 -0
- package/dist/runtime/components/renderers/spatial/SpatialGround.vue.d.ts +20 -0
- package/dist/runtime/components/renderers/spatial/SpatialObject.d.vue.ts +17 -0
- package/dist/runtime/components/renderers/spatial/SpatialObject.vue +257 -0
- package/dist/runtime/components/renderers/spatial/SpatialObject.vue.d.ts +17 -0
- package/dist/runtime/components/renderers/spatial/SpatialSceneBridge.d.vue.ts +15 -0
- package/dist/runtime/components/renderers/spatial/SpatialSceneBridge.vue +18 -0
- package/dist/runtime/components/renderers/spatial/SpatialSceneBridge.vue.d.ts +15 -0
- package/dist/runtime/components/renderers/spatial/SpatialUserAvatar.d.vue.ts +8 -0
- package/dist/runtime/components/renderers/spatial/SpatialUserAvatar.vue +53 -0
- package/dist/runtime/components/renderers/spatial/SpatialUserAvatar.vue.d.ts +8 -0
- package/dist/runtime/components/renderers/table/ATableColumnHeader.d.vue.ts +25 -0
- package/dist/runtime/components/renderers/table/ATableColumnHeader.vue +129 -0
- package/dist/runtime/components/renderers/table/ATableColumnHeader.vue.d.ts +25 -0
- package/dist/runtime/components/renderers/table/ATableFlatMode.d.vue.ts +21 -0
- package/dist/runtime/components/renderers/table/ATableFlatMode.vue +370 -0
- package/dist/runtime/components/renderers/table/ATableFlatMode.vue.d.ts +21 -0
- package/dist/runtime/components/renderers/table/ATableToolbar.d.vue.ts +22 -0
- package/dist/runtime/components/renderers/table/ATableToolbar.vue +106 -0
- package/dist/runtime/components/renderers/table/ATableToolbar.vue.d.ts +22 -0
- package/dist/runtime/components/renderers/table/cells/ATableCell.d.vue.ts +18 -0
- package/dist/runtime/components/renderers/table/cells/ATableCell.vue +54 -0
- package/dist/runtime/components/renderers/table/cells/ATableCell.vue.d.ts +18 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellColor.d.vue.ts +14 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellColor.vue +67 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellColor.vue.d.ts +14 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellDate.d.vue.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellDate.vue +91 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellDate.vue.d.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMembers.d.vue.ts +6 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMembers.vue +30 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMembers.vue.d.ts +6 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMultiSelect.d.vue.ts +17 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMultiSelect.vue +76 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellMultiSelect.vue.d.ts +17 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellNumber.d.vue.ts +17 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellNumber.vue +54 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellNumber.vue.d.ts +17 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellRating.d.vue.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellRating.vue +35 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellRating.vue.d.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSelect.d.vue.ts +18 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSelect.vue +111 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSelect.vue.d.ts +18 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSlider.d.vue.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSlider.vue +35 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellSlider.vue.d.ts +16 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellTags.d.vue.ts +15 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellTags.vue +92 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellTags.vue.d.ts +15 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellText.d.vue.ts +15 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellText.vue +44 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellText.vue.d.ts +15 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellToggle.d.vue.ts +14 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellToggle.vue +31 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellToggle.vue.d.ts +14 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellUrl.d.vue.ts +15 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellUrl.vue +63 -0
- package/dist/runtime/components/renderers/table/cells/ATableCellUrl.vue.d.ts +15 -0
- package/dist/runtime/components/renderers/timeline/ATimelineAxis.d.vue.ts +9 -0
- package/dist/runtime/components/renderers/timeline/ATimelineAxis.vue +53 -0
- package/dist/runtime/components/renderers/timeline/ATimelineAxis.vue.d.ts +9 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBar.d.vue.ts +26 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBar.vue +59 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBar.vue.d.ts +26 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBarArea.d.vue.ts +28 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBarArea.vue +109 -0
- package/dist/runtime/components/renderers/timeline/ATimelineBarArea.vue.d.ts +28 -0
- package/dist/runtime/components/renderers/timeline/ATimelineLabelPanel.d.vue.ts +43 -0
- package/dist/runtime/components/renderers/timeline/ATimelineLabelPanel.vue +168 -0
- package/dist/runtime/components/renderers/timeline/ATimelineLabelPanel.vue.d.ts +43 -0
- package/dist/runtime/components/renderers/timeline/ATimelineMilestone.d.vue.ts +24 -0
- package/dist/runtime/components/renderers/timeline/ATimelineMilestone.vue +46 -0
- package/dist/runtime/components/renderers/timeline/ATimelineMilestone.vue.d.ts +24 -0
- package/dist/runtime/components/renderers/timeline/ATimelineToolbar.d.vue.ts +34 -0
- package/dist/runtime/components/renderers/timeline/ATimelineToolbar.vue +193 -0
- package/dist/runtime/components/renderers/timeline/ATimelineToolbar.vue.d.ts +34 -0
- package/dist/runtime/components/settings/ASettingsAdminPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsAdminPanel.vue +159 -0
- package/dist/runtime/components/settings/ASettingsAdminPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsConnectionPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsConnectionPanel.vue +146 -0
- package/dist/runtime/components/settings/ASettingsConnectionPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsInvitesPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsInvitesPanel.vue +157 -0
- package/dist/runtime/components/settings/ASettingsInvitesPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsMembersPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsMembersPanel.vue +134 -0
- package/dist/runtime/components/settings/ASettingsMembersPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsModal.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsModal.vue +176 -0
- package/dist/runtime/components/settings/ASettingsModal.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsOfflinePanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsOfflinePanel.vue +170 -0
- package/dist/runtime/components/settings/ASettingsOfflinePanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsPluginsPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsPluginsPanel.vue +96 -0
- package/dist/runtime/components/settings/ASettingsPluginsPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsProfilePanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsProfilePanel.vue +223 -0
- package/dist/runtime/components/settings/ASettingsProfilePanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsSecurityPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsSecurityPanel.vue +312 -0
- package/dist/runtime/components/settings/ASettingsSecurityPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsSpacesPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsSpacesPanel.vue +195 -0
- package/dist/runtime/components/settings/ASettingsSpacesPanel.vue.d.ts +3 -0
- package/dist/runtime/components/settings/ASettingsTrashPanel.d.vue.ts +3 -0
- package/dist/runtime/components/settings/ASettingsTrashPanel.vue +135 -0
- package/dist/runtime/components/settings/ASettingsTrashPanel.vue.d.ts +3 -0
- package/dist/runtime/components/shell/AChildContextMenu.d.vue.ts +30 -0
- package/dist/runtime/components/shell/AChildContextMenu.vue +48 -0
- package/dist/runtime/components/shell/AChildContextMenu.vue.d.ts +30 -0
- package/dist/runtime/components/shell/ACursorOverlay.d.vue.ts +11 -0
- package/dist/runtime/components/shell/ACursorOverlay.vue +55 -0
- package/dist/runtime/components/shell/ACursorOverlay.vue.d.ts +11 -0
- package/dist/runtime/components/shell/ADocDragGhost.d.vue.ts +3 -0
- package/dist/runtime/components/shell/ADocDragGhost.vue +58 -0
- package/dist/runtime/components/shell/ADocDragGhost.vue.d.ts +3 -0
- package/dist/runtime/components/shell/ADocPanelSettings.d.vue.ts +111 -0
- package/dist/runtime/components/shell/ADocPanelSettings.vue +621 -0
- package/dist/runtime/components/shell/ADocPanelSettings.vue.d.ts +111 -0
- package/dist/runtime/components/shell/AFavoritesList.d.vue.ts +27 -0
- package/dist/runtime/components/shell/AFavoritesList.vue +83 -0
- package/dist/runtime/components/shell/AFavoritesList.vue.d.ts +27 -0
- package/dist/runtime/components/shell/ANodeContextMenu.d.vue.ts +17 -0
- package/dist/runtime/components/shell/ANodeContextMenu.vue +14 -0
- package/dist/runtime/components/shell/ANodeContextMenu.vue.d.ts +17 -0
- package/dist/runtime/components/shell/ASidebar.d.vue.ts +54 -0
- package/dist/runtime/components/shell/ASidebar.vue +92 -0
- package/dist/runtime/components/shell/ASidebar.vue.d.ts +54 -0
- package/dist/runtime/components/shell/ASidebarToggle.d.vue.ts +7 -0
- package/dist/runtime/components/shell/ASidebarToggle.vue +23 -0
- package/dist/runtime/components/shell/ASidebarToggle.vue.d.ts +7 -0
- package/dist/runtime/components/shell/ASpaceSwitcher.d.vue.ts +32 -0
- package/dist/runtime/components/shell/ASpaceSwitcher.vue +63 -0
- package/dist/runtime/components/shell/ASpaceSwitcher.vue.d.ts +32 -0
- package/dist/runtime/components/shell/ASyncStatus.d.vue.ts +25 -0
- package/dist/runtime/components/shell/ASyncStatus.vue +96 -0
- package/dist/runtime/components/shell/ASyncStatus.vue.d.ts +25 -0
- package/dist/runtime/components/shell/AUserMenu.d.vue.ts +28 -0
- package/dist/runtime/components/shell/AUserMenu.vue +79 -0
- package/dist/runtime/components/shell/AUserMenu.vue.d.ts +28 -0
- package/dist/runtime/components/shell/AUserProfilePopover.d.vue.ts +54 -0
- package/dist/runtime/components/shell/AUserProfilePopover.vue +176 -0
- package/dist/runtime/components/shell/AUserProfilePopover.vue.d.ts +54 -0
- package/dist/runtime/components/shell/AWelcomeScreen.d.vue.ts +96 -0
- package/dist/runtime/components/shell/AWelcomeScreen.vue +422 -0
- package/dist/runtime/components/shell/AWelcomeScreen.vue.d.ts +96 -0
- package/dist/runtime/composables/useAAField.js +2 -0
- package/dist/runtime/composables/useAbraLocale.js +1 -0
- package/dist/runtime/composables/useAbracadabra.js +1 -0
- package/dist/runtime/composables/useAbracadabraAuth.d.ts +3 -4
- package/dist/runtime/composables/useAbracadabraAuth.js +4 -0
- package/dist/runtime/composables/useAwareness.js +1 -0
- package/dist/runtime/composables/useAwarenessPeers.js +1 -0
- package/dist/runtime/composables/useBackgroundSync.d.ts +5 -0
- package/dist/runtime/composables/useBackgroundSync.js +24 -3
- package/dist/runtime/composables/useCalendarView.d.ts +86 -0
- package/dist/runtime/composables/useCalendarView.js +316 -0
- package/dist/runtime/composables/useChat.d.ts +2 -1
- package/dist/runtime/composables/useChat.js +17 -10
- package/dist/runtime/composables/useChatUsers.js +1 -0
- package/dist/runtime/composables/useChildTree.d.ts +4 -2
- package/dist/runtime/composables/useChildTree.js +31 -21
- package/dist/runtime/composables/useCommandPalette.js +16 -17
- package/dist/runtime/composables/useConnectionStatus.d.ts +1 -1
- package/dist/runtime/composables/useConnectionStatus.js +1 -1
- package/dist/runtime/composables/useCrossWindowSync.d.ts +11 -0
- package/dist/runtime/composables/useCrossWindowSync.js +38 -0
- package/dist/runtime/composables/useDashboard.js +17 -9
- package/dist/runtime/composables/useDevicePairing.js +2 -0
- package/dist/runtime/composables/useDocDragBus.d.ts +28 -0
- package/dist/runtime/composables/useDocDragBus.js +22 -0
- package/dist/runtime/composables/useDocDropZone.d.ts +51 -0
- package/dist/runtime/composables/useDocDropZone.js +84 -0
- package/dist/runtime/composables/useDocExport.js +2 -0
- package/dist/runtime/composables/useDocImport.js +1 -0
- package/dist/runtime/composables/useDocLabels.d.ts +22 -0
- package/dist/runtime/composables/useDocLabels.js +11 -0
- package/dist/runtime/composables/useDocLinkPick.d.ts +18 -0
- package/dist/runtime/composables/useDocLinkPick.js +22 -0
- package/dist/runtime/composables/useDocSeo.js +3 -2
- package/dist/runtime/composables/useDocSlugs.js +3 -0
- package/dist/runtime/composables/useDocTree.d.ts +1 -0
- package/dist/runtime/composables/useDocTree.js +6 -2
- package/dist/runtime/composables/useEditor.js +1 -0
- package/dist/runtime/composables/useEditorDragHandle.js +2 -0
- package/dist/runtime/composables/useEditorEmojis.d.ts +22 -0
- package/dist/runtime/composables/useEditorEmojis.js +57 -0
- package/dist/runtime/composables/useEditorMentions.d.ts +10 -3
- package/dist/runtime/composables/useEditorMentions.js +31 -3
- package/dist/runtime/composables/useEditorSuggestions.d.ts +2 -2
- package/dist/runtime/composables/useEditorSuggestions.js +27 -19
- package/dist/runtime/composables/useEditorToolbar.d.ts +1 -1
- package/dist/runtime/composables/useEditorToolbar.js +3 -0
- package/dist/runtime/composables/useFavorites.d.ts +13 -0
- package/dist/runtime/composables/useFavorites.js +42 -0
- package/dist/runtime/composables/useFileIndex.js +2 -0
- package/dist/runtime/composables/useFileTransfer.js +13 -1
- package/dist/runtime/composables/useFollowUser.js +2 -0
- package/dist/runtime/composables/useIdentityDoc.d.ts +89 -0
- package/dist/runtime/composables/useIdentityDoc.js +349 -0
- package/dist/runtime/composables/useInstalledPlugins.d.ts +31 -0
- package/dist/runtime/composables/useInstalledPlugins.js +58 -0
- package/dist/runtime/composables/useInvites.js +1 -0
- package/dist/runtime/composables/useJoinLink.d.ts +25 -0
- package/dist/runtime/composables/useJoinLink.js +58 -0
- package/dist/runtime/composables/useMediaExtractor.d.ts +31 -0
- package/dist/runtime/composables/useMediaExtractor.js +46 -0
- package/dist/runtime/composables/useMediaPlayback.d.ts +43 -0
- package/dist/runtime/composables/useMediaPlayback.js +465 -0
- package/dist/runtime/composables/useNodeContextMenu.d.ts +26 -0
- package/dist/runtime/composables/useNodeContextMenu.js +99 -0
- package/dist/runtime/composables/useNodePanel.d.ts +7 -1
- package/dist/runtime/composables/useNodePanel.js +45 -8
- package/dist/runtime/composables/useNodePanelFollow.d.ts +2 -0
- package/dist/runtime/composables/useNodePanelFollow.js +37 -0
- package/dist/runtime/composables/useNotifications.d.ts +1 -0
- package/dist/runtime/composables/useNotifications.js +7 -2
- package/dist/runtime/composables/usePluginRegistry.js +1 -0
- package/dist/runtime/composables/useRendererBase.d.ts +16 -1
- package/dist/runtime/composables/useRendererBase.js +10 -1
- package/dist/runtime/composables/useSearchIndex.js +2 -0
- package/dist/runtime/composables/useSettingsModal.d.ts +18 -0
- package/dist/runtime/composables/useSettingsModal.js +30 -0
- package/dist/runtime/composables/useSlideoverSwipe.d.ts +39 -0
- package/dist/runtime/composables/useSlideoverSwipe.js +48 -0
- package/dist/runtime/composables/useSlugRoute.js +2 -0
- package/dist/runtime/composables/useSpaces.js +2 -0
- package/dist/runtime/composables/useSpatialCamera.d.ts +16 -0
- package/dist/runtime/composables/useSpatialCamera.js +175 -0
- package/dist/runtime/composables/useSpatialDrag.d.ts +14 -0
- package/dist/runtime/composables/useSpatialDrag.js +137 -0
- package/dist/runtime/composables/useTableView.d.ts +29 -0
- package/dist/runtime/composables/useTableView.js +184 -0
- package/dist/runtime/composables/useTimelineView.d.ts +55 -0
- package/dist/runtime/composables/useTimelineView.js +434 -0
- package/dist/runtime/composables/useTiptapDragState.d.ts +8 -0
- package/dist/runtime/composables/useTiptapDragState.js +5 -0
- package/dist/runtime/composables/useTouchDrag.d.ts +2 -0
- package/dist/runtime/composables/useTouchDrag.js +3 -0
- package/dist/runtime/composables/useTrash.d.ts +4 -0
- package/dist/runtime/composables/useTrash.js +6 -3
- package/dist/runtime/composables/useTreeUndoManager.d.ts +22 -0
- package/dist/runtime/composables/useTreeUndoManager.js +45 -0
- package/dist/runtime/composables/useUndoRedo.d.ts +37 -0
- package/dist/runtime/composables/useUndoRedo.js +115 -0
- package/dist/runtime/composables/useVoice.js +2 -0
- package/dist/runtime/composables/useWebRTC.js +2 -0
- package/dist/runtime/composables/useWindowManager.d.ts +2 -0
- package/dist/runtime/composables/useWindowManager.js +63 -1
- package/dist/runtime/extensions/code-preview.d.ts +2 -0
- package/dist/runtime/extensions/code-preview.js +17 -0
- package/dist/runtime/extensions/code-tree.d.ts +2 -0
- package/dist/runtime/extensions/code-tree.js +33 -0
- package/dist/runtime/extensions/doc-embed.d.ts +12 -0
- package/dist/runtime/extensions/doc-embed.js +63 -0
- package/dist/runtime/extensions/doc-link-drop.d.ts +3 -0
- package/dist/runtime/extensions/doc-link-drop.js +63 -0
- package/dist/runtime/extensions/document-header.js +1 -1
- package/dist/runtime/extensions/field.d.ts +3 -0
- package/dist/runtime/extensions/field.js +53 -0
- package/dist/runtime/extensions/mention-drop.d.ts +8 -0
- package/dist/runtime/extensions/mention-drop.js +47 -0
- package/dist/runtime/extensions/meta-field.js +2 -0
- package/dist/runtime/extensions/selection-drag.d.ts +13 -0
- package/dist/runtime/extensions/selection-drag.js +126 -0
- package/dist/runtime/extensions/views/AccordionItemView.vue +1 -0
- package/dist/runtime/extensions/views/BadgeView.vue +1 -0
- package/dist/runtime/extensions/views/CardView.vue +1 -0
- package/dist/runtime/extensions/views/CodeCollapseView.vue +1 -0
- package/dist/runtime/extensions/views/CodeGroupView.vue +1 -0
- package/dist/runtime/extensions/views/CodePreviewView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/CodePreviewView.vue +48 -0
- package/dist/runtime/extensions/views/CodePreviewView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/CodeTreeView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/CodeTreeView.vue +88 -0
- package/dist/runtime/extensions/views/CodeTreeView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/CollapsibleView.vue +1 -0
- package/dist/runtime/extensions/views/DocEmbedView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/DocEmbedView.vue +198 -0
- package/dist/runtime/extensions/views/DocEmbedView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/FieldGroupView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/FieldGroupView.vue +25 -0
- package/dist/runtime/extensions/views/FieldGroupView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/FieldView.d.vue.ts +4 -0
- package/dist/runtime/extensions/views/FieldView.vue +53 -0
- package/dist/runtime/extensions/views/FieldView.vue.d.ts +4 -0
- package/dist/runtime/extensions/views/FileNodeView.vue +2 -0
- package/dist/runtime/extensions/views/KbdView.vue +1 -0
- package/dist/runtime/extensions/views/MetaFieldView.vue +68 -2
- package/dist/runtime/extensions/views/ProseIconView.vue +1 -0
- package/dist/runtime/extensions/views/StepsView.vue +1 -0
- package/dist/runtime/extensions/views/TabsView.vue +1 -0
- package/dist/runtime/locale.d.ts +65 -0
- package/dist/runtime/locale.js +67 -2
- package/dist/runtime/middleware/abracadabra-auth.d.ts +1 -10
- package/dist/runtime/middleware/abracadabra-auth.js +2 -0
- package/dist/runtime/plugin-abracadabra.client.d.ts +1 -1
- package/dist/runtime/plugin-abracadabra.client.js +99 -53
- package/dist/runtime/plugin-abracadabra.server.d.ts +1 -1
- package/dist/runtime/plugin-abracadabra.server.js +2 -0
- package/dist/runtime/plugin-shared-globals.client.d.ts +1 -1
- package/dist/runtime/plugin-shared-globals.client.js +1 -0
- package/dist/runtime/plugins/core.plugin.js +40 -4
- package/dist/runtime/server/api/_abracadabra/render/[docId].get.d.ts +19 -17
- package/dist/runtime/server/api/_abracadabra/render/[docId].get.js +4 -0
- package/dist/runtime/server/api/_abracadabra/resolve/[...slug].get.d.ts +11 -1
- package/dist/runtime/server/api/_abracadabra/resolve/[...slug].get.js +1 -0
- package/dist/runtime/server/api/_abracadabra/slugs.get.js +1 -0
- package/dist/runtime/server/api/_abracadabra/spaces.get.d.ts +1 -10
- package/dist/runtime/server/api/_abracadabra/spaces.get.js +3 -0
- package/dist/runtime/server/plugins/abracadabra-service.js +24 -12
- package/dist/runtime/server/utils/docCache.d.ts +8 -6
- package/dist/runtime/server/utils/docCache.js +3 -3
- package/dist/runtime/server/utils/serverPluginLoader.d.ts +20 -0
- package/dist/runtime/server/utils/serverPluginLoader.js +42 -0
- package/dist/runtime/server/utils/serverRunner.d.ts +11 -2
- package/dist/runtime/server/utils/serverRunner.js +21 -10
- package/dist/runtime/server/utils/spaceManager.d.ts +25 -0
- package/dist/runtime/server/utils/spaceManager.js +188 -0
- package/dist/runtime/types.d.ts +128 -30
- package/dist/runtime/types.js +17 -17
- package/dist/runtime/utils/chatContent.d.ts +41 -0
- package/dist/runtime/utils/chatContent.js +65 -0
- package/dist/runtime/utils/colorPalettes.js +12 -6
- package/dist/runtime/utils/coverCache.d.ts +12 -0
- package/dist/runtime/utils/coverCache.js +14 -0
- package/dist/runtime/utils/docReferenceEdges.d.ts +26 -0
- package/dist/runtime/utils/docReferenceEdges.js +122 -0
- package/dist/runtime/utils/docTypes.d.ts +6 -1
- package/dist/runtime/utils/duplicateDocContent.d.ts +19 -0
- package/dist/runtime/utils/duplicateDocContent.js +68 -0
- package/dist/runtime/utils/extractFileMetadata.d.ts +13 -0
- package/dist/runtime/utils/extractFileMetadata.js +94 -0
- package/dist/runtime/utils/getMetaColor.d.ts +6 -0
- package/dist/runtime/utils/getMetaColor.js +12 -0
- package/dist/runtime/utils/htmlToYjs.d.ts +19 -0
- package/dist/runtime/utils/htmlToYjs.js +235 -0
- package/dist/runtime/utils/markdownToYjs.js +3 -3
- package/dist/runtime/utils/metaFieldDefinitions.js +9 -0
- package/dist/runtime/utils/notificationRenderers.d.ts +13 -0
- package/dist/runtime/utils/notificationRenderers.js +41 -0
- package/dist/runtime/utils/sdkRef.d.ts +12 -2
- package/dist/types.d.mts +12 -0
- package/package.json +26 -27
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { Node, mergeAttributes } from "@tiptap/core";
|
|
2
|
+
import { VueNodeViewRenderer } from "@tiptap/vue-3";
|
|
3
|
+
import FieldView from "./views/FieldView.vue";
|
|
4
|
+
import FieldGroupView from "./views/FieldGroupView.vue";
|
|
5
|
+
export const Field = Node.create({
|
|
6
|
+
name: "field",
|
|
7
|
+
content: "block+",
|
|
8
|
+
addAttributes() {
|
|
9
|
+
return {
|
|
10
|
+
name: { default: "" },
|
|
11
|
+
type: { default: "string" },
|
|
12
|
+
required: { default: false }
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
parseHTML() {
|
|
16
|
+
return [
|
|
17
|
+
{
|
|
18
|
+
tag: "div[data-field]",
|
|
19
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
20
|
+
getAttrs: (el) => ({
|
|
21
|
+
name: el.getAttribute("data-name"),
|
|
22
|
+
type: el.getAttribute("data-type"),
|
|
23
|
+
required: el.getAttribute("data-required") === "true"
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
];
|
|
27
|
+
},
|
|
28
|
+
renderHTML({ HTMLAttributes }) {
|
|
29
|
+
return ["div", mergeAttributes({
|
|
30
|
+
"data-field": "",
|
|
31
|
+
"data-name": HTMLAttributes.name,
|
|
32
|
+
"data-type": HTMLAttributes.type,
|
|
33
|
+
"data-required": HTMLAttributes.required
|
|
34
|
+
}), 0];
|
|
35
|
+
},
|
|
36
|
+
addNodeView() {
|
|
37
|
+
return VueNodeViewRenderer(FieldView);
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
export const FieldGroup = Node.create({
|
|
41
|
+
name: "fieldGroup",
|
|
42
|
+
group: "block",
|
|
43
|
+
content: "field+",
|
|
44
|
+
parseHTML() {
|
|
45
|
+
return [{ tag: "div[data-field-group]" }];
|
|
46
|
+
},
|
|
47
|
+
renderHTML() {
|
|
48
|
+
return ["div", { "data-field-group": "" }, 0];
|
|
49
|
+
},
|
|
50
|
+
addNodeView() {
|
|
51
|
+
return VueNodeViewRenderer(FieldGroupView);
|
|
52
|
+
}
|
|
53
|
+
});
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
export declare const MENTION_DRAG_MIME = "application/x-abracadabra-mention";
|
|
3
|
+
export interface MentionDragPayload {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const MentionDrop: Extension<any, any>;
|
|
8
|
+
export default MentionDrop;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
import { Plugin, PluginKey } from "@tiptap/pm/state";
|
|
3
|
+
export const MENTION_DRAG_MIME = "application/x-abracadabra-mention";
|
|
4
|
+
export const MentionDrop = Extension.create({
|
|
5
|
+
name: "mentionDrop",
|
|
6
|
+
addProseMirrorPlugins() {
|
|
7
|
+
return [
|
|
8
|
+
new Plugin({
|
|
9
|
+
key: new PluginKey("mentionDrop"),
|
|
10
|
+
props: {
|
|
11
|
+
handleDOMEvents: {
|
|
12
|
+
dragover(_view, event) {
|
|
13
|
+
const de = event;
|
|
14
|
+
if (!de.dataTransfer?.types.includes(MENTION_DRAG_MIME)) return false;
|
|
15
|
+
de.preventDefault();
|
|
16
|
+
de.dataTransfer.dropEffect = "copy";
|
|
17
|
+
return false;
|
|
18
|
+
},
|
|
19
|
+
drop(view, event) {
|
|
20
|
+
const de = event;
|
|
21
|
+
const raw = de.dataTransfer?.getData(MENTION_DRAG_MIME);
|
|
22
|
+
if (!raw) return false;
|
|
23
|
+
let data;
|
|
24
|
+
try {
|
|
25
|
+
data = JSON.parse(raw);
|
|
26
|
+
} catch {
|
|
27
|
+
return false;
|
|
28
|
+
}
|
|
29
|
+
de.preventDefault();
|
|
30
|
+
const dropPos = view.posAtCoords({ left: de.clientX, top: de.clientY })?.pos;
|
|
31
|
+
if (dropPos == null) return true;
|
|
32
|
+
const { schema, tr } = view.state;
|
|
33
|
+
const mentionType = schema.nodes.mention;
|
|
34
|
+
if (!mentionType) return true;
|
|
35
|
+
const mentionNode = mentionType.create({ id: data.id, label: data.label });
|
|
36
|
+
tr.insert(dropPos, mentionNode);
|
|
37
|
+
tr.insertText(" ", dropPos + mentionNode.nodeSize);
|
|
38
|
+
view.dispatch(tr);
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
})
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
export default MentionDrop;
|
|
@@ -91,6 +91,7 @@ export function schemaFieldToAttrs(field) {
|
|
|
91
91
|
if (t === "colorPicker") return { fieldType: "colorPicker", fieldLabel: field.label ?? "", userDefined: false, metaKey: String(field.key) };
|
|
92
92
|
if (t === "location") return { fieldType: "location", fieldLabel: field.label ?? "", userDefined: false, latKey: String(field.latKey), lngKey: String(field.lngKey) };
|
|
93
93
|
if (t === "icon") return { fieldType: "icon", fieldLabel: field.label ?? "", userDefined: false, metaKey: String(field.key), iconOptions: JSON.stringify(field.options ?? []) };
|
|
94
|
+
if (t === "members") return { fieldType: "members", fieldLabel: field.label ?? "", userDefined: false, metaKey: String(field.key) };
|
|
94
95
|
return { fieldType: "colorPreset", fieldLabel: "" };
|
|
95
96
|
}
|
|
96
97
|
export function userFieldToAttrs(f) {
|
|
@@ -106,5 +107,6 @@ export function userFieldToAttrs(f) {
|
|
|
106
107
|
if (["select", "multiselect", "tags"].includes(f.type)) return { ...base, metaKey: f.key ?? "", options: JSON.stringify(f.options ?? []) };
|
|
107
108
|
if (f.type === "location") return { ...base, latKey: f.latKey ?? "", lngKey: f.lngKey ?? "" };
|
|
108
109
|
if (f.type === "icon") return { ...base, metaKey: f.key ?? "", iconOptions: JSON.stringify(f.options ?? []) };
|
|
110
|
+
if (f.type === "members") return { ...base, metaKey: f.key ?? "" };
|
|
109
111
|
return base;
|
|
110
112
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Extension } from '@tiptap/core';
|
|
2
|
+
export interface SelectionDragOptions {
|
|
3
|
+
onDragStart: (html: string, deleteSelection: () => void) => void;
|
|
4
|
+
onDragEnd: () => void;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* ProseMirror normally prevents native text-selection drags. This plugin enables
|
|
8
|
+
* them by temporarily setting `draggable="true"` on the editor element when the
|
|
9
|
+
* user mouses down on already-selected text. The browser then initiates an HTML5
|
|
10
|
+
* drag, which we intercept to populate tiptapDragState for the DocumentTree.
|
|
11
|
+
*/
|
|
12
|
+
export declare const SelectionDrag: Extension<SelectionDragOptions, any>;
|
|
13
|
+
export default SelectionDrag;
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
import { Extension } from "@tiptap/core";
|
|
2
|
+
import { Plugin, PluginKey, NodeSelection, TextSelection } from "@tiptap/pm/state";
|
|
3
|
+
import { DOMSerializer } from "@tiptap/pm/model";
|
|
4
|
+
export const SelectionDrag = Extension.create({
|
|
5
|
+
name: "selectionDrag",
|
|
6
|
+
addOptions() {
|
|
7
|
+
return {
|
|
8
|
+
onDragStart: () => {
|
|
9
|
+
},
|
|
10
|
+
onDragEnd: () => {
|
|
11
|
+
}
|
|
12
|
+
};
|
|
13
|
+
},
|
|
14
|
+
addProseMirrorPlugins() {
|
|
15
|
+
const options = this.options;
|
|
16
|
+
let active = false;
|
|
17
|
+
let primed = false;
|
|
18
|
+
let boundView = null;
|
|
19
|
+
return [
|
|
20
|
+
new Plugin({
|
|
21
|
+
key: new PluginKey("selectionDrag"),
|
|
22
|
+
props: {
|
|
23
|
+
handleDOMEvents: {
|
|
24
|
+
// @ts-expect-error ProseMirror handler type mismatch
|
|
25
|
+
dragstart(view, event) {
|
|
26
|
+
if (!primed) return false;
|
|
27
|
+
primed = false;
|
|
28
|
+
view.dom.removeAttribute("draggable");
|
|
29
|
+
const { state } = view;
|
|
30
|
+
const { selection } = state;
|
|
31
|
+
if (selection.empty) return false;
|
|
32
|
+
const { from, to } = selection;
|
|
33
|
+
let html = "";
|
|
34
|
+
try {
|
|
35
|
+
const slice = state.doc.slice(from, to);
|
|
36
|
+
const serializer = DOMSerializer.fromSchema(state.schema);
|
|
37
|
+
const fragment = serializer.serializeFragment(slice.content);
|
|
38
|
+
const tmp = document.createElement("div");
|
|
39
|
+
tmp.appendChild(fragment);
|
|
40
|
+
html = tmp.innerHTML;
|
|
41
|
+
} catch {
|
|
42
|
+
return false;
|
|
43
|
+
}
|
|
44
|
+
if (!html) return false;
|
|
45
|
+
const de = event;
|
|
46
|
+
if (de.dataTransfer) {
|
|
47
|
+
de.dataTransfer.effectAllowed = "copyMove";
|
|
48
|
+
de.dataTransfer.setData("text/html", html);
|
|
49
|
+
de.dataTransfer.setData("text/plain", html.replace(/<[^>]*>/g, ""));
|
|
50
|
+
}
|
|
51
|
+
const capturedFrom = from;
|
|
52
|
+
const capturedTo = to;
|
|
53
|
+
const deleteSelection = () => {
|
|
54
|
+
if (!view.dom.isConnected) return;
|
|
55
|
+
try {
|
|
56
|
+
const { tr } = view.state;
|
|
57
|
+
tr.delete(capturedFrom, capturedTo);
|
|
58
|
+
view.dispatch(tr);
|
|
59
|
+
} catch {
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
active = true;
|
|
63
|
+
options.onDragStart(html, deleteSelection);
|
|
64
|
+
return false;
|
|
65
|
+
},
|
|
66
|
+
// @ts-expect-error ProseMirror handler type mismatch
|
|
67
|
+
dragend(view, _event) {
|
|
68
|
+
view.dom.removeAttribute("draggable");
|
|
69
|
+
primed = false;
|
|
70
|
+
if (!active) return false;
|
|
71
|
+
active = false;
|
|
72
|
+
options.onDragEnd();
|
|
73
|
+
return false;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
// @ts-expect-error PluginView return type mismatch
|
|
78
|
+
view(editorView) {
|
|
79
|
+
boundView = editorView;
|
|
80
|
+
const onMouseDown = (e) => {
|
|
81
|
+
if (e.button !== 0) return;
|
|
82
|
+
if (e.detail >= 2) return;
|
|
83
|
+
const { state } = editorView;
|
|
84
|
+
const { selection } = state;
|
|
85
|
+
if (selection instanceof NodeSelection) return;
|
|
86
|
+
if (selection.empty) return;
|
|
87
|
+
if (!(selection instanceof TextSelection)) return;
|
|
88
|
+
const pos = editorView.posAtCoords({ left: e.clientX, top: e.clientY });
|
|
89
|
+
if (!pos) return;
|
|
90
|
+
if (pos.pos < selection.from || pos.pos > selection.to) return;
|
|
91
|
+
editorView.dom.setAttribute("draggable", "true");
|
|
92
|
+
primed = true;
|
|
93
|
+
e.stopPropagation();
|
|
94
|
+
const reset = () => {
|
|
95
|
+
document.removeEventListener("mouseup", reset, true);
|
|
96
|
+
if (primed) {
|
|
97
|
+
primed = false;
|
|
98
|
+
editorView.dom.removeAttribute("draggable");
|
|
99
|
+
const clickPos = editorView.posAtCoords({ left: e.clientX, top: e.clientY });
|
|
100
|
+
if (clickPos) {
|
|
101
|
+
const tr = editorView.state.tr.setSelection(
|
|
102
|
+
TextSelection.create(editorView.state.doc, clickPos.pos)
|
|
103
|
+
);
|
|
104
|
+
editorView.dispatch(tr);
|
|
105
|
+
editorView.focus();
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
document.addEventListener("mouseup", reset, true);
|
|
110
|
+
};
|
|
111
|
+
editorView.dom.addEventListener("mousedown", onMouseDown, true);
|
|
112
|
+
return {
|
|
113
|
+
destroy() {
|
|
114
|
+
if (boundView) {
|
|
115
|
+
boundView.dom.removeEventListener("mousedown", onMouseDown, true);
|
|
116
|
+
boundView.dom.removeAttribute("draggable");
|
|
117
|
+
boundView = null;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
})
|
|
123
|
+
];
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
export default SelectionDrag;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<NodeViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { NodeViewWrapper, NodeViewContent } from "@tiptap/vue-3";
|
|
3
|
+
import { ref } from "vue";
|
|
4
|
+
defineProps({
|
|
5
|
+
decorations: { type: Array, required: true },
|
|
6
|
+
selected: { type: Boolean, required: true },
|
|
7
|
+
updateAttributes: { type: Function, required: true },
|
|
8
|
+
deleteNode: { type: Function, required: true },
|
|
9
|
+
node: { type: null, required: true },
|
|
10
|
+
view: { type: null, required: true },
|
|
11
|
+
getPos: { type: null, required: true },
|
|
12
|
+
innerDecorations: { type: null, required: true },
|
|
13
|
+
editor: { type: Object, required: true },
|
|
14
|
+
extension: { type: Object, required: true },
|
|
15
|
+
HTMLAttributes: { type: Object, required: true }
|
|
16
|
+
});
|
|
17
|
+
const showCode = ref(true);
|
|
18
|
+
</script>
|
|
19
|
+
|
|
20
|
+
<template>
|
|
21
|
+
<NodeViewWrapper
|
|
22
|
+
as="div"
|
|
23
|
+
class="my-5"
|
|
24
|
+
>
|
|
25
|
+
<div
|
|
26
|
+
class="flex justify-center border border-(--ui-border-muted) relative p-4 rounded-md"
|
|
27
|
+
:class="showCode ? 'border-b-0 rounded-b-none' : ''"
|
|
28
|
+
contenteditable="false"
|
|
29
|
+
>
|
|
30
|
+
<span class="text-sm text-(--ui-text-muted)">Preview</span>
|
|
31
|
+
<div class="absolute top-2 right-2">
|
|
32
|
+
<UButton
|
|
33
|
+
size="xs"
|
|
34
|
+
color="neutral"
|
|
35
|
+
variant="ghost"
|
|
36
|
+
:label="showCode ? 'Hide code' : 'Show code'"
|
|
37
|
+
@click="showCode = !showCode"
|
|
38
|
+
/>
|
|
39
|
+
</div>
|
|
40
|
+
</div>
|
|
41
|
+
<div
|
|
42
|
+
v-show="showCode"
|
|
43
|
+
class="[&>*]:my-0 [&_pre]:rounded-t-none"
|
|
44
|
+
>
|
|
45
|
+
<NodeViewContent class="[&>*:first-child]:mt-0 [&>*:last-child]:mb-0" />
|
|
46
|
+
</div>
|
|
47
|
+
</NodeViewWrapper>
|
|
48
|
+
</template>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<NodeViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<NodeViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { NodeViewWrapper } from "@tiptap/vue-3";
|
|
3
|
+
import { computed, ref } from "vue";
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
decorations: { type: Array, required: true },
|
|
6
|
+
selected: { type: Boolean, required: true },
|
|
7
|
+
updateAttributes: { type: Function, required: true },
|
|
8
|
+
deleteNode: { type: Function, required: true },
|
|
9
|
+
node: { type: null, required: true },
|
|
10
|
+
view: { type: null, required: true },
|
|
11
|
+
getPos: { type: null, required: true },
|
|
12
|
+
innerDecorations: { type: null, required: true },
|
|
13
|
+
editor: { type: Object, required: true },
|
|
14
|
+
extension: { type: Object, required: true },
|
|
15
|
+
HTMLAttributes: { type: Object, required: true }
|
|
16
|
+
});
|
|
17
|
+
const files = computed(() => {
|
|
18
|
+
try {
|
|
19
|
+
return JSON.parse(props.node.attrs.files || "[]");
|
|
20
|
+
} catch {
|
|
21
|
+
return [];
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
const selected = ref("");
|
|
25
|
+
function isFolder(entry) {
|
|
26
|
+
return Array.isArray(entry.children);
|
|
27
|
+
}
|
|
28
|
+
function getIcon(entry) {
|
|
29
|
+
if (isFolder(entry)) return "i-lucide-folder";
|
|
30
|
+
const ext = entry.name.split(".").pop();
|
|
31
|
+
switch (ext) {
|
|
32
|
+
case "ts":
|
|
33
|
+
case "tsx":
|
|
34
|
+
return "i-lucide-file-code";
|
|
35
|
+
case "js":
|
|
36
|
+
case "jsx":
|
|
37
|
+
return "i-lucide-file-code";
|
|
38
|
+
case "vue":
|
|
39
|
+
return "i-lucide-file-code";
|
|
40
|
+
case "json":
|
|
41
|
+
return "i-lucide-file-json";
|
|
42
|
+
case "md":
|
|
43
|
+
return "i-lucide-file-text";
|
|
44
|
+
case "css":
|
|
45
|
+
case "scss":
|
|
46
|
+
return "i-lucide-file-code";
|
|
47
|
+
default:
|
|
48
|
+
return "i-lucide-file";
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function flatEntries(entries, depth = 0) {
|
|
52
|
+
const result = [];
|
|
53
|
+
for (const entry of entries) {
|
|
54
|
+
result.push({ entry, depth });
|
|
55
|
+
if (isFolder(entry) && entry.children) {
|
|
56
|
+
result.push(...flatEntries(entry.children, depth + 1));
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return result;
|
|
60
|
+
}
|
|
61
|
+
const flatFiles = computed(() => flatEntries(files.value));
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<template>
|
|
65
|
+
<NodeViewWrapper
|
|
66
|
+
as="div"
|
|
67
|
+
class="relative lg:h-[450px] my-5 grid lg:grid-cols-3 border border-(--ui-border-muted) rounded-md"
|
|
68
|
+
contenteditable="false"
|
|
69
|
+
>
|
|
70
|
+
<div class="isolate relative p-2 border-b lg:border-b-0 lg:border-e border-(--ui-border-muted) overflow-y-auto">
|
|
71
|
+
<button
|
|
72
|
+
v-for="{ entry, depth } in flatFiles"
|
|
73
|
+
:key="entry.name + depth"
|
|
74
|
+
class="relative w-full px-2.5 py-1.5 flex items-center gap-1.5 text-sm rounded-md text-left transition-colors"
|
|
75
|
+
:class="selected === entry.name ? 'text-(--ui-text-highlighted) bg-(--ui-bg-elevated)' : 'text-(--ui-text) hover:text-(--ui-text-highlighted) hover:bg-(--ui-bg-elevated)/50'"
|
|
76
|
+
:style="{ paddingLeft: `${depth * 18 + 10}px` }"
|
|
77
|
+
@click="selected = entry.name"
|
|
78
|
+
>
|
|
79
|
+
<UIcon
|
|
80
|
+
:name="getIcon(entry)"
|
|
81
|
+
class="size-4 shrink-0"
|
|
82
|
+
/>
|
|
83
|
+
<span class="truncate">{{ entry.name }}</span>
|
|
84
|
+
</button>
|
|
85
|
+
</div>
|
|
86
|
+
<div class="lg:col-span-2 overflow-hidden flex flex-col" />
|
|
87
|
+
</NodeViewWrapper>
|
|
88
|
+
</template>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<NodeViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { NodeViewProps } from '@tiptap/vue-3';
|
|
2
|
+
declare const __VLS_export: import("vue").DefineComponent<NodeViewProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<NodeViewProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
3
|
+
declare const _default: typeof __VLS_export;
|
|
4
|
+
export default _default;
|