@abraca/junis 2.80.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 (383) hide show
  1. package/README.md +594 -0
  2. package/dist/module.d.mts +158 -0
  3. package/dist/module.json +12 -0
  4. package/dist/module.mjs +957 -0
  5. package/dist/runtime/assets/css/jun.css +13 -0
  6. package/dist/runtime/components/JunAnnouncement.d.vue.ts +3 -0
  7. package/dist/runtime/components/JunAnnouncement.vue +88 -0
  8. package/dist/runtime/components/JunAnnouncement.vue.d.ts +3 -0
  9. package/dist/runtime/components/JunAppreciate.d.vue.ts +6 -0
  10. package/dist/runtime/components/JunAppreciate.vue +71 -0
  11. package/dist/runtime/components/JunAppreciate.vue.d.ts +6 -0
  12. package/dist/runtime/components/JunBackgroundPhoto.d.vue.ts +3 -0
  13. package/dist/runtime/components/JunBackgroundPhoto.vue +23 -0
  14. package/dist/runtime/components/JunBackgroundPhoto.vue.d.ts +3 -0
  15. package/dist/runtime/components/JunBlobBackdrop.client.d.vue.ts +3 -0
  16. package/dist/runtime/components/JunBlobBackdrop.client.vue +120 -0
  17. package/dist/runtime/components/JunBlobBackdrop.client.vue.d.ts +3 -0
  18. package/dist/runtime/components/JunBreadcrumbs.d.vue.ts +16 -0
  19. package/dist/runtime/components/JunBreadcrumbs.vue +63 -0
  20. package/dist/runtime/components/JunBreadcrumbs.vue.d.ts +16 -0
  21. package/dist/runtime/components/JunCampfireChat.d.vue.ts +14 -0
  22. package/dist/runtime/components/JunCampfireChat.vue +136 -0
  23. package/dist/runtime/components/JunCampfireChat.vue.d.ts +14 -0
  24. package/dist/runtime/components/JunCampfirePanel.d.vue.ts +33 -0
  25. package/dist/runtime/components/JunCampfirePanel.vue +202 -0
  26. package/dist/runtime/components/JunCampfirePanel.vue.d.ts +33 -0
  27. package/dist/runtime/components/JunCampfirePresence.client.d.vue.ts +3 -0
  28. package/dist/runtime/components/JunCampfirePresence.client.vue +321 -0
  29. package/dist/runtime/components/JunCampfirePresence.client.vue.d.ts +3 -0
  30. package/dist/runtime/components/JunCampfireRoster.d.vue.ts +19 -0
  31. package/dist/runtime/components/JunCampfireRoster.vue +259 -0
  32. package/dist/runtime/components/JunCampfireRoster.vue.d.ts +19 -0
  33. package/dist/runtime/components/JunCampfireYou.d.vue.ts +10 -0
  34. package/dist/runtime/components/JunCampfireYou.vue +157 -0
  35. package/dist/runtime/components/JunCampfireYou.vue.d.ts +10 -0
  36. package/dist/runtime/components/JunDocSurface.d.vue.ts +34 -0
  37. package/dist/runtime/components/JunDocSurface.vue +117 -0
  38. package/dist/runtime/components/JunDocSurface.vue.d.ts +34 -0
  39. package/dist/runtime/components/JunFestivalPlayer.client.d.vue.ts +3 -0
  40. package/dist/runtime/components/JunFestivalPlayer.client.vue +471 -0
  41. package/dist/runtime/components/JunFestivalPlayer.client.vue.d.ts +3 -0
  42. package/dist/runtime/components/JunFooter.d.vue.ts +3 -0
  43. package/dist/runtime/components/JunFooter.vue +102 -0
  44. package/dist/runtime/components/JunFooter.vue.d.ts +3 -0
  45. package/dist/runtime/components/JunGlobeEditor.client.d.vue.ts +43 -0
  46. package/dist/runtime/components/JunGlobeEditor.client.vue +315 -0
  47. package/dist/runtime/components/JunGlobeEditor.client.vue.d.ts +43 -0
  48. package/dist/runtime/components/JunGlobeMap.client.d.vue.ts +58 -0
  49. package/dist/runtime/components/JunGlobeMap.client.vue +495 -0
  50. package/dist/runtime/components/JunGlobeMap.client.vue.d.ts +58 -0
  51. package/dist/runtime/components/JunHead.d.vue.ts +3 -0
  52. package/dist/runtime/components/JunHead.vue +79 -0
  53. package/dist/runtime/components/JunHead.vue.d.ts +3 -0
  54. package/dist/runtime/components/JunHorizontalTimeline.d.vue.ts +0 -0
  55. package/dist/runtime/components/JunHorizontalTimeline.vue +363 -0
  56. package/dist/runtime/components/JunHorizontalTimeline.vue.d.ts +0 -0
  57. package/dist/runtime/components/JunImagePopup.client.d.vue.ts +3 -0
  58. package/dist/runtime/components/JunImagePopup.client.vue +422 -0
  59. package/dist/runtime/components/JunImagePopup.client.vue.d.ts +3 -0
  60. package/dist/runtime/components/JunIntro.d.vue.ts +3 -0
  61. package/dist/runtime/components/JunIntro.vue +156 -0
  62. package/dist/runtime/components/JunIntro.vue.d.ts +3 -0
  63. package/dist/runtime/components/JunItemMenu.d.vue.ts +50 -0
  64. package/dist/runtime/components/JunItemMenu.vue +97 -0
  65. package/dist/runtime/components/JunItemMenu.vue.d.ts +50 -0
  66. package/dist/runtime/components/JunLinksRow.d.vue.ts +19 -0
  67. package/dist/runtime/components/JunLinksRow.vue +96 -0
  68. package/dist/runtime/components/JunLinksRow.vue.d.ts +19 -0
  69. package/dist/runtime/components/JunLogo.d.vue.ts +15 -0
  70. package/dist/runtime/components/JunLogo.vue +360 -0
  71. package/dist/runtime/components/JunLogo.vue.d.ts +15 -0
  72. package/dist/runtime/components/JunMedia.client.d.vue.ts +40 -0
  73. package/dist/runtime/components/JunMedia.client.vue +117 -0
  74. package/dist/runtime/components/JunMedia.client.vue.d.ts +40 -0
  75. package/dist/runtime/components/JunMosaicPane.client.d.vue.ts +24 -0
  76. package/dist/runtime/components/JunMosaicPane.client.vue +95 -0
  77. package/dist/runtime/components/JunMosaicPane.client.vue.d.ts +24 -0
  78. package/dist/runtime/components/JunNavigation.d.vue.ts +26 -0
  79. package/dist/runtime/components/JunNavigation.vue +1149 -0
  80. package/dist/runtime/components/JunNavigation.vue.d.ts +26 -0
  81. package/dist/runtime/components/JunNodePanel.client.d.vue.ts +3 -0
  82. package/dist/runtime/components/JunNodePanel.client.vue +23 -0
  83. package/dist/runtime/components/JunNodePanel.client.vue.d.ts +3 -0
  84. package/dist/runtime/components/JunNotFound.d.vue.ts +7 -0
  85. package/dist/runtime/components/JunNotFound.vue +137 -0
  86. package/dist/runtime/components/JunNotFound.vue.d.ts +7 -0
  87. package/dist/runtime/components/JunPageHero.d.vue.ts +25 -0
  88. package/dist/runtime/components/JunPageHero.vue +90 -0
  89. package/dist/runtime/components/JunPageHero.vue.d.ts +25 -0
  90. package/dist/runtime/components/JunPatternBackdrop.client.d.vue.ts +7 -0
  91. package/dist/runtime/components/JunPatternBackdrop.client.vue +95 -0
  92. package/dist/runtime/components/JunPatternBackdrop.client.vue.d.ts +7 -0
  93. package/dist/runtime/components/JunPeerCursors.client.d.vue.ts +3 -0
  94. package/dist/runtime/components/JunPeerCursors.client.vue +123 -0
  95. package/dist/runtime/components/JunPeerCursors.client.vue.d.ts +3 -0
  96. package/dist/runtime/components/JunPresenceBlobs.client.d.vue.ts +3 -0
  97. package/dist/runtime/components/JunPresenceBlobs.client.vue +172 -0
  98. package/dist/runtime/components/JunPresenceBlobs.client.vue.d.ts +3 -0
  99. package/dist/runtime/components/JunSearch.client.d.vue.ts +3 -0
  100. package/dist/runtime/components/JunSearch.client.vue +809 -0
  101. package/dist/runtime/components/JunSearch.client.vue.d.ts +3 -0
  102. package/dist/runtime/components/JunServiceCard.d.vue.ts +10 -0
  103. package/dist/runtime/components/JunServiceCard.vue +145 -0
  104. package/dist/runtime/components/JunServiceCard.vue.d.ts +10 -0
  105. package/dist/runtime/components/JunShaderBackdrop.client.d.vue.ts +3 -0
  106. package/dist/runtime/components/JunShaderBackdrop.client.vue +82 -0
  107. package/dist/runtime/components/JunShaderBackdrop.client.vue.d.ts +3 -0
  108. package/dist/runtime/components/JunShell.d.vue.ts +17 -0
  109. package/dist/runtime/components/JunShell.vue +80 -0
  110. package/dist/runtime/components/JunShell.vue.d.ts +17 -0
  111. package/dist/runtime/components/JunStudioBar.client.d.vue.ts +3 -0
  112. package/dist/runtime/components/JunStudioBar.client.vue +462 -0
  113. package/dist/runtime/components/JunStudioBar.client.vue.d.ts +3 -0
  114. package/dist/runtime/components/JunStudioLogin.client.d.vue.ts +3 -0
  115. package/dist/runtime/components/JunStudioLogin.client.vue +58 -0
  116. package/dist/runtime/components/JunStudioLogin.client.vue.d.ts +3 -0
  117. package/dist/runtime/components/JunThemeToggle.d.vue.ts +3 -0
  118. package/dist/runtime/components/JunThemeToggle.vue +32 -0
  119. package/dist/runtime/components/JunThemeToggle.vue.d.ts +3 -0
  120. package/dist/runtime/components/JunTravellersChip.d.vue.ts +9 -0
  121. package/dist/runtime/components/JunTravellersChip.vue +111 -0
  122. package/dist/runtime/components/JunTravellersChip.vue.d.ts +9 -0
  123. package/dist/runtime/components/JunVideoEmbed.client.d.vue.ts +23 -0
  124. package/dist/runtime/components/JunVideoEmbed.client.vue +124 -0
  125. package/dist/runtime/components/JunVideoEmbed.client.vue.d.ts +23 -0
  126. package/dist/runtime/components/css-modules.d.ts +7 -0
  127. package/dist/runtime/components/renderers/.gitkeep +0 -0
  128. package/dist/runtime/components/renderers/JunAppsRenderer.d.vue.ts +10 -0
  129. package/dist/runtime/components/renderers/JunAppsRenderer.vue +271 -0
  130. package/dist/runtime/components/renderers/JunAppsRenderer.vue.d.ts +10 -0
  131. package/dist/runtime/components/renderers/JunCinemaRenderer.d.vue.ts +10 -0
  132. package/dist/runtime/components/renderers/JunCinemaRenderer.vue +465 -0
  133. package/dist/runtime/components/renderers/JunCinemaRenderer.vue.d.ts +10 -0
  134. package/dist/runtime/components/renderers/JunConfigRenderer.d.vue.ts +10 -0
  135. package/dist/runtime/components/renderers/JunConfigRenderer.vue +2045 -0
  136. package/dist/runtime/components/renderers/JunConfigRenderer.vue.d.ts +10 -0
  137. package/dist/runtime/components/renderers/JunCvRenderer.d.vue.ts +10 -0
  138. package/dist/runtime/components/renderers/JunCvRenderer.vue +256 -0
  139. package/dist/runtime/components/renderers/JunCvRenderer.vue.d.ts +10 -0
  140. package/dist/runtime/components/renderers/JunEntryRenderer.d.vue.ts +10 -0
  141. package/dist/runtime/components/renderers/JunEntryRenderer.vue +429 -0
  142. package/dist/runtime/components/renderers/JunEntryRenderer.vue.d.ts +10 -0
  143. package/dist/runtime/components/renderers/JunFestivalRenderer.d.vue.ts +10 -0
  144. package/dist/runtime/components/renderers/JunFestivalRenderer.vue +557 -0
  145. package/dist/runtime/components/renderers/JunFestivalRenderer.vue.d.ts +10 -0
  146. package/dist/runtime/components/renderers/JunGlobeRenderer.d.vue.ts +10 -0
  147. package/dist/runtime/components/renderers/JunGlobeRenderer.vue +91 -0
  148. package/dist/runtime/components/renderers/JunGlobeRenderer.vue.d.ts +10 -0
  149. package/dist/runtime/components/renderers/JunGuestbookRenderer.d.vue.ts +10 -0
  150. package/dist/runtime/components/renderers/JunGuestbookRenderer.vue +326 -0
  151. package/dist/runtime/components/renderers/JunGuestbookRenderer.vue.d.ts +10 -0
  152. package/dist/runtime/components/renderers/JunHomeRenderer.d.vue.ts +10 -0
  153. package/dist/runtime/components/renderers/JunHomeRenderer.vue +585 -0
  154. package/dist/runtime/components/renderers/JunHomeRenderer.vue.d.ts +10 -0
  155. package/dist/runtime/components/renderers/JunJournalRenderer.d.vue.ts +10 -0
  156. package/dist/runtime/components/renderers/JunJournalRenderer.vue +420 -0
  157. package/dist/runtime/components/renderers/JunJournalRenderer.vue.d.ts +10 -0
  158. package/dist/runtime/components/renderers/JunLibraryRenderer.d.vue.ts +10 -0
  159. package/dist/runtime/components/renderers/JunLibraryRenderer.vue +319 -0
  160. package/dist/runtime/components/renderers/JunLibraryRenderer.vue.d.ts +10 -0
  161. package/dist/runtime/components/renderers/JunLinksRenderer.d.vue.ts +10 -0
  162. package/dist/runtime/components/renderers/JunLinksRenderer.vue +206 -0
  163. package/dist/runtime/components/renderers/JunLinksRenderer.vue.d.ts +10 -0
  164. package/dist/runtime/components/renderers/JunLiveRenderer.d.vue.ts +10 -0
  165. package/dist/runtime/components/renderers/JunLiveRenderer.vue +684 -0
  166. package/dist/runtime/components/renderers/JunLiveRenderer.vue.d.ts +10 -0
  167. package/dist/runtime/components/renderers/JunMosaicRenderer.d.vue.ts +10 -0
  168. package/dist/runtime/components/renderers/JunMosaicRenderer.vue +572 -0
  169. package/dist/runtime/components/renderers/JunMosaicRenderer.vue.d.ts +10 -0
  170. package/dist/runtime/components/renderers/JunMovieRenderer.d.vue.ts +10 -0
  171. package/dist/runtime/components/renderers/JunMovieRenderer.vue +539 -0
  172. package/dist/runtime/components/renderers/JunMovieRenderer.vue.d.ts +10 -0
  173. package/dist/runtime/components/renderers/JunNowRenderer.d.vue.ts +10 -0
  174. package/dist/runtime/components/renderers/JunNowRenderer.vue +382 -0
  175. package/dist/runtime/components/renderers/JunNowRenderer.vue.d.ts +10 -0
  176. package/dist/runtime/components/renderers/JunProjectRenderer.d.vue.ts +10 -0
  177. package/dist/runtime/components/renderers/JunProjectRenderer.vue +413 -0
  178. package/dist/runtime/components/renderers/JunProjectRenderer.vue.d.ts +10 -0
  179. package/dist/runtime/components/renderers/JunRedirectRenderer.d.vue.ts +10 -0
  180. package/dist/runtime/components/renderers/JunRedirectRenderer.vue +133 -0
  181. package/dist/runtime/components/renderers/JunRedirectRenderer.vue.d.ts +10 -0
  182. package/dist/runtime/components/renderers/JunServicesRenderer.d.vue.ts +10 -0
  183. package/dist/runtime/components/renderers/JunServicesRenderer.vue +267 -0
  184. package/dist/runtime/components/renderers/JunServicesRenderer.vue.d.ts +10 -0
  185. package/dist/runtime/components/renderers/JunStatsRenderer.d.vue.ts +10 -0
  186. package/dist/runtime/components/renderers/JunStatsRenderer.vue +230 -0
  187. package/dist/runtime/components/renderers/JunStatsRenderer.vue.d.ts +10 -0
  188. package/dist/runtime/components/renderers/JunTrackRenderer.d.vue.ts +10 -0
  189. package/dist/runtime/components/renderers/JunTrackRenderer.vue +380 -0
  190. package/dist/runtime/components/renderers/JunTrackRenderer.vue.d.ts +10 -0
  191. package/dist/runtime/components/renderers/JunUsesRenderer.d.vue.ts +10 -0
  192. package/dist/runtime/components/renderers/JunUsesRenderer.vue +254 -0
  193. package/dist/runtime/components/renderers/JunUsesRenderer.vue.d.ts +10 -0
  194. package/dist/runtime/components/renderers/JunWallRenderer.d.vue.ts +10 -0
  195. package/dist/runtime/components/renderers/JunWallRenderer.vue +276 -0
  196. package/dist/runtime/components/renderers/JunWallRenderer.vue.d.ts +10 -0
  197. package/dist/runtime/components/renderers/JunWindowRenderer.d.vue.ts +10 -0
  198. package/dist/runtime/components/renderers/JunWindowRenderer.vue +516 -0
  199. package/dist/runtime/components/renderers/JunWindowRenderer.vue.d.ts +10 -0
  200. package/dist/runtime/composables/useJunBackdrop.d.ts +9 -0
  201. package/dist/runtime/composables/useJunBackdrop.js +27 -0
  202. package/dist/runtime/composables/useJunBackground.d.ts +78 -0
  203. package/dist/runtime/composables/useJunBackground.js +65 -0
  204. package/dist/runtime/composables/useJunCampfire.d.ts +156 -0
  205. package/dist/runtime/composables/useJunCampfire.js +225 -0
  206. package/dist/runtime/composables/useJunChrome.d.ts +66 -0
  207. package/dist/runtime/composables/useJunChrome.js +233 -0
  208. package/dist/runtime/composables/useJunColorMode.d.ts +8 -0
  209. package/dist/runtime/composables/useJunColorMode.js +11 -0
  210. package/dist/runtime/composables/useJunCommands.d.ts +37 -0
  211. package/dist/runtime/composables/useJunCommands.js +225 -0
  212. package/dist/runtime/composables/useJunCreatePage.d.ts +17 -0
  213. package/dist/runtime/composables/useJunCreatePage.js +30 -0
  214. package/dist/runtime/composables/useJunCurrentDoc.d.ts +5 -0
  215. package/dist/runtime/composables/useJunCurrentDoc.js +14 -0
  216. package/dist/runtime/composables/useJunDocMenu.d.ts +71 -0
  217. package/dist/runtime/composables/useJunDocMenu.js +344 -0
  218. package/dist/runtime/composables/useJunDocPage.d.ts +99 -0
  219. package/dist/runtime/composables/useJunDocPage.js +155 -0
  220. package/dist/runtime/composables/useJunFollow.d.ts +11 -0
  221. package/dist/runtime/composables/useJunFollow.js +38 -0
  222. package/dist/runtime/composables/useJunGroupedDnD.d.ts +74 -0
  223. package/dist/runtime/composables/useJunGroupedDnD.js +186 -0
  224. package/dist/runtime/composables/useJunImagePopup.d.ts +37 -0
  225. package/dist/runtime/composables/useJunImagePopup.js +24 -0
  226. package/dist/runtime/composables/useJunIntro.d.ts +7 -0
  227. package/dist/runtime/composables/useJunIntro.js +8 -0
  228. package/dist/runtime/composables/useJunListDnD.d.ts +65 -0
  229. package/dist/runtime/composables/useJunListDnD.js +159 -0
  230. package/dist/runtime/composables/useJunMediaImport.d.ts +27 -0
  231. package/dist/runtime/composables/useJunMediaImport.js +90 -0
  232. package/dist/runtime/composables/useJunNavSettings.d.ts +57 -0
  233. package/dist/runtime/composables/useJunNavSettings.js +74 -0
  234. package/dist/runtime/composables/useJunNodePanel.d.ts +41 -0
  235. package/dist/runtime/composables/useJunNodePanel.js +36 -0
  236. package/dist/runtime/composables/useJunOpenDoc.d.ts +7 -0
  237. package/dist/runtime/composables/useJunOpenDoc.js +30 -0
  238. package/dist/runtime/composables/useJunOptions.d.ts +68 -0
  239. package/dist/runtime/composables/useJunOptions.js +68 -0
  240. package/dist/runtime/composables/useJunPalette.d.ts +16 -0
  241. package/dist/runtime/composables/useJunPalette.js +72 -0
  242. package/dist/runtime/composables/useJunPeopleAdmin.d.ts +69 -0
  243. package/dist/runtime/composables/useJunPeopleAdmin.js +73 -0
  244. package/dist/runtime/composables/useJunPlayer.d.ts +99 -0
  245. package/dist/runtime/composables/useJunPlayer.js +208 -0
  246. package/dist/runtime/composables/useJunPresence.d.ts +32 -0
  247. package/dist/runtime/composables/useJunPresence.js +53 -0
  248. package/dist/runtime/composables/useJunPressDrag.d.ts +20 -0
  249. package/dist/runtime/composables/useJunPressDrag.js +85 -0
  250. package/dist/runtime/composables/useJunRecent.d.ts +9 -0
  251. package/dist/runtime/composables/useJunRecent.js +44 -0
  252. package/dist/runtime/composables/useJunRename.d.ts +19 -0
  253. package/dist/runtime/composables/useJunRename.js +62 -0
  254. package/dist/runtime/composables/useJunRouteGeoHeal.d.ts +1 -0
  255. package/dist/runtime/composables/useJunRouteGeoHeal.js +45 -0
  256. package/dist/runtime/composables/useJunRouting.d.ts +29 -0
  257. package/dist/runtime/composables/useJunRouting.js +101 -0
  258. package/dist/runtime/composables/useJunSearch.d.ts +6 -0
  259. package/dist/runtime/composables/useJunSearch.js +16 -0
  260. package/dist/runtime/composables/useJunSelfId.d.ts +1 -0
  261. package/dist/runtime/composables/useJunSelfId.js +28 -0
  262. package/dist/runtime/composables/useJunSiteConfig.d.ts +229 -0
  263. package/dist/runtime/composables/useJunSiteConfig.js +95 -0
  264. package/dist/runtime/composables/useJunSiteConfigValues.d.ts +33 -0
  265. package/dist/runtime/composables/useJunSiteConfigValues.js +21 -0
  266. package/dist/runtime/composables/useJunStagger.d.ts +54 -0
  267. package/dist/runtime/composables/useJunStagger.js +23 -0
  268. package/dist/runtime/composables/useJunStudio.d.ts +11 -0
  269. package/dist/runtime/composables/useJunStudio.js +51 -0
  270. package/dist/runtime/composables/useJunSurface.d.ts +19 -0
  271. package/dist/runtime/composables/useJunSurface.js +8 -0
  272. package/dist/runtime/composables/useJunTheme.d.ts +21 -0
  273. package/dist/runtime/composables/useJunTheme.js +138 -0
  274. package/dist/runtime/composables/useJunThemeTransition.d.ts +5 -0
  275. package/dist/runtime/composables/useJunThemeTransition.js +32 -0
  276. package/dist/runtime/composables/useJunUpload.d.ts +12 -0
  277. package/dist/runtime/composables/useJunUpload.js +44 -0
  278. package/dist/runtime/composables/useJunViewingAccent.d.ts +6 -0
  279. package/dist/runtime/composables/useJunViewingAccent.js +28 -0
  280. package/dist/runtime/error.d.vue.ts +7 -0
  281. package/dist/runtime/error.vue +74 -0
  282. package/dist/runtime/error.vue.d.ts +7 -0
  283. package/dist/runtime/layouts/jun.d.vue.ts +13 -0
  284. package/dist/runtime/layouts/jun.vue +162 -0
  285. package/dist/runtime/layouts/jun.vue.d.ts +13 -0
  286. package/dist/runtime/pages/doc.d.vue.ts +3 -0
  287. package/dist/runtime/pages/doc.vue +142 -0
  288. package/dist/runtime/pages/doc.vue.d.ts +3 -0
  289. package/dist/runtime/pages/index.d.vue.ts +3 -0
  290. package/dist/runtime/pages/index.vue +64 -0
  291. package/dist/runtime/pages/index.vue.d.ts +3 -0
  292. package/dist/runtime/plugins/jun-drag-affordance.client.d.ts +2 -0
  293. package/dist/runtime/plugins/jun-drag-affordance.client.js +9 -0
  294. package/dist/runtime/router.options.d.ts +3 -0
  295. package/dist/runtime/router.options.js +72 -0
  296. package/dist/runtime/server/api/nav.get.d.ts +9 -0
  297. package/dist/runtime/server/api/nav.get.js +16 -0
  298. package/dist/runtime/server/api/resolve/[...slug].get.d.ts +18 -0
  299. package/dist/runtime/server/api/resolve/[...slug].get.js +20 -0
  300. package/dist/runtime/server/api/search.get.d.ts +13 -0
  301. package/dist/runtime/server/api/search.get.js +72 -0
  302. package/dist/runtime/server/api/service.get.d.ts +12 -0
  303. package/dist/runtime/server/api/service.get.js +39 -0
  304. package/dist/runtime/server/api/site-config.get.d.ts +2 -0
  305. package/dist/runtime/server/api/site-config.get.js +3 -0
  306. package/dist/runtime/server/api/stats.get.d.ts +12 -0
  307. package/dist/runtime/server/api/stats.get.js +56 -0
  308. package/dist/runtime/server/janitor/junJanitorActor.d.ts +179 -0
  309. package/dist/runtime/server/janitor/junJanitorActor.js +305 -0
  310. package/dist/runtime/server/janitor/junJanitorChores.d.ts +137 -0
  311. package/dist/runtime/server/janitor/junJanitorChores.js +189 -0
  312. package/dist/runtime/server/janitor/junJanitorDiff.d.ts +41 -0
  313. package/dist/runtime/server/janitor/junJanitorDiff.js +109 -0
  314. package/dist/runtime/server/janitor/junJanitorListen.d.ts +33 -0
  315. package/dist/runtime/server/janitor/junJanitorListen.js +43 -0
  316. package/dist/runtime/server/janitor/junJanitorMachine.d.ts +60 -0
  317. package/dist/runtime/server/janitor/junJanitorMachine.js +598 -0
  318. package/dist/runtime/server/janitor/junJanitorMotor.d.ts +211 -0
  319. package/dist/runtime/server/janitor/junJanitorMotor.js +241 -0
  320. package/dist/runtime/server/janitor/junJanitorPatrol.d.ts +68 -0
  321. package/dist/runtime/server/janitor/junJanitorPatrol.js +34 -0
  322. package/dist/runtime/server/janitor/junJanitorPerform.d.ts +70 -0
  323. package/dist/runtime/server/janitor/junJanitorPerform.js +72 -0
  324. package/dist/runtime/server/janitor/junJanitorRandom.d.ts +54 -0
  325. package/dist/runtime/server/janitor/junJanitorRandom.js +48 -0
  326. package/dist/runtime/server/janitor/junJanitorStore.d.ts +159 -0
  327. package/dist/runtime/server/janitor/junJanitorStore.js +269 -0
  328. package/dist/runtime/server/janitor/junJanitorVoice.d.ts +86 -0
  329. package/dist/runtime/server/janitor/junJanitorVoice.js +193 -0
  330. package/dist/runtime/server/janitor/junJanitorYText.d.ts +164 -0
  331. package/dist/runtime/server/janitor/junJanitorYText.js +258 -0
  332. package/dist/runtime/server/plugins/jun-bootstrap.d.ts +25 -0
  333. package/dist/runtime/server/plugins/jun-bootstrap.js +652 -0
  334. package/dist/runtime/server/plugins/jun-doc-cache.d.ts +2 -0
  335. package/dist/runtime/server/plugins/jun-doc-cache.js +142 -0
  336. package/dist/runtime/server/plugins/jun-janitor.d.ts +2 -0
  337. package/dist/runtime/server/plugins/jun-janitor.js +176 -0
  338. package/dist/runtime/server/plugins/jun-rpc.d.ts +2 -0
  339. package/dist/runtime/server/plugins/jun-rpc.js +455 -0
  340. package/dist/runtime/server/routes/feed.json.get.d.ts +21 -0
  341. package/dist/runtime/server/routes/feed.json.get.js +25 -0
  342. package/dist/runtime/server/routes/feed.xml.get.d.ts +2 -0
  343. package/dist/runtime/server/routes/feed.xml.get.js +34 -0
  344. package/dist/runtime/server/routes/sitemap.xml.get.d.ts +2 -0
  345. package/dist/runtime/server/routes/sitemap.xml.get.js +27 -0
  346. package/dist/runtime/server/utils/junCache.d.ts +41 -0
  347. package/dist/runtime/server/utils/junCache.js +32 -0
  348. package/dist/runtime/server/utils/junFeed.d.ts +20 -0
  349. package/dist/runtime/server/utils/junFeed.js +71 -0
  350. package/dist/runtime/server/utils/junServiceFetch.d.ts +46 -0
  351. package/dist/runtime/server/utils/junServiceFetch.js +320 -0
  352. package/dist/runtime/server/utils/junVisibility.d.ts +31 -0
  353. package/dist/runtime/server/utils/junVisibility.js +6 -0
  354. package/dist/runtime/types.d.ts +853 -0
  355. package/dist/runtime/types.js +1 -0
  356. package/dist/runtime/utils/junDate.d.ts +38 -0
  357. package/dist/runtime/utils/junDate.js +30 -0
  358. package/dist/runtime/utils/junDndGeometry.d.ts +62 -0
  359. package/dist/runtime/utils/junDndGeometry.js +56 -0
  360. package/dist/runtime/utils/junDocTypeIcons.d.ts +30 -0
  361. package/dist/runtime/utils/junDocTypeIcons.js +30 -0
  362. package/dist/runtime/utils/junEditorBodyText.d.ts +32 -0
  363. package/dist/runtime/utils/junEditorBodyText.js +10 -0
  364. package/dist/runtime/utils/junMapboxToken.d.ts +1 -0
  365. package/dist/runtime/utils/junMapboxToken.js +5 -0
  366. package/dist/runtime/utils/junMatch.d.ts +45 -0
  367. package/dist/runtime/utils/junMatch.js +37 -0
  368. package/dist/runtime/utils/junMetaSchemas.d.ts +23 -0
  369. package/dist/runtime/utils/junMetaSchemas.js +94 -0
  370. package/dist/runtime/utils/junMotion.d.ts +71 -0
  371. package/dist/runtime/utils/junMotion.js +3 -0
  372. package/dist/runtime/utils/junServiceRef.d.ts +21 -0
  373. package/dist/runtime/utils/junServiceRef.js +94 -0
  374. package/dist/runtime/utils/junSimplifyPath.d.ts +23 -0
  375. package/dist/runtime/utils/junSimplifyPath.js +57 -0
  376. package/dist/runtime/utils/junTransportModes.d.ts +49 -0
  377. package/dist/runtime/utils/junTransportModes.js +37 -0
  378. package/dist/runtime/utils/junVideoSource.d.ts +51 -0
  379. package/dist/runtime/utils/junVideoSource.js +110 -0
  380. package/dist/runtime/utils/junVisibility.d.ts +14 -0
  381. package/dist/runtime/utils/junVisibility.js +6 -0
  382. package/dist/types.d.mts +5 -0
  383. package/package.json +111 -0
@@ -0,0 +1,14 @@
1
+ import { type JunCampfirePerson } from '../composables/useJunCampfire.js';
2
+ type __VLS_Props = {
3
+ docId: string;
4
+ /** How many messages to keep on screen. */
5
+ historyLimit: number;
6
+ /** The roster, as the source of live handles for `@mention` and bylines. */
7
+ people: JunCampfirePerson[];
8
+ /** What the site calls this place, and its mark. */
9
+ place: string;
10
+ icon: string;
11
+ };
12
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
+ declare const _default: typeof __VLS_export;
14
+ export default _default;
@@ -0,0 +1,33 @@
1
+ import type { JunCampfirePerson, JunCampfireSettings } from '../composables/useJunCampfire.js';
2
+ type __VLS_Props = {
3
+ settings: JunCampfireSettings;
4
+ /** The channel document, or `null` when no one has opened one. */
5
+ channelDocId: string | null;
6
+ people: JunCampfirePerson[];
7
+ self: JunCampfirePerson;
8
+ others: number;
9
+ label: string;
10
+ followingClientId?: number | null;
11
+ homeDocId?: string | null;
12
+ /** Unread since the panel was last on the Chat tab. Cleared by opening it. */
13
+ unread: number;
14
+ /** The action key under a dragging pointer — see `useJunPressDrag`. */
15
+ hot?: string | null;
16
+ /** A tab the hearth's press-drag gesture asked for, or `null`. */
17
+ wantedTab?: string | null;
18
+ };
19
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ follow: (clientId: number) => any;
21
+ close: () => any;
22
+ read: () => any;
23
+ react: (emoji: string) => any;
24
+ tab: () => any;
25
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
26
+ onFollow?: ((clientId: number) => any) | undefined;
27
+ onClose?: (() => any) | undefined;
28
+ onRead?: (() => any) | undefined;
29
+ onReact?: ((emoji: string) => any) | undefined;
30
+ onTab?: (() => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
@@ -0,0 +1,202 @@
1
+ <script setup>
2
+ import { computed, ref, watch } from "vue";
3
+ const props = defineProps({
4
+ settings: { type: Object, required: true },
5
+ channelDocId: { type: [String, null], required: true },
6
+ people: { type: Array, required: true },
7
+ self: { type: Object, required: true },
8
+ others: { type: Number, required: true },
9
+ label: { type: String, required: true },
10
+ followingClientId: { type: [Number, null], required: false },
11
+ homeDocId: { type: [String, null], required: false },
12
+ unread: { type: Number, required: true },
13
+ hot: { type: [String, null], required: false },
14
+ wantedTab: { type: [String, null], required: false }
15
+ });
16
+ const emit = defineEmits(["react", "follow", "close", "read", "tab"]);
17
+ const tabMeta = computed(() => ({
18
+ here: { label: "Here", icon: "i-lucide-users" },
19
+ fire: { label: "Chat", icon: props.settings.icon },
20
+ you: { label: "You", icon: "i-lucide-user-round" }
21
+ }));
22
+ const tabs = computed(() => {
23
+ const t = [];
24
+ if (props.settings.roster) t.push("here");
25
+ if (props.settings.chat) t.push("fire");
26
+ if (props.settings.identity) t.push("you");
27
+ return t;
28
+ });
29
+ const active = ref("here");
30
+ watch(
31
+ [tabs, () => props.settings.openTab],
32
+ ([list, want]) => {
33
+ if (list.includes(active.value)) return;
34
+ const wanted = want !== "auto" && list.includes(want) ? want : list[0];
35
+ if (wanted) active.value = wanted;
36
+ },
37
+ { immediate: true }
38
+ );
39
+ watch(
40
+ active,
41
+ (t) => {
42
+ if (t === "fire") emit("read");
43
+ },
44
+ { immediate: true }
45
+ );
46
+ watch(
47
+ () => props.wantedTab,
48
+ (want) => {
49
+ if (!want) return;
50
+ if (tabs.value.includes(want)) active.value = want;
51
+ emit("tab");
52
+ }
53
+ );
54
+ const bodyClass = "jun-scrollbar-hide min-h-0 flex-1 overflow-y-auto";
55
+ </script>
56
+
57
+ <template>
58
+ <div
59
+ class="jun-campfire-panel flex flex-col overflow-hidden rounded-2xl shadow-2xl shadow-black/20
60
+ ring-1 ring-zinc-900/10 dark:ring-white/15"
61
+ :class="[`is-${settings.size}`, settings.blur ? 'is-blurred' : 'is-opaque']"
62
+ role="dialog"
63
+ :aria-label="settings.title"
64
+ >
65
+ <!-- Header -->
66
+ <div class="flex items-center gap-2 border-b border-zinc-900/5 px-4 py-3 dark:border-white/10">
67
+ <UIcon
68
+ :name="settings.icon"
69
+ class="size-4 shrink-0"
70
+ :class="settings.ember ? 'text-amber-500 dark:text-amber-400' : 'text-zinc-400 dark:text-zinc-500'"
71
+ />
72
+ <span class="truncate text-sm font-medium text-zinc-800 dark:text-zinc-100">
73
+ {{ settings.title }}
74
+ </span>
75
+ <span class="ml-auto truncate text-xs text-zinc-500 dark:text-zinc-400">{{ label }}</span>
76
+ <button
77
+ type="button"
78
+ data-jun-action="close"
79
+ class="jun-campfire-close -mr-1 flex size-6 flex-none items-center justify-center rounded-md
80
+ text-zinc-400 dark:text-zinc-500"
81
+ :class="hot === 'close' ? 'is-hot' : ''"
82
+ :aria-label="`Close ${settings.title}`"
83
+ @click="emit('close')"
84
+ >
85
+ <UIcon
86
+ name="i-lucide-x"
87
+ class="size-3.5"
88
+ />
89
+ </button>
90
+ </div>
91
+
92
+ <!-- Tabs. One tab is a heading, not a choice — so the strip goes away. -->
93
+ <div
94
+ v-if="tabs.length > 1"
95
+ class="flex gap-0.5 border-b border-zinc-900/5 px-2 py-1.5 dark:border-white/10"
96
+ role="tablist"
97
+ >
98
+ <button
99
+ v-for="t in tabs"
100
+ :key="t"
101
+ type="button"
102
+ role="tab"
103
+ :aria-selected="active === t"
104
+ :data-jun-action="`tab:${t}`"
105
+ class="jun-campfire-tab relative flex flex-1 items-center justify-center gap-1.5 rounded-lg
106
+ py-1.5 text-xs"
107
+ :class="[active === t ? 'is-on' : '', hot === `tab:${t}` ? 'is-hot' : '']"
108
+ @click="active = t"
109
+ >
110
+ <UIcon
111
+ :name="tabMeta[t].icon"
112
+ class="size-3.5"
113
+ />
114
+ {{ tabMeta[t].label }}
115
+ <span
116
+ v-if="t === 'fire' && unread && active !== 'fire'"
117
+ class="jun-campfire-unread"
118
+ :class="settings.ember ? 'is-ember' : ''"
119
+ >{{ unread > 9 ? "9+" : unread }}</span>
120
+ </button>
121
+ </div>
122
+
123
+ <!-- Here -->
124
+ <div
125
+ v-if="active === 'here'"
126
+ :class="bodyClass"
127
+ >
128
+ <JunCampfireRoster
129
+ :people="people"
130
+ :style="settings.rosterStyle"
131
+ :show-pages="settings.showPages"
132
+ :follow="settings.follow"
133
+ :following-client-id="followingClientId"
134
+ :home-doc-id="homeDocId"
135
+ @follow="emit('follow', $event)"
136
+ />
137
+ </div>
138
+
139
+ <!-- Fire -->
140
+ <JunCampfireChat
141
+ v-else-if="active === 'fire' && channelDocId"
142
+ :key="channelDocId"
143
+ :doc-id="channelDocId"
144
+ :history-limit="settings.historyLimit"
145
+ :people="people"
146
+ :place="settings.title"
147
+ :icon="settings.icon"
148
+ />
149
+ <!-- No channel means the server would reject every send. Say so, rather
150
+ than showing a composer that quietly loses what is typed into it. -->
151
+ <div
152
+ v-else-if="active === 'fire'"
153
+ class="flex min-h-0 flex-1 flex-col items-center justify-center gap-2 px-8 py-10 text-center"
154
+ >
155
+ <UIcon
156
+ name="i-lucide-message-square-dashed"
157
+ class="size-5 text-zinc-300 dark:text-zinc-600"
158
+ />
159
+ <p class="text-xs text-zinc-500 dark:text-zinc-400">
160
+ no channel yet
161
+ </p>
162
+ <p class="text-[11px] leading-relaxed text-zinc-400 dark:text-zinc-500">
163
+ Nobody can speak here until the site opens its chat channel.
164
+ </p>
165
+ </div>
166
+
167
+ <!-- You -->
168
+ <div
169
+ v-else-if="active === 'you'"
170
+ :class="bodyClass"
171
+ >
172
+ <JunCampfireYou
173
+ :self="self"
174
+ :allow-rename="settings.allowRename"
175
+ :others="others"
176
+ />
177
+ </div>
178
+
179
+ <!-- Reactions — a gesture at the fire, on every tab. -->
180
+ <div
181
+ v-if="settings.reactions"
182
+ class="flex items-center gap-1.5 border-t border-zinc-900/5 px-3 py-2 dark:border-white/10"
183
+ >
184
+ <button
185
+ v-for="r in settings.reactionSet"
186
+ :key="r"
187
+ type="button"
188
+ :data-jun-action="`react:${r}`"
189
+ class="jun-campfire-react inline-flex size-8 items-center justify-center rounded-lg text-base"
190
+ :class="hot === `react:${r}` ? 'is-hot' : ''"
191
+ :aria-label="`React ${r}`"
192
+ @click="emit('react', r)"
193
+ >
194
+ {{ r }}
195
+ </button>
196
+ </div>
197
+ </div>
198
+ </template>
199
+
200
+ <style scoped>
201
+ .jun-campfire-panel.is-sm{height:min(27.5rem,calc(100dvh - 9rem));width:min(17rem,calc(100vw - 2rem))}.jun-campfire-panel.is-md{height:min(32.375rem,calc(100dvh - 9rem));width:min(20rem,calc(100vw - 2rem))}.jun-campfire-panel.is-lg{height:min(37.25rem,calc(100dvh - 9rem));width:min(23rem,calc(100vw - 2rem))}.jun-campfire-panel.is-blurred{backdrop-filter:blur(24px);background:hsla(0,0%,100%,.7)}:root.dark .jun-campfire-panel.is-blurred{background:rgba(24,24,27,.7)}.jun-campfire-panel.is-opaque{background:hsla(0,0%,100%,.97)}:root.dark .jun-campfire-panel.is-opaque{background:rgba(24,24,27,.97)}.jun-campfire-tab{color:#71717a;transition:background-color .2s ease,color .2s ease}:root.dark .jun-campfire-tab{color:#a1a1aa}.jun-campfire-tab:hover{background:rgba(0,0,0,.035)}:root.dark .jun-campfire-tab:hover{background:hsla(0,0%,100%,.05)}.jun-campfire-tab.is-on{background:rgba(0,0,0,.06);color:#18181b}:root.dark .jun-campfire-tab.is-on{background:hsla(0,0%,100%,.09);color:#f4f4f5}.jun-campfire-unread{background:rgba(0,0,0,.55);border-radius:999px;color:#fff;font-size:9px;font-variant-numeric:tabular-nums;line-height:.9rem;min-width:.9rem;padding:0 .2rem;position:absolute;right:.35rem;top:.1rem}:root.dark .jun-campfire-unread{background:hsla(0,0%,100%,.65);color:#18181b}.jun-campfire-unread.is-ember{background:#f59e0b;color:#fff}.jun-campfire-close{transition:background-color .2s ease,color .2s ease}.jun-campfire-close:hover{background:rgba(0,0,0,.06);color:#3f3f46}:root.dark .jun-campfire-close:hover{background:hsla(0,0%,100%,.08);color:#e4e4e7}.jun-campfire-react{background:hsla(0,0%,100%,.5);box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);transition:transform .2s cubic-bezier(.22,1,.36,1)}:root.dark .jun-campfire-react{background:hsla(0,0%,100%,.05);box-shadow:inset 0 0 0 1px hsla(0,0%,100%,.1)}.jun-campfire-react:hover{transform:translateY(-2px)}.jun-campfire-react:active{transform:scale(.92)}@media (prefers-reduced-motion:reduce){.jun-campfire-close,.jun-campfire-react,.jun-campfire-tab{transition:none}.jun-campfire-react:hover{transform:none}}
202
+ </style>
@@ -0,0 +1,33 @@
1
+ import type { JunCampfirePerson, JunCampfireSettings } from '../composables/useJunCampfire.js';
2
+ type __VLS_Props = {
3
+ settings: JunCampfireSettings;
4
+ /** The channel document, or `null` when no one has opened one. */
5
+ channelDocId: string | null;
6
+ people: JunCampfirePerson[];
7
+ self: JunCampfirePerson;
8
+ others: number;
9
+ label: string;
10
+ followingClientId?: number | null;
11
+ homeDocId?: string | null;
12
+ /** Unread since the panel was last on the Chat tab. Cleared by opening it. */
13
+ unread: number;
14
+ /** The action key under a dragging pointer — see `useJunPressDrag`. */
15
+ hot?: string | null;
16
+ /** A tab the hearth's press-drag gesture asked for, or `null`. */
17
+ wantedTab?: string | null;
18
+ };
19
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ follow: (clientId: number) => any;
21
+ close: () => any;
22
+ read: () => any;
23
+ react: (emoji: string) => any;
24
+ tab: () => any;
25
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
26
+ onFollow?: ((clientId: number) => any) | undefined;
27
+ onClose?: (() => any) | undefined;
28
+ onRead?: (() => any) | undefined;
29
+ onReact?: ((emoji: string) => any) | undefined;
30
+ onTab?: (() => any) | undefined;
31
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
32
+ declare const _default: typeof __VLS_export;
33
+ export default _default;
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,321 @@
1
+ <script setup>
2
+ import { computed, onBeforeUnmount, onMounted, ref, watch } from "vue";
3
+ import {
4
+ useAAEphemeral,
5
+ useAbracadabra,
6
+ useChat,
7
+ useJunCampfireChannel,
8
+ useJunCampfirePeople,
9
+ useJunCampfireSettings,
10
+ junMirrorCorner,
11
+ useJunChromeInsets,
12
+ useJunChromeSlot,
13
+ useJunFollow,
14
+ useJunPressDrag,
15
+ useJunStudio
16
+ } from "#imports";
17
+ import { junCampfireLabel } from "../composables/useJunCampfire";
18
+ const settings = useJunCampfireSettings();
19
+ const abra = useAbracadabra();
20
+ const { others, self, everyone } = useJunCampfirePeople();
21
+ const channelDocId = useJunCampfireChannel();
22
+ const { toggle: toggleFollow, unfollow, followingClientId, followingUser, isFollowing } = useJunFollow();
23
+ const count = computed(() => others.value.length);
24
+ const label = computed(() => junCampfireLabel(count.value, settings.value.label));
25
+ const open = ref(false);
26
+ const pillEl = ref(null);
27
+ const { navPlacement } = useJunChromeInsets();
28
+ useJunChromeSlot("hearth", pillEl);
29
+ const closeOnTap = ref(false);
30
+ const { start: pressStart, pressing, hot } = useJunPressDrag({
31
+ enabled: () => settings.value.hasPanel,
32
+ onOpen: () => {
33
+ closeOnTap.value = open.value;
34
+ open.value = true;
35
+ },
36
+ onTap: () => {
37
+ if (closeOnTap.value) open.value = false;
38
+ },
39
+ onPick: (key) => runPanelAction(key)
40
+ });
41
+ function runPanelAction(key) {
42
+ if (key === "close") {
43
+ open.value = false;
44
+ return;
45
+ }
46
+ const [kind, ...rest] = key.split(":");
47
+ const value = rest.join(":");
48
+ if (kind === "react" && value) {
49
+ react(value);
50
+ open.value = false;
51
+ return;
52
+ }
53
+ if (kind === "tab" && value) {
54
+ wantedTab.value = value;
55
+ }
56
+ }
57
+ const wantedTab = ref(null);
58
+ function onPillClick(e) {
59
+ if (e.detail !== 0) return;
60
+ if (!settings.value.hasPanel) return;
61
+ open.value = !open.value;
62
+ }
63
+ function onKey(e) {
64
+ if (e.key === "Escape" && open.value) {
65
+ open.value = false;
66
+ e.stopPropagation();
67
+ }
68
+ }
69
+ const corner = computed(() => junMirrorCorner(settings.value.placement, navPlacement.value));
70
+ const ORIGIN = {
71
+ "bottom-right": "origin-bottom-right",
72
+ "bottom-left": "origin-bottom-left",
73
+ "top-right": "origin-top-right",
74
+ "top-left": "origin-top-left"
75
+ };
76
+ const { canEdit } = useJunStudio();
77
+ const dodgeStudio = computed(
78
+ () => canEdit.value && settings.value.placement === "bottom-left"
79
+ );
80
+ const stack = computed(() => dodgeStudio.value ? "calc(var(--jun-studio-h, 0px) + 0.75rem)" : "0px");
81
+ const pillStyle = computed(() => ({ "--jun-bar-stack": stack.value }));
82
+ const panelStyle = computed(() => ({
83
+ "--jun-bar-stack": `calc(${stack.value} + var(--jun-hearth-h, 0px) + 0.5rem)`
84
+ }));
85
+ const emberStyle = computed(() => ({
86
+ "--jun-bar-stack": `calc(${stack.value} + 2.5rem)`,
87
+ "--jun-bar-inset": "2.5rem"
88
+ }));
89
+ const PILL_SIZE = {
90
+ sm: "gap-2 py-1 pr-3 pl-2 text-[11px]",
91
+ md: "gap-2.5 py-1.5 pr-3.5 pl-2.5 text-xs",
92
+ lg: "gap-3 py-2 pr-4 pl-3 text-sm"
93
+ };
94
+ const FACE_MAX = 4;
95
+ const faces = computed(() => others.value.slice(0, FACE_MAX));
96
+ function initial(name) {
97
+ return [...name.trim()][0]?.toUpperCase() ?? "\xB7";
98
+ }
99
+ const { fetchHistory, messagesByChannel } = useChat();
100
+ watch(
101
+ channelDocId,
102
+ (id) => {
103
+ if (id) fetchHistory(id);
104
+ },
105
+ { immediate: true }
106
+ );
107
+ const seenTs = ref(0);
108
+ const unread = computed(() => {
109
+ const id = channelDocId.value;
110
+ if (!id || !settings.value.chat) return 0;
111
+ const mine = abra.publicKeyB64.value;
112
+ let n = 0;
113
+ for (const m of messagesByChannel.value[id] ?? []) {
114
+ if (m.createdAt > seenTs.value && m.senderId !== mine) n++;
115
+ }
116
+ return n;
117
+ });
118
+ function markRead() {
119
+ const id = channelDocId.value;
120
+ if (!id) return;
121
+ let newest = seenTs.value;
122
+ for (const m of messagesByChannel.value[id] ?? []) {
123
+ if (m.createdAt > newest) newest = m.createdAt;
124
+ }
125
+ seenTs.value = newest;
126
+ }
127
+ const primed = ref(false);
128
+ watch(
129
+ () => channelDocId.value ? messagesByChannel.value[channelDocId.value]?.length ?? 0 : 0,
130
+ (n) => {
131
+ if (primed.value || n === 0) return;
132
+ primed.value = true;
133
+ markRead();
134
+ },
135
+ { immediate: true }
136
+ );
137
+ const { peers: peerReactions, setLocal } = useAAEphemeral("campfire:react");
138
+ const EMBER_TTL = 1900;
139
+ const embers = [];
140
+ const floaters = ref([]);
141
+ function pushEmber(emoji, color, id) {
142
+ embers.push({ id, emoji, color, dx: (Math.random() - 0.5) * 36, born: performance.now() });
143
+ }
144
+ let localN = 0;
145
+ function react(emoji) {
146
+ if (!settings.value.reactions) return;
147
+ localN++;
148
+ setLocal({ emoji, n: localN, t: Date.now() });
149
+ pushEmber(emoji, "var(--ui-text-highlighted)", `local:${localN}:${Date.now()}`);
150
+ }
151
+ const lastSeenByPeer = /* @__PURE__ */ new Map();
152
+ let reactFrame = 0;
153
+ function reactionLoop() {
154
+ if (settings.value.reactions) {
155
+ for (const p of peerReactions.value) {
156
+ if (!p.value) continue;
157
+ const lastT = lastSeenByPeer.get(p.clientId) ?? 0;
158
+ if (p.value.t > lastT) {
159
+ if (lastT !== 0) {
160
+ pushEmber(p.value.emoji, p.user?.color ?? "#fbbf24", `${p.clientId}:${p.value.t}`);
161
+ }
162
+ lastSeenByPeer.set(p.clientId, p.value.t);
163
+ }
164
+ }
165
+ }
166
+ const now = performance.now();
167
+ for (let i = embers.length - 1; i >= 0; i--) {
168
+ if (now - embers[i].born > EMBER_TTL) embers.splice(i, 1);
169
+ }
170
+ floaters.value = embers.slice();
171
+ reactFrame = requestAnimationFrame(reactionLoop);
172
+ }
173
+ onMounted(() => {
174
+ reactFrame = requestAnimationFrame(reactionLoop);
175
+ window.addEventListener("keydown", onKey);
176
+ });
177
+ onBeforeUnmount(() => {
178
+ if (reactFrame) cancelAnimationFrame(reactFrame);
179
+ window.removeEventListener("keydown", onKey);
180
+ });
181
+ </script>
182
+
183
+ <template>
184
+ <ClientOnly>
185
+ <template v-if="settings.enabled">
186
+ <div
187
+ class="jun-bar jun-hearth-embers"
188
+ :data-jun-corner="corner"
189
+ :style="emberStyle"
190
+ aria-hidden="true"
191
+ >
192
+ <span
193
+ v-for="f in floaters"
194
+ :key="f.id"
195
+ class="jun-campfire-floater"
196
+ :style="{ 'color': f.color, '--dx': `${f.dx}px` }"
197
+ >{{ f.emoji }}</span>
198
+ </div>
199
+
200
+ <Transition name="jun-campfire-rise">
201
+ <JunCampfirePanel
202
+ v-if="open"
203
+ class="jun-bar"
204
+ :class="ORIGIN[corner]"
205
+ :data-jun-corner="corner"
206
+ :style="panelStyle"
207
+ :settings="settings"
208
+ :channel-doc-id="channelDocId"
209
+ :people="everyone"
210
+ :self="self"
211
+ :others="count"
212
+ :label="label"
213
+ :following-client-id="followingClientId"
214
+ :home-doc-id="abra.spaceDocId.value"
215
+ :unread="unread"
216
+ :hot="hot"
217
+ :wanted-tab="wantedTab"
218
+ @react="react"
219
+ @follow="toggleFollow"
220
+ @read="markRead"
221
+ @close="open = false"
222
+ @tab="wantedTab = null"
223
+ />
224
+ </Transition>
225
+
226
+ <Transition name="jun-campfire-rise">
227
+ <button
228
+ v-if="isFollowing && followingUser && !open"
229
+ type="button"
230
+ class="jun-bar jun-bar-pill jun-chrome jun-campfire-banner gap-1.5 rounded-full py-1 pr-2
231
+ pl-2.5 text-xs"
232
+ :data-jun-corner="corner"
233
+ :style="panelStyle"
234
+ :aria-label="`Stop following ${followingUser.name}`"
235
+ @click="unfollow()"
236
+ >
237
+ <span
238
+ class="size-2 rounded-full"
239
+ :style="{ background: followingUser.color || 'var(--ui-text-muted)' }"
240
+ />
241
+ <span class="font-medium text-zinc-600 dark:text-zinc-300">
242
+ following {{ followingUser.name }}
243
+ </span>
244
+ <UIcon
245
+ name="i-lucide-x"
246
+ class="size-3 text-zinc-400"
247
+ />
248
+ </button>
249
+ </Transition>
250
+
251
+ <button
252
+ ref="pillEl"
253
+ type="button"
254
+ class="jun-bar jun-bar-pill jun-bar-trigger jun-chrome jun-campfire-pill rounded-full"
255
+ :data-jun-corner="corner"
256
+ :style="pillStyle"
257
+ :class="[
258
+ PILL_SIZE[settings.size],
259
+ settings.blur ? '' : 'is-opaque',
260
+ settings.hasPanel ? '' : 'is-static',
261
+ pressing ? 'is-pressing' : ''
262
+ ]"
263
+ :aria-expanded="settings.hasPanel ? open : void 0"
264
+ :aria-label="`${settings.title} \u2014 ${label}`"
265
+ @pointerdown="pressStart"
266
+ @click="onPillClick"
267
+ >
268
+ <span class="relative inline-flex size-6 flex-none items-center justify-center">
269
+ <span
270
+ v-if="settings.ember"
271
+ class="jun-campfire-glow absolute inset-0 rounded-full"
272
+ aria-hidden="true"
273
+ />
274
+ <UIcon
275
+ :name="settings.icon"
276
+ class="relative size-4"
277
+ :class="settings.ember ? 'text-amber-500 dark:text-amber-400' : 'text-zinc-500 dark:text-zinc-400'"
278
+ />
279
+ <span
280
+ v-if="unread && !open"
281
+ class="jun-campfire-badge"
282
+ :class="settings.ember ? 'is-ember' : ''"
283
+ >{{ unread > 9 ? "9+" : unread }}</span>
284
+ </span>
285
+
286
+ <span
287
+ v-if="(settings.pillMode === 'full' || settings.pillMode === 'compact') && faces.length"
288
+ class="flex -space-x-1.5"
289
+ >
290
+ <span
291
+ v-for="p in faces"
292
+ :key="p.publicKey || p.clientId"
293
+ class="flex size-5 items-center justify-center rounded-full bg-white text-[9px]
294
+ font-medium ring-2 ring-white dark:bg-zinc-900 dark:ring-zinc-900"
295
+ :class="p.idle ? 'opacity-50' : ''"
296
+ :style="{ color: p.color, boxShadow: `inset 0 0 0 1.5px ${p.color}` }"
297
+ >{{ initial(p.name) }}</span>
298
+ </span>
299
+
300
+ <span
301
+ v-if="settings.pillMode === 'full'"
302
+ class="font-medium tracking-wide whitespace-nowrap text-zinc-600 dark:text-zinc-300"
303
+ >{{ label }}</span>
304
+ <span
305
+ v-else-if="settings.pillMode !== 'ember'"
306
+ class="font-medium tabular-nums text-zinc-600 dark:text-zinc-300"
307
+ >{{ count }}</span>
308
+
309
+ <UIcon
310
+ v-if="settings.hasPanel && settings.pillMode !== 'ember'"
311
+ :name="open ? 'i-lucide-chevron-down' : 'i-lucide-chevron-up'"
312
+ class="size-3.5 text-zinc-400 dark:text-zinc-500"
313
+ />
314
+ </button>
315
+ </template>
316
+ </ClientOnly>
317
+ </template>
318
+
319
+ <style scoped>
320
+ .jun-campfire-pill{transition:transform .5s cubic-bezier(.22,1,.36,1)}.jun-campfire-pill:hover{transform:scale(1.03)}.jun-campfire-pill:active{transform:scale(.97)}.jun-campfire-pill.is-static{cursor:default}.jun-campfire-pill.is-static:hover{transform:none}.jun-campfire-badge{background:#18181b;border-radius:999px;color:#fff;font-size:9px;font-variant-numeric:tabular-nums;font-weight:500;line-height:.95rem;min-width:.95rem;padding:0 .2rem;position:absolute;right:-.35rem;top:-.25rem}:root.dark .jun-campfire-badge{background:#f4f4f5;color:#18181b}.jun-campfire-badge.is-ember{background:#f59e0b;color:#fff}.jun-campfire-glow{animation:jun-campfire-breathe 3.2s ease-in-out infinite;background:radial-gradient(circle at 50% 55%,rgba(251,191,36,.55),rgba(251,146,60,.18) 55%,transparent 72%)}@keyframes jun-campfire-breathe{0%,to{opacity:.5;transform:scale(.9)}50%{opacity:1;transform:scale(1.15)}}.jun-campfire-floater{animation:jun-campfire-float 1.9s cubic-bezier(.22,1,.36,1) forwards;bottom:0;filter:drop-shadow(0 0 8px currentColor);font-size:1.25rem;position:absolute;right:0}@keyframes jun-campfire-float{0%{opacity:0;transform:translate(0) scale(.6)}18%{opacity:1;transform:translate(var(--dx),-1.5rem) scale(1.1)}to{opacity:0;transform:translate(calc(var(--dx)*1.6),-7.5rem) scale(.8)}}.jun-campfire-rise-enter-active,.jun-campfire-rise-leave-active{transition:opacity .28s ease,transform .28s cubic-bezier(.22,1,.36,1)}.jun-campfire-rise-enter-from,.jun-campfire-rise-leave-to{opacity:0;transform:translateY(12px) scale(.98)}@media (prefers-reduced-motion:reduce){.jun-campfire-glow{animation:none;opacity:.7}.jun-campfire-floater{animation-duration:1.2s}.jun-campfire-pill{transition:none}.jun-campfire-pill:hover{transform:none}.jun-campfire-rise-enter-active,.jun-campfire-rise-leave-active{transition:opacity .2s ease}.jun-campfire-rise-enter-from,.jun-campfire-rise-leave-to{transform:none}}
321
+ </style>
@@ -0,0 +1,3 @@
1
+ declare const __VLS_export: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
2
+ declare const _default: typeof __VLS_export;
3
+ export default _default;
@@ -0,0 +1,19 @@
1
+ import type { JunCampfirePerson } from '../composables/useJunCampfire.js';
2
+ import type { JunCampfireRosterStyle } from '../types.js';
3
+ type __VLS_Props = {
4
+ people: JunCampfirePerson[];
5
+ style: JunCampfireRosterStyle;
6
+ showPages: boolean;
7
+ /** Offer the follow action. Off leaves the roster purely informational. */
8
+ follow: boolean;
9
+ followingClientId?: number | null;
10
+ /** The space root, so "the front page" reads as itself rather than as a uuid. */
11
+ homeDocId?: string | null;
12
+ };
13
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ follow: (clientId: number) => any;
15
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
16
+ onFollow?: ((clientId: number) => any) | undefined;
17
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
+ declare const _default: typeof __VLS_export;
19
+ export default _default;