@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,235 @@
|
|
|
1
|
+
import * as Y from "yjs";
|
|
2
|
+
function langFromClass(el) {
|
|
3
|
+
for (const cls of el.classList) {
|
|
4
|
+
if (cls.startsWith("language-")) return cls.slice(9);
|
|
5
|
+
}
|
|
6
|
+
return "";
|
|
7
|
+
}
|
|
8
|
+
function mergeMarks(stack) {
|
|
9
|
+
const merged = {};
|
|
10
|
+
for (const m of stack) {
|
|
11
|
+
if (m.bold) merged.bold = true;
|
|
12
|
+
if (m.italic) merged.italic = true;
|
|
13
|
+
if (m.code) merged.code = true;
|
|
14
|
+
if (m.strike) merged.strike = true;
|
|
15
|
+
if (m.link) merged.link = m.link;
|
|
16
|
+
}
|
|
17
|
+
return merged;
|
|
18
|
+
}
|
|
19
|
+
function collectInlineRuns(node, markStack) {
|
|
20
|
+
const runs = [];
|
|
21
|
+
if (node.nodeType === Node.TEXT_NODE) {
|
|
22
|
+
const text = node.textContent ?? "";
|
|
23
|
+
if (text) runs.push({ text, marks: mergeMarks(markStack) });
|
|
24
|
+
return runs;
|
|
25
|
+
}
|
|
26
|
+
if (node.nodeType !== Node.ELEMENT_NODE) return runs;
|
|
27
|
+
const el = node;
|
|
28
|
+
const tag = el.tagName.toLowerCase();
|
|
29
|
+
const newMarks = {};
|
|
30
|
+
if (tag === "strong" || tag === "b") newMarks.bold = true;
|
|
31
|
+
if (tag === "em" || tag === "i") newMarks.italic = true;
|
|
32
|
+
if (tag === "code") newMarks.code = true;
|
|
33
|
+
if (tag === "s" || tag === "del" || tag === "strike") newMarks.strike = true;
|
|
34
|
+
if (tag === "a") {
|
|
35
|
+
const href = el.getAttribute("href");
|
|
36
|
+
if (href) newMarks.link = { href };
|
|
37
|
+
}
|
|
38
|
+
const nextStack = Object.keys(newMarks).length ? [...markStack, newMarks] : markStack;
|
|
39
|
+
for (const child of el.childNodes) {
|
|
40
|
+
runs.push(...collectInlineRuns(child, nextStack));
|
|
41
|
+
}
|
|
42
|
+
return runs;
|
|
43
|
+
}
|
|
44
|
+
function fillInlineRuns(paraEl, runs) {
|
|
45
|
+
if (!runs.length) return;
|
|
46
|
+
const xtNodes = runs.map(() => new Y.XmlText());
|
|
47
|
+
paraEl.insert(0, xtNodes);
|
|
48
|
+
runs.forEach((run, i) => {
|
|
49
|
+
const attrs = {};
|
|
50
|
+
if (run.marks.bold) attrs.bold = true;
|
|
51
|
+
if (run.marks.italic) attrs.italic = true;
|
|
52
|
+
if (run.marks.code) attrs.code = true;
|
|
53
|
+
if (run.marks.strike) attrs.strike = true;
|
|
54
|
+
if (run.marks.link) attrs.link = run.marks.link;
|
|
55
|
+
if (Object.keys(attrs).length) {
|
|
56
|
+
xtNodes[i].insert(0, run.text, attrs);
|
|
57
|
+
} else {
|
|
58
|
+
xtNodes[i].insert(0, run.text);
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function convertBlockElement(el, container) {
|
|
63
|
+
const tag = el.tagName.toLowerCase();
|
|
64
|
+
if (tag === "div" && el.getAttribute("data-type") === "file-block") {
|
|
65
|
+
const fileBlockEl = new Y.XmlElement("fileBlock");
|
|
66
|
+
container.insert(container.length, [fileBlockEl]);
|
|
67
|
+
const uploadId = el.getAttribute("uploadid") ?? "";
|
|
68
|
+
const docId = el.getAttribute("docid") ?? "";
|
|
69
|
+
const filename = el.getAttribute("filename") ?? "";
|
|
70
|
+
const mimeType = el.getAttribute("mimetype") ?? "";
|
|
71
|
+
if (uploadId) fileBlockEl.setAttribute("uploadId", uploadId);
|
|
72
|
+
if (docId) fileBlockEl.setAttribute("docId", docId);
|
|
73
|
+
if (filename) fileBlockEl.setAttribute("filename", filename);
|
|
74
|
+
if (mimeType) fileBlockEl.setAttribute("mimeType", mimeType);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const headingMatch = tag.match(/^h([1-6])$/);
|
|
78
|
+
if (headingMatch) {
|
|
79
|
+
const level = Number.parseInt(headingMatch[1]);
|
|
80
|
+
const headingEl = new Y.XmlElement("heading");
|
|
81
|
+
container.insert(container.length, [headingEl]);
|
|
82
|
+
headingEl.setAttribute("level", level);
|
|
83
|
+
fillInlineRuns(headingEl, collectInlineRuns(el, []));
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
if (tag === "p") {
|
|
87
|
+
const paraEl = new Y.XmlElement("paragraph");
|
|
88
|
+
container.insert(container.length, [paraEl]);
|
|
89
|
+
fillInlineRuns(paraEl, collectInlineRuns(el, []));
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (tag === "hr") {
|
|
93
|
+
const hrEl = new Y.XmlElement("horizontalRule");
|
|
94
|
+
container.insert(container.length, [hrEl]);
|
|
95
|
+
return;
|
|
96
|
+
}
|
|
97
|
+
if (tag === "pre") {
|
|
98
|
+
const codeEl = el.querySelector("code");
|
|
99
|
+
const codeBlock = new Y.XmlElement("codeBlock");
|
|
100
|
+
container.insert(container.length, [codeBlock]);
|
|
101
|
+
const lang = codeEl ? langFromClass(codeEl) : "";
|
|
102
|
+
if (lang) codeBlock.setAttribute("language", lang);
|
|
103
|
+
const xt = new Y.XmlText();
|
|
104
|
+
codeBlock.insert(0, [xt]);
|
|
105
|
+
xt.insert(0, (codeEl ?? el).textContent ?? "");
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
if (tag === "blockquote") {
|
|
109
|
+
const bqEl = new Y.XmlElement("blockquote");
|
|
110
|
+
container.insert(container.length, [bqEl]);
|
|
111
|
+
const paraEl = new Y.XmlElement("paragraph");
|
|
112
|
+
bqEl.insert(0, [paraEl]);
|
|
113
|
+
fillInlineRuns(paraEl, collectInlineRuns(el, []));
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
if (tag === "ul" || tag === "ol") {
|
|
117
|
+
const items = Array.from(el.querySelectorAll(":scope > li"));
|
|
118
|
+
const hasCheckbox = items.some((li) => li.querySelector('input[type="checkbox"]'));
|
|
119
|
+
if (hasCheckbox) {
|
|
120
|
+
const taskListEl = new Y.XmlElement("taskList");
|
|
121
|
+
container.insert(container.length, [taskListEl]);
|
|
122
|
+
const taskItemEls = items.map(() => new Y.XmlElement("taskItem"));
|
|
123
|
+
taskListEl.insert(0, taskItemEls);
|
|
124
|
+
items.forEach((li, i) => {
|
|
125
|
+
const checkbox = li.querySelector('input[type="checkbox"]');
|
|
126
|
+
const checked = checkbox?.checked ?? false;
|
|
127
|
+
taskItemEls[i].setAttribute("checked", checked);
|
|
128
|
+
const paraEl = new Y.XmlElement("paragraph");
|
|
129
|
+
taskItemEls[i].insert(0, [paraEl]);
|
|
130
|
+
const clone = li.cloneNode(true);
|
|
131
|
+
clone.querySelector("input")?.remove();
|
|
132
|
+
fillInlineRuns(paraEl, collectInlineRuns(clone, []));
|
|
133
|
+
});
|
|
134
|
+
} else {
|
|
135
|
+
const listType = tag === "ul" ? "bulletList" : "orderedList";
|
|
136
|
+
const listEl = new Y.XmlElement(listType);
|
|
137
|
+
container.insert(container.length, [listEl]);
|
|
138
|
+
const listItemEls = items.map(() => new Y.XmlElement("listItem"));
|
|
139
|
+
listEl.insert(0, listItemEls);
|
|
140
|
+
items.forEach((li, i) => {
|
|
141
|
+
const paraEl = new Y.XmlElement("paragraph");
|
|
142
|
+
listItemEls[i].insert(0, [paraEl]);
|
|
143
|
+
fillInlineRuns(paraEl, collectInlineRuns(li, []));
|
|
144
|
+
});
|
|
145
|
+
}
|
|
146
|
+
return;
|
|
147
|
+
}
|
|
148
|
+
if (tag === "table") {
|
|
149
|
+
const tableEl = new Y.XmlElement("table");
|
|
150
|
+
container.insert(container.length, [tableEl]);
|
|
151
|
+
const rows = Array.from(el.querySelectorAll("tr"));
|
|
152
|
+
const rowEls = rows.map(() => new Y.XmlElement("tableRow"));
|
|
153
|
+
tableEl.insert(0, rowEls);
|
|
154
|
+
rows.forEach((row, ri) => {
|
|
155
|
+
const cells = Array.from(row.querySelectorAll("th, td"));
|
|
156
|
+
const isHeader = cells.some((c) => c.tagName.toLowerCase() === "th");
|
|
157
|
+
const cellType = isHeader ? "tableHeader" : "tableCell";
|
|
158
|
+
const cellEls = cells.map(() => new Y.XmlElement(cellType));
|
|
159
|
+
rowEls[ri].insert(0, cellEls);
|
|
160
|
+
cells.forEach((cell, ci) => {
|
|
161
|
+
const paraEl = new Y.XmlElement("paragraph");
|
|
162
|
+
cellEls[ci].insert(0, [paraEl]);
|
|
163
|
+
fillInlineRuns(paraEl, collectInlineRuns(cell, []));
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
return;
|
|
167
|
+
}
|
|
168
|
+
const text = (el.textContent ?? "").trim();
|
|
169
|
+
if (text) {
|
|
170
|
+
const paraEl = new Y.XmlElement("paragraph");
|
|
171
|
+
container.insert(container.length, [paraEl]);
|
|
172
|
+
fillInlineRuns(paraEl, collectInlineRuns(el, []));
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
const BLOCK_TAGS = /* @__PURE__ */ new Set([
|
|
176
|
+
"p",
|
|
177
|
+
"h1",
|
|
178
|
+
"h2",
|
|
179
|
+
"h3",
|
|
180
|
+
"h4",
|
|
181
|
+
"h5",
|
|
182
|
+
"h6",
|
|
183
|
+
"ul",
|
|
184
|
+
"ol",
|
|
185
|
+
"pre",
|
|
186
|
+
"blockquote",
|
|
187
|
+
"table",
|
|
188
|
+
"hr",
|
|
189
|
+
"div",
|
|
190
|
+
"section",
|
|
191
|
+
"article",
|
|
192
|
+
"header",
|
|
193
|
+
"footer",
|
|
194
|
+
"main",
|
|
195
|
+
"aside"
|
|
196
|
+
]);
|
|
197
|
+
export function populateYDocFromHtml(fragment, html, fallbackTitle = "Untitled") {
|
|
198
|
+
const ydoc = fragment.doc;
|
|
199
|
+
if (!ydoc) return;
|
|
200
|
+
const doc = new DOMParser().parseFromString(html, "text/html");
|
|
201
|
+
let title = doc.title?.trim() || fallbackTitle;
|
|
202
|
+
const firstH1 = doc.body.querySelector("h1");
|
|
203
|
+
if (firstH1) title = firstH1.textContent?.trim() || title;
|
|
204
|
+
ydoc.transact(() => {
|
|
205
|
+
const headerEl = new Y.XmlElement("documentHeader");
|
|
206
|
+
const metaEl = new Y.XmlElement("documentMeta");
|
|
207
|
+
fragment.insert(0, [headerEl, metaEl]);
|
|
208
|
+
const headerXt = new Y.XmlText();
|
|
209
|
+
headerEl.insert(0, [headerXt]);
|
|
210
|
+
headerXt.insert(0, title);
|
|
211
|
+
let hasContent = false;
|
|
212
|
+
for (const child of doc.body.children) {
|
|
213
|
+
const tag = child.tagName.toLowerCase();
|
|
214
|
+
if (!BLOCK_TAGS.has(tag)) continue;
|
|
215
|
+
if (tag === "h1" && child === firstH1) continue;
|
|
216
|
+
convertBlockElement(child, fragment);
|
|
217
|
+
hasContent = true;
|
|
218
|
+
}
|
|
219
|
+
if (!hasContent) {
|
|
220
|
+
const paraEl = new Y.XmlElement("paragraph");
|
|
221
|
+
fragment.insert(fragment.length, [paraEl]);
|
|
222
|
+
}
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
export function appendHtmlToFragment(fragment, html) {
|
|
226
|
+
const ydoc = fragment.doc;
|
|
227
|
+
if (!ydoc) return;
|
|
228
|
+
const doc = new DOMParser().parseFromString(html, "text/html");
|
|
229
|
+
ydoc.transact(() => {
|
|
230
|
+
for (const child of doc.body.children) {
|
|
231
|
+
if (BLOCK_TAGS.has(child.tagName.toLowerCase()))
|
|
232
|
+
convertBlockElement(child, fragment);
|
|
233
|
+
}
|
|
234
|
+
});
|
|
235
|
+
}
|
|
@@ -115,7 +115,7 @@ function parseMdcProps(propsStr) {
|
|
|
115
115
|
function parseInline(text) {
|
|
116
116
|
const stripped = text.replace(/\{lang="[^"]*"\}/g, "").replace(/:(?!badge|icon|kbd)(\w[\w-]*)\[([^\]]*)\](\{[^}]*\})?/g, "$2").replace(/:(?!badge|icon|kbd)(\w[\w-]*)(\{[^}]*\})/g, "");
|
|
117
117
|
const tokens = [];
|
|
118
|
-
const re = /:badge\[([^\]]*)\](\{[^}]*\})?|:icon\{([^}]*)\}|:kbd\{([^}]*)\}|!?\[\[([^\]|]
|
|
118
|
+
const re = /:badge\[([^\]]*)\](\{[^}]*\})?|:icon\{([^}]*)\}|:kbd\{([^}]*)\}|!?\[\[([^\]|]+)(?:\|([^\]]+))?\]\]|~~(.+?)~~|\*\*(.+?)\*\*|\*(.+?)\*|_(.+?)_|`(.+?)`|\[(.+?)\]\((.+?)\)/g;
|
|
119
119
|
let lastIndex = 0;
|
|
120
120
|
let match;
|
|
121
121
|
while ((match = re.exec(stripped)) !== null) {
|
|
@@ -161,7 +161,7 @@ function parseTableRow(line) {
|
|
|
161
161
|
function isTableSeparator(line) {
|
|
162
162
|
return /^\|[\s|:-]+\|$/.test(line.trim());
|
|
163
163
|
}
|
|
164
|
-
const TASK_RE = /^[-*+]\s+\[([
|
|
164
|
+
const TASK_RE = /^[-*+]\s+\[([ x])\]\s+(.*)/i;
|
|
165
165
|
function parseBlocks(markdown) {
|
|
166
166
|
const rawLines = markdown.split("\n");
|
|
167
167
|
let firstContentLine = 0;
|
|
@@ -179,7 +179,7 @@ function parseBlocks(markdown) {
|
|
|
179
179
|
let i = 0;
|
|
180
180
|
while (i < lines.length) {
|
|
181
181
|
const line = lines[i];
|
|
182
|
-
const fenceBlockMatch = line.match(/^(`{3,})(
|
|
182
|
+
const fenceBlockMatch = line.match(/^(`{3,})([^`]*)$/);
|
|
183
183
|
if (fenceBlockMatch) {
|
|
184
184
|
const fence = fenceBlockMatch[1];
|
|
185
185
|
const lang = fenceBlockMatch[2].trim().replace(/\{[^}]*\}$/, "").replace(/\s*\[.*\]$/, "").trim();
|
|
@@ -237,7 +237,7 @@ function parseBlocks(markdown) {
|
|
|
237
237
|
}
|
|
238
238
|
continue;
|
|
239
239
|
}
|
|
240
|
-
const MDC_OPEN = /^\s
|
|
240
|
+
const MDC_OPEN = /^\s*:{2,}\w[\w-]*(?:\{[^}]*\})?\s*$/;
|
|
241
241
|
if (MDC_OPEN.test(line)) {
|
|
242
242
|
const colons = line.match(/^\s*(:+)/)?.[1]?.length ?? 2;
|
|
243
243
|
i++;
|
|
@@ -286,7 +286,7 @@ function parseBlocks(markdown) {
|
|
|
286
286
|
continue;
|
|
287
287
|
}
|
|
288
288
|
const paraLines = [];
|
|
289
|
-
while (i < lines.length && lines[i].trim() !== "" && !/^(
|
|
289
|
+
while (i < lines.length && lines[i].trim() !== "" && !/^(?:#{1,6}\s|[-*+]\s|\d+\.\s|>|`{3,}|\s*\||[-*_]{3,}\s*$|\s*:{2,}\w)/.test(lines[i])) {
|
|
290
290
|
paraLines.push(lines[i]);
|
|
291
291
|
i++;
|
|
292
292
|
}
|
|
@@ -178,5 +178,14 @@ export const META_FIELD_DEFINITIONS = [
|
|
|
178
178
|
const t = Date.now();
|
|
179
179
|
return { fieldType: "icon", fieldLabel: "Icon", userDefined: true, metaKey: `_icon_${t}` };
|
|
180
180
|
}
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
label: "Members",
|
|
184
|
+
icon: "i-lucide-users",
|
|
185
|
+
kind: "metaFieldMembers",
|
|
186
|
+
buildAttrs: () => {
|
|
187
|
+
const t = Date.now();
|
|
188
|
+
return { fieldType: "members", fieldLabel: "Members", userDefined: true, metaKey: `_members_${t}` };
|
|
189
|
+
}
|
|
181
190
|
}
|
|
182
191
|
];
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Notification rendering utilities.
|
|
3
|
+
*
|
|
4
|
+
* Converts notification payloads into VNodes for toast descriptions,
|
|
5
|
+
* handling doc-quote, doc-link, and rich text with @mentions and URLs.
|
|
6
|
+
*
|
|
7
|
+
* Ported from cou-sh/app/utils/notificationRenderers.ts.
|
|
8
|
+
*/
|
|
9
|
+
import { type VNode } from 'vue';
|
|
10
|
+
/**
|
|
11
|
+
* Render a rich notification description as a VNode for toast `description` fields.
|
|
12
|
+
*/
|
|
13
|
+
export declare function renderNotificationDescription(body: string): VNode | string;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { h, resolveComponent } from "vue";
|
|
2
|
+
import { parseMessageContent, renderMessageSegments } from "./chatContent.js";
|
|
3
|
+
function icon(name, cls = "size-3.5") {
|
|
4
|
+
return h(resolveComponent("UIcon"), { name, class: cls });
|
|
5
|
+
}
|
|
6
|
+
export function renderNotificationDescription(body) {
|
|
7
|
+
const parsed = parseMessageContent(body);
|
|
8
|
+
if (parsed.kind === "doc-quote") {
|
|
9
|
+
return h("div", { class: "flex flex-col gap-1" }, [
|
|
10
|
+
h("div", { class: "flex items-center gap-1.5 text-xs" }, [
|
|
11
|
+
icon("i-lucide-file-text", "size-3 shrink-0 opacity-60"),
|
|
12
|
+
h("span", { class: "font-medium truncate" }, parsed.label),
|
|
13
|
+
parsed.section ? h("span", { class: "opacity-50" }, ` \xB7 ${parsed.section}`) : null
|
|
14
|
+
]),
|
|
15
|
+
h("p", {
|
|
16
|
+
class: "text-xs italic opacity-70 line-clamp-2"
|
|
17
|
+
}, `"${parsed.text.slice(0, 120)}${parsed.text.length > 120 ? "\u2026" : ""}"`)
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
20
|
+
if (parsed.kind === "doc-link") {
|
|
21
|
+
return h("div", { class: "flex items-center gap-1.5 text-xs" }, [
|
|
22
|
+
icon("i-lucide-file-text", "size-3 shrink-0 opacity-60"),
|
|
23
|
+
h("span", { class: "font-medium" }, parsed.label || "Document")
|
|
24
|
+
]);
|
|
25
|
+
}
|
|
26
|
+
const text = parsed.text;
|
|
27
|
+
if (/@\w+/.test(text) || /https?:\/\//.test(text)) {
|
|
28
|
+
const segments = renderMessageSegments(text);
|
|
29
|
+
const children = segments.map((seg) => {
|
|
30
|
+
if (seg.type === "mention") {
|
|
31
|
+
return h("span", { class: "font-medium text-(--ui-primary)" }, `@${seg.name}`);
|
|
32
|
+
}
|
|
33
|
+
if (seg.type === "link") {
|
|
34
|
+
return h("span", { class: "underline underline-offset-2 opacity-80" }, seg.url.slice(0, 50) + (seg.url.length > 50 ? "\u2026" : ""));
|
|
35
|
+
}
|
|
36
|
+
return seg.value;
|
|
37
|
+
});
|
|
38
|
+
return h("span", {}, children.length > 0 ? children : [text]);
|
|
39
|
+
}
|
|
40
|
+
return text.length > 80 ? text.slice(0, 80) + "\u2026" : text;
|
|
41
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared reference to the lazily-loaded @abraca/dabra module.
|
|
3
|
+
*
|
|
4
|
+
* The main client plugin imports @abraca/dabra once during init() and stashes
|
|
5
|
+
* the module here. Composables that need SDK classes (BroadcastChannelSync,
|
|
6
|
+
* AbracadabraWebRTC, ManualSignaling) read from this reference instead of
|
|
7
|
+
* doing their own dynamic import — avoids module resolution issues in Nuxt's
|
|
8
|
+
* module/playground dev environment.
|
|
9
|
+
*/
|
|
10
|
+
export type SdkModule = typeof import('@abraca/dabra');
|
|
11
|
+
export declare function setSdkModule(mod: SdkModule): void;
|
|
12
|
+
export declare function getSdkModule(): SdkModule | null;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Isomorphic slug utilities for Abracadabra documents.
|
|
3
|
+
*
|
|
4
|
+
* Generates deterministic, hierarchical, human-readable URL slugs from the
|
|
5
|
+
* doc-tree. Same tree always produces the same slug map.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* Convert a label to a URL-safe slug.
|
|
9
|
+
*
|
|
10
|
+
* - Lowercases
|
|
11
|
+
* - Normalizes unicode (NFD, strip diacritics)
|
|
12
|
+
* - Replaces non-alphanumeric with hyphens
|
|
13
|
+
* - Collapses consecutive hyphens
|
|
14
|
+
* - Trims leading/trailing hyphens
|
|
15
|
+
* - Returns 'untitled' for empty input
|
|
16
|
+
*/
|
|
17
|
+
export declare function slugify(label: string): string;
|
|
18
|
+
/** Check whether a string is a valid UUID v4 (case-insensitive). */
|
|
19
|
+
export declare const isUUID: (s: string) => boolean;
|
|
20
|
+
export interface SlugMapEntry {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
parentId: string | null;
|
|
24
|
+
order: number;
|
|
25
|
+
trashed?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export interface SlugMap {
|
|
28
|
+
slugToId: Record<string, string>;
|
|
29
|
+
idToSlug: Record<string, string>;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Build a bidirectional slug↔docId map from tree entries.
|
|
33
|
+
*
|
|
34
|
+
* Slugs are hierarchical: a child's full slug is `parentSlug/childSlug`.
|
|
35
|
+
* Duplicate slugs at the same level get `-1`, `-2` suffixes (first occurrence
|
|
36
|
+
* keeps the base slug).
|
|
37
|
+
*
|
|
38
|
+
* The output is deterministic: entries are sorted by order, then by id.
|
|
39
|
+
*/
|
|
40
|
+
export declare function buildSlugMap(entries: SlugMapEntry[]): SlugMap;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export function slugify(label) {
|
|
2
|
+
const slug = label.normalize("NFD").replace(/[\u0300-\u036F]/g, "").toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/-{2,}/g, "-").replace(/^-|-$/g, "");
|
|
3
|
+
return slug || "untitled";
|
|
4
|
+
}
|
|
5
|
+
export const isUUID = (s) => /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s);
|
|
6
|
+
export function buildSlugMap(entries) {
|
|
7
|
+
const slugToId = {};
|
|
8
|
+
const idToSlug = {};
|
|
9
|
+
const active = entries.filter((e) => !e.trashed);
|
|
10
|
+
const byParent = /* @__PURE__ */ new Map();
|
|
11
|
+
for (const entry of active) {
|
|
12
|
+
const key = entry.parentId ?? null;
|
|
13
|
+
if (!byParent.has(key)) byParent.set(key, []);
|
|
14
|
+
byParent.get(key).push(entry);
|
|
15
|
+
}
|
|
16
|
+
for (const children of byParent.values()) {
|
|
17
|
+
children.sort((a, b) => (a.order ?? 0) - (b.order ?? 0) || a.id.localeCompare(b.id));
|
|
18
|
+
}
|
|
19
|
+
function processLevel(parentId, parentPath) {
|
|
20
|
+
const children = byParent.get(parentId);
|
|
21
|
+
if (!children) return;
|
|
22
|
+
const slugCount = /* @__PURE__ */ new Map();
|
|
23
|
+
for (const entry of children) {
|
|
24
|
+
const baseSlug = slugify(entry.label);
|
|
25
|
+
const count = slugCount.get(baseSlug) ?? 0;
|
|
26
|
+
slugCount.set(baseSlug, count + 1);
|
|
27
|
+
const slug = count === 0 ? baseSlug : `${baseSlug}-${count}`;
|
|
28
|
+
const fullPath = parentPath ? `${parentPath}/${slug}` : slug;
|
|
29
|
+
slugToId[fullPath] = entry.id;
|
|
30
|
+
idToSlug[entry.id] = fullPath;
|
|
31
|
+
processLevel(entry.id, fullPath);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
processLevel(null, "");
|
|
35
|
+
return { slugToId, idToSlug };
|
|
36
|
+
}
|
package/dist/types.d.mts
CHANGED
|
@@ -2,12 +2,30 @@ export { type AbracadabraPlugin, type AbracadabraState, type CachedTreeNode, typ
|
|
|
2
2
|
|
|
3
3
|
export { type AbracadabraLocale } from '../dist/runtime/locale.js'
|
|
4
4
|
|
|
5
|
+
export { type DocTreeReturn } from '../dist/runtime/composables/useDocTree.js'
|
|
6
|
+
|
|
7
|
+
export { type DocSeoOptions } from '../dist/runtime/composables/useDocSeo.js'
|
|
8
|
+
|
|
9
|
+
export { type DocDragState } from '../dist/runtime/composables/useDocDragBus.js'
|
|
10
|
+
|
|
11
|
+
export { type ParsedMessage, type TextSegment, type parseMessageContent, type previewMessageContent, type renderMessageSegments } from '../dist/runtime/utils/chatContent.js'
|
|
12
|
+
|
|
13
|
+
export { type DupEntry, type duplicateDocContent, type duplicateDocTree } from '../dist/runtime/utils/duplicateDocContent.js'
|
|
14
|
+
|
|
15
|
+
export { type SlugMap, type SlugMapEntry, type buildSlugMap, type isUUID, type slugify } from '../dist/runtime/utils/slugify.js'
|
|
16
|
+
|
|
5
17
|
export { type avatarBorderStyle, type avatarGradient, type avatarStyleFromName } from '../dist/runtime/utils/avatarStyle.js'
|
|
6
18
|
|
|
7
19
|
export { type COLOR_PALETTES, type ColorPalette, type ColorShade, type findPaletteByHex } from '../dist/runtime/utils/colorPalettes.js'
|
|
8
20
|
|
|
9
21
|
export { type META_FIELD_DEFINITIONS, type MetaFieldDefinition } from '../dist/runtime/utils/metaFieldDefinitions.js'
|
|
10
22
|
|
|
23
|
+
export { type getCoverBlobUrl } from '../dist/runtime/utils/coverCache.js'
|
|
24
|
+
|
|
25
|
+
export { type renderNotificationDescription } from '../dist/runtime/utils/notificationRenderers.js'
|
|
26
|
+
|
|
27
|
+
export { type scanDocReferences } from '../dist/runtime/utils/docReferenceEdges.js'
|
|
28
|
+
|
|
11
29
|
export { default } from './module.mjs'
|
|
12
30
|
|
|
13
31
|
export { type ModuleOptions } from './module.mjs'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abraca/nuxt",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "First-class Nuxt module for the Abracadabra CRDT collaboration platform",
|
|
5
5
|
"repository": "abracadabra/abracadabra-nuxt",
|
|
6
6
|
"license": "MIT",
|
|
@@ -34,32 +34,41 @@
|
|
|
34
34
|
"lint": "eslint .",
|
|
35
35
|
"test": "vitest run",
|
|
36
36
|
"test:watch": "vitest watch",
|
|
37
|
+
"test:integration": "vitest run --config test/integration/vitest.config.ts --reporter=verbose",
|
|
37
38
|
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
|
|
38
39
|
},
|
|
39
40
|
"dependencies": {
|
|
40
41
|
"@nuxt/kit": "^4.4.2",
|
|
41
|
-
"@vueuse/core": "^
|
|
42
|
-
"defu": "^6.1.
|
|
43
|
-
"nanoevents": "^9.
|
|
42
|
+
"@vueuse/core": "^14.2.1",
|
|
43
|
+
"defu": "^6.1.7",
|
|
44
|
+
"nanoevents": "^9.1.0"
|
|
44
45
|
},
|
|
45
46
|
"peerDependencies": {
|
|
46
|
-
"@abraca/dabra": "
|
|
47
|
-
"
|
|
48
|
-
"@noble/
|
|
49
|
-
"@
|
|
50
|
-
"@
|
|
51
|
-
"@tiptap/
|
|
52
|
-
"@tiptap/extension-collaboration": "
|
|
53
|
-
"@tiptap/
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
47
|
+
"@abraca/dabra": "^1.5.0",
|
|
48
|
+
"@noble/ed25519": "^3.0.0",
|
|
49
|
+
"@noble/hashes": "^1.0.0",
|
|
50
|
+
"@nuxt/ui": "^3.0.0",
|
|
51
|
+
"@tiptap/core": "^3.0.0",
|
|
52
|
+
"@tiptap/extension-collaboration": "^3.0.0",
|
|
53
|
+
"@tiptap/extension-collaboration-caret": "^3.0.0",
|
|
54
|
+
"@tiptap/vue-3": "^3.0.0",
|
|
55
|
+
"d3-force": "^3.0.0",
|
|
56
|
+
"jszip": "^3.0.0",
|
|
57
|
+
"mapbox-gl": "^3.0.0",
|
|
58
|
+
"nuxt": "^4.0.0",
|
|
59
|
+
"vue": "^3.4.0",
|
|
60
|
+
"yjs": "^13.0.0"
|
|
58
61
|
},
|
|
59
62
|
"peerDependenciesMeta": {
|
|
63
|
+
"d3-force": {
|
|
64
|
+
"optional": true
|
|
65
|
+
},
|
|
60
66
|
"jszip": {
|
|
61
67
|
"optional": true
|
|
62
68
|
},
|
|
69
|
+
"mapbox-gl": {
|
|
70
|
+
"optional": true
|
|
71
|
+
},
|
|
63
72
|
"@tiptap/core": {
|
|
64
73
|
"optional": false
|
|
65
74
|
},
|
|
@@ -74,29 +83,32 @@
|
|
|
74
83
|
}
|
|
75
84
|
},
|
|
76
85
|
"devDependencies": {
|
|
77
|
-
"@abraca/dabra": "
|
|
78
|
-
"@noble/ed25519": "^
|
|
79
|
-
"@noble/hashes": "^1.
|
|
80
|
-
"@nuxt/devtools": "^3.2.3",
|
|
86
|
+
"@abraca/dabra": "1.5.0",
|
|
87
|
+
"@noble/ed25519": "^3.0.1",
|
|
88
|
+
"@noble/hashes": "^1.8.0",
|
|
81
89
|
"@nuxt/eslint-config": "^1.15.2",
|
|
82
90
|
"@nuxt/module-builder": "^1.0.2",
|
|
83
91
|
"@nuxt/schema": "^4.4.2",
|
|
84
|
-
"@nuxt/test-utils": "^4.0.
|
|
85
|
-
"@nuxt/ui": "^4.
|
|
86
|
-
"@tiptap/core": "^3.
|
|
87
|
-
"@tiptap/extension-collaboration": "^3.
|
|
88
|
-
"@tiptap/extension-collaboration-caret": "^3.
|
|
89
|
-
"@tiptap/vue-3": "^3.
|
|
92
|
+
"@nuxt/test-utils": "^4.0.2",
|
|
93
|
+
"@nuxt/ui": "^4.6.1",
|
|
94
|
+
"@tiptap/core": "^3.22.3",
|
|
95
|
+
"@tiptap/extension-collaboration": "^3.22.3",
|
|
96
|
+
"@tiptap/extension-collaboration-caret": "^3.22.3",
|
|
97
|
+
"@tiptap/vue-3": "^3.22.3",
|
|
98
|
+
"@types/d3-force": "^3.0.10",
|
|
90
99
|
"@types/node": "latest",
|
|
100
|
+
"@types/ws": "^8.18.1",
|
|
91
101
|
"changelogen": "^0.6.2",
|
|
92
|
-
"
|
|
102
|
+
"d3-force": "^3.0.0",
|
|
103
|
+
"eslint": "^10.2.0",
|
|
93
104
|
"nuxt": "^4.4.2",
|
|
94
105
|
"tslib": "^2.8.1",
|
|
95
|
-
"typescript": "~
|
|
96
|
-
"vitest": "^4.1.
|
|
97
|
-
"vue": "^3.5.
|
|
98
|
-
"vue-tsc": "^3.2.
|
|
99
|
-
"
|
|
106
|
+
"typescript": "~6.0.2",
|
|
107
|
+
"vitest": "^4.1.4",
|
|
108
|
+
"vue": "^3.5.32",
|
|
109
|
+
"vue-tsc": "^3.2.6",
|
|
110
|
+
"ws": "^8.20.0",
|
|
111
|
+
"yjs": "^13.6.30"
|
|
100
112
|
},
|
|
101
113
|
"packageManager": "pnpm@10.29.3+sha512.498e1fb4cca5aa06c1dcf2611e6fafc50972ffe7189998c409e90de74566444298ffe43e6cd2acdc775ba1aa7cc5e092a8b7054c811ba8c5770f84693d33d2dc"
|
|
102
114
|
}
|