@abraca/nuxt 0.2.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 +72 -0
- package/dist/module.json +1 -1
- package/dist/module.mjs +139 -3
- package/dist/runtime/assets/editor.css +1 -0
- 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 +8 -3
- 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 +29 -0
- package/dist/runtime/components/ADocRenderer.vue +105 -0
- package/dist/runtime/components/ADocRenderer.vue.d.ts +29 -0
- package/dist/runtime/components/ADocTypeSelect.vue +8 -4
- package/dist/runtime/components/ADocumentTree.d.vue.ts +3 -3
- package/dist/runtime/components/ADocumentTree.vue +196 -29
- package/dist/runtime/components/ADocumentTree.vue.d.ts +3 -3
- package/dist/runtime/components/AEditor.d.vue.ts +9 -4
- package/dist/runtime/components/AEditor.vue +118 -8
- package/dist/runtime/components/AEditor.vue.d.ts +9 -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 +10 -2
- 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 +109 -62
- package/dist/runtime/components/ANotifications.vue +37 -8
- package/dist/runtime/components/APermissionGuard.vue +4 -1
- package/dist/runtime/components/APresence.vue +15 -3
- package/dist/runtime/components/AProvider.d.vue.ts +0 -1
- package/dist/runtime/components/AProvider.vue +24 -5
- 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 +60 -16
- package/dist/runtime/components/AVoiceTile.vue +5 -1
- 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 +3 -2
- package/dist/runtime/components/aware/AArea.vue.d.ts +1 -1
- package/dist/runtime/components/aware/AAvatar.vue +87 -16
- package/dist/runtime/components/aware/AButton.vue +7 -2
- package/dist/runtime/components/aware/ACursorLabel.vue +6 -1
- package/dist/runtime/components/aware/ADocBadge.vue +6 -1
- package/dist/runtime/components/aware/AFacepile.vue +15 -3
- package/dist/runtime/components/aware/AInput.vue +8 -3
- package/dist/runtime/components/aware/ASelect.vue +3 -2
- package/dist/runtime/components/aware/ATextarea.vue +8 -3
- package/dist/runtime/components/aware/AUserList.vue +10 -2
- 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 +14 -1
- package/dist/runtime/components/renderers/ACalendarRenderer.vue +279 -125
- package/dist/runtime/components/renderers/ACalendarRenderer.vue.d.ts +14 -1
- package/dist/runtime/components/renderers/ACallRenderer.d.vue.ts +13 -0
- package/dist/runtime/components/renderers/ACallRenderer.vue +172 -0
- package/dist/runtime/components/renderers/ACallRenderer.vue.d.ts +13 -0
- package/dist/runtime/components/renderers/AChecklistRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/AChecklistRenderer.vue +582 -0
- package/dist/runtime/components/renderers/AChecklistRenderer.vue.d.ts +19 -0
- package/dist/runtime/components/renderers/ADashboardRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/ADashboardRenderer.vue +1374 -0
- package/dist/runtime/components/renderers/ADashboardRenderer.vue.d.ts +19 -0
- package/dist/runtime/components/renderers/AGalleryCoverImage.d.vue.ts +8 -0
- package/dist/runtime/components/renderers/AGalleryCoverImage.vue +60 -0
- package/dist/runtime/components/renderers/AGalleryCoverImage.vue.d.ts +8 -0
- package/dist/runtime/components/renderers/AGalleryRenderer.d.vue.ts +12 -1
- package/dist/runtime/components/renderers/AGalleryRenderer.vue +327 -53
- package/dist/runtime/components/renderers/AGalleryRenderer.vue.d.ts +12 -1
- package/dist/runtime/components/renderers/AGraphRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/AGraphRenderer.vue +1030 -0
- package/dist/runtime/components/renderers/AGraphRenderer.vue.d.ts +19 -0
- package/dist/runtime/components/renderers/AKanbanRenderer.d.vue.ts +13 -1
- package/dist/runtime/components/renderers/AKanbanRenderer.vue +490 -140
- package/dist/runtime/components/renderers/AKanbanRenderer.vue.d.ts +13 -1
- package/dist/runtime/components/renderers/AMapRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/AMapRenderer.vue +1624 -0
- package/dist/runtime/components/renderers/AMapRenderer.vue.d.ts +19 -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.d.vue.ts +12 -1
- package/dist/runtime/components/renderers/AOutlineRenderer.vue +295 -134
- package/dist/runtime/components/renderers/AOutlineRenderer.vue.d.ts +12 -1
- 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.d.vue.ts +12 -1
- package/dist/runtime/components/renderers/ATableRenderer.vue +459 -147
- package/dist/runtime/components/renderers/ATableRenderer.vue.d.ts +12 -1
- package/dist/runtime/components/renderers/ATimelineRenderer.d.vue.ts +19 -0
- package/dist/runtime/components/renderers/ATimelineRenderer.vue +468 -0
- package/dist/runtime/components/renderers/ATimelineRenderer.vue.d.ts +19 -0
- 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 +6 -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/useBroadcastSync.d.ts +18 -0
- package/dist/runtime/composables/useBroadcastSync.js +26 -0
- 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 +21 -12
- package/dist/runtime/composables/useChatUsers.js +3 -1
- package/dist/runtime/composables/useChildTree.d.ts +4 -2
- package/dist/runtime/composables/useChildTree.js +31 -21
- package/dist/runtime/composables/useCommandPalette.js +77 -19
- package/dist/runtime/composables/useConnectionStatus.d.ts +1 -1
- package/dist/runtime/composables/useConnectionStatus.js +8 -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.d.ts +58 -0
- package/dist/runtime/composables/useDevicePairing.js +110 -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.d.ts +5 -0
- package/dist/runtime/composables/useDocExport.js +4 -2
- package/dist/runtime/composables/useDocImport.js +5 -3
- 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.d.ts +20 -0
- package/dist/runtime/composables/useDocSeo.js +45 -0
- package/dist/runtime/composables/useDocSlugs.d.ts +7 -0
- package/dist/runtime/composables/useDocSlugs.js +23 -0
- package/dist/runtime/composables/useDocTree.d.ts +35 -0
- package/dist/runtime/composables/useDocTree.js +39 -0
- package/dist/runtime/composables/useEditor.js +1 -0
- package/dist/runtime/composables/useEditorDragHandle.js +4 -1
- 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 +35 -5
- package/dist/runtime/composables/useEditorSuggestions.d.ts +2 -1
- package/dist/runtime/composables/useEditorSuggestions.js +36 -21
- package/dist/runtime/composables/useEditorToolbar.d.ts +1 -1
- package/dist/runtime/composables/useEditorToolbar.js +5 -1
- package/dist/runtime/composables/useFavorites.d.ts +13 -0
- package/dist/runtime/composables/useFavorites.js +42 -0
- package/dist/runtime/composables/useFileIndex.js +4 -1
- package/dist/runtime/composables/useFileTransfer.d.ts +112 -0
- package/dist/runtime/composables/useFileTransfer.js +183 -0
- package/dist/runtime/composables/useFollowUser.js +4 -1
- 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.d.ts +56 -0
- package/dist/runtime/composables/useInvites.js +78 -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 +20 -0
- package/dist/runtime/composables/useNodePanel.js +89 -0
- 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 +9 -2
- package/dist/runtime/composables/usePasskeyAccounts.js +4 -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.d.ts +1 -0
- package/dist/runtime/composables/useSearchIndex.js +15 -5
- package/dist/runtime/composables/useServerInfo.d.ts +31 -0
- package/dist/runtime/composables/useServerInfo.js +80 -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.d.ts +6 -0
- package/dist/runtime/composables/useSlugRoute.js +21 -0
- package/dist/runtime/composables/useSpaces.d.ts +37 -0
- package/dist/runtime/composables/useSpaces.js +85 -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 +36 -0
- package/dist/runtime/composables/useTouchDrag.js +194 -0
- package/dist/runtime/composables/useTrash.d.ts +5 -1
- package/dist/runtime/composables/useTrash.js +12 -6
- 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.d.ts +50 -0
- package/dist/runtime/composables/useWebRTC.js +179 -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.d.ts +4 -1
- 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/steps.js +1 -1
- package/dist/runtime/extensions/views/AccordionItemView.vue +14 -3
- package/dist/runtime/extensions/views/AccordionView.vue +4 -1
- package/dist/runtime/extensions/views/BadgeView.vue +12 -2
- package/dist/runtime/extensions/views/CalloutView.vue +4 -1
- package/dist/runtime/extensions/views/CardGroupView.vue +4 -1
- package/dist/runtime/extensions/views/CardView.vue +18 -3
- package/dist/runtime/extensions/views/CodeCollapseView.vue +1 -0
- package/dist/runtime/extensions/views/CodeGroupView.vue +5 -1
- 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 +9 -2
- 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 +34 -8
- package/dist/runtime/extensions/views/KbdView.vue +9 -2
- package/dist/runtime/extensions/views/MetaFieldView.vue +276 -48
- package/dist/runtime/extensions/views/ProseIconView.vue +9 -2
- package/dist/runtime/extensions/views/StepsView.vue +1 -0
- package/dist/runtime/extensions/views/TabsView.vue +18 -4
- package/dist/runtime/locale.d.ts +136 -0
- package/dist/runtime/locale.js +137 -1
- 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 +127 -55
- package/dist/runtime/plugin-abracadabra.server.d.ts +1 -1
- package/dist/runtime/plugin-abracadabra.server.js +4 -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 +33 -4
- package/dist/runtime/server/api/_abracadabra/resolve/[...slug].get.d.ts +12 -0
- package/dist/runtime/server/api/_abracadabra/resolve/[...slug].get.js +44 -0
- package/dist/runtime/server/api/_abracadabra/slugs.get.d.ts +2 -0
- package/dist/runtime/server/api/_abracadabra/slugs.get.js +8 -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 +29 -12
- package/dist/runtime/server/runners/doc-tree-cache.js +4 -0
- 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/slugMap.d.ts +32 -0
- package/dist/runtime/server/utils/slugMap.js +58 -0
- 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 +129 -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 +34 -1
- package/dist/runtime/utils/docTypes.js +129 -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 +5 -5
- 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 -0
- package/dist/runtime/utils/sdkRef.js +7 -0
- package/dist/runtime/utils/slugify.d.ts +40 -0
- package/dist/runtime/utils/slugify.js +36 -0
- package/dist/types.d.mts +18 -0
- package/package.json +44 -32
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, watch, shallowRef } from "vue";
|
|
3
|
+
import { useFetch } from "#imports";
|
|
4
|
+
import { useAbracadabra } from "../composables/useAbracadabra";
|
|
5
|
+
import { useSyncedMap } from "../composables/useYDoc";
|
|
6
|
+
import { usePluginRegistry } from "../composables/usePluginRegistry";
|
|
7
|
+
import { resolveDocType } from "../utils/docTypes";
|
|
8
|
+
const props = defineProps({
|
|
9
|
+
docId: { type: String, required: true },
|
|
10
|
+
editable: { type: Boolean, required: false, default: true },
|
|
11
|
+
editorClass: { type: String, required: false },
|
|
12
|
+
rendererClass: { type: String, required: false }
|
|
13
|
+
});
|
|
14
|
+
const abra = useAbracadabra();
|
|
15
|
+
const treeMap = useSyncedMap(abra.doc, "doc-tree");
|
|
16
|
+
const docEntry = computed(() => treeMap.data[props.docId]);
|
|
17
|
+
const docTitle = computed(() => docEntry.value?.label ?? "Untitled");
|
|
18
|
+
const docType = computed(() => docEntry.value?.type ?? "doc");
|
|
19
|
+
const docMeta = computed(() => docEntry.value?.meta ?? {});
|
|
20
|
+
const registry = usePluginRegistry();
|
|
21
|
+
const docTypeDef = computed(() => resolveDocType(docType.value, registry));
|
|
22
|
+
const childProvider = shallowRef(null);
|
|
23
|
+
async function loadChildProvider(id) {
|
|
24
|
+
childProvider.value = null;
|
|
25
|
+
if (!abra.provider.value) return;
|
|
26
|
+
try {
|
|
27
|
+
const prov = await abra.provider.value.loadChild(id);
|
|
28
|
+
if (!prov.isSynced) {
|
|
29
|
+
await new Promise((resolve) => {
|
|
30
|
+
const done = () => {
|
|
31
|
+
prov.off("synced", done);
|
|
32
|
+
resolve();
|
|
33
|
+
};
|
|
34
|
+
prov.on("synced", done);
|
|
35
|
+
setTimeout(resolve, 6e3);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
childProvider.value = prov;
|
|
39
|
+
} catch (e) {
|
|
40
|
+
console.error("[ADocRenderer] Failed to load child provider:", e);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
watch([() => abra.isReady.value, () => props.docId], ([ready, id]) => {
|
|
44
|
+
if (ready && id) loadChildProvider(id);
|
|
45
|
+
}, { immediate: true });
|
|
46
|
+
const { data: ssrContent } = useFetch(
|
|
47
|
+
() => `/api/_abracadabra/render/${props.docId}`,
|
|
48
|
+
{ key: `render-${props.docId}`, server: true, lazy: true }
|
|
49
|
+
);
|
|
50
|
+
const resolvedClass = computed(
|
|
51
|
+
() => docTypeDef.value.hasEditor ? props.editorClass ?? void 0 : props.rendererClass ?? void 0
|
|
52
|
+
);
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<template>
|
|
56
|
+
<!-- Loading state -->
|
|
57
|
+
<div v-if="!abra.isReady.value">
|
|
58
|
+
<!-- SSR: show pre-rendered HTML while client hydrates -->
|
|
59
|
+
<!-- eslint-disable vue/no-v-html -->
|
|
60
|
+
<div
|
|
61
|
+
v-if="ssrContent?.html"
|
|
62
|
+
class="prose dark:prose-invert max-w-none"
|
|
63
|
+
v-html="ssrContent.html"
|
|
64
|
+
/>
|
|
65
|
+
<!-- eslint-enable vue/no-v-html -->
|
|
66
|
+
<slot
|
|
67
|
+
v-else
|
|
68
|
+
name="loading"
|
|
69
|
+
>
|
|
70
|
+
<div class="p-8 space-y-3">
|
|
71
|
+
<USkeleton class="h-8 w-48" />
|
|
72
|
+
<USkeleton class="h-4 w-full" />
|
|
73
|
+
<USkeleton class="h-4 w-3/4" />
|
|
74
|
+
<USkeleton class="h-4 w-5/6" />
|
|
75
|
+
</div>
|
|
76
|
+
</slot>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<!-- Connection error -->
|
|
80
|
+
<slot
|
|
81
|
+
v-else-if="abra.connectionError.value && !abra.synced.value"
|
|
82
|
+
name="error"
|
|
83
|
+
:error="abra.connectionError.value"
|
|
84
|
+
>
|
|
85
|
+
<UAlert
|
|
86
|
+
class="m-8"
|
|
87
|
+
color="error"
|
|
88
|
+
icon="i-lucide-wifi-off"
|
|
89
|
+
:title="abra.connectionError.value"
|
|
90
|
+
description="Unable to connect to the server."
|
|
91
|
+
/>
|
|
92
|
+
</slot>
|
|
93
|
+
|
|
94
|
+
<!-- Resolved renderer -->
|
|
95
|
+
<component
|
|
96
|
+
:is="docTypeDef.component"
|
|
97
|
+
v-else
|
|
98
|
+
:doc-id="docId"
|
|
99
|
+
:doc-label="docTitle"
|
|
100
|
+
:doc-meta="docMeta"
|
|
101
|
+
:child-provider="childProvider"
|
|
102
|
+
:editable="editable"
|
|
103
|
+
:class="resolvedClass"
|
|
104
|
+
/>
|
|
105
|
+
</template>
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** Document ID to render */
|
|
3
|
+
docId: string;
|
|
4
|
+
/** Whether the document is editable. Default: true */
|
|
5
|
+
editable?: boolean;
|
|
6
|
+
/** CSS class applied to editor-type documents (doc, or hasEditor: true) */
|
|
7
|
+
editorClass?: string;
|
|
8
|
+
/** CSS class applied to structured renderers (kanban, table, etc.) */
|
|
9
|
+
rendererClass?: string;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_1: {}, __VLS_23: {
|
|
12
|
+
error: string;
|
|
13
|
+
};
|
|
14
|
+
type __VLS_Slots = {} & {
|
|
15
|
+
loading?: (props: typeof __VLS_1) => any;
|
|
16
|
+
} & {
|
|
17
|
+
error?: (props: typeof __VLS_23) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_base: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
20
|
+
editable: boolean;
|
|
21
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
|
+
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
23
|
+
declare const _default: typeof __VLS_export;
|
|
24
|
+
export default _default;
|
|
25
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
26
|
+
new (): {
|
|
27
|
+
$slots: S;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
<script setup>
|
|
2
|
+
import { computed } from "vue";
|
|
2
3
|
import { getAvailableDocTypes } from "../utils/docTypes";
|
|
3
4
|
const props = defineProps({
|
|
4
5
|
modelValue: { type: String, required: true }
|
|
@@ -9,11 +10,11 @@ const items = computed(
|
|
|
9
10
|
() => types.map((t) => ({
|
|
10
11
|
label: t.label,
|
|
11
12
|
icon: t.icon,
|
|
12
|
-
value: t.
|
|
13
|
-
onSelect: () => emit("update:modelValue", t.
|
|
13
|
+
value: t.key,
|
|
14
|
+
onSelect: () => emit("update:modelValue", t.key)
|
|
14
15
|
}))
|
|
15
16
|
);
|
|
16
|
-
const current = computed(() => types.find((t) => t.
|
|
17
|
+
const current = computed(() => types.find((t) => t.key === props.modelValue));
|
|
17
18
|
</script>
|
|
18
19
|
|
|
19
20
|
<template>
|
|
@@ -28,7 +29,10 @@ const current = computed(() => types.find((t) => t.type === props.modelValue));
|
|
|
28
29
|
class="size-4 text-muted shrink-0"
|
|
29
30
|
/>
|
|
30
31
|
<span class="text-sm flex-1 text-left truncate">{{ current?.label ?? modelValue }}</span>
|
|
31
|
-
<UIcon
|
|
32
|
+
<UIcon
|
|
33
|
+
name="i-lucide-chevron-down"
|
|
34
|
+
class="size-3 text-muted shrink-0"
|
|
35
|
+
/>
|
|
32
36
|
</button>
|
|
33
37
|
</UDropdownMenu>
|
|
34
38
|
</template>
|
|
@@ -4,13 +4,13 @@ type __VLS_Props = {
|
|
|
4
4
|
selectedId?: string | null;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
7
|
-
handleExternalDrop: (e: DragEvent, parentId?: string | null) =>
|
|
7
|
+
handleExternalDrop: (e: DragEvent, parentId?: string | null) => Promise<void>;
|
|
8
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
navigate: (id: string) => any;
|
|
10
9
|
create: (parentId: string | null) => any;
|
|
10
|
+
navigate: (id: string) => any;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
-
onNavigate?: ((id: string) => any) | undefined;
|
|
13
12
|
onCreate?: ((parentId: string | null) => any) | undefined;
|
|
13
|
+
onNavigate?: ((id: string) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
editable: boolean;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import { ref, computed, nextTick, shallowRef, watch } from "vue";
|
|
3
|
+
import { useAbracadabra, useTrash, useChat, useVoice, useToast, useAppConfig, useSyncedMap, useDocImport, useDocExport, useWindowManager, useAwareness } from "#imports";
|
|
3
4
|
import { resolveDocType, getAvailableDocTypes } from "../utils/docTypes";
|
|
4
5
|
import { avatarBorderStyle } from "../utils/avatarStyle";
|
|
5
6
|
import { DOC_DRAG_MIME, isDocDrag, parseDocDragPayload, isDescendantInMap } from "../utils/docDragDrop";
|
|
7
|
+
import { useDocDragBus } from "../composables/useDocDragBus";
|
|
8
|
+
const dragBus = useDocDragBus();
|
|
6
9
|
const props = defineProps({
|
|
7
10
|
collapsed: { type: Boolean, required: false },
|
|
8
11
|
editable: { type: Boolean, required: false, default: true },
|
|
9
12
|
selectedId: { type: [String, null], required: false }
|
|
10
13
|
});
|
|
11
14
|
const emit = defineEmits(["navigate", "create"]);
|
|
12
|
-
const { doc, isReady, provider, client, userName } = useAbracadabra();
|
|
15
|
+
const { doc, spaceDocId, isReady, provider, client, userName } = useAbracadabra();
|
|
13
16
|
const { trashMap, trashedCount, moveToTrash, restoreFromTrash, permanentlyDelete, emptyTrash } = useTrash();
|
|
14
17
|
const _chat = import.meta.client ? useChat() : null;
|
|
15
18
|
const chatChannels = computed(() => _chat?.channels.value ?? {});
|
|
@@ -27,7 +30,12 @@ const appConfig = useAppConfig();
|
|
|
27
30
|
const presenceNeutral = computed(() => appConfig.ui?.colors?.neutral ?? "zinc");
|
|
28
31
|
const treeMap = useSyncedMap(doc, "doc-tree");
|
|
29
32
|
function buildTree(parentId = null, depth = 0) {
|
|
30
|
-
return Object.entries(treeMap.data).filter(([
|
|
33
|
+
return Object.entries(treeMap.data).filter(([id, v]) => {
|
|
34
|
+
if (id === spaceDocId.value) return false;
|
|
35
|
+
const pid = v.parentId ?? null;
|
|
36
|
+
if (parentId === null) return pid === null || pid === spaceDocId.value;
|
|
37
|
+
return pid === parentId;
|
|
38
|
+
}).sort(([, a], [, b]) => (a.order ?? 0) - (b.order ?? 0)).map(([id, v]) => ({
|
|
31
39
|
id,
|
|
32
40
|
label: v.label || "Untitled",
|
|
33
41
|
parentId: v.parentId,
|
|
@@ -346,8 +354,26 @@ function onDragStart(e, item) {
|
|
|
346
354
|
e.dataTransfer.setData("text/plain", item.id);
|
|
347
355
|
e.dataTransfer.setData(DOC_DRAG_MIME, JSON.stringify({ id: item.id, label: item.name }));
|
|
348
356
|
}
|
|
357
|
+
const selected = multiSelected.value.size > 0 ? [...multiSelected.value] : [item.id];
|
|
358
|
+
const labels = selected.map((id) => {
|
|
359
|
+
const entry = treeMap.data[id];
|
|
360
|
+
return entry?.label || "Untitled";
|
|
361
|
+
});
|
|
362
|
+
const icons = selected.map((id) => {
|
|
363
|
+
const entry = treeMap.data[id];
|
|
364
|
+
const dt = resolveDocType(entry?.type);
|
|
365
|
+
return dt.icon;
|
|
366
|
+
});
|
|
367
|
+
dragBus.startDrag({
|
|
368
|
+
docIds: selected,
|
|
369
|
+
labels,
|
|
370
|
+
icons,
|
|
371
|
+
source: "tree",
|
|
372
|
+
pointer: { x: e.clientX, y: e.clientY }
|
|
373
|
+
});
|
|
349
374
|
}
|
|
350
375
|
function onDragOver(e, item) {
|
|
376
|
+
dragBus.updatePointer(e.clientX, e.clientY);
|
|
351
377
|
if (dragId.value === null && isExternalFileDrag(e)) {
|
|
352
378
|
if (item.isTrash || item.isTrashRoot) {
|
|
353
379
|
if (dropIndicator.value !== null) dropIndicator.value = null;
|
|
@@ -564,6 +590,7 @@ function onDrop(e) {
|
|
|
564
590
|
cleanupDrag();
|
|
565
591
|
}
|
|
566
592
|
function onDragEnd() {
|
|
593
|
+
dragBus.endDrag();
|
|
567
594
|
cleanupDrag();
|
|
568
595
|
}
|
|
569
596
|
function cleanupDrag() {
|
|
@@ -731,7 +758,7 @@ function treeNodeMenuItems(item) {
|
|
|
731
758
|
label: "Export",
|
|
732
759
|
icon: "i-lucide-download",
|
|
733
760
|
children: [
|
|
734
|
-
{ label: "Markdown", icon: "i-lucide-file-text", onSelect: () => exportSingleDoc(item.id, "
|
|
761
|
+
{ label: "Markdown", icon: "i-lucide-file-text", onSelect: () => exportSingleDoc(item.id, "markdown") },
|
|
735
762
|
{ label: "HTML", icon: "i-lucide-file-code", onSelect: () => exportSingleDoc(item.id, "html") }
|
|
736
763
|
]
|
|
737
764
|
},
|
|
@@ -871,6 +898,78 @@ function onTreeDragOver(e) {
|
|
|
871
898
|
}
|
|
872
899
|
onImportDragOver(e);
|
|
873
900
|
}
|
|
901
|
+
const focusedIndex = ref(-1);
|
|
902
|
+
function onTreeKeydown(e) {
|
|
903
|
+
const items = flatItems.value;
|
|
904
|
+
if (!items.length) return;
|
|
905
|
+
switch (e.key) {
|
|
906
|
+
case "ArrowDown": {
|
|
907
|
+
e.preventDefault();
|
|
908
|
+
focusedIndex.value = Math.min(focusedIndex.value + 1, items.length - 1);
|
|
909
|
+
break;
|
|
910
|
+
}
|
|
911
|
+
case "ArrowUp": {
|
|
912
|
+
e.preventDefault();
|
|
913
|
+
focusedIndex.value = Math.max(focusedIndex.value - 1, 0);
|
|
914
|
+
break;
|
|
915
|
+
}
|
|
916
|
+
case "ArrowRight": {
|
|
917
|
+
e.preventDefault();
|
|
918
|
+
const item = items[focusedIndex.value];
|
|
919
|
+
if (!item) break;
|
|
920
|
+
if (item.hasChildren && !item.expanded) {
|
|
921
|
+
toggleExpand(item.id);
|
|
922
|
+
} else if (item.hasChildren && item.expanded) {
|
|
923
|
+
focusedIndex.value = Math.min(focusedIndex.value + 1, items.length - 1);
|
|
924
|
+
}
|
|
925
|
+
break;
|
|
926
|
+
}
|
|
927
|
+
case "ArrowLeft": {
|
|
928
|
+
e.preventDefault();
|
|
929
|
+
const item = items[focusedIndex.value];
|
|
930
|
+
if (!item) break;
|
|
931
|
+
if (item.hasChildren && item.expanded) {
|
|
932
|
+
toggleExpand(item.id);
|
|
933
|
+
} else {
|
|
934
|
+
const node = nodeMap.value.get(item.id);
|
|
935
|
+
if (node?.parentId) {
|
|
936
|
+
const parentIdx = items.findIndex((i) => i.id === node.parentId);
|
|
937
|
+
if (parentIdx >= 0) focusedIndex.value = parentIdx;
|
|
938
|
+
}
|
|
939
|
+
}
|
|
940
|
+
break;
|
|
941
|
+
}
|
|
942
|
+
case "Enter": {
|
|
943
|
+
e.preventDefault();
|
|
944
|
+
const item = items[focusedIndex.value];
|
|
945
|
+
if (item && !item.isTrashRoot && !item.isTrash) {
|
|
946
|
+
emit("navigate", item.id);
|
|
947
|
+
} else if (item?.isTrashRoot) {
|
|
948
|
+
trashExpanded.value = !trashExpanded.value;
|
|
949
|
+
}
|
|
950
|
+
break;
|
|
951
|
+
}
|
|
952
|
+
case "F2": {
|
|
953
|
+
e.preventDefault();
|
|
954
|
+
const item = items[focusedIndex.value];
|
|
955
|
+
if (item && !item.isTrashRoot && !item.isTrash && props.editable) {
|
|
956
|
+
startRename(item.id);
|
|
957
|
+
}
|
|
958
|
+
break;
|
|
959
|
+
}
|
|
960
|
+
case "Delete":
|
|
961
|
+
case "Backspace": {
|
|
962
|
+
if (e.metaKey || e.ctrlKey) {
|
|
963
|
+
e.preventDefault();
|
|
964
|
+
const item = items[focusedIndex.value];
|
|
965
|
+
if (item && !item.isTrashRoot && !item.isTrash && props.editable) {
|
|
966
|
+
moveToTrash(item.id);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
break;
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
}
|
|
874
973
|
defineExpose({
|
|
875
974
|
handleExternalDrop: (e, parentId = null) => onExternalFileDrop(e, parentId)
|
|
876
975
|
});
|
|
@@ -881,9 +980,18 @@ defineExpose({
|
|
|
881
980
|
v-if="collapsed && ancestorChain.length"
|
|
882
981
|
class="flex flex-col items-center gap-0.5 py-1.5"
|
|
883
982
|
>
|
|
884
|
-
<template
|
|
885
|
-
|
|
886
|
-
|
|
983
|
+
<template
|
|
984
|
+
v-for="(node, i) in ancestorChain"
|
|
985
|
+
:key="node.id"
|
|
986
|
+
>
|
|
987
|
+
<div
|
|
988
|
+
v-if="i > 0"
|
|
989
|
+
class="h-2 w-px bg-(--ui-border)"
|
|
990
|
+
/>
|
|
991
|
+
<UTooltip
|
|
992
|
+
:text="node.label"
|
|
993
|
+
:content="{ side: 'right' }"
|
|
994
|
+
>
|
|
887
995
|
<UButton
|
|
888
996
|
:icon="getItemIcon(nodeToFlatItem(node))"
|
|
889
997
|
size="xs"
|
|
@@ -896,9 +1004,20 @@ defineExpose({
|
|
|
896
1004
|
</template>
|
|
897
1005
|
|
|
898
1006
|
<!-- Collapsed trash icon -->
|
|
899
|
-
<div
|
|
900
|
-
|
|
901
|
-
|
|
1007
|
+
<div
|
|
1008
|
+
v-if="trashedCount > 0"
|
|
1009
|
+
class="mt-auto pt-2"
|
|
1010
|
+
>
|
|
1011
|
+
<UChip
|
|
1012
|
+
:text="trashedCount"
|
|
1013
|
+
color="neutral"
|
|
1014
|
+
size="sm"
|
|
1015
|
+
inset
|
|
1016
|
+
>
|
|
1017
|
+
<UTooltip
|
|
1018
|
+
text="Trash"
|
|
1019
|
+
:content="{ side: 'right' }"
|
|
1020
|
+
>
|
|
902
1021
|
<UButton
|
|
903
1022
|
icon="i-lucide-trash-2"
|
|
904
1023
|
size="xs"
|
|
@@ -915,18 +1034,21 @@ defineExpose({
|
|
|
915
1034
|
<UContextMenu
|
|
916
1035
|
v-else-if="!collapsed"
|
|
917
1036
|
:items="treeAreaMenuItems()"
|
|
918
|
-
class="relative transition-colors duration-150"
|
|
1037
|
+
class="relative transition-colors duration-150 outline-none"
|
|
919
1038
|
:class="externalDragActive ? 'ring-2 ring-inset ring-(--ui-primary)/30 rounded-(--ui-radius) bg-(--ui-primary)/3' : ''"
|
|
920
|
-
|
|
1039
|
+
tabindex="0"
|
|
1040
|
+
role="tree"
|
|
1041
|
+
@keydown="onTreeKeydown"
|
|
1042
|
+
@keydown.escape="multiSelected = /* @__PURE__ */ new Set()"
|
|
921
1043
|
@dragenter="onTreeDragEnter"
|
|
922
1044
|
@dragleave="onTreeDragLeave"
|
|
923
1045
|
@dragover="onTreeDragOver"
|
|
924
1046
|
@drop.prevent="onOuterDrop"
|
|
925
1047
|
>
|
|
926
1048
|
<!-- Header -->
|
|
927
|
-
<div class="flex items-center justify-between px-
|
|
928
|
-
<span class="text-
|
|
929
|
-
<div class="flex items-center gap-0
|
|
1049
|
+
<div class="flex items-center justify-between px-3 py-1">
|
|
1050
|
+
<span class="text-[11px] font-medium text-(--ui-text-dimmed) uppercase tracking-wider">Pages</span>
|
|
1051
|
+
<div class="flex items-center gap-0">
|
|
930
1052
|
<UTooltip :text="allExpanded ? 'Collapse all' : 'Expand all'">
|
|
931
1053
|
<UButton
|
|
932
1054
|
:icon="allExpanded ? 'i-lucide-chevrons-down-up' : 'i-lucide-chevrons-up-down'"
|
|
@@ -978,12 +1100,18 @@ defineExpose({
|
|
|
978
1100
|
@dragleave="onListDragLeave"
|
|
979
1101
|
>
|
|
980
1102
|
<div
|
|
981
|
-
v-for="item in flatItems"
|
|
1103
|
+
v-for="(item, idx) in flatItems"
|
|
982
1104
|
:key="item.id"
|
|
983
1105
|
class="tree-item relative"
|
|
984
|
-
:class="
|
|
1106
|
+
:class="[
|
|
1107
|
+
dragId === item.id && !item.isTrashRoot ? 'opacity-30' : '',
|
|
1108
|
+
focusedIndex === idx ? 'ring-1 ring-inset ring-(--ui-primary)/50 rounded-sm' : ''
|
|
1109
|
+
]"
|
|
1110
|
+
:data-focused="focusedIndex === idx ? '' : void 0"
|
|
1111
|
+
role="treeitem"
|
|
985
1112
|
@dragover="onDragOver($event, item)"
|
|
986
1113
|
@drop.stop="onDrop"
|
|
1114
|
+
@click="focusedIndex = idx"
|
|
987
1115
|
>
|
|
988
1116
|
<!-- Drop indicator: line BEFORE -->
|
|
989
1117
|
<div
|
|
@@ -1025,7 +1153,10 @@ defineExpose({
|
|
|
1025
1153
|
class="size-3.5"
|
|
1026
1154
|
/>
|
|
1027
1155
|
</span>
|
|
1028
|
-
<UIcon
|
|
1156
|
+
<UIcon
|
|
1157
|
+
name="i-lucide-trash-2"
|
|
1158
|
+
class="size-4 shrink-0"
|
|
1159
|
+
/>
|
|
1029
1160
|
<span class="truncate flex-1 min-w-0 text-left">Trash</span>
|
|
1030
1161
|
<UBadge
|
|
1031
1162
|
v-if="trashedCount > 0"
|
|
@@ -1060,9 +1191,15 @@ defineExpose({
|
|
|
1060
1191
|
class="size-3.5"
|
|
1061
1192
|
/>
|
|
1062
1193
|
</span>
|
|
1063
|
-
<span
|
|
1194
|
+
<span
|
|
1195
|
+
v-else
|
|
1196
|
+
class="size-5 shrink-0"
|
|
1197
|
+
/>
|
|
1064
1198
|
|
|
1065
|
-
<UIcon
|
|
1199
|
+
<UIcon
|
|
1200
|
+
:name="getItemIcon(item)"
|
|
1201
|
+
class="size-4 shrink-0 text-(--ui-text-muted)"
|
|
1202
|
+
/>
|
|
1066
1203
|
<span class="truncate flex-1 min-w-0 text-left">{{ item.name }}</span>
|
|
1067
1204
|
</button>
|
|
1068
1205
|
</UContextMenu>
|
|
@@ -1095,7 +1232,10 @@ defineExpose({
|
|
|
1095
1232
|
class="size-3.5"
|
|
1096
1233
|
/>
|
|
1097
1234
|
</span>
|
|
1098
|
-
<span
|
|
1235
|
+
<span
|
|
1236
|
+
v-else
|
|
1237
|
+
class="size-5 shrink-0"
|
|
1238
|
+
/>
|
|
1099
1239
|
|
|
1100
1240
|
<UIcon
|
|
1101
1241
|
:name="getItemIcon(item)"
|
|
@@ -1116,7 +1256,10 @@ defineExpose({
|
|
|
1116
1256
|
@blur="commitRename"
|
|
1117
1257
|
@click.stop
|
|
1118
1258
|
/>
|
|
1119
|
-
<span
|
|
1259
|
+
<span
|
|
1260
|
+
v-else
|
|
1261
|
+
class="truncate flex-1 min-w-0 text-left"
|
|
1262
|
+
>{{ item.name }}</span>
|
|
1120
1263
|
|
|
1121
1264
|
<!-- Unread chat badge -->
|
|
1122
1265
|
<UBadge
|
|
@@ -1149,7 +1292,6 @@ defineExpose({
|
|
|
1149
1292
|
+{{ docPresence.get(item.id).length - MAX_PRESENCE }}
|
|
1150
1293
|
</div>
|
|
1151
1294
|
</div>
|
|
1152
|
-
|
|
1153
1295
|
</button>
|
|
1154
1296
|
</UContextMenu>
|
|
1155
1297
|
|
|
@@ -1178,7 +1320,10 @@ defineExpose({
|
|
|
1178
1320
|
class="size-3.5"
|
|
1179
1321
|
/>
|
|
1180
1322
|
</span>
|
|
1181
|
-
<span
|
|
1323
|
+
<span
|
|
1324
|
+
v-else
|
|
1325
|
+
class="size-5 shrink-0"
|
|
1326
|
+
/>
|
|
1182
1327
|
|
|
1183
1328
|
<UIcon
|
|
1184
1329
|
:name="getItemIcon(item)"
|
|
@@ -1239,8 +1384,16 @@ defineExpose({
|
|
|
1239
1384
|
@click="onRestoreItem(item)"
|
|
1240
1385
|
/>
|
|
1241
1386
|
</UTooltip>
|
|
1242
|
-
<UDropdownMenu
|
|
1243
|
-
|
|
1387
|
+
<UDropdownMenu
|
|
1388
|
+
:items="trashNodeMenuItems(item)"
|
|
1389
|
+
:content="{ align: 'start' }"
|
|
1390
|
+
>
|
|
1391
|
+
<UButton
|
|
1392
|
+
icon="i-lucide-ellipsis"
|
|
1393
|
+
size="xs"
|
|
1394
|
+
variant="ghost"
|
|
1395
|
+
color="neutral"
|
|
1396
|
+
/>
|
|
1244
1397
|
</UDropdownMenu>
|
|
1245
1398
|
</div>
|
|
1246
1399
|
<!-- Editable item actions -->
|
|
@@ -1258,7 +1411,10 @@ defineExpose({
|
|
|
1258
1411
|
variant="ghost"
|
|
1259
1412
|
@click="isInThisCall(item) ? leaveRoom() : joinRoom(item.id)"
|
|
1260
1413
|
/>
|
|
1261
|
-
<UTooltip
|
|
1414
|
+
<UTooltip
|
|
1415
|
+
v-if="!isCallDoc(item)"
|
|
1416
|
+
text="Add child page"
|
|
1417
|
+
>
|
|
1262
1418
|
<UButton
|
|
1263
1419
|
icon="i-lucide-plus"
|
|
1264
1420
|
size="xs"
|
|
@@ -1267,8 +1423,16 @@ defineExpose({
|
|
|
1267
1423
|
@click="createDirectly(item.id)"
|
|
1268
1424
|
/>
|
|
1269
1425
|
</UTooltip>
|
|
1270
|
-
<UDropdownMenu
|
|
1271
|
-
|
|
1426
|
+
<UDropdownMenu
|
|
1427
|
+
:items="treeNodeMenuItems(item)"
|
|
1428
|
+
:content="{ align: 'start' }"
|
|
1429
|
+
>
|
|
1430
|
+
<UButton
|
|
1431
|
+
icon="i-lucide-ellipsis"
|
|
1432
|
+
size="xs"
|
|
1433
|
+
variant="ghost"
|
|
1434
|
+
color="neutral"
|
|
1435
|
+
/>
|
|
1272
1436
|
</UDropdownMenu>
|
|
1273
1437
|
</div>
|
|
1274
1438
|
</div>
|
|
@@ -1291,7 +1455,10 @@ defineExpose({
|
|
|
1291
1455
|
Drop into
|
|
1292
1456
|
<span class="font-medium text-(--ui-text-highlighted)">{{ nodeMap.get(dropIndicator.targetId)?.label }}</span>
|
|
1293
1457
|
</span>
|
|
1294
|
-
<span
|
|
1458
|
+
<span
|
|
1459
|
+
v-else
|
|
1460
|
+
class="text-xs text-(--ui-text-muted)"
|
|
1461
|
+
>
|
|
1295
1462
|
Drop to import — docs, images, or any file
|
|
1296
1463
|
</span>
|
|
1297
1464
|
</div>
|
|
@@ -4,13 +4,13 @@ type __VLS_Props = {
|
|
|
4
4
|
selectedId?: string | null;
|
|
5
5
|
};
|
|
6
6
|
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
|
|
7
|
-
handleExternalDrop: (e: DragEvent, parentId?: string | null) =>
|
|
7
|
+
handleExternalDrop: (e: DragEvent, parentId?: string | null) => Promise<void>;
|
|
8
8
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
navigate: (id: string) => any;
|
|
10
9
|
create: (parentId: string | null) => any;
|
|
10
|
+
navigate: (id: string) => any;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
12
|
-
onNavigate?: ((id: string) => any) | undefined;
|
|
13
12
|
onCreate?: ((parentId: string | null) => any) | undefined;
|
|
13
|
+
onNavigate?: ((id: string) => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
editable: boolean;
|
|
16
16
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { DocPageMeta } from '../types.js';
|
|
2
|
+
import type { MetaField } from '../utils/docTypes.js';
|
|
2
3
|
type __VLS_Props = {
|
|
3
4
|
/** Y.Doc ID to load as a child document */
|
|
4
5
|
docId: string;
|
|
@@ -18,6 +19,10 @@ type __VLS_Props = {
|
|
|
18
19
|
showDragHandle?: boolean;
|
|
19
20
|
/** Current document metadata from the doc-tree — written into MetaField storage */
|
|
20
21
|
docMeta?: DocPageMeta;
|
|
22
|
+
/** Parent document's type key — used to resolve metaSchema for auto-inserting chips */
|
|
23
|
+
parentType?: string;
|
|
24
|
+
/** Override metaSchema directly instead of resolving from parentType */
|
|
25
|
+
metaSchema?: MetaField[];
|
|
21
26
|
};
|
|
22
27
|
type __VLS_ModelProps = {
|
|
23
28
|
modelValue?: any;
|
|
@@ -37,17 +42,17 @@ type __VLS_Slots = {} & {
|
|
|
37
42
|
default?: (props: typeof __VLS_18) => any;
|
|
38
43
|
};
|
|
39
44
|
declare const __VLS_base: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
40
|
-
"update:modelValue": (value: any) => any;
|
|
41
45
|
rename: (label: string) => any;
|
|
42
|
-
ready: () => any;
|
|
43
46
|
update: (content: any) => any;
|
|
47
|
+
"update:modelValue": (value: any) => any;
|
|
44
48
|
updateMeta: (patch: Partial<DocPageMeta>) => any;
|
|
49
|
+
ready: () => any;
|
|
45
50
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
46
|
-
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
47
51
|
onRename?: ((label: string) => any) | undefined;
|
|
48
|
-
onReady?: (() => any) | undefined;
|
|
49
52
|
onUpdate?: ((content: any) => any) | undefined;
|
|
53
|
+
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
50
54
|
onUpdateMeta?: ((patch: Partial<DocPageMeta>) => any) | undefined;
|
|
55
|
+
onReady?: (() => any) | undefined;
|
|
51
56
|
}>, {
|
|
52
57
|
contentType: "json" | "html" | "markdown";
|
|
53
58
|
editable: boolean;
|