@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,684 @@
1
+ <script setup>
2
+ import { computed, nextTick, ref } from "vue";
3
+ import { useRouter } from "vue-router";
4
+ import {
5
+ junEditorBodyText,
6
+ junMotion,
7
+ junStagger,
8
+ useAbracadabra,
9
+ useChildTree,
10
+ useDocSlugs,
11
+ useDocTree,
12
+ useJunBrand,
13
+ useJunListDnD,
14
+ useJunPageType,
15
+ useJunRename,
16
+ useJunRouting,
17
+ useJunStudio,
18
+ useJunUpload,
19
+ useJunViewingAccent,
20
+ useToast,
21
+ useTrash
22
+ } from "#imports";
23
+ import { useJunImagePopup } from "../../composables/useJunImagePopup";
24
+ const props = defineProps({
25
+ docId: { type: String, required: true },
26
+ docLabel: { type: String, required: false },
27
+ docMeta: { type: Object, required: false },
28
+ childProvider: { type: null, required: false },
29
+ editable: { type: Boolean, required: false }
30
+ });
31
+ const abra = useAbracadabra();
32
+ const tree = useChildTree(abra.doc, props.docId);
33
+ const router = useRouter();
34
+ const brand = useJunBrand();
35
+ const { getDocUrl } = useDocSlugs();
36
+ const { getEntry } = useDocTree();
37
+ const { editing } = useJunStudio();
38
+ const { renameDoc } = useJunRename();
39
+ const { uploadTo } = useJunUpload();
40
+ const { typeIdFor } = useJunPageType();
41
+ const { reverseGeocode } = useJunRouting();
42
+ const { openImagePopup } = useJunImagePopup();
43
+ const { accentStyle, accentTitle } = useJunViewingAccent();
44
+ const toast = useToast();
45
+ const { restoreFromTrash } = useTrash();
46
+ const postType = computed(() => typeIdFor("now"));
47
+ const pageTitle = computed(() => getEntry(props.docId)?.label ?? props.docLabel ?? "Live");
48
+ const subtitle = computed(() => {
49
+ const meta = getEntry(props.docId)?.meta;
50
+ const ex = meta?.excerpt ?? props.docMeta?.excerpt;
51
+ return typeof ex === "string" && ex.trim() ? ex : void 0;
52
+ });
53
+ function renamePage(t) {
54
+ renameDoc(props.docId, t);
55
+ }
56
+ function renameSubtitle(s) {
57
+ tree.updateMeta(props.docId, { excerpt: s || void 0 });
58
+ }
59
+ const sorted = computed(() => {
60
+ const arr = (tree.childrenOf(null) ?? []).filter(
61
+ (e) => !!e.label && !e.meta?.draft
62
+ );
63
+ return [...arr].sort((a, b) => {
64
+ const da = a.meta?.date ? Date.parse(a.meta.date) : 0;
65
+ const db = b.meta?.date ? Date.parse(b.meta.date) : 0;
66
+ return db - da;
67
+ });
68
+ });
69
+ const feedEl = ref(null);
70
+ const {
71
+ dragId,
72
+ externalHover,
73
+ onItemDragStart,
74
+ onItemDragEnd,
75
+ onContainerDragOver,
76
+ onContainerDragLeave,
77
+ onContainerDrop
78
+ } = useJunListDnD({
79
+ tree,
80
+ containerDocId: props.docId,
81
+ items: sorted,
82
+ containerEl: feedEl,
83
+ reorderable: false,
84
+ ghostIconFor: () => "i-lucide-radio"
85
+ });
86
+ function fmtWhen(s) {
87
+ if (!s) return "";
88
+ const d = new Date(s);
89
+ if (Number.isNaN(d.getTime())) return s;
90
+ const mins = Math.floor((Date.now() - d.getTime()) / 6e4);
91
+ if (mins < 1) return "now";
92
+ if (mins < 60) return `${mins}m`;
93
+ const hours = Math.floor(mins / 60);
94
+ if (hours < 24) return `${hours}h`;
95
+ const days = Math.floor(hours / 24);
96
+ if (days < 7) return `${days}d`;
97
+ return d.toLocaleDateString(void 0, {
98
+ month: "short",
99
+ day: "numeric",
100
+ // The year only when it is not this one — a timeline of this year's posts
101
+ // does not need it repeated on every card.
102
+ year: d.getFullYear() === (/* @__PURE__ */ new Date()).getFullYear() ? void 0 : "numeric"
103
+ });
104
+ }
105
+ function mediaOf(entry) {
106
+ const ups = entry.meta?.mediaUploads?.filter((u) => !!u?.id && !!u?.mime);
107
+ if (ups?.length) {
108
+ return ups.map((u) => ({ kind: "upload", uploadId: u.id, mime: u.mime }));
109
+ }
110
+ const items = [];
111
+ for (const url of entry.meta?.images ?? []) items.push({ kind: "url-image", url });
112
+ if (entry.meta?.video) items.push({ kind: "url-video", url: entry.meta.video });
113
+ if (entry.meta?.audio) items.push({ kind: "url-audio", url: entry.meta.audio });
114
+ return items;
115
+ }
116
+ const isVisualUpload = (m) => m.kind === "upload" && !!m.mime && (m.mime.startsWith("image/") || m.mime.startsWith("video/"));
117
+ function popupItemsOf(entry) {
118
+ const items = [];
119
+ const map = [];
120
+ mediaOf(entry).forEach((m, i) => {
121
+ if (isVisualUpload(m)) {
122
+ items.push({ docId: entry.id, uploadId: m.uploadId, mime: m.mime, alt: entry.label });
123
+ map.push(i);
124
+ } else if (m.kind === "url-image") {
125
+ items.push({ url: m.url, alt: entry.label });
126
+ map.push(i);
127
+ }
128
+ });
129
+ return { items, map };
130
+ }
131
+ function openMedia(entry, mediaIndex, e) {
132
+ const { items, map } = popupItemsOf(entry);
133
+ const idx = map.indexOf(mediaIndex);
134
+ if (idx < 0) return;
135
+ openImagePopup(e, items, idx);
136
+ }
137
+ function openPost(entry) {
138
+ const to = getDocUrl(entry.id);
139
+ if (to) void router.push(to);
140
+ }
141
+ const drafts = computed(
142
+ () => (tree.childrenOf(null) ?? []).filter(
143
+ (e) => e.meta?.draft
144
+ )
145
+ );
146
+ const draft = computed(() => drafts.value[0] ?? null);
147
+ const composing = ref(false);
148
+ const composerEditor = ref(null);
149
+ function startComposing() {
150
+ if (!draft.value && postType.value) {
151
+ const id = tree.createChild(null, "Draft", postType.value);
152
+ tree.updateMeta(id, { draft: true });
153
+ }
154
+ composing.value = true;
155
+ void nextTick(() => composerEditor.value?.editor?.commands.focus());
156
+ }
157
+ const composerFiles = ref([]);
158
+ const composerPreviews = ref([]);
159
+ const posting = ref(false);
160
+ const fileInput = ref(null);
161
+ function onFilesPicked(e) {
162
+ const input = e.target;
163
+ if (input.files) addComposerFiles(Array.from(input.files));
164
+ input.value = "";
165
+ }
166
+ function addComposerFiles(files) {
167
+ for (const f of files) {
168
+ composerFiles.value.push(f);
169
+ composerPreviews.value.push(f.type.startsWith("image/") ? URL.createObjectURL(f) : "");
170
+ }
171
+ }
172
+ function removeComposerFile(i) {
173
+ const url = composerPreviews.value[i];
174
+ if (url) URL.revokeObjectURL(url);
175
+ composerFiles.value.splice(i, 1);
176
+ composerPreviews.value.splice(i, 1);
177
+ }
178
+ function clearComposerFiles() {
179
+ composerPreviews.value.forEach((u) => u && URL.revokeObjectURL(u));
180
+ composerFiles.value = [];
181
+ composerPreviews.value = [];
182
+ }
183
+ function patchWithGeoLabel(id, patch) {
184
+ tree.updateMeta(id, patch);
185
+ const lat = patch.geoLat;
186
+ const lng = patch.geoLng;
187
+ if (lat !== void 0 && lng !== void 0) {
188
+ void reverseGeocode(lng, lat).then((name) => {
189
+ if (name) tree.updateMeta(id, { location: name });
190
+ });
191
+ }
192
+ }
193
+ function onDraftPatch(patch) {
194
+ if (draft.value) patchWithGeoLabel(draft.value.id, patch);
195
+ }
196
+ function onPostLocationPatch(entry, patch) {
197
+ patchWithGeoLabel(entry.id, patch);
198
+ }
199
+ async function post() {
200
+ const d = draft.value;
201
+ if (!d || posting.value) return;
202
+ const body = junEditorBodyText(composerEditor.value?.editor);
203
+ if (!body && !composerFiles.value.length) return;
204
+ posting.value = true;
205
+ try {
206
+ const firstLine = body.split("\n").find((l) => l.trim())?.trim() ?? "";
207
+ const label = firstLine ? firstLine.slice(0, 64) : (/* @__PURE__ */ new Date()).toLocaleString(void 0, {
208
+ month: "short",
209
+ day: "numeric",
210
+ hour: "2-digit",
211
+ minute: "2-digit"
212
+ });
213
+ const mediaUploads = [...d.meta?.mediaUploads ?? []];
214
+ for (const file of composerFiles.value) {
215
+ const res = await uploadTo(d.id, file);
216
+ if (res) mediaUploads.push({ id: res.id, mime: res.mimeType, name: res.filename });
217
+ }
218
+ renameDoc(d.id, label);
219
+ tree.updateMeta(d.id, {
220
+ // A backdated chip wins; otherwise stamp now.
221
+ date: d.meta?.date ?? (/* @__PURE__ */ new Date()).toISOString(),
222
+ draft: void 0,
223
+ body: body.slice(0, 500),
224
+ // Marks the body as a MIRROR of the document's own prose, so the post's
225
+ // page does not render the same text twice.
226
+ bodyIsMirror: true,
227
+ ...mediaUploads.length ? { mediaUploads } : {}
228
+ });
229
+ clearComposerFiles();
230
+ composing.value = false;
231
+ } finally {
232
+ posting.value = false;
233
+ }
234
+ }
235
+ function discardDraft() {
236
+ if (draft.value) tree.deleteEntry(draft.value.id);
237
+ clearComposerFiles();
238
+ composing.value = false;
239
+ }
240
+ function deletePost(entry) {
241
+ tree.deleteEntry(entry.id);
242
+ toast.add({
243
+ title: `Moved \u201C${entry.label}\u201D to trash`,
244
+ icon: "i-lucide-trash-2",
245
+ duration: 6e3,
246
+ actions: [
247
+ {
248
+ label: "Undo",
249
+ color: "neutral",
250
+ variant: "outline",
251
+ onClick: () => restoreFromTrash(entry.id)
252
+ }
253
+ ]
254
+ });
255
+ }
256
+ const feedDropActive = ref(false);
257
+ function onFeedDragOver(e) {
258
+ if (!editing.value || !e.dataTransfer?.types.includes("Files")) return;
259
+ e.preventDefault();
260
+ feedDropActive.value = true;
261
+ }
262
+ function onFeedDragLeave(e) {
263
+ const related = e.relatedTarget;
264
+ if (related && e.currentTarget.contains(related)) return;
265
+ feedDropActive.value = false;
266
+ }
267
+ function onFeedDrop(e) {
268
+ if (!editing.value || !e.dataTransfer?.files.length) return;
269
+ e.preventDefault();
270
+ feedDropActive.value = false;
271
+ addComposerFiles(Array.from(e.dataTransfer.files));
272
+ if (!composing.value) startComposing();
273
+ }
274
+ </script>
275
+
276
+ <template>
277
+ <div
278
+ ref="feedEl"
279
+ class="relative mx-auto w-full max-w-2xl rounded-xl px-4 pt-12 pb-16 transition-shadow duration-200 sm:px-6"
280
+ :class="feedDropActive || externalHover ? 'ring-2 ring-inset ring-black/20 dark:ring-white/25' : ''"
281
+ @dragover="onFeedDragOver($event);
282
+ onContainerDragOver($event)"
283
+ @dragleave="onFeedDragLeave($event);
284
+ onContainerDragLeave($event)"
285
+ @drop="onFeedDrop($event);
286
+ onContainerDrop($event)"
287
+ >
288
+ <JunPageHero
289
+ :title="pageTitle"
290
+ :subtitle="subtitle"
291
+ :editable="editing"
292
+ @rename="renamePage"
293
+ @rename-subtitle="renameSubtitle"
294
+ />
295
+
296
+ <div
297
+ v-if="editing && postType"
298
+ class="jun-card mb-8 rounded-xl p-4"
299
+ >
300
+ <button
301
+ v-if="!composing || !draft"
302
+ type="button"
303
+ class="flex w-full items-center gap-2 text-left text-base text-dimmed transition-colors hover:text-muted"
304
+ @click="startComposing"
305
+ >
306
+ <span class="flex-1">{{ draft ? "Resume draft\u2026" : "What's happening?" }}</span>
307
+ <UIcon
308
+ v-if="draft"
309
+ name="i-lucide-file-pen-line"
310
+ class="size-4 shrink-0"
311
+ />
312
+ </button>
313
+
314
+ <template v-else>
315
+ <div class="jun-live-composer">
316
+ <AEditor
317
+ ref="composerEditor"
318
+ :key="draft.id"
319
+ :doc-id="draft.id"
320
+ :doc-label="draft.label"
321
+ :doc-meta="draft.meta ?? {}"
322
+ :editable="true"
323
+ :show-toolbar="false"
324
+ :show-suggestion-menu="true"
325
+ :show-drag-handle="false"
326
+ :show-breadcrumb="false"
327
+ :show-sub-pages="false"
328
+ placeholder="What's happening?"
329
+ />
330
+ </div>
331
+
332
+ <div class="mt-3 flex flex-wrap gap-1.5">
333
+ <AMetaChip
334
+ field-type="datetime"
335
+ label="Date"
336
+ :meta="draft.meta ?? {}"
337
+ meta-key="date"
338
+ @patch="onDraftPatch"
339
+ />
340
+ <AMetaChip
341
+ field-type="location"
342
+ label="Location"
343
+ :meta="draft.meta ?? {}"
344
+ lat-key="geoLat"
345
+ lng-key="geoLng"
346
+ @patch="onDraftPatch"
347
+ />
348
+ <AMetaChip
349
+ field-type="text"
350
+ label="Now playing"
351
+ icon="i-lucide-music"
352
+ :meta="draft.meta ?? {}"
353
+ meta-key="nowPlaying"
354
+ @patch="onDraftPatch"
355
+ />
356
+ <span
357
+ v-if="draft.meta?.location"
358
+ class="inline-flex items-center gap-1 self-center text-xs text-dimmed"
359
+ >
360
+ <UIcon
361
+ name="i-lucide-map-pin"
362
+ class="size-3"
363
+ />
364
+ {{ draft.meta.location }}
365
+ </span>
366
+ </div>
367
+
368
+ <div
369
+ v-if="composerFiles.length"
370
+ class="mt-2 flex flex-wrap gap-2"
371
+ >
372
+ <div
373
+ v-for="(f, i) in composerFiles"
374
+ :key="i"
375
+ class="relative h-20 w-20 overflow-hidden rounded-lg ring-1 ring-black/10 dark:ring-white/10"
376
+ >
377
+ <img
378
+ v-if="composerPreviews[i]"
379
+ :src="composerPreviews[i]"
380
+ class="h-full w-full object-cover"
381
+ alt=""
382
+ >
383
+ <div
384
+ v-else
385
+ class="flex h-full w-full items-center justify-center bg-black/5 dark:bg-white/10"
386
+ >
387
+ <UIcon
388
+ name="i-lucide-file"
389
+ class="size-5 text-dimmed"
390
+ />
391
+ </div>
392
+ <button
393
+ type="button"
394
+ class="absolute top-1 right-1 flex h-5 w-5 items-center justify-center rounded-full bg-black/60 text-white hover:bg-black/80"
395
+ aria-label="Remove attachment"
396
+ @click="removeComposerFile(i)"
397
+ >
398
+ <UIcon
399
+ name="i-lucide-x"
400
+ class="size-3"
401
+ />
402
+ </button>
403
+ </div>
404
+ </div>
405
+
406
+ <div class="mt-3 flex items-center gap-2">
407
+ <input
408
+ ref="fileInput"
409
+ type="file"
410
+ multiple
411
+ class="hidden"
412
+ @change="onFilesPicked"
413
+ >
414
+ <UButton
415
+ icon="i-lucide-image-plus"
416
+ color="neutral"
417
+ variant="ghost"
418
+ size="sm"
419
+ aria-label="Attach files"
420
+ @click="fileInput?.click()"
421
+ />
422
+ <UButton
423
+ icon="i-lucide-trash-2"
424
+ color="neutral"
425
+ variant="ghost"
426
+ size="sm"
427
+ aria-label="Discard draft"
428
+ @click="discardDraft"
429
+ />
430
+ <div class="flex-1" />
431
+ <UButton
432
+ label="Post"
433
+ color="neutral"
434
+ size="sm"
435
+ :loading="posting"
436
+ @click="post"
437
+ />
438
+ </div>
439
+ </template>
440
+ </div>
441
+
442
+ <div
443
+ v-if="!sorted.length && !editing"
444
+ class="py-16 text-center"
445
+ >
446
+ <UIcon
447
+ name="i-lucide-radio"
448
+ class="mb-3 size-10 text-dimmed"
449
+ />
450
+ <p class="text-sm text-muted">
451
+ Nothing here yet.
452
+ </p>
453
+ </div>
454
+
455
+ <section
456
+ v-else
457
+ class="relative"
458
+ >
459
+ <div
460
+ aria-hidden="true"
461
+ class="absolute top-2 bottom-2 left-[19px] w-px bg-linear-to-b from-transparent via-black/15 to-transparent dark:via-white/15"
462
+ />
463
+
464
+ <article
465
+ v-for="(entry, i) in sorted"
466
+ :key="entry.id"
467
+ v-motion="junMotion(junStagger(Math.min(i, 6), { delayMs: 60, durationMs: 450, yPx: 18 }))"
468
+ class="relative pb-8 pl-12 last:pb-0"
469
+ >
470
+ <div
471
+ aria-hidden="true"
472
+ class="absolute top-4 left-[13px] h-[13px] w-[13px] rounded-full bg-white ring-2 ring-black/25 dark:bg-zinc-900 dark:ring-white/30"
473
+ />
474
+
475
+ <JunItemMenu
476
+ :entry="entry"
477
+ :tree="tree"
478
+ >
479
+ <div
480
+ class="jun-card group cursor-pointer overflow-hidden rounded-xl transition-all duration-300 hover:scale-[1.005] hover:shadow-xl"
481
+ :class="editing ? dragId === entry.id ? 'cursor-grabbing opacity-70' : 'cursor-grab' : ''"
482
+ :style="accentStyle(entry.id)"
483
+ :title="accentTitle(entry.id)"
484
+ :draggable="editing ? true : void 0"
485
+ @click="openPost(entry)"
486
+ @dragstart="onItemDragStart(entry, $event)"
487
+ @dragend="onItemDragEnd($event)"
488
+ >
489
+ <div class="p-4">
490
+ <div class="flex items-center gap-2.5">
491
+ <!-- The site's avatar, from `brand.avatar`. The reference
492
+ implementation hard-coded a path INSIDE this renderer,
493
+ which is exactly what a module cannot do. -->
494
+ <img
495
+ v-if="brand.avatar"
496
+ :src="brand.avatar"
497
+ alt=""
498
+ class="h-8 w-8 rounded-full ring-1 ring-black/10 dark:ring-white/15"
499
+ >
500
+ <span
501
+ v-else
502
+ class="flex h-8 w-8 items-center justify-center rounded-full bg-black/5 text-black/50 ring-1 ring-black/10 dark:bg-white/10 dark:text-white/60 dark:ring-white/15"
503
+ >
504
+ <UIcon
505
+ name="i-lucide-radio"
506
+ class="size-4"
507
+ />
508
+ </span>
509
+
510
+ <div class="flex min-w-0 flex-1 items-baseline gap-2">
511
+ <span class="text-sm font-semibold text-highlighted">{{ brand.name }}</span>
512
+ <span class="shrink-0 text-xs text-dimmed">{{ fmtWhen(entry.meta?.date) }}</span>
513
+ <span
514
+ v-if="entry.meta?.location"
515
+ class="inline-flex items-center gap-1 truncate text-xs text-dimmed"
516
+ >
517
+ <UIcon
518
+ name="i-lucide-map-pin"
519
+ class="size-3 shrink-0"
520
+ />
521
+ <span class="truncate">{{ entry.meta.location }}</span>
522
+ </span>
523
+ </div>
524
+
525
+ <ClientOnly>
526
+ <JunAppreciate
527
+ :doc-id="entry.id"
528
+ @click.stop
529
+ />
530
+ </ClientOnly>
531
+
532
+ <UButton
533
+ v-if="editing"
534
+ icon="i-lucide-trash-2"
535
+ color="neutral"
536
+ variant="ghost"
537
+ size="xs"
538
+ class="opacity-0 transition-opacity group-hover:opacity-100"
539
+ aria-label="Delete post"
540
+ @click.stop="deletePost(entry)"
541
+ />
542
+ </div>
543
+
544
+ <p
545
+ v-if="entry.meta?.body"
546
+ class="mt-2.5 text-[15px] leading-relaxed whitespace-pre-line text-highlighted"
547
+ >{{ entry.meta.body }}</p>
548
+ <!-- A post with no mirrored body falls back to its label. -->
549
+ <p
550
+ v-else
551
+ class="mt-2.5 text-[15px] leading-relaxed text-highlighted"
552
+ >{{ entry.label }}</p>
553
+
554
+ <p
555
+ v-if="entry.meta?.nowPlaying"
556
+ class="mt-2 inline-flex items-center gap-1.5 rounded-full bg-black/5 px-2 py-1 text-xs text-muted dark:bg-white/10"
557
+ >
558
+ <UIcon
559
+ name="i-lucide-music"
560
+ class="size-3"
561
+ />
562
+ <span class="truncate">{{ entry.meta.nowPlaying }}</span>
563
+ </p>
564
+
565
+ <!-- `click.stop` throughout: a chip popover must never also open
566
+ the post underneath it. -->
567
+ <div
568
+ v-if="editing"
569
+ class="mt-3 flex flex-wrap gap-1.5"
570
+ @click.stop
571
+ >
572
+ <AMetaChip
573
+ field-type="datetime"
574
+ label="Date"
575
+ :meta="entry.meta ?? {}"
576
+ meta-key="date"
577
+ @patch="tree.updateMeta(entry.id, $event)"
578
+ />
579
+ <AMetaChip
580
+ field-type="location"
581
+ label="Location"
582
+ :meta="entry.meta ?? {}"
583
+ lat-key="geoLat"
584
+ lng-key="geoLng"
585
+ @patch="onPostLocationPatch(entry, $event)"
586
+ />
587
+ <AMetaChip
588
+ field-type="text"
589
+ label="Place"
590
+ icon="i-lucide-map-pin"
591
+ :meta="entry.meta ?? {}"
592
+ meta-key="location"
593
+ @patch="tree.updateMeta(entry.id, $event)"
594
+ />
595
+ <AMetaChip
596
+ field-type="text"
597
+ label="Now playing"
598
+ icon="i-lucide-music"
599
+ :meta="entry.meta ?? {}"
600
+ meta-key="nowPlaying"
601
+ @patch="tree.updateMeta(entry.id, $event)"
602
+ />
603
+ </div>
604
+ </div>
605
+
606
+ <div
607
+ v-if="mediaOf(entry).length"
608
+ class="px-4 pb-4"
609
+ @click.stop
610
+ >
611
+ <div
612
+ class="grid gap-1 overflow-hidden rounded-lg"
613
+ :class="mediaOf(entry).length === 1 ? 'grid-cols-1' : 'grid-cols-2'"
614
+ >
615
+ <template
616
+ v-for="(m, mi) in mediaOf(entry).slice(0, 4)"
617
+ :key="mi"
618
+ >
619
+ <div
620
+ v-if="m.kind === 'upload'"
621
+ class="relative cursor-zoom-in overflow-hidden"
622
+ :class="mediaOf(entry).length === 1 ? 'max-h-[28rem]' : 'aspect-square'"
623
+ @click="isVisualUpload(m) ? openMedia(entry, mi, $event) : void 0"
624
+ >
625
+ <JunMedia
626
+ :doc-id="entry.id"
627
+ :upload-id="m.uploadId"
628
+ :mime-type="m.mime"
629
+ :alt="entry.label"
630
+ :size="1280"
631
+ :media-class="mediaOf(entry).length === 1 ? 'w-full max-h-[28rem] object-cover' : 'h-full w-full object-cover'"
632
+ />
633
+ <div
634
+ v-if="mi === 3 && mediaOf(entry).length > 4"
635
+ class="pointer-events-none absolute inset-0 flex items-center justify-center bg-black/60 text-lg font-semibold text-white backdrop-blur-sm"
636
+ >+{{ mediaOf(entry).length - 4 }}</div>
637
+ </div>
638
+
639
+ <div
640
+ v-else-if="m.kind === 'url-image'"
641
+ class="relative cursor-zoom-in overflow-hidden"
642
+ :class="mediaOf(entry).length === 1 ? 'max-h-[28rem]' : 'aspect-square'"
643
+ @click="openMedia(entry, mi, $event)"
644
+ >
645
+ <NuxtImg
646
+ :src="m.url"
647
+ :alt="entry.label"
648
+ class="h-full w-full object-cover"
649
+ loading="lazy"
650
+ />
651
+ <div
652
+ v-if="mi === 3 && mediaOf(entry).length > 4"
653
+ class="pointer-events-none absolute inset-0 flex items-center justify-center bg-black/60 text-lg font-semibold text-white backdrop-blur-sm"
654
+ >+{{ mediaOf(entry).length - 4 }}</div>
655
+ </div>
656
+
657
+ <video
658
+ v-else-if="m.kind === 'url-video'"
659
+ :src="m.url"
660
+ class="h-full w-full object-cover"
661
+ controls
662
+ playsinline
663
+ preload="metadata"
664
+ />
665
+ <audio
666
+ v-else
667
+ :src="m.url"
668
+ class="w-full self-center"
669
+ controls
670
+ preload="metadata"
671
+ />
672
+ </template>
673
+ </div>
674
+ </div>
675
+ </div>
676
+ </JunItemMenu>
677
+ </article>
678
+ </section>
679
+ </div>
680
+ </template>
681
+
682
+ <style scoped>
683
+ .jun-live-composer :deep(.document-header){display:none}.jun-live-composer :deep([data-type=document-meta]){display:none}.jun-live-composer :deep(.ProseMirror),.jun-live-composer :deep(.aeditor-canvas){padding:0}
684
+ </style>
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ docId: string;
3
+ docLabel?: string;
4
+ docMeta?: Record<string, unknown>;
5
+ childProvider?: unknown;
6
+ editable?: boolean;
7
+ };
8
+ 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>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;
@@ -0,0 +1,10 @@
1
+ type __VLS_Props = {
2
+ docId: string;
3
+ docLabel?: string;
4
+ docMeta?: Record<string, unknown>;
5
+ childProvider?: unknown;
6
+ editable?: boolean;
7
+ };
8
+ 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>;
9
+ declare const _default: typeof __VLS_export;
10
+ export default _default;