@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,557 @@
1
+ <script setup>
2
+ import { computed, ref } from "vue";
3
+ import {
4
+ junFormatTime,
5
+ junIsAudioFile,
6
+ junMotion,
7
+ junStagger,
8
+ useAbracadabra,
9
+ useAwarenessPeers,
10
+ useChildTree,
11
+ useDocSlugs,
12
+ useDocTree,
13
+ useJunGroupedDnD,
14
+ useJunMediaImport,
15
+ useJunPageType,
16
+ useJunPlayer,
17
+ useJunRename,
18
+ useJunStudio,
19
+ useJunUpload,
20
+ useJunViewingAccent
21
+ } from "#imports";
22
+ const props = defineProps({
23
+ docId: { type: String, required: true },
24
+ docLabel: { type: String, required: false },
25
+ docMeta: { type: Object, required: false },
26
+ childProvider: { type: null, required: false },
27
+ editable: { type: Boolean, required: false }
28
+ });
29
+ const abra = useAbracadabra();
30
+ const tree = useChildTree(abra.doc, props.docId);
31
+ const { getEntry } = useDocTree();
32
+ const { getDocUrl } = useDocSlugs();
33
+ const { editing } = useJunStudio();
34
+ const { renameDoc } = useJunRename();
35
+ const { uploadTo, imageFiles } = useJunUpload();
36
+ const { importMedia, audioFiles } = useJunMediaImport();
37
+ const { accentInsetStyle, accentTitle } = useJunViewingAccent();
38
+ const { peers } = useAwarenessPeers();
39
+ const player = useJunPlayer();
40
+ const { typeIdFor } = useJunPageType();
41
+ const trackType = computed(() => typeIdFor("track"));
42
+ const pageTitle = computed(() => getEntry(props.docId)?.label ?? props.docLabel ?? "Festival");
43
+ const subtitle = computed(() => {
44
+ const meta = getEntry(props.docId)?.meta;
45
+ const ex = meta?.excerpt ?? props.docMeta?.excerpt;
46
+ return typeof ex === "string" && ex.trim() ? ex : void 0;
47
+ });
48
+ function renamePage(t) {
49
+ renameDoc(props.docId, t);
50
+ }
51
+ function renameSubtitle(s) {
52
+ tree.updateMeta(props.docId, { excerpt: s || void 0 });
53
+ }
54
+ const items = computed(
55
+ () => (tree.childrenOf(null) ?? []).filter((e) => !!e.label)
56
+ );
57
+ const declaredStages = computed(() => {
58
+ const raw = getEntry(props.docId)?.meta?.stages;
59
+ if (typeof raw === "string") return raw.split(",").map((s) => s.trim()).filter(Boolean);
60
+ if (Array.isArray(raw)) return raw.map(String).filter(Boolean);
61
+ return [];
62
+ });
63
+ const listEl = ref(null);
64
+ const {
65
+ orderedItems,
66
+ dragId,
67
+ hoverGroup,
68
+ onItemDragStart,
69
+ onItemDragEnd,
70
+ onGroupDragOver,
71
+ onGroupDragLeave,
72
+ onGroupDrop
73
+ } = useJunGroupedDnD({
74
+ tree,
75
+ containerDocId: props.docId,
76
+ items,
77
+ containerEl: listEl,
78
+ groupKey: "stage",
79
+ groupValueFor: (stage) => stage === "__unsorted" ? void 0 : stage,
80
+ ghostIconFor: () => "i-lucide-music-2"
81
+ });
82
+ const sections = computed(() => {
83
+ const all = orderedItems.value;
84
+ const seen = /* @__PURE__ */ new Set();
85
+ const out = [];
86
+ for (const stage of declaredStages.value) {
87
+ seen.add(stage);
88
+ out.push({ key: stage, title: stage, items: all.filter((t) => t.meta?.stage === stage) });
89
+ }
90
+ for (const track of all) {
91
+ const stage = track.meta?.stage;
92
+ if (!stage || seen.has(stage)) continue;
93
+ seen.add(stage);
94
+ out.push({ key: stage, title: stage, items: all.filter((t) => t.meta?.stage === stage) });
95
+ }
96
+ const unsorted = all.filter((t) => !t.meta?.stage);
97
+ if (unsorted.length || !out.length && editing.value) {
98
+ out.push({ key: "__unsorted", title: declaredStages.value.length ? "Unsorted" : "All tracks", items: unsorted });
99
+ }
100
+ return out.filter((s) => s.items.length || editing.value);
101
+ });
102
+ const selectedStage = ref(null);
103
+ const visibleSections = computed(
104
+ () => selectedStage.value ? sections.value.filter((s) => s.key === selectedStage.value) : sections.value
105
+ );
106
+ function toTrack(entry, stage) {
107
+ return {
108
+ id: entry.id,
109
+ label: entry.label,
110
+ artist: entry.meta?.mediaArtist,
111
+ album: entry.meta?.mediaAlbum,
112
+ duration: entry.meta?.mediaDuration,
113
+ uploadId: entry.meta?.mediaUploadId,
114
+ mimeType: entry.meta?.mediaMimeType,
115
+ url: entry.meta?.audioUrl,
116
+ coverUploadId: entry.meta?.coverUploadId,
117
+ coverMimeType: entry.meta?.coverMimeType,
118
+ href: getDocUrl(entry.id),
119
+ stage: stage ?? entry.meta?.stage
120
+ };
121
+ }
122
+ const visibleTracks = computed(
123
+ () => visibleSections.value.flatMap((section) => section.items.map((t) => toTrack(t, section.title)))
124
+ );
125
+ function playable(entry) {
126
+ return !!(entry.meta?.mediaUploadId || entry.meta?.audioUrl);
127
+ }
128
+ function playFrom(entry) {
129
+ if (!playable(entry)) return;
130
+ const queue = visibleTracks.value;
131
+ const at = queue.findIndex((t) => t.id === entry.id);
132
+ player.playQueue(queue, at < 0 ? 0 : at);
133
+ }
134
+ function playAll(shuffle = false) {
135
+ const queue = visibleTracks.value.filter((t) => t.uploadId || t.url);
136
+ if (!queue.length) return;
137
+ if (shuffle && !player.shuffle.value) player.toggleShuffle();
138
+ player.playQueue(queue, 0);
139
+ }
140
+ const listeners = computed(() => {
141
+ const out = [];
142
+ for (const p of peers.value) {
143
+ const state = p;
144
+ const t = state.junTrack;
145
+ if (!t?.id || !t.label) continue;
146
+ out.push({
147
+ clientId: p.clientId,
148
+ name: p.user?.name || "Traveller",
149
+ color: p.user?.color || "var(--ui-text-muted)",
150
+ track: t.label,
151
+ trackId: t.id
152
+ });
153
+ }
154
+ return out;
155
+ });
156
+ function tuneIn(listener) {
157
+ const entry = items.value.find((t) => t.id === listener.trackId);
158
+ if (entry) playFrom(entry);
159
+ }
160
+ const fileInput = ref(null);
161
+ const dropActive = ref(false);
162
+ const importing = ref(false);
163
+ async function addTracks(files, stage) {
164
+ const audio = files.filter(junIsAudioFile);
165
+ if (!audio.length || importing.value) return;
166
+ importing.value = true;
167
+ try {
168
+ for (const file of audio) {
169
+ await importMedia(file, props.docId, {
170
+ type: trackType.value,
171
+ meta: stage ? { stage } : {}
172
+ });
173
+ }
174
+ } finally {
175
+ importing.value = false;
176
+ }
177
+ }
178
+ function onFilesPicked(e) {
179
+ const input = e.target;
180
+ if (input.files) void addTracks(Array.from(input.files));
181
+ input.value = "";
182
+ }
183
+ function onPageDragOver(e) {
184
+ if (!editing.value || !e.dataTransfer?.types.includes("Files")) return;
185
+ e.preventDefault();
186
+ e.dataTransfer.dropEffect = "copy";
187
+ dropActive.value = true;
188
+ }
189
+ function onPageDragLeave(e) {
190
+ const related = e.relatedTarget;
191
+ if (related && e.currentTarget.contains(related)) return;
192
+ dropActive.value = false;
193
+ }
194
+ function onPageDrop(e) {
195
+ if (!editing.value) return;
196
+ const audio = audioFiles(e.dataTransfer);
197
+ if (!audio.length) return;
198
+ e.preventDefault();
199
+ dropActive.value = false;
200
+ void addTracks(audio);
201
+ }
202
+ function addStage() {
203
+ const existing = declaredStages.value;
204
+ const name = `Stage ${existing.length + 1}`;
205
+ tree.updateMeta(props.docId, { stages: [...existing, name].join(", ") });
206
+ }
207
+ const artDropId = ref(null);
208
+ function onRowDragOver(entry, e) {
209
+ if (!editing.value || !e.dataTransfer?.types.includes("Files")) return;
210
+ e.stopPropagation();
211
+ e.preventDefault();
212
+ e.dataTransfer.dropEffect = "copy";
213
+ artDropId.value = entry.id;
214
+ }
215
+ async function onRowDrop(entry, e) {
216
+ if (!editing.value) return;
217
+ const img = imageFiles(e.dataTransfer)[0];
218
+ const audio = audioFiles(e.dataTransfer)[0];
219
+ if (!img && !audio) return;
220
+ e.stopPropagation();
221
+ e.preventDefault();
222
+ artDropId.value = null;
223
+ if (img) {
224
+ const res = await uploadTo(entry.id, img);
225
+ if (res) tree.updateMeta(entry.id, { coverUploadId: res.id, coverMimeType: res.mimeType });
226
+ }
227
+ if (audio) await attachAudio(entry, audio);
228
+ }
229
+ async function attachAudio(entry, file) {
230
+ importing.value = true;
231
+ try {
232
+ const res = await uploadTo(entry.id, file);
233
+ if (!res) return;
234
+ const treeEntry = tree.treeMap.get(entry.id);
235
+ if (!treeEntry) return;
236
+ tree.treeMap.set(entry.id, {
237
+ ...treeEntry,
238
+ ...trackType.value ? { type: trackType.value } : {},
239
+ meta: { ...treeEntry.meta ?? {}, mediaUploadId: res.id, mediaMimeType: res.mimeType },
240
+ updatedAt: Date.now()
241
+ });
242
+ } finally {
243
+ importing.value = false;
244
+ }
245
+ }
246
+ const totalPlayable = computed(() => items.value.filter(playable).length);
247
+ </script>
248
+
249
+ <template>
250
+ <div
251
+ class="relative mx-auto w-full max-w-6xl rounded-xl px-4 pt-12 pb-16 transition-shadow duration-200 sm:px-8"
252
+ :class="dropActive ? 'ring-2 ring-inset ring-black/20 dark:ring-white/25' : ''"
253
+ @dragover="onPageDragOver"
254
+ @dragleave="onPageDragLeave"
255
+ @drop="onPageDrop"
256
+ >
257
+ <JunPageHero
258
+ :title="pageTitle"
259
+ :subtitle="subtitle"
260
+ :editable="editing"
261
+ @rename="renamePage"
262
+ @rename-subtitle="renameSubtitle"
263
+ />
264
+
265
+ <div class="mb-6 flex flex-wrap items-center gap-2">
266
+ <UButton
267
+ icon="i-lucide-play"
268
+ size="sm"
269
+ color="neutral"
270
+ variant="soft"
271
+ label="Play all"
272
+ :disabled="!totalPlayable"
273
+ @click="playAll(false)"
274
+ />
275
+ <UButton
276
+ icon="i-lucide-shuffle"
277
+ size="sm"
278
+ color="neutral"
279
+ variant="ghost"
280
+ label="Shuffle"
281
+ :disabled="!totalPlayable"
282
+ @click="playAll(true)"
283
+ />
284
+ <span
285
+ v-if="totalPlayable"
286
+ class="text-xs text-dimmed"
287
+ >
288
+ {{ totalPlayable }} track{{ totalPlayable === 1 ? "" : "s" }}
289
+ </span>
290
+
291
+ <template v-if="editing">
292
+ <div class="mx-1 h-4 w-px bg-black/10 dark:bg-white/10" />
293
+ <input
294
+ ref="fileInput"
295
+ type="file"
296
+ accept="audio/*"
297
+ multiple
298
+ class="hidden"
299
+ @change="onFilesPicked"
300
+ >
301
+ <UButton
302
+ icon="i-lucide-music-4"
303
+ size="sm"
304
+ color="neutral"
305
+ variant="soft"
306
+ :loading="importing"
307
+ label="Add tracks"
308
+ @click="fileInput?.click()"
309
+ />
310
+ <UButton
311
+ icon="i-lucide-plus"
312
+ size="sm"
313
+ color="neutral"
314
+ variant="ghost"
315
+ label="Add stage"
316
+ @click="addStage"
317
+ />
318
+ <span class="text-xs text-dimmed">or drop audio files anywhere</span>
319
+ </template>
320
+ </div>
321
+
322
+ <!-- Who else is here, and what they have on. Presence, not a feature you
323
+ have to switch on: it is the difference between a library and a
324
+ festival. -->
325
+ <div
326
+ v-if="listeners.length"
327
+ class="mb-6 flex flex-wrap items-center gap-2"
328
+ >
329
+ <span class="text-xs tracking-[0.2em] text-dimmed uppercase">Listening</span>
330
+ <button
331
+ v-for="l in listeners"
332
+ :key="l.clientId"
333
+ type="button"
334
+ class="flex cursor-pointer items-center gap-2 rounded-full bg-black/5 px-2.5 py-1 text-xs transition-colors hover:bg-black/10 dark:bg-white/10 dark:hover:bg-white/15"
335
+ :title="`Tune in to ${l.track}`"
336
+ @click="tuneIn(l)"
337
+ >
338
+ <span
339
+ class="size-2 rounded-full"
340
+ :style="{ background: l.color }"
341
+ />
342
+ <span class="text-default">{{ l.name }}</span>
343
+ <span class="max-w-32 truncate text-dimmed">{{ l.track }}</span>
344
+ </button>
345
+ </div>
346
+
347
+ <div
348
+ v-if="!items.length && !editing"
349
+ class="py-16 text-center"
350
+ >
351
+ <UIcon
352
+ name="i-lucide-disc-3"
353
+ class="mb-3 size-10 text-dimmed"
354
+ />
355
+ <p class="text-sm text-muted">
356
+ The stages are quiet.
357
+ </p>
358
+ </div>
359
+
360
+ <div
361
+ v-else
362
+ class="flex flex-col gap-6 lg:flex-row lg:gap-8"
363
+ >
364
+ <!-- ── Stage rail ─────────────────────────────────────────────────── -->
365
+ <!-- A scrolling chip row below `lg`, a sidebar above it. Same markup,
366
+ same drop targets; only the axis changes. -->
367
+ <nav
368
+ class="-mx-1 flex shrink-0 gap-1.5 overflow-x-auto px-1 pb-1 lg:mx-0 lg:w-48 lg:flex-col lg:overflow-visible lg:pb-0"
369
+ aria-label="Stages"
370
+ >
371
+ <button
372
+ type="button"
373
+ class="shrink-0 cursor-pointer rounded-lg px-3 py-1.5 text-left text-sm transition-colors"
374
+ :class="selectedStage === null ? 'bg-black/8 text-highlighted dark:bg-white/12' : 'text-muted hover:bg-black/5 dark:hover:bg-white/5'"
375
+ @click="selectedStage = null"
376
+ >
377
+ Everything
378
+ </button>
379
+ <button
380
+ v-for="section in sections"
381
+ :key="section.key"
382
+ type="button"
383
+ class="flex shrink-0 cursor-pointer items-center gap-2 rounded-lg px-3 py-1.5 text-left text-sm transition-colors"
384
+ :class="[
385
+ selectedStage === section.key ? 'bg-black/8 text-highlighted dark:bg-white/12' : 'text-muted hover:bg-black/5 dark:hover:bg-white/5',
386
+ hoverGroup === section.key ? 'ring-2 ring-black/20 dark:ring-white/25' : ''
387
+ ]"
388
+ @click="selectedStage = selectedStage === section.key ? null : section.key"
389
+ @dragover="onGroupDragOver(section.key, $event)"
390
+ @dragleave="onGroupDragLeave($event)"
391
+ @drop="onGroupDrop(section.key, $event)"
392
+ >
393
+ <span class="min-w-0 flex-1 truncate">{{ section.title }}</span>
394
+ <span class="text-xs tabular-nums text-dimmed">{{ section.items.length }}</span>
395
+ </button>
396
+ </nav>
397
+
398
+ <!-- ── Track table ────────────────────────────────────────────────── -->
399
+ <div
400
+ ref="listEl"
401
+ class="min-w-0 flex-1"
402
+ >
403
+ <section
404
+ v-for="section in visibleSections"
405
+ :key="section.key"
406
+ class="mb-8 rounded-xl transition-shadow duration-200 last:mb-0"
407
+ :class="hoverGroup === section.key ? 'ring-2 ring-inset ring-black/20 dark:ring-white/25' : ''"
408
+ @dragover="onGroupDragOver(section.key, $event)"
409
+ @dragleave="onGroupDragLeave($event)"
410
+ @drop="onGroupDrop(section.key, $event)"
411
+ >
412
+ <div class="mb-2 flex items-baseline gap-3 px-1">
413
+ <h2 class="text-xs font-medium tracking-[0.22em] text-dimmed uppercase">
414
+ {{ section.title }}
415
+ </h2>
416
+ <div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
417
+ </div>
418
+
419
+ <TransitionGroup
420
+ tag="ul"
421
+ name="jun-festival"
422
+ class="flex flex-col"
423
+ >
424
+ <li
425
+ v-for="(entry, i) in section.items"
426
+ :key="entry.id"
427
+ v-motion="junMotion(junStagger(Math.min(i, 10), { delayMs: 35 }))"
428
+ :data-dnd-id="entry.id"
429
+ :draggable="editing ? true : void 0"
430
+ class="group relative rounded-lg transition-colors"
431
+ :class="[
432
+ player.isCurrent(entry.id) ? 'bg-black/5 dark:bg-white/8' : 'hover:bg-black/[0.035] dark:hover:bg-white/5',
433
+ editing ? dragId === entry.id ? 'cursor-grabbing opacity-80' : 'cursor-grab' : '',
434
+ artDropId === entry.id ? 'ring-2 ring-black/40 dark:ring-white/50' : ''
435
+ ]"
436
+ @dragstart="onItemDragStart(entry, $event)"
437
+ @dragend="onItemDragEnd($event)"
438
+ @dragover="onRowDragOver(entry, $event)"
439
+ @dragleave="artDropId === entry.id && (artDropId = null)"
440
+ @drop="onRowDrop(entry, $event)"
441
+ >
442
+ <JunItemMenu
443
+ :entry="entry"
444
+ :tree="tree"
445
+ :siblings="section.items.map((e) => e.id)"
446
+ no-open
447
+ >
448
+ <div
449
+ class="flex items-center gap-3 px-2 py-2"
450
+ :title="accentTitle(entry.id)"
451
+ >
452
+ <span
453
+ v-if="accentInsetStyle(entry.id)"
454
+ aria-hidden="true"
455
+ class="pointer-events-none absolute inset-0 rounded-[inherit]"
456
+ :style="accentInsetStyle(entry.id)"
457
+ />
458
+
459
+ <!-- Index, replaced by a play button on hover. A row with no
460
+ audio keeps its number: there is nothing to press. -->
461
+ <span class="relative w-6 shrink-0 text-center text-xs tabular-nums text-dimmed">
462
+ <span :class="playable(entry) ? 'group-hover:opacity-0' : ''">
463
+ <UIcon
464
+ v-if="player.isCurrent(entry.id) && player.playing.value"
465
+ name="i-lucide-audio-lines"
466
+ class="size-3.5 text-highlighted"
467
+ />
468
+ <template v-else>{{ i + 1 }}</template>
469
+ </span>
470
+ <button
471
+ v-if="playable(entry)"
472
+ type="button"
473
+ class="absolute inset-0 flex cursor-pointer items-center justify-center opacity-0 transition-opacity group-hover:opacity-100"
474
+ :aria-label="`Play ${entry.label}`"
475
+ @click.stop="playFrom(entry)"
476
+ >
477
+ <UIcon
478
+ :name="player.isCurrent(entry.id) && player.playing.value ? 'i-lucide-pause' : 'i-lucide-play'"
479
+ class="size-3.5 text-highlighted"
480
+ />
481
+ </button>
482
+ </span>
483
+
484
+ <span class="relative flex size-10 shrink-0 items-center justify-center overflow-hidden rounded-md bg-black/5 ring-1 ring-black/5 dark:bg-white/10 dark:ring-white/10">
485
+ <JunMedia
486
+ v-if="entry.meta?.coverUploadId"
487
+ :doc-id="entry.id"
488
+ :upload-id="entry.meta.coverUploadId"
489
+ :mime-type="entry.meta.coverMimeType || 'image/jpeg'"
490
+ :alt="entry.label"
491
+ :size="128"
492
+ media-class="h-full w-full object-cover"
493
+ />
494
+ <UIcon
495
+ v-else
496
+ name="i-lucide-music-2"
497
+ class="size-4 text-dimmed"
498
+ />
499
+ </span>
500
+
501
+ <NuxtLink
502
+ :to="getDocUrl(entry.id)"
503
+ class="min-w-0 flex-1"
504
+ >
505
+ <span
506
+ class="block truncate text-sm font-medium"
507
+ :class="player.isCurrent(entry.id) ? 'text-highlighted' : 'text-default'"
508
+ >
509
+ {{ entry.label }}
510
+ </span>
511
+ <span class="block truncate text-xs text-muted">
512
+ {{ entry.meta?.mediaArtist || (playable(entry) ? "\u2014" : "No audio yet") }}
513
+ </span>
514
+ </NuxtLink>
515
+
516
+ <span class="hidden min-w-0 flex-1 truncate text-xs text-muted sm:block">
517
+ {{ entry.meta?.mediaAlbum || "" }}
518
+ </span>
519
+
520
+ <a
521
+ v-if="entry.meta?.url"
522
+ :href="entry.meta.url"
523
+ target="_blank"
524
+ rel="noopener noreferrer"
525
+ class="shrink-0 text-dimmed transition-colors hover:text-default"
526
+ aria-label="Listen elsewhere"
527
+ @click.stop
528
+ >
529
+ <UIcon
530
+ name="i-lucide-arrow-up-right"
531
+ class="size-3.5"
532
+ />
533
+ </a>
534
+
535
+ <span class="w-10 shrink-0 text-right text-xs tabular-nums text-dimmed">
536
+ {{ entry.meta?.mediaDuration ? junFormatTime(entry.meta.mediaDuration) : "\u2014" }}
537
+ </span>
538
+ </div>
539
+ </JunItemMenu>
540
+ </li>
541
+ </TransitionGroup>
542
+
543
+ <p
544
+ v-if="editing && !section.items.length"
545
+ class="px-3 py-2 text-xs text-dimmed italic"
546
+ >
547
+ Empty stage — drag a track here.
548
+ </p>
549
+ </section>
550
+ </div>
551
+ </div>
552
+ </div>
553
+ </template>
554
+
555
+ <style scoped>
556
+ .jun-festival-move{transition:transform .3s cubic-bezier(.22,1,.36,1)}.jun-festival-enter-active{transition:opacity .28s ease,transform .28s cubic-bezier(.22,1,.36,1)}.jun-festival-leave-active{position:absolute;transition:opacity .18s ease}.jun-festival-enter-from,.jun-festival-leave-to{opacity:0;transform:translateY(-4px)}@media (prefers-reduced-motion:reduce){.jun-festival-enter-active,.jun-festival-leave-active,.jun-festival-move{transition:none}}
557
+ </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;
@@ -0,0 +1,91 @@
1
+ <script setup>
2
+ import { computed, ref, watch } from "vue";
3
+ import { useAbracadabra, useChildTree, useJunStudio, useJunSurface } from "#imports";
4
+ const props = defineProps({
5
+ docId: { type: String, required: true },
6
+ docLabel: { type: String, required: false },
7
+ docMeta: { type: Object, required: false },
8
+ childProvider: { type: null, required: false },
9
+ editable: { type: Boolean, required: false }
10
+ });
11
+ const abra = useAbracadabra();
12
+ const tree = useChildTree(abra.doc, props.docId);
13
+ const { editing } = useJunStudio();
14
+ const { isEmbedded } = useJunSurface();
15
+ const waypoints = computed(() => {
16
+ const arr = (tree.childrenOf(null) ?? []).filter((w) => !!w.label);
17
+ return [...arr].sort((a, b) => {
18
+ const da = a.meta?.date ? Date.parse(a.meta.date) : 0;
19
+ const db = b.meta?.date ? Date.parse(b.meta.date) : 0;
20
+ return da - db;
21
+ });
22
+ });
23
+ const awareness = computed(
24
+ () => props.childProvider?.awareness ?? null
25
+ );
26
+ const mapRef = ref(null);
27
+ const editorRef = ref(null);
28
+ const mapReady = ref(false);
29
+ const selectedId = ref(null);
30
+ const adding = ref(false);
31
+ watch(
32
+ waypoints,
33
+ (wps) => {
34
+ if (!selectedId.value && wps.length) selectedId.value = wps[wps.length - 1].id;
35
+ },
36
+ { immediate: true }
37
+ );
38
+ function onSelect(wp) {
39
+ selectedId.value = wp.id;
40
+ mapRef.value?.flyTo(wp);
41
+ }
42
+ function onFocusRoute(a, b, selectId) {
43
+ selectedId.value = selectId ?? b.id;
44
+ mapRef.value?.fitRoute(a, b);
45
+ }
46
+ function onMapAdd(at) {
47
+ editorRef.value?.addAt(at);
48
+ adding.value = false;
49
+ }
50
+ </script>
51
+
52
+ <template>
53
+ <!-- Embedded, the root pins to its container AND takes paint containment,
54
+ which makes it the containing block for the `position: fixed` children
55
+ below. Without that the timeline would dock to the VIEWPORT bottom and
56
+ the editor's panels would float against the screen — both punching
57
+ straight out of the slideover the root just agreed to stay inside. -->
58
+ <div
59
+ class="bg-black"
60
+ :class="isEmbedded ? 'absolute inset-0 [contain:layout_paint]' : 'fixed inset-0'"
61
+ >
62
+ <JunGlobeMap
63
+ ref="mapRef"
64
+ :waypoints="waypoints"
65
+ :selected-id="selectedId"
66
+ :adding="adding"
67
+ :awareness="awareness"
68
+ @ready="mapReady = true"
69
+ @select="onSelect"
70
+ @mapadd="onMapAdd"
71
+ />
72
+
73
+ <JunHorizontalTimeline
74
+ :waypoints="waypoints"
75
+ :selected-id="selectedId"
76
+ :ready="mapReady"
77
+ @select="onSelect"
78
+ @focus-route="onFocusRoute"
79
+ />
80
+
81
+ <JunGlobeEditor
82
+ v-if="editing"
83
+ ref="editorRef"
84
+ v-model:adding="adding"
85
+ :tree="tree"
86
+ :waypoints="waypoints"
87
+ :map="mapRef"
88
+ @select="onSelect"
89
+ />
90
+ </div>
91
+ </template>
@@ -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;