@abraca/nuxt 1.8.2 → 2.0.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.
Files changed (475) hide show
  1. package/README.md +27 -2
  2. package/dist/module.d.mts +4 -3
  3. package/dist/module.json +1 -1
  4. package/dist/module.mjs +50 -4
  5. package/dist/runtime/components/ADocumentTree.vue +1 -1
  6. package/dist/runtime/components/AEditor.d.vue.ts +26 -1
  7. package/dist/runtime/components/AEditor.vue +153 -4
  8. package/dist/runtime/components/AEditor.vue.d.ts +26 -1
  9. package/dist/runtime/components/AIdentityModal.d.vue.ts +46 -0
  10. package/dist/runtime/components/AIdentityModal.vue +157 -0
  11. package/dist/runtime/components/AIdentityModal.vue.d.ts +46 -0
  12. package/dist/runtime/components/AMnemonicLoginModal.d.vue.ts +35 -0
  13. package/dist/runtime/components/AMnemonicLoginModal.vue +173 -0
  14. package/dist/runtime/components/AMnemonicLoginModal.vue.d.ts +35 -0
  15. package/dist/runtime/components/ANodePanel.d.vue.ts +29 -2
  16. package/dist/runtime/components/ANodePanel.vue +148 -27
  17. package/dist/runtime/components/ANodePanel.vue.d.ts +29 -2
  18. package/dist/runtime/components/ANodePanelHeader.d.vue.ts +64 -0
  19. package/dist/runtime/components/ANodePanelHeader.vue +105 -0
  20. package/dist/runtime/components/ANodePanelHeader.vue.d.ts +64 -0
  21. package/dist/runtime/components/ANodeSettingsPanel.d.vue.ts +49 -0
  22. package/dist/runtime/components/ANodeSettingsPanel.vue +59 -0
  23. package/dist/runtime/components/ANodeSettingsPanel.vue.d.ts +49 -0
  24. package/dist/runtime/components/ANotificationBell.d.vue.ts +26 -0
  25. package/dist/runtime/components/ANotificationBell.vue +55 -0
  26. package/dist/runtime/components/ANotificationBell.vue.d.ts +26 -0
  27. package/dist/runtime/components/AOfflineSync.d.vue.ts +11 -0
  28. package/dist/runtime/components/AOfflineSync.vue +217 -0
  29. package/dist/runtime/components/AOfflineSync.vue.d.ts +11 -0
  30. package/dist/runtime/components/ARecoveryPhraseDisplay.d.vue.ts +26 -0
  31. package/dist/runtime/components/ARecoveryPhraseDisplay.vue +94 -0
  32. package/dist/runtime/components/ARecoveryPhraseDisplay.vue.d.ts +26 -0
  33. package/dist/runtime/components/AServerInfoModal.d.vue.ts +43 -0
  34. package/dist/runtime/components/AServerInfoModal.vue +150 -0
  35. package/dist/runtime/components/AServerInfoModal.vue.d.ts +43 -0
  36. package/dist/runtime/components/ASpaceFormModal.vue +1 -1
  37. package/dist/runtime/components/aware/AAccordion.d.vue.ts +25 -0
  38. package/dist/runtime/components/aware/AAccordion.vue +107 -0
  39. package/dist/runtime/components/aware/AAccordion.vue.d.ts +25 -0
  40. package/dist/runtime/components/aware/AArea.vue +24 -11
  41. package/dist/runtime/components/aware/AAvatar.d.vue.ts +6 -0
  42. package/dist/runtime/components/aware/AAvatar.vue +33 -3
  43. package/dist/runtime/components/aware/AAvatar.vue.d.ts +6 -0
  44. package/dist/runtime/components/aware/AAvatarGroup.d.vue.ts +10 -0
  45. package/dist/runtime/components/aware/AAvatarGroup.vue +30 -0
  46. package/dist/runtime/components/aware/AAvatarGroup.vue.d.ts +10 -0
  47. package/dist/runtime/components/aware/AButton.d.vue.ts +4 -2
  48. package/dist/runtime/components/aware/AButton.vue +46 -14
  49. package/dist/runtime/components/aware/AButton.vue.d.ts +4 -2
  50. package/dist/runtime/components/aware/ACalendar.d.vue.ts +17 -0
  51. package/dist/runtime/components/aware/ACalendar.vue +145 -0
  52. package/dist/runtime/components/aware/ACalendar.vue.d.ts +17 -0
  53. package/dist/runtime/components/aware/ACarousel.d.vue.ts +25 -0
  54. package/dist/runtime/components/aware/ACarousel.vue +39 -0
  55. package/dist/runtime/components/aware/ACarousel.vue.d.ts +25 -0
  56. package/dist/runtime/components/aware/ACheckbox.d.vue.ts +11 -0
  57. package/dist/runtime/components/aware/ACheckbox.vue +74 -0
  58. package/dist/runtime/components/aware/ACheckbox.vue.d.ts +11 -0
  59. package/dist/runtime/components/aware/ACheckboxGroup.d.vue.ts +27 -0
  60. package/dist/runtime/components/aware/ACheckboxGroup.vue +79 -0
  61. package/dist/runtime/components/aware/ACheckboxGroup.vue.d.ts +27 -0
  62. package/dist/runtime/components/aware/ACollapsible.d.vue.ts +25 -0
  63. package/dist/runtime/components/aware/ACollapsible.vue +45 -0
  64. package/dist/runtime/components/aware/ACollapsible.vue.d.ts +25 -0
  65. package/dist/runtime/components/aware/AColorPicker.d.vue.ts +15 -0
  66. package/dist/runtime/components/aware/AColorPicker.vue +48 -0
  67. package/dist/runtime/components/aware/AColorPicker.vue.d.ts +15 -0
  68. package/dist/runtime/components/aware/ACommandPalette.d.vue.ts +33 -0
  69. package/dist/runtime/components/aware/ACommandPalette.vue +123 -0
  70. package/dist/runtime/components/aware/ACommandPalette.vue.d.ts +33 -0
  71. package/dist/runtime/components/aware/AContextMenu.d.vue.ts +25 -0
  72. package/dist/runtime/components/aware/AContextMenu.vue +63 -0
  73. package/dist/runtime/components/aware/AContextMenu.vue.d.ts +25 -0
  74. package/dist/runtime/components/aware/ADrawer.d.vue.ts +25 -0
  75. package/dist/runtime/components/aware/ADrawer.vue +57 -0
  76. package/dist/runtime/components/aware/ADrawer.vue.d.ts +25 -0
  77. package/dist/runtime/components/aware/ADropdownMenu.d.vue.ts +25 -0
  78. package/dist/runtime/components/aware/ADropdownMenu.vue +63 -0
  79. package/dist/runtime/components/aware/ADropdownMenu.vue.d.ts +25 -0
  80. package/dist/runtime/components/aware/AFileUpload.d.vue.ts +27 -0
  81. package/dist/runtime/components/aware/AFileUpload.vue +67 -0
  82. package/dist/runtime/components/aware/AFileUpload.vue.d.ts +27 -0
  83. package/dist/runtime/components/aware/AFollowBar.d.vue.ts +21 -0
  84. package/dist/runtime/components/aware/AFollowBar.vue +62 -0
  85. package/dist/runtime/components/aware/AFollowBar.vue.d.ts +21 -0
  86. package/dist/runtime/components/aware/AFollowScroll.d.vue.ts +7 -0
  87. package/dist/runtime/components/aware/AFollowScroll.vue +17 -0
  88. package/dist/runtime/components/aware/AFollowScroll.vue.d.ts +7 -0
  89. package/dist/runtime/components/aware/AFormSync.d.vue.ts +21 -0
  90. package/dist/runtime/components/aware/AFormSync.vue +52 -0
  91. package/dist/runtime/components/aware/AFormSync.vue.d.ts +21 -0
  92. package/dist/runtime/components/aware/AGlobalFocusLayer.d.vue.ts +3 -0
  93. package/dist/runtime/components/aware/AGlobalFocusLayer.vue +90 -0
  94. package/dist/runtime/components/aware/AGlobalFocusLayer.vue.d.ts +3 -0
  95. package/dist/runtime/components/aware/AHoverItem.d.vue.ts +27 -0
  96. package/dist/runtime/components/aware/AHoverItem.vue +124 -0
  97. package/dist/runtime/components/aware/AHoverItem.vue.d.ts +27 -0
  98. package/dist/runtime/components/aware/AInput.d.vue.ts +12 -2
  99. package/dist/runtime/components/aware/AInput.vue +72 -19
  100. package/dist/runtime/components/aware/AInput.vue.d.ts +12 -2
  101. package/dist/runtime/components/aware/AInputMenu.d.vue.ts +17 -0
  102. package/dist/runtime/components/aware/AInputMenu.vue +138 -0
  103. package/dist/runtime/components/aware/AInputMenu.vue.d.ts +17 -0
  104. package/dist/runtime/components/aware/AInputNumber.d.vue.ts +15 -0
  105. package/dist/runtime/components/aware/AInputNumber.vue +67 -0
  106. package/dist/runtime/components/aware/AInputNumber.vue.d.ts +15 -0
  107. package/dist/runtime/components/aware/AInputTags.d.vue.ts +15 -0
  108. package/dist/runtime/components/aware/AInputTags.vue +67 -0
  109. package/dist/runtime/components/aware/AInputTags.vue.d.ts +15 -0
  110. package/dist/runtime/components/aware/AKeyHint.d.vue.ts +3 -0
  111. package/dist/runtime/components/aware/AKeyHint.vue +23 -0
  112. package/dist/runtime/components/aware/AKeyHint.vue.d.ts +3 -0
  113. package/dist/runtime/components/aware/AMedia.d.vue.ts +19 -0
  114. package/dist/runtime/components/aware/AMedia.vue +85 -0
  115. package/dist/runtime/components/aware/AMedia.vue.d.ts +19 -0
  116. package/dist/runtime/components/aware/AModal.d.vue.ts +33 -0
  117. package/dist/runtime/components/aware/AModal.vue +110 -0
  118. package/dist/runtime/components/aware/AModal.vue.d.ts +33 -0
  119. package/dist/runtime/components/aware/ANavigationMenu.d.vue.ts +25 -0
  120. package/dist/runtime/components/aware/ANavigationMenu.vue +82 -0
  121. package/dist/runtime/components/aware/ANavigationMenu.vue.d.ts +25 -0
  122. package/dist/runtime/components/aware/APagination.d.vue.ts +13 -0
  123. package/dist/runtime/components/aware/APagination.vue +53 -0
  124. package/dist/runtime/components/aware/APagination.vue.d.ts +13 -0
  125. package/dist/runtime/components/aware/APeerCaretLayer.d.vue.ts +10 -0
  126. package/dist/runtime/components/aware/APeerCaretLayer.vue +133 -0
  127. package/dist/runtime/components/aware/APeerCaretLayer.vue.d.ts +10 -0
  128. package/dist/runtime/components/aware/APinInput.d.vue.ts +15 -0
  129. package/dist/runtime/components/aware/APinInput.vue +48 -0
  130. package/dist/runtime/components/aware/APinInput.vue.d.ts +15 -0
  131. package/dist/runtime/components/aware/APopover.d.vue.ts +25 -0
  132. package/dist/runtime/components/aware/APopover.vue +57 -0
  133. package/dist/runtime/components/aware/APopover.vue.d.ts +25 -0
  134. package/dist/runtime/components/aware/APresenceBlobs.d.vue.ts +3 -0
  135. package/dist/runtime/components/aware/APresenceBlobs.vue +69 -0
  136. package/dist/runtime/components/aware/APresenceBlobs.vue.d.ts +3 -0
  137. package/dist/runtime/components/aware/APresenceCursors.d.vue.ts +20 -0
  138. package/dist/runtime/components/aware/APresenceCursors.vue +47 -0
  139. package/dist/runtime/components/aware/APresenceCursors.vue.d.ts +20 -0
  140. package/dist/runtime/components/aware/ARadioGroup.d.vue.ts +27 -0
  141. package/dist/runtime/components/aware/ARadioGroup.vue +86 -0
  142. package/dist/runtime/components/aware/ARadioGroup.vue.d.ts +27 -0
  143. package/dist/runtime/components/aware/AScroll.d.vue.ts +25 -0
  144. package/dist/runtime/components/aware/AScroll.vue +87 -0
  145. package/dist/runtime/components/aware/AScroll.vue.d.ts +25 -0
  146. package/dist/runtime/components/aware/ASelect.d.vue.ts +12 -2
  147. package/dist/runtime/components/aware/ASelect.vue +146 -22
  148. package/dist/runtime/components/aware/ASelect.vue.d.ts +12 -2
  149. package/dist/runtime/components/aware/ASelectMenu.d.vue.ts +17 -0
  150. package/dist/runtime/components/aware/ASelectMenu.vue +139 -0
  151. package/dist/runtime/components/aware/ASelectMenu.vue.d.ts +17 -0
  152. package/dist/runtime/components/aware/ASlideover.d.vue.ts +33 -0
  153. package/dist/runtime/components/aware/ASlideover.vue +110 -0
  154. package/dist/runtime/components/aware/ASlideover.vue.d.ts +33 -0
  155. package/dist/runtime/components/aware/ASlider.d.vue.ts +19 -0
  156. package/dist/runtime/components/aware/ASlider.vue +77 -0
  157. package/dist/runtime/components/aware/ASlider.vue.d.ts +19 -0
  158. package/dist/runtime/components/aware/AStepper.d.vue.ts +25 -0
  159. package/dist/runtime/components/aware/AStepper.vue +82 -0
  160. package/dist/runtime/components/aware/AStepper.vue.d.ts +25 -0
  161. package/dist/runtime/components/aware/ASwitch.d.vue.ts +11 -0
  162. package/dist/runtime/components/aware/ASwitch.vue +75 -0
  163. package/dist/runtime/components/aware/ASwitch.vue.d.ts +11 -0
  164. package/dist/runtime/components/aware/ATable.d.vue.ts +23 -0
  165. package/dist/runtime/components/aware/ATable.vue +97 -0
  166. package/dist/runtime/components/aware/ATable.vue.d.ts +23 -0
  167. package/dist/runtime/components/aware/ATabs.d.vue.ts +27 -0
  168. package/dist/runtime/components/aware/ATabs.vue +128 -0
  169. package/dist/runtime/components/aware/ATabs.vue.d.ts +27 -0
  170. package/dist/runtime/components/aware/ATextarea.d.vue.ts +12 -2
  171. package/dist/runtime/components/aware/ATextarea.vue +72 -19
  172. package/dist/runtime/components/aware/ATextarea.vue.d.ts +12 -2
  173. package/dist/runtime/components/aware/AToggleGroup.d.vue.ts +27 -0
  174. package/dist/runtime/components/aware/AToggleGroup.vue +79 -0
  175. package/dist/runtime/components/aware/AToggleGroup.vue.d.ts +27 -0
  176. package/dist/runtime/components/aware/ATree.d.vue.ts +27 -0
  177. package/dist/runtime/components/aware/ATree.vue +111 -0
  178. package/dist/runtime/components/aware/ATree.vue.d.ts +27 -0
  179. package/dist/runtime/components/chat/AChatPanel.d.vue.ts +6 -6
  180. package/dist/runtime/components/chat/AChatPanel.vue.d.ts +6 -6
  181. package/dist/runtime/components/chat/ANodeChatPanel.d.vue.ts +42 -0
  182. package/dist/runtime/components/chat/ANodeChatPanel.vue +53 -0
  183. package/dist/runtime/components/chat/ANodeChatPanel.vue.d.ts +42 -0
  184. package/dist/runtime/components/docs/ADocsNavigation.d.vue.ts +155 -0
  185. package/dist/runtime/components/docs/ADocsNavigation.vue +154 -0
  186. package/dist/runtime/components/docs/ADocsNavigation.vue.d.ts +155 -0
  187. package/dist/runtime/components/docs/ADocsSearch.d.vue.ts +249 -0
  188. package/dist/runtime/components/docs/ADocsSearch.vue +187 -0
  189. package/dist/runtime/components/docs/ADocsSearch.vue.d.ts +249 -0
  190. package/dist/runtime/components/docs/ADocsSearchButton.d.vue.ts +253 -0
  191. package/dist/runtime/components/docs/ADocsSearchButton.vue +99 -0
  192. package/dist/runtime/components/docs/ADocsSearchButton.vue.d.ts +253 -0
  193. package/dist/runtime/components/docs/ADocsSurround.d.vue.ts +56 -0
  194. package/dist/runtime/components/docs/ADocsSurround.vue +68 -0
  195. package/dist/runtime/components/docs/ADocsSurround.vue.d.ts +56 -0
  196. package/dist/runtime/components/docs/ADocsToc.d.vue.ts +117 -0
  197. package/dist/runtime/components/docs/ADocsToc.vue +194 -0
  198. package/dist/runtime/components/docs/ADocsToc.vue.d.ts +117 -0
  199. package/dist/runtime/components/editor/ADocLinkPopover.vue +1 -5
  200. package/dist/runtime/components/editor/AEditorRedoButton.d.vue.ts +26 -0
  201. package/dist/runtime/components/editor/AEditorRedoButton.vue +38 -0
  202. package/dist/runtime/components/editor/AEditorRedoButton.vue.d.ts +26 -0
  203. package/dist/runtime/components/editor/AEditorUndoButton.d.vue.ts +26 -0
  204. package/dist/runtime/components/editor/AEditorUndoButton.vue +38 -0
  205. package/dist/runtime/components/editor/AEditorUndoButton.vue.d.ts +26 -0
  206. package/dist/runtime/components/editor/AIconPickerPopover.d.vue.ts +24 -0
  207. package/dist/runtime/components/editor/AIconPickerPopover.vue +113 -0
  208. package/dist/runtime/components/editor/AIconPickerPopover.vue.d.ts +24 -0
  209. package/dist/runtime/components/editor/ANodeInlineLabel.d.vue.ts +24 -0
  210. package/dist/runtime/components/editor/ANodeInlineLabel.vue +101 -0
  211. package/dist/runtime/components/editor/ANodeInlineLabel.vue.d.ts +24 -0
  212. package/dist/runtime/components/renderers/ADocLoadError.d.vue.ts +3 -0
  213. package/dist/runtime/components/renderers/ADocLoadError.vue +11 -0
  214. package/dist/runtime/components/renderers/ADocLoadError.vue.d.ts +3 -0
  215. package/dist/runtime/components/renderers/ADocLoadingSkeleton.d.vue.ts +3 -0
  216. package/dist/runtime/components/renderers/ADocLoadingSkeleton.vue +5 -0
  217. package/dist/runtime/components/renderers/ADocLoadingSkeleton.vue.d.ts +3 -0
  218. package/dist/runtime/components/renderers/AMediaRenderer.vue +1 -1
  219. package/dist/runtime/components/renderers/AOverviewRenderer.d.vue.ts +22 -0
  220. package/dist/runtime/components/renderers/AOverviewRenderer.vue +1041 -0
  221. package/dist/runtime/components/renderers/AOverviewRenderer.vue.d.ts +22 -0
  222. package/dist/runtime/components/renderers/AProseRenderer.d.vue.ts +23 -0
  223. package/dist/runtime/components/renderers/AProseRenderer.vue +31 -0
  224. package/dist/runtime/components/renderers/AProseRenderer.vue.d.ts +23 -0
  225. package/dist/runtime/components/renderers/ASheetsRenderer.client.d.vue.ts +19 -0
  226. package/dist/runtime/components/renderers/ASheetsRenderer.client.vue +865 -0
  227. package/dist/runtime/components/renderers/ASheetsRenderer.client.vue.d.ts +19 -0
  228. package/dist/runtime/components/renderers/calendar/ACalendarDayCell.d.vue.ts +14 -0
  229. package/dist/runtime/components/renderers/calendar/ACalendarDayCell.vue +45 -15
  230. package/dist/runtime/components/renderers/calendar/ACalendarDayCell.vue.d.ts +14 -0
  231. package/dist/runtime/components/renderers/calendar/ACalendarDayView.d.vue.ts +15 -0
  232. package/dist/runtime/components/renderers/calendar/ACalendarDayView.vue +93 -20
  233. package/dist/runtime/components/renderers/calendar/ACalendarDayView.vue.d.ts +15 -0
  234. package/dist/runtime/components/renderers/calendar/ACalendarEventChip.d.vue.ts +9 -0
  235. package/dist/runtime/components/renderers/calendar/ACalendarEventChip.vue +31 -2
  236. package/dist/runtime/components/renderers/calendar/ACalendarEventChip.vue.d.ts +9 -0
  237. package/dist/runtime/components/renderers/calendar/ACalendarToolbar.d.vue.ts +4 -4
  238. package/dist/runtime/components/renderers/calendar/ACalendarToolbar.vue.d.ts +4 -4
  239. package/dist/runtime/components/renderers/calendar/ACalendarWeekView.d.vue.ts +15 -0
  240. package/dist/runtime/components/renderers/calendar/ACalendarWeekView.vue +94 -21
  241. package/dist/runtime/components/renderers/calendar/ACalendarWeekView.vue.d.ts +15 -0
  242. package/dist/runtime/components/renderers/media/MediaTransportBar.d.vue.ts +2 -2
  243. package/dist/runtime/components/renderers/media/MediaTransportBar.vue.d.ts +2 -2
  244. package/dist/runtime/components/renderers/sheets/ASheetsCell.d.vue.ts +45 -0
  245. package/dist/runtime/components/renderers/sheets/ASheetsCell.vue +123 -0
  246. package/dist/runtime/components/renderers/sheets/ASheetsCell.vue.d.ts +45 -0
  247. package/dist/runtime/components/renderers/sheets/ASheetsGrid.d.vue.ts +111 -0
  248. package/dist/runtime/components/renderers/sheets/ASheetsGrid.vue +737 -0
  249. package/dist/runtime/components/renderers/sheets/ASheetsGrid.vue.d.ts +111 -0
  250. package/dist/runtime/components/renderers/sheets/ASheetsMobileActionBar.d.vue.ts +26 -0
  251. package/dist/runtime/components/renderers/sheets/ASheetsMobileActionBar.vue +100 -0
  252. package/dist/runtime/components/renderers/sheets/ASheetsMobileActionBar.vue.d.ts +26 -0
  253. package/dist/runtime/components/renderers/sheets/ASheetsToolbar.d.vue.ts +48 -0
  254. package/dist/runtime/components/renderers/sheets/ASheetsToolbar.vue +243 -0
  255. package/dist/runtime/components/renderers/sheets/ASheetsToolbar.vue.d.ts +48 -0
  256. package/dist/runtime/components/renderers/table/cells/ATableCellColor.d.vue.ts +1 -0
  257. package/dist/runtime/components/renderers/table/cells/ATableCellColor.vue +13 -32
  258. package/dist/runtime/components/renderers/table/cells/ATableCellColor.vue.d.ts +1 -0
  259. package/dist/runtime/components/renderers/timeline/ATimelineBar.d.vue.ts +6 -0
  260. package/dist/runtime/components/renderers/timeline/ATimelineBar.vue +34 -4
  261. package/dist/runtime/components/renderers/timeline/ATimelineBar.vue.d.ts +6 -0
  262. package/dist/runtime/components/renderers/timeline/ATimelineBarArea.d.vue.ts +16 -0
  263. package/dist/runtime/components/renderers/timeline/ATimelineBarArea.vue +14 -3
  264. package/dist/runtime/components/renderers/timeline/ATimelineBarArea.vue.d.ts +16 -0
  265. package/dist/runtime/components/renderers/timeline/ATimelineLabelPanel.d.vue.ts +13 -1
  266. package/dist/runtime/components/renderers/timeline/ATimelineLabelPanel.vue +114 -47
  267. package/dist/runtime/components/renderers/timeline/ATimelineLabelPanel.vue.d.ts +13 -1
  268. package/dist/runtime/components/renderers/timeline/ATimelineMilestone.d.vue.ts +4 -0
  269. package/dist/runtime/components/renderers/timeline/ATimelineMilestone.vue +21 -4
  270. package/dist/runtime/components/renderers/timeline/ATimelineMilestone.vue.d.ts +4 -0
  271. package/dist/runtime/components/renderers/timeline/ATimelineToolbar.d.vue.ts +2 -2
  272. package/dist/runtime/components/renderers/timeline/ATimelineToolbar.vue.d.ts +2 -2
  273. package/dist/runtime/components/settings/ASettingsSpacesPanel.vue +7 -25
  274. package/dist/runtime/components/shell/ADocPanelSettings.d.vue.ts +34 -4
  275. package/dist/runtime/components/shell/ADocPanelSettings.vue +289 -2
  276. package/dist/runtime/components/shell/ADocPanelSettings.vue.d.ts +34 -4
  277. package/dist/runtime/components/shell/ASyncStatus.d.vue.ts +1 -1
  278. package/dist/runtime/components/shell/ASyncStatus.vue.d.ts +1 -1
  279. package/dist/runtime/components/shell/AUserMenu.d.vue.ts +2 -2
  280. package/dist/runtime/components/shell/AUserMenu.vue.d.ts +2 -2
  281. package/dist/runtime/components/shell/AWelcomeScreen.d.vue.ts +1 -1
  282. package/dist/runtime/components/shell/AWelcomeScreen.vue.d.ts +1 -1
  283. package/dist/runtime/composables/useAACaret.d.ts +29 -0
  284. package/dist/runtime/composables/useAACaret.js +64 -0
  285. package/dist/runtime/composables/useAAEphemeral.d.ts +32 -0
  286. package/dist/runtime/composables/useAAEphemeral.js +33 -0
  287. package/dist/runtime/composables/useAAField.d.ts +10 -2
  288. package/dist/runtime/composables/useAAField.js +31 -2
  289. package/dist/runtime/composables/useAAFieldValue.d.ts +26 -0
  290. package/dist/runtime/composables/useAAFieldValue.js +32 -0
  291. package/dist/runtime/composables/useAAFocus.d.ts +68 -0
  292. package/dist/runtime/composables/useAAFocus.js +174 -0
  293. package/dist/runtime/composables/useAAFollowAnchor.d.ts +25 -0
  294. package/dist/runtime/composables/useAAFollowAnchor.js +69 -0
  295. package/dist/runtime/composables/useAAFollowPeer.d.ts +29 -0
  296. package/dist/runtime/composables/useAAFollowPeer.js +75 -0
  297. package/dist/runtime/composables/useAAKey.d.ts +22 -0
  298. package/dist/runtime/composables/useAAKey.js +24 -0
  299. package/dist/runtime/composables/useAAPointer.d.ts +30 -0
  300. package/dist/runtime/composables/useAAPointer.js +53 -0
  301. package/dist/runtime/composables/useAAUIState.d.ts +29 -0
  302. package/dist/runtime/composables/useAAUIState.js +28 -0
  303. package/dist/runtime/composables/useAAViewport.d.ts +22 -0
  304. package/dist/runtime/composables/useAAViewport.js +50 -0
  305. package/dist/runtime/composables/useAbraAdmin.d.ts +54 -0
  306. package/dist/runtime/composables/useAbraAdmin.js +115 -0
  307. package/dist/runtime/composables/useAbracadabraAuth.d.ts +8 -0
  308. package/dist/runtime/composables/useAbracadabraAuth.js +8 -0
  309. package/dist/runtime/composables/useAggregatedPresence.d.ts +23 -0
  310. package/dist/runtime/composables/useAggregatedPresence.js +140 -0
  311. package/dist/runtime/composables/useChat.d.ts +16 -2
  312. package/dist/runtime/composables/useChat.js +257 -66
  313. package/dist/runtime/composables/useChatUsers.d.ts +2 -0
  314. package/dist/runtime/composables/useChatUsers.js +2 -1
  315. package/dist/runtime/composables/useDocLookup.d.ts +4 -0
  316. package/dist/runtime/composables/useDocLookup.js +25 -0
  317. package/dist/runtime/composables/useDocSnapshots.d.ts +79 -0
  318. package/dist/runtime/composables/useDocSnapshots.js +234 -0
  319. package/dist/runtime/composables/useDocsSearch.d.ts +24 -0
  320. package/dist/runtime/composables/useDocsSearch.js +34 -0
  321. package/dist/runtime/composables/useEditorDragHandle.d.ts +7 -0
  322. package/dist/runtime/composables/useEditorDragHandle.js +19 -1
  323. package/dist/runtime/composables/useEditorSuggestions.js +26 -1
  324. package/dist/runtime/composables/useEditorToolbar.js +9 -1
  325. package/dist/runtime/composables/useEmailVerification.d.ts +33 -0
  326. package/dist/runtime/composables/useEmailVerification.js +58 -0
  327. package/dist/runtime/composables/useIdentityDoc.js +0 -3
  328. package/dist/runtime/composables/useItemPresence.d.ts +47 -0
  329. package/dist/runtime/composables/useItemPresence.js +73 -0
  330. package/dist/runtime/composables/useResizableWidth.d.ts +24 -0
  331. package/dist/runtime/composables/useResizableWidth.js +87 -0
  332. package/dist/runtime/composables/useServerInfo.d.ts +17 -2
  333. package/dist/runtime/composables/useServerInfo.js +30 -6
  334. package/dist/runtime/composables/useServerSearch.d.ts +36 -0
  335. package/dist/runtime/composables/useServerSearch.js +91 -0
  336. package/dist/runtime/composables/useServerTrash.d.ts +67 -0
  337. package/dist/runtime/composables/useServerTrash.js +128 -0
  338. package/dist/runtime/composables/useSheetsClipboard.d.ts +42 -0
  339. package/dist/runtime/composables/useSheetsClipboard.js +109 -0
  340. package/dist/runtime/composables/useSheetsFormulas.d.ts +38 -0
  341. package/dist/runtime/composables/useSheetsFormulas.js +725 -0
  342. package/dist/runtime/composables/useSheetsSelection.d.ts +68 -0
  343. package/dist/runtime/composables/useSheetsSelection.js +390 -0
  344. package/dist/runtime/composables/useSheetsView.d.ts +31 -0
  345. package/dist/runtime/composables/useSheetsView.js +77 -0
  346. package/dist/runtime/composables/useSpaceConnections.d.ts +43 -0
  347. package/dist/runtime/composables/useSpaceConnections.js +72 -0
  348. package/dist/runtime/composables/useSpaces.d.ts +1 -3
  349. package/dist/runtime/composables/useSpaces.js +2 -5
  350. package/dist/runtime/composables/useTiptapHistory.d.ts +22 -0
  351. package/dist/runtime/composables/useTiptapHistory.js +12 -0
  352. package/dist/runtime/composables/useTreeExpansion.d.ts +28 -0
  353. package/dist/runtime/composables/useTreeExpansion.js +94 -0
  354. package/dist/runtime/composables/useYDoc.js +12 -1
  355. package/dist/runtime/extensions/button.d.ts +3 -0
  356. package/dist/runtime/extensions/button.js +62 -0
  357. package/dist/runtime/extensions/color-swatch.d.ts +2 -0
  358. package/dist/runtime/extensions/color-swatch.js +34 -0
  359. package/dist/runtime/extensions/diff.d.ts +2 -0
  360. package/dist/runtime/extensions/diff.js +40 -0
  361. package/dist/runtime/extensions/divider.d.ts +2 -0
  362. package/dist/runtime/extensions/divider.js +33 -0
  363. package/dist/runtime/extensions/doc-embed.js +2 -1
  364. package/dist/runtime/extensions/doc-link-drop.js +4 -4
  365. package/dist/runtime/extensions/doc-link.d.ts +12 -0
  366. package/dist/runtime/extensions/doc-link.js +60 -0
  367. package/dist/runtime/extensions/embed.d.ts +2 -0
  368. package/dist/runtime/extensions/embed.js +40 -0
  369. package/dist/runtime/extensions/figure.d.ts +2 -0
  370. package/dist/runtime/extensions/figure.js +49 -0
  371. package/dist/runtime/extensions/math.d.ts +15 -0
  372. package/dist/runtime/extensions/math.js +66 -0
  373. package/dist/runtime/extensions/progress.d.ts +2 -0
  374. package/dist/runtime/extensions/progress.js +43 -0
  375. package/dist/runtime/extensions/quote.d.ts +2 -0
  376. package/dist/runtime/extensions/quote.js +39 -0
  377. package/dist/runtime/extensions/spoiler.d.ts +2 -0
  378. package/dist/runtime/extensions/spoiler.js +36 -0
  379. package/dist/runtime/extensions/stat.d.ts +3 -0
  380. package/dist/runtime/extensions/stat.js +58 -0
  381. package/dist/runtime/extensions/video.d.ts +2 -0
  382. package/dist/runtime/extensions/video.js +40 -0
  383. package/dist/runtime/extensions/views/ButtonGroupView.d.vue.ts +4 -0
  384. package/dist/runtime/extensions/views/ButtonGroupView.vue +25 -0
  385. package/dist/runtime/extensions/views/ButtonGroupView.vue.d.ts +4 -0
  386. package/dist/runtime/extensions/views/ButtonView.d.vue.ts +4 -0
  387. package/dist/runtime/extensions/views/ButtonView.vue +171 -0
  388. package/dist/runtime/extensions/views/ButtonView.vue.d.ts +4 -0
  389. package/dist/runtime/extensions/views/ColorSwatchView.d.vue.ts +4 -0
  390. package/dist/runtime/extensions/views/ColorSwatchView.vue +134 -0
  391. package/dist/runtime/extensions/views/ColorSwatchView.vue.d.ts +4 -0
  392. package/dist/runtime/extensions/views/DiffView.d.vue.ts +4 -0
  393. package/dist/runtime/extensions/views/DiffView.vue +163 -0
  394. package/dist/runtime/extensions/views/DiffView.vue.d.ts +4 -0
  395. package/dist/runtime/extensions/views/DividerView.d.vue.ts +4 -0
  396. package/dist/runtime/extensions/views/DividerView.vue +40 -0
  397. package/dist/runtime/extensions/views/DividerView.vue.d.ts +4 -0
  398. package/dist/runtime/extensions/views/DocEmbedView.vue +18 -3
  399. package/dist/runtime/extensions/views/DocLinkView.d.vue.ts +4 -0
  400. package/dist/runtime/extensions/views/DocLinkView.vue +71 -0
  401. package/dist/runtime/extensions/views/DocLinkView.vue.d.ts +4 -0
  402. package/dist/runtime/extensions/views/EmbedView.d.vue.ts +4 -0
  403. package/dist/runtime/extensions/views/EmbedView.vue +166 -0
  404. package/dist/runtime/extensions/views/EmbedView.vue.d.ts +4 -0
  405. package/dist/runtime/extensions/views/FigureView.d.vue.ts +4 -0
  406. package/dist/runtime/extensions/views/FigureView.vue +122 -0
  407. package/dist/runtime/extensions/views/FigureView.vue.d.ts +4 -0
  408. package/dist/runtime/extensions/views/FileNodeView.vue +21 -24
  409. package/dist/runtime/extensions/views/MathBlockView.d.vue.ts +4 -0
  410. package/dist/runtime/extensions/views/MathBlockView.vue +151 -0
  411. package/dist/runtime/extensions/views/MathBlockView.vue.d.ts +4 -0
  412. package/dist/runtime/extensions/views/MathInlineView.d.vue.ts +4 -0
  413. package/dist/runtime/extensions/views/MathInlineView.vue +149 -0
  414. package/dist/runtime/extensions/views/MathInlineView.vue.d.ts +4 -0
  415. package/dist/runtime/extensions/views/MetaFieldView.vue +1129 -550
  416. package/dist/runtime/extensions/views/ProgressView.d.vue.ts +4 -0
  417. package/dist/runtime/extensions/views/ProgressView.vue +156 -0
  418. package/dist/runtime/extensions/views/ProgressView.vue.d.ts +4 -0
  419. package/dist/runtime/extensions/views/QuoteView.d.vue.ts +4 -0
  420. package/dist/runtime/extensions/views/QuoteView.vue +128 -0
  421. package/dist/runtime/extensions/views/QuoteView.vue.d.ts +4 -0
  422. package/dist/runtime/extensions/views/SpoilerView.d.vue.ts +4 -0
  423. package/dist/runtime/extensions/views/SpoilerView.vue +62 -0
  424. package/dist/runtime/extensions/views/SpoilerView.vue.d.ts +4 -0
  425. package/dist/runtime/extensions/views/StatGroupView.d.vue.ts +4 -0
  426. package/dist/runtime/extensions/views/StatGroupView.vue +25 -0
  427. package/dist/runtime/extensions/views/StatGroupView.vue.d.ts +4 -0
  428. package/dist/runtime/extensions/views/StatView.d.vue.ts +4 -0
  429. package/dist/runtime/extensions/views/StatView.vue +89 -0
  430. package/dist/runtime/extensions/views/StatView.vue.d.ts +4 -0
  431. package/dist/runtime/extensions/views/VideoView.d.vue.ts +4 -0
  432. package/dist/runtime/extensions/views/VideoView.vue +190 -0
  433. package/dist/runtime/extensions/views/VideoView.vue.d.ts +4 -0
  434. package/dist/runtime/locale.d.ts +133 -0
  435. package/dist/runtime/locale.js +121 -2
  436. package/dist/runtime/plugin-abracadabra.client.js +251 -38
  437. package/dist/runtime/plugin-abracadabra.server.js +0 -1
  438. package/dist/runtime/plugins/core.plugin.js +76 -4
  439. package/dist/runtime/server/plugins/abracadabra-service.js +4 -2
  440. package/dist/runtime/server/utils/rpcHandler.d.ts +74 -0
  441. package/dist/runtime/server/utils/rpcHandler.js +74 -0
  442. package/dist/runtime/server/utils/spaceManager.js +10 -9
  443. package/dist/runtime/theme/content/_shared.d.ts +6 -0
  444. package/dist/runtime/theme/content/_shared.js +6 -0
  445. package/dist/runtime/theme/content/content-navigation.d.ts +120 -0
  446. package/dist/runtime/theme/content/content-navigation.js +155 -0
  447. package/dist/runtime/theme/content/content-search-button.d.ts +16 -0
  448. package/dist/runtime/theme/content/content-search-button.js +15 -0
  449. package/dist/runtime/theme/content/content-search.d.ts +24 -0
  450. package/dist/runtime/theme/content/content-search.js +23 -0
  451. package/dist/runtime/theme/content/content-surround.d.ts +22 -0
  452. package/dist/runtime/theme/content/content-surround.js +23 -0
  453. package/dist/runtime/theme/content/content-toc.d.ts +84 -0
  454. package/dist/runtime/theme/content/content-toc.js +94 -0
  455. package/dist/runtime/theme/content/index.d.ts +5 -0
  456. package/dist/runtime/theme/content/index.js +5 -0
  457. package/dist/runtime/types.d.ts +63 -10
  458. package/dist/runtime/utils/awareRingStyle.d.ts +22 -0
  459. package/dist/runtime/utils/awareRingStyle.js +16 -0
  460. package/dist/runtime/utils/caretCoordinates.d.ts +41 -0
  461. package/dist/runtime/utils/caretCoordinates.js +126 -0
  462. package/dist/runtime/utils/content.d.ts +19 -0
  463. package/dist/runtime/utils/content.js +23 -0
  464. package/dist/runtime/utils/docReferenceEdges.js +1 -1
  465. package/dist/runtime/utils/docTypes.js +44 -13
  466. package/dist/runtime/utils/domPath.d.ts +42 -0
  467. package/dist/runtime/utils/domPath.js +89 -0
  468. package/dist/runtime/utils/loadKatex.d.ts +1 -0
  469. package/dist/runtime/utils/loadKatex.js +29 -0
  470. package/dist/runtime/utils/lucideIcons.d.ts +16 -0
  471. package/dist/runtime/utils/lucideIcons.js +451 -0
  472. package/dist/runtime/utils/time.d.ts +15 -0
  473. package/dist/runtime/utils/time.js +5 -0
  474. package/dist/types.d.mts +4 -0
  475. package/package.json +38 -20
@@ -0,0 +1,94 @@
1
+ import { themeOptions } from "./_shared.js";
2
+ const contentToc = (options) => ({
3
+ slots: {
4
+ root: "sticky top-(--ui-header-height) z-10 bg-default/75 lg:bg-[initial] backdrop-blur -mx-4 px-4 sm:px-6 sm:-mx-6 lg:ms-0 overflow-y-auto max-h-[calc(100vh-var(--ui-header-height))]",
5
+ container: "pt-4 sm:pt-6 pb-2.5 sm:pb-4.5 lg:py-8 border-b border-dashed border-default lg:border-0 flex flex-col",
6
+ top: "",
7
+ bottom: "hidden lg:flex lg:flex-col gap-6",
8
+ trigger: "group text-sm font-semibold flex-1 flex items-center gap-1.5 py-1.5 -mt-1.5 focus-visible:outline-primary",
9
+ title: "truncate",
10
+ trailing: "ms-auto inline-flex gap-1.5 items-center",
11
+ trailingIcon: "size-5 transform transition-transform duration-200 shrink-0 group-data-[state=open]:rotate-180 lg:hidden",
12
+ content: "relative data-[state=open]:animate-[collapsible-down_200ms_ease-out] data-[state=closed]:animate-[collapsible-up_200ms_ease-out] overflow-hidden focus:outline-none",
13
+ list: "min-w-0",
14
+ listWithChildren: "ms-3",
15
+ item: "min-w-0",
16
+ itemWithChildren: "",
17
+ link: "group relative text-sm flex items-center focus-visible:outline-primary py-1",
18
+ linkText: "truncate",
19
+ indicator: "",
20
+ indicatorLine: "",
21
+ indicatorActive: ""
22
+ },
23
+ variants: {
24
+ color: {
25
+ ...Object.fromEntries((options.theme.colors || []).map((color) => [color, ""])),
26
+ neutral: ""
27
+ },
28
+ highlightColor: {
29
+ ...Object.fromEntries((options.theme.colors || []).map((color) => [color, {
30
+ indicatorActive: `bg-${color}`
31
+ }])),
32
+ neutral: {
33
+ indicatorActive: "bg-inverted"
34
+ }
35
+ },
36
+ active: {
37
+ false: {
38
+ link: ["text-muted hover:text-default", options.theme.transitions && "transition-colors"]
39
+ }
40
+ },
41
+ highlight: {
42
+ true: ""
43
+ },
44
+ highlightVariant: {
45
+ straight: "",
46
+ circuit: ""
47
+ },
48
+ body: {
49
+ true: {
50
+ bottom: "mt-6"
51
+ }
52
+ }
53
+ },
54
+ compoundVariants: [...(options.theme.colors || []).map((color) => ({
55
+ color,
56
+ active: true,
57
+ class: {
58
+ link: `text-${color}`
59
+ }
60
+ })), {
61
+ color: "neutral",
62
+ active: true,
63
+ class: {
64
+ link: "text-highlighted"
65
+ }
66
+ }, {
67
+ highlight: true,
68
+ highlightVariant: "straight",
69
+ class: {
70
+ list: "ms-2.5 ps-4 border-s border-default",
71
+ item: "-ms-px",
72
+ indicator: "absolute ms-2.5 transition-[translate,height] duration-200 h-(--indicator-size) translate-y-(--indicator-position) w-px rounded-full",
73
+ indicatorLine: "hidden",
74
+ indicatorActive: "w-full h-full"
75
+ }
76
+ }, {
77
+ highlight: true,
78
+ highlightVariant: "circuit",
79
+ class: {
80
+ list: "ps-6.5",
81
+ item: "-ms-px",
82
+ itemWithChildren: "ps-px",
83
+ indicator: "absolute ms-2.5 start-0 top-0 rtl:-scale-x-100",
84
+ indicatorLine: "absolute inset-0 bg-(--ui-border)",
85
+ indicatorActive: "absolute w-full h-(--indicator-size) translate-y-(--indicator-position) transition-[translate,height] duration-200 ease-out"
86
+ }
87
+ }],
88
+ defaultVariants: {
89
+ color: "primary",
90
+ highlightColor: "primary",
91
+ highlightVariant: "straight"
92
+ }
93
+ });
94
+ export default contentToc(themeOptions);
@@ -0,0 +1,5 @@
1
+ export { default as contentNavigation } from './content-navigation.js';
2
+ export { default as contentSearch } from './content-search.js';
3
+ export { default as contentSearchButton } from './content-search-button.js';
4
+ export { default as contentSurround } from './content-surround.js';
5
+ export { default as contentToc } from './content-toc.js';
@@ -0,0 +1,5 @@
1
+ export { default as contentNavigation } from "./content-navigation.js";
2
+ export { default as contentSearch } from "./content-search.js";
3
+ export { default as contentSearchButton } from "./content-search-button.js";
4
+ export { default as contentSurround } from "./content-surround.js";
5
+ export { default as contentToc } from "./content-toc.js";
@@ -327,6 +327,13 @@ export interface AwarenessUser {
327
327
  name?: string;
328
328
  color?: string;
329
329
  avatar?: string;
330
+ /** Lucide icon name without the `i-lucide-` prefix (e.g. `coffee`).
331
+ * Drives <AAvatar>'s status overlay and optional status-as-avatar
332
+ * rendering. Empty / undefined = no status icon. */
333
+ statusIcon?: string;
334
+ /** Free-form short status text (≤ 80 chars). */
335
+ statusText?: string;
336
+ publicKey?: string;
330
337
  };
331
338
  /** Which document this user is currently viewing */
332
339
  docId?: string;
@@ -342,14 +349,11 @@ export interface AwarenessPeer extends AwarenessUser {
342
349
  }
343
350
  export interface SpaceMeta {
344
351
  id: string;
345
- doc_id: string;
346
352
  name: string;
347
353
  description: string | null;
348
- visibility: 'public' | 'private' | 'invite';
349
- is_hub: boolean;
354
+ visibility: 'public' | 'private';
350
355
  owner_id: string | null;
351
- created_at: number;
352
- updated_at: number;
356
+ public_access?: string | null;
353
357
  }
354
358
  export interface InviteInfo {
355
359
  code: string;
@@ -364,14 +368,16 @@ export interface SavedServer {
364
368
  url: string;
365
369
  label: string;
366
370
  entryDocId?: string;
367
- spacesEnabled?: boolean;
368
371
  cachedSpaces?: SpaceMeta[];
369
- hubDocId?: string;
370
372
  }
371
373
  export interface ServerInfo {
372
374
  name?: string;
373
375
  version?: string;
374
- index_doc_id?: string;
376
+ root_doc_id?: string;
377
+ access?: {
378
+ anonymous?: 'none' | 'observer';
379
+ authenticated?: 'none' | 'observer' | 'viewer' | 'editor';
380
+ };
375
381
  }
376
382
  export interface LogEntry {
377
383
  time: string;
@@ -418,6 +424,14 @@ export interface AbracadabraState {
418
424
  userColorName: Ref<string>;
419
425
  userNeutralColorName: Ref<string>;
420
426
  userCount: Ref<number>;
427
+ /** Lucide icon name (no `i-lucide-` prefix) for the user's status, or
428
+ * empty string when no status is set. Broadcast via awareness. */
429
+ userStatusIcon: Ref<string>;
430
+ /** Free-form short status text (≤ 80 chars). Broadcast via awareness. */
431
+ userStatusText: Ref<string>;
432
+ /** Local-only preference: when true, <AAvatar> renders the status icon
433
+ * in place of the avatar initials for the current user. */
434
+ userStatusAsAvatar: Ref<boolean>;
421
435
  publicKeyB64: Ref<string>;
422
436
  connectionError: Ref<string | null>;
423
437
  /** Explicit identity state machine — prefer over individual booleans. */
@@ -436,17 +450,56 @@ export interface AbracadabraState {
436
450
  currentServerUrl: Ref<string>;
437
451
  savedServers: Ref<SavedServer[]>;
438
452
  currentServerSpaces: Ref<SpaceMeta[]>;
439
- currentServerSpacesEnabled: Ref<boolean>;
440
453
  pendingInviteCode: Ref<string | null>;
441
454
  registry: import('./plugin-registry').PluginRegistry;
442
455
  addLog: (message: string, type?: LogEntry['type']) => void;
443
456
  setUserName: (name: string) => void;
444
457
  setUserColor: (colorName: string) => void;
445
458
  setNeutralColor: (colorName: string) => void;
459
+ /** Set the Lucide icon used as the user's status (without the
460
+ * `i-lucide-` prefix). Pass an empty string to clear. */
461
+ setUserStatusIcon: (icon: string) => void;
462
+ /** Set the user's status text. Pass empty string to clear. */
463
+ setUserStatusText: (text: string) => void;
464
+ /** Toggle whether the local user's status icon replaces their avatar. */
465
+ setUserStatusAsAvatar: (enabled: boolean) => void;
446
466
  setRequirePasskey: (enabled: boolean) => void;
447
467
  claimAccount: () => Promise<boolean | undefined>;
448
468
  loginWithHardware: (credentialIdHint?: string) => Promise<boolean>;
469
+ /** Sign in with username + password. Bounces the WS so the JWT picks up. */
470
+ loginWithPassword: (opts: {
471
+ username: string;
472
+ password: string;
473
+ }) => Promise<void>;
474
+ /** Register + auto-login with username + password. Optional invite code. */
475
+ registerWithPassword: (opts: {
476
+ username: string;
477
+ password: string;
478
+ email?: string;
479
+ displayName?: string;
480
+ inviteCode?: string;
481
+ }) => Promise<void>;
449
482
  logout: () => Promise<void>;
483
+ /** Revoke the current JWT server-side, then clear local identity. */
484
+ logoutServer: () => Promise<void>;
485
+ /** Revoke every JWT for this user, then clear local identity. */
486
+ logoutAll: () => Promise<void>;
487
+ /** Trigger a password-reset email. The endpoint always 202s to avoid leaking identifier existence. */
488
+ requestPasswordReset: (opts: {
489
+ identifier: string;
490
+ }) => Promise<void>;
491
+ /** Complete a password reset using the token from the reset email. */
492
+ confirmPasswordReset: (opts: {
493
+ token: string;
494
+ newPassword: string;
495
+ }) => Promise<void>;
496
+ /** Change the current user's password (requires the current one). */
497
+ changePassword: (opts: {
498
+ currentPassword: string;
499
+ newPassword: string;
500
+ }) => Promise<void>;
501
+ /** Add a password to a key-only account. 409s if one is already set. */
502
+ setPassword: (newPassword: string) => Promise<void>;
450
503
  reconnect: () => void;
451
504
  addServer: (url: string) => Promise<void>;
452
505
  removeServer: (url: string) => void;
@@ -459,7 +512,7 @@ export interface AbracadabraState {
459
512
  visibility?: SpaceMeta['visibility'];
460
513
  id?: string;
461
514
  }) => Promise<SpaceMeta>;
462
- updateSpace: (id: string, opts: Partial<Pick<SpaceMeta, 'name' | 'description' | 'visibility' | 'is_hub'>>) => Promise<SpaceMeta>;
515
+ updateSpace: (id: string, opts: Partial<Pick<SpaceMeta, 'name' | 'description' | 'visibility'>>) => Promise<void>;
463
516
  deleteSpace: (id: string) => Promise<void>;
464
517
  redeemInvite: (code: string) => Promise<void>;
465
518
  createInvite: (opts?: {
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Single source of truth for the hover / focus / press box-shadow halo on
3
+ * every aware-* component wrapper. Applied to the host element via
4
+ * `:style="awareRingStyle({ hover, focus, press })"`.
5
+ *
6
+ * Returns `undefined` when no peer is interacting so the host doesn't paint
7
+ * an empty `box-shadow: none` (which would still defeat any inherent
8
+ * box-shadow on the underlying U* component).
9
+ *
10
+ * Layered intent:
11
+ * - hover : 2 px solid at 50% alpha + outer 4 px wash at 18% alpha → readable on any background
12
+ * - focus : 2 px solid full alpha → strong cursor-attention indicator
13
+ * - press : 3 px solid + 6 px wash + 18 px outer glow → unmistakable tactile signal
14
+ */
15
+ export interface AwareRingInput {
16
+ hover?: string | undefined;
17
+ focus?: string | undefined;
18
+ press?: string | undefined;
19
+ /** Override the wrapper's border-radius. Defaults to var(--ui-radius). */
20
+ radius?: string;
21
+ }
22
+ export declare function awareRingStyle(input: AwareRingInput): Record<string, string> | undefined;
@@ -0,0 +1,16 @@
1
+ function withAlpha(color, pct) {
2
+ return `color-mix(in srgb, ${color} ${pct}%, transparent)`;
3
+ }
4
+ export function awareRingStyle(input) {
5
+ const { hover, focus, press, radius } = input;
6
+ if (!hover && !focus && !press) return void 0;
7
+ const layers = [];
8
+ if (hover) layers.push(`0 0 0 2px ${withAlpha(hover, 50)}`, `0 0 0 4px ${withAlpha(hover, 18)}`);
9
+ if (focus) layers.push(`0 0 0 2px ${focus}`);
10
+ if (press) layers.push(`0 0 0 3px ${press}`, `0 0 0 6px ${withAlpha(press, 33)}`, `0 0 18px 4px ${withAlpha(press, 33)}`);
11
+ return {
12
+ boxShadow: layers.join(", "),
13
+ borderRadius: radius ?? "var(--ui-radius, 0.375rem)",
14
+ transition: "box-shadow 100ms ease, filter 120ms ease"
15
+ };
16
+ }
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Compute the pixel coordinates of a character offset inside an `<input>`
3
+ * or `<textarea>`, relative to the element's own padding box.
4
+ *
5
+ * Used to render per-peer caret labels at the right place inside text
6
+ * inputs (the `peers` mode of `<AInput>` / `<ATextarea>`).
7
+ *
8
+ * Implementation uses the well-known "mirror div" technique: copy every
9
+ * text-affecting style from the source element onto a hidden absolutely-
10
+ * positioned div, fill it with the input's text up to the caret position,
11
+ * then measure a 0-width marker that follows. This is the same approach
12
+ * used by `textarea-caret-position` and by every collaborative form
13
+ * library — it stays accurate across font, padding, line-height, RTL,
14
+ * wrapping, and tab characters.
15
+ */
16
+ export interface CaretCoordinates {
17
+ top: number;
18
+ left: number;
19
+ height: number;
20
+ }
21
+ export declare function getCaretCoordinates(el: HTMLInputElement | HTMLTextAreaElement, position: number): CaretCoordinates;
22
+ export interface SelectionRect {
23
+ top: number;
24
+ left: number;
25
+ width: number;
26
+ height: number;
27
+ }
28
+ /**
29
+ * Compute one or more pixel-aligned rectangles covering a character range
30
+ * inside an `<input>` or `<textarea>`. Used by `<APeerCaretLayer>` to
31
+ * highlight remote peers' selections (`start !== end`) the way Google Docs
32
+ * renders remote selections.
33
+ *
34
+ * Returns:
35
+ * - empty array when start === end (caller renders the caret bar instead)
36
+ * - one rect when the range fits on a single line
37
+ * - up to three rects when the range wraps across multiple textarea lines
38
+ * (first-line tail, full middle block, last-line head — same model used
39
+ * by every browser's native selection painter)
40
+ */
41
+ export declare function getSelectionRects(el: HTMLInputElement | HTMLTextAreaElement, start: number, end: number): SelectionRect[];
@@ -0,0 +1,126 @@
1
+ const PROPERTIES = [
2
+ "direction",
3
+ "boxSizing",
4
+ "width",
5
+ "height",
6
+ "overflowX",
7
+ "overflowY",
8
+ "borderTopWidth",
9
+ "borderRightWidth",
10
+ "borderBottomWidth",
11
+ "borderLeftWidth",
12
+ "borderStyle",
13
+ "paddingTop",
14
+ "paddingRight",
15
+ "paddingBottom",
16
+ "paddingLeft",
17
+ "fontStyle",
18
+ "fontVariant",
19
+ "fontWeight",
20
+ "fontStretch",
21
+ "fontSize",
22
+ "fontSizeAdjust",
23
+ "lineHeight",
24
+ "fontFamily",
25
+ "textAlign",
26
+ "textTransform",
27
+ "textIndent",
28
+ "textDecoration",
29
+ "letterSpacing",
30
+ "wordSpacing",
31
+ "tabSize",
32
+ "MozTabSize"
33
+ ];
34
+ export function getCaretCoordinates(el, position) {
35
+ const isInput = el.tagName === "INPUT";
36
+ const div = document.createElement("div");
37
+ div.id = "aa-caret-mirror";
38
+ document.body.appendChild(div);
39
+ const style = div.style;
40
+ const computed = window.getComputedStyle(el);
41
+ style.whiteSpace = isInput ? "nowrap" : "pre-wrap";
42
+ if (!isInput) style.wordWrap = "break-word";
43
+ style.position = "absolute";
44
+ style.visibility = "hidden";
45
+ style.top = "0";
46
+ style.left = "0";
47
+ style.overflow = "hidden";
48
+ for (const prop of PROPERTIES) {
49
+ style[prop] = computed[prop];
50
+ }
51
+ if (isInput) {
52
+ style.lineHeight = computed.height;
53
+ style.overflowX = "hidden";
54
+ style.overflowY = "hidden";
55
+ }
56
+ const value = el.value;
57
+ div.textContent = value.substring(0, position);
58
+ if (isInput) div.textContent = (div.textContent || "").replace(/\s/g, "\xA0");
59
+ const span = document.createElement("span");
60
+ span.textContent = value.substring(position) || ".";
61
+ div.appendChild(span);
62
+ const fontSize = parseInt(computed.fontSize || "14", 10);
63
+ const lineHeightParsed = parseInt(computed.lineHeight || "", 10);
64
+ const lineHeight = Number.isFinite(lineHeightParsed) && lineHeightParsed > 0 ? lineHeightParsed : Math.round(fontSize * 1.4);
65
+ const coords = {
66
+ top: span.offsetTop + parseInt(computed.borderTopWidth || "0", 10),
67
+ left: span.offsetLeft + parseInt(computed.borderLeftWidth || "0", 10),
68
+ height: lineHeight
69
+ };
70
+ if (isInput) {
71
+ const padTop = parseInt(computed.paddingTop || "0", 10);
72
+ const padBottom = parseInt(computed.paddingBottom || "0", 10);
73
+ const inner = el.clientHeight - padTop - padBottom;
74
+ const yOffset = padTop + Math.max(0, (inner - lineHeight) / 2);
75
+ coords.top = yOffset + parseInt(computed.borderTopWidth || "0", 10);
76
+ }
77
+ coords.left -= el.scrollLeft;
78
+ coords.top -= el.scrollTop;
79
+ document.body.removeChild(div);
80
+ return coords;
81
+ }
82
+ export function getSelectionRects(el, start, end) {
83
+ if (start === end) return [];
84
+ const lo = Math.min(start, end);
85
+ const hi = Math.max(start, end);
86
+ const a = getCaretCoordinates(el, lo);
87
+ const b = getCaretCoordinates(el, hi);
88
+ const computed = window.getComputedStyle(el);
89
+ const padL = parseInt(computed.paddingLeft || "0", 10);
90
+ const padR = parseInt(computed.paddingRight || "0", 10);
91
+ const borderL = parseInt(computed.borderLeftWidth || "0", 10);
92
+ const borderR = parseInt(computed.borderRightWidth || "0", 10);
93
+ const innerLeft = borderL + padL;
94
+ const innerRight = el.clientWidth - padR + borderL;
95
+ if (a.top === b.top) {
96
+ return [{
97
+ top: a.top,
98
+ left: a.left,
99
+ width: Math.max(0, b.left - a.left),
100
+ height: a.height
101
+ }];
102
+ }
103
+ const rects = [];
104
+ rects.push({
105
+ top: a.top,
106
+ left: a.left,
107
+ width: Math.max(0, innerRight - a.left),
108
+ height: a.height
109
+ });
110
+ const middleTop = a.top + a.height;
111
+ if (b.top > middleTop) {
112
+ rects.push({
113
+ top: middleTop,
114
+ left: innerLeft,
115
+ width: Math.max(0, innerRight - innerLeft),
116
+ height: b.top - middleTop
117
+ });
118
+ }
119
+ rects.push({
120
+ top: b.top,
121
+ left: innerLeft,
122
+ width: Math.max(0, b.left - innerLeft),
123
+ height: b.height
124
+ });
125
+ return rects;
126
+ }
@@ -0,0 +1,19 @@
1
+ export interface ContentNavigationItem {
2
+ title?: string;
3
+ path?: string;
4
+ icon?: string;
5
+ children?: ContentNavigationItem[];
6
+ [key: string]: any;
7
+ }
8
+ export interface MapContentNavigationItemOptions {
9
+ labelAttribute?: string;
10
+ deep?: number;
11
+ }
12
+ export declare function mapContentNavigationItem(item: ContentNavigationItem, options?: MapContentNavigationItemOptions, currentDepth?: number): Omit<ContentNavigationItem, 'title' | 'path'> & {
13
+ label?: string;
14
+ to?: string;
15
+ };
16
+ export declare function mapContentNavigation(navigation: ContentNavigationItem[], options?: MapContentNavigationItemOptions): (Omit<ContentNavigationItem, "title" | "path"> & {
17
+ label?: string;
18
+ to?: string;
19
+ })[];
@@ -0,0 +1,23 @@
1
+ export function mapContentNavigationItem(item, options, currentDepth = 0) {
2
+ const navMap = {
3
+ [options?.labelAttribute || "title"]: "label",
4
+ path: "to"
5
+ };
6
+ const link = Object.keys(item).reduce((acc, key) => {
7
+ if (item[key]) {
8
+ const mappedKey = navMap[key] || key;
9
+ acc[mappedKey] = item[key];
10
+ }
11
+ return acc;
12
+ }, {});
13
+ const shouldRecurse = typeof options?.deep === "undefined" || currentDepth < options.deep;
14
+ if (shouldRecurse && Array.isArray(item.children)) {
15
+ link.children = item.children.map((child) => mapContentNavigationItem(child, options, currentDepth + 1));
16
+ } else {
17
+ link.children = [];
18
+ }
19
+ return link;
20
+ }
21
+ export function mapContentNavigation(navigation, options) {
22
+ return navigation.map((item) => mapContentNavigationItem(item, options));
23
+ }
@@ -14,7 +14,7 @@ export function scanDocReferences(fragment) {
14
14
  }
15
15
  }
16
16
  } else if (child instanceof Y.XmlElement) {
17
- if (child.nodeName === "docEmbed") {
17
+ if (child.nodeName === "docEmbed" || child.nodeName === "docLink") {
18
18
  const docId = child.getAttribute("docId");
19
19
  if (docId) refs.push(docId);
20
20
  }
@@ -1,4 +1,21 @@
1
1
  import { defineAsyncComponent } from "vue";
2
+ import ADocLoadingSkeleton from "../components/renderers/ADocLoadingSkeleton.vue";
3
+ import ADocLoadError from "../components/renderers/ADocLoadError.vue";
4
+ function defineDocComponent(loader) {
5
+ return defineAsyncComponent({
6
+ loader,
7
+ loadingComponent: ADocLoadingSkeleton,
8
+ errorComponent: ADocLoadError,
9
+ delay: 200,
10
+ onError(_error, retry, fail, attempts) {
11
+ if (attempts <= 5) {
12
+ setTimeout(retry, attempts * 500);
13
+ } else {
14
+ fail();
15
+ }
16
+ }
17
+ });
18
+ }
2
19
  const GEO_COLOR_PRESETS = ["#3b82f6", "#f97316", "#22c55e", "#ef4444", "#a855f7"];
3
20
  const GEO_ICON_OPTIONS = [
4
21
  "map-pin",
@@ -46,10 +63,24 @@ export const DOC_TYPES = {
46
63
  available: true,
47
64
  hasEditor: true,
48
65
  supportsChildren: true,
49
- component: defineAsyncComponent(
66
+ component: defineDocComponent(
50
67
  () => import("../components/AEditor.vue")
51
68
  )
52
69
  },
70
+ prose: {
71
+ key: "prose",
72
+ label: "Prose",
73
+ icon: "i-lucide-pen-tool",
74
+ description: "Long-form prose with serif typography and a narrow readable measure",
75
+ available: true,
76
+ hasEditor: true,
77
+ supportsChildren: true,
78
+ childLabel: "Item",
79
+ defaultDepth: -1,
80
+ component: defineDocComponent(
81
+ () => import("../components/renderers/AProseRenderer.vue")
82
+ )
83
+ },
53
84
  kanban: {
54
85
  key: "kanban",
55
86
  label: "Kanban",
@@ -59,7 +90,7 @@ export const DOC_TYPES = {
59
90
  supportsChildren: true,
60
91
  childLabel: "Column",
61
92
  grandchildLabel: "Card",
62
- component: defineAsyncComponent(
93
+ component: defineDocComponent(
63
94
  () => import("../components/renderers/AKanbanRenderer.vue")
64
95
  )
65
96
  },
@@ -71,7 +102,7 @@ export const DOC_TYPES = {
71
102
  available: true,
72
103
  supportsChildren: true,
73
104
  childLabel: "Item",
74
- component: defineAsyncComponent(
105
+ component: defineDocComponent(
75
106
  () => import("../components/renderers/AGalleryRenderer.vue")
76
107
  )
77
108
  },
@@ -83,7 +114,7 @@ export const DOC_TYPES = {
83
114
  available: true,
84
115
  supportsChildren: true,
85
116
  childLabel: "Row",
86
- component: defineAsyncComponent(
117
+ component: defineDocComponent(
87
118
  () => import("../components/renderers/ATableRenderer.vue")
88
119
  )
89
120
  },
@@ -96,7 +127,7 @@ export const DOC_TYPES = {
96
127
  supportsChildren: true,
97
128
  childLabel: "Item",
98
129
  defaultDepth: -1,
99
- component: defineAsyncComponent(
130
+ component: defineDocComponent(
100
131
  () => import("../components/renderers/AOutlineRenderer.vue")
101
132
  )
102
133
  },
@@ -108,7 +139,7 @@ export const DOC_TYPES = {
108
139
  available: true,
109
140
  supportsChildren: true,
110
141
  childLabel: "Event",
111
- component: defineAsyncComponent(
142
+ component: defineDocComponent(
112
143
  () => import("../components/renderers/ACalendarRenderer.vue")
113
144
  ),
114
145
  metaSchema: [
@@ -125,7 +156,7 @@ export const DOC_TYPES = {
125
156
  supportsChildren: true,
126
157
  childLabel: "Task",
127
158
  defaultDepth: -1,
128
- component: defineAsyncComponent(
159
+ component: defineDocComponent(
129
160
  () => import("../components/renderers/AChecklistRenderer.vue")
130
161
  ),
131
162
  metaSchema: [
@@ -143,7 +174,7 @@ export const DOC_TYPES = {
143
174
  supportsChildren: true,
144
175
  childLabel: "Epic",
145
176
  grandchildLabel: "Task",
146
- component: defineAsyncComponent(
177
+ component: defineDocComponent(
147
178
  () => import("../components/renderers/ATimelineRenderer.vue")
148
179
  ),
149
180
  metaSchema: [
@@ -159,7 +190,7 @@ export const DOC_TYPES = {
159
190
  description: "Video call room with real-time audio and video",
160
191
  available: true,
161
192
  supportsChildren: false,
162
- component: defineAsyncComponent(
193
+ component: defineDocComponent(
163
194
  () => import("../components/renderers/ACallRenderer.vue")
164
195
  )
165
196
  },
@@ -171,7 +202,7 @@ export const DOC_TYPES = {
171
202
  available: true,
172
203
  supportsChildren: true,
173
204
  childLabel: "Node",
174
- component: defineAsyncComponent(
205
+ component: defineDocComponent(
175
206
  () => import("../components/renderers/AGraphRenderer.vue")
176
207
  )
177
208
  },
@@ -183,7 +214,7 @@ export const DOC_TYPES = {
183
214
  available: true,
184
215
  supportsChildren: true,
185
216
  childLabel: "Item",
186
- component: defineAsyncComponent(
217
+ component: defineDocComponent(
187
218
  () => import("../components/renderers/ADashboardRenderer.vue")
188
219
  )
189
220
  },
@@ -195,7 +226,7 @@ export const DOC_TYPES = {
195
226
  available: true,
196
227
  supportsChildren: true,
197
228
  childLabel: "Location",
198
- component: defineAsyncComponent(
229
+ component: defineDocComponent(
199
230
  () => import("../components/renderers/AMapRenderer.vue")
200
231
  ),
201
232
  metaSchema: [
@@ -213,7 +244,7 @@ export const DOC_TYPES = {
213
244
  supportsChildren: true,
214
245
  childLabel: "Slide",
215
246
  grandchildLabel: "Sub-slide",
216
- component: defineAsyncComponent(
247
+ component: defineDocComponent(
217
248
  () => import("../components/renderers/ASlidesRenderer.vue")
218
249
  ),
219
250
  metaSchema: [