@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 @@
1
+ export const JUN_RUNTIME_BACKDROPS = ["blobs", "dots", "grid", "aurora", "mesh", "rings", "waves", "noise", "solid"];
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Date formatting for renderers.
3
+ *
4
+ * The reference site hard-coded `"en-US"` in every renderer, so a German
5
+ * visitor read "July 4, 2026" on a German site. These pass `undefined` as the
6
+ * locale, which means "the visitor's own" — the right default for a module that
7
+ * has no idea whose site it is running.
8
+ *
9
+ * That is safe here only because page-type renderers are CLIENT-ONLY (the
10
+ * generated registration plugin is `.client`), so there is no server render of
11
+ * these strings to mismatch against. **Do not use them in SSR'd chrome or in a
12
+ * Nitro route** — a server formatting under the container's locale and a
13
+ * browser formatting under the visitor's produce different text, and Vue
14
+ * reports a hydration mismatch. `junDateIso()` is the SSR-safe one.
15
+ */
16
+ /** A date that may be an ISO string, an epoch number, or absent. */
17
+ export type JunDateInput = string | number | null | undefined;
18
+ /**
19
+ * "4 July 2026" — the article dateline.
20
+ *
21
+ * Unparseable input is returned VERBATIM rather than dropped: a hand-typed
22
+ * `meta.date` of "Summer 2019" is a legitimate thing for an owner to write,
23
+ * and blanking it would look like data loss.
24
+ */
25
+ export declare function junDateLong(value: JunDateInput): string;
26
+ /** "4 Jul" — feed cards, where the year is noise. */
27
+ export declare function junDateShort(value: JunDateInput): string;
28
+ /** `YYYY-MM-DD`, locale-independent — `<time datetime>`, JSON-LD, SSR. */
29
+ export declare function junDateIso(value: JunDateInput): string;
30
+ /**
31
+ * Sort key for a possibly-missing date.
32
+ *
33
+ * Missing dates sort LAST in a newest-first list, never first — an undated
34
+ * child created under another page type must not displace real content at the
35
+ * top of a feed. (`Date.parse` of nothing is `NaN`, and every `NaN` comparison
36
+ * is false, which leaves such items wherever the sort happens to drop them.)
37
+ */
38
+ export declare function junDateSortDesc(a: JunDateInput, b: JunDateInput): number;
@@ -0,0 +1,30 @@
1
+ function parse(value) {
2
+ if (value === null || value === void 0 || value === "") return null;
3
+ const d = new Date(value);
4
+ return Number.isNaN(d.getTime()) ? null : d;
5
+ }
6
+ export function junDateLong(value) {
7
+ const d = parse(value);
8
+ if (!d) return value ? String(value) : "";
9
+ return d.toLocaleDateString(void 0, {
10
+ year: "numeric",
11
+ month: "long",
12
+ day: "numeric"
13
+ });
14
+ }
15
+ export function junDateShort(value) {
16
+ const d = parse(value);
17
+ if (!d) return value ? String(value) : "";
18
+ return d.toLocaleDateString(void 0, { month: "short", day: "numeric" });
19
+ }
20
+ export function junDateIso(value) {
21
+ return parse(value)?.toISOString().slice(0, 10) ?? "";
22
+ }
23
+ export function junDateSortDesc(a, b) {
24
+ const ta = parse(a)?.getTime();
25
+ const tb = parse(b)?.getTime();
26
+ if (ta === void 0 && tb === void 0) return 0;
27
+ if (ta === void 0) return 1;
28
+ if (tb === void 0) return -1;
29
+ return tb - ta;
30
+ }
@@ -0,0 +1,62 @@
1
+ /**
2
+ * junDndGeometry — the ONE reorder rule, shared by every drag surface.
3
+ *
4
+ * There were two implementations of "where should the dragged item go now", and
5
+ * both were wrong in the same way:
6
+ *
7
+ * > **Nearest-slot oscillates.** Move the item next to whichever slot centre is
8
+ * > closest, and the moment you swap with a neighbour the item you just
9
+ * > displaced becomes the closest one — so the next `dragover`, 60 a second,
10
+ * > swaps it straight back. Two adjacent items then flicker against each other
11
+ * > for as long as the pointer hovers between them. It looked stable in the
12
+ * > apps grid only because its slots are far apart; the wall, the reading list
13
+ * > and every dense list showed it immediately.
14
+ *
15
+ * The rule here has no fixed point. You move PAST a sibling only once the
16
+ * pointer is past that sibling's centre **in the direction you are travelling**
17
+ * — and once you have moved, the sibling is behind you and no longer qualifies.
18
+ * It is the rule the navbar's track has always used; this is that rule
19
+ * generalised to two dimensions so a grid can share it.
20
+ *
21
+ * "Direction" in a wrapping grid means READING ORDER: down a row boundary, or
22
+ * across within a row. `rowTol` is what decides "within a row" — half the
23
+ * slot's height, so two tiles side by side count as the same row and two tiles
24
+ * stacked do not.
25
+ */
26
+ /**
27
+ * A slot's settled centre: its live rect with its own transform translation
28
+ * subtracted.
29
+ *
30
+ * During a FLIP move `getBoundingClientRect()` reports MID-FLIGHT rects, so
31
+ * measuring them directly makes the reorder maths chase its own animation.
32
+ * Layout position is stable regardless of animation state.
33
+ */
34
+ export declare function junSlotCenter(el: HTMLElement): {
35
+ x: number;
36
+ y: number;
37
+ w: number;
38
+ h: number;
39
+ };
40
+ /**
41
+ * The single move this pointer position justifies, or `null` for none.
42
+ *
43
+ * Returns indices into `order` rather than mutating it, so the caller keeps
44
+ * ownership of its working copy — and so this is testable without a DOM
45
+ * mutation. **One move per event**: re-running against a list that was just
46
+ * mutated is the other way to reintroduce the oscillation.
47
+ *
48
+ * @param order Ids in current display order — the caller's working copy.
49
+ * @param dragId The id being dragged.
50
+ * @param slots The rendered slot elements, each tagged `data-dnd-id`.
51
+ */
52
+ export declare function junReorderStep(order: string[], dragId: string, slots: HTMLElement[], x: number, y: number): {
53
+ from: number;
54
+ to: number;
55
+ } | null;
56
+ /**
57
+ * Where a document dragged in from ANOTHER surface should be inserted.
58
+ *
59
+ * Nearest-slot is right here and only here: it is a one-shot decision made at
60
+ * drop time, so there is no next frame for it to oscillate against.
61
+ */
62
+ export declare function junNearestSlotIndex(order: string[], slots: HTMLElement[], x: number, y: number): number;
@@ -0,0 +1,56 @@
1
+ export function junSlotCenter(el) {
2
+ const r = el.getBoundingClientRect();
3
+ let tx = 0;
4
+ let ty = 0;
5
+ const t = getComputedStyle(el).transform;
6
+ if (t && t !== "none") {
7
+ try {
8
+ const m = new DOMMatrixReadOnly(t);
9
+ tx = m.e;
10
+ ty = m.f;
11
+ } catch {
12
+ }
13
+ }
14
+ return {
15
+ x: r.left + r.width / 2 - tx,
16
+ y: r.top + r.height / 2 - ty,
17
+ w: r.width,
18
+ h: r.height
19
+ };
20
+ }
21
+ function isPast(x, y, c) {
22
+ const rowTol = c.h / 2;
23
+ if (y > c.y + rowTol) return true;
24
+ if (y < c.y - rowTol) return false;
25
+ return x > c.x;
26
+ }
27
+ export function junReorderStep(order, dragId, slots, x, y) {
28
+ const from = order.indexOf(dragId);
29
+ if (from < 0) return null;
30
+ for (const el of slots) {
31
+ const id = el.dataset.dndId;
32
+ if (!id || id === dragId) continue;
33
+ const to = order.indexOf(id);
34
+ if (to < 0) continue;
35
+ const past = isPast(x, y, junSlotCenter(el));
36
+ if (to > from && past || to < from && !past) return { from, to };
37
+ }
38
+ return null;
39
+ }
40
+ export function junNearestSlotIndex(order, slots, x, y) {
41
+ let nearest = order.length;
42
+ let nearestDist = Infinity;
43
+ for (const el of slots) {
44
+ const id = el.dataset.dndId;
45
+ if (!id) continue;
46
+ const idx = order.indexOf(id);
47
+ if (idx < 0) continue;
48
+ const c = junSlotCenter(el);
49
+ const dist = (x - c.x) ** 2 + (y - c.y) ** 2;
50
+ if (dist < nearestDist) {
51
+ nearestDist = dist;
52
+ nearest = idx;
53
+ }
54
+ }
55
+ return nearest;
56
+ }
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Document type → Lucide icon.
3
+ *
4
+ * Shared by the search overlay, breadcrumbs, sub-page lists, the graph and any
5
+ * other chrome that shows a document's icon.
6
+ *
7
+ * This map covers @abraca/nuxt's BUILT-IN types only. Icons for the module's
8
+ * own `jun-*` page types are NOT duplicated here — they come from the resolved
9
+ * `pageTypes` registration via `runtimeConfig`, so a site that renames or
10
+ * re-icons a type gets it everywhere for free. Use `useJunDocIcon()` (the
11
+ * composable) rather than `iconForDocType()` (this file) anywhere reactive
12
+ * config is available; the raw function exists for the handful of call sites
13
+ * that run outside a Nuxt context.
14
+ *
15
+ * `meta.icon` is stored as a BARE kebab-case Lucide name (`"balloon"`,
16
+ * `"code-2"`) by project convention, but Iconify needs a collection prefix —
17
+ * hence `normalizeIcon`.
18
+ */
19
+ /** @abraca/nuxt's built-in page types. */
20
+ export declare const JUN_BASE_TYPE_ICONS: Record<string, string>;
21
+ export declare const JUN_FALLBACK_ICON = "i-lucide-file-text";
22
+ /** Give a bare Lucide name its collection prefix; pass through anything prefixed. */
23
+ export declare function normalizeIcon(raw: string | undefined | null): string | undefined;
24
+ /**
25
+ * `meta.icon` wins, then the type's registered icon, then a plain file.
26
+ *
27
+ * `extraTypeIcons` carries the `jun-*` registrations; `useJunDocIcon()` passes
28
+ * them in from runtimeConfig.
29
+ */
30
+ export declare function iconForDocType(type: string | undefined | null, metaIcon?: string | undefined | null, extraTypeIcons?: Record<string, string>): string;
@@ -0,0 +1,30 @@
1
+ export const JUN_BASE_TYPE_ICONS = {
2
+ doc: "i-lucide-file-text",
3
+ prose: "i-lucide-text",
4
+ kanban: "i-lucide-kanban",
5
+ gallery: "i-lucide-images",
6
+ table: "i-lucide-table",
7
+ sheets: "i-lucide-grid-3x3",
8
+ outline: "i-lucide-list-tree",
9
+ calendar: "i-lucide-calendar",
10
+ checklist: "i-lucide-check-square",
11
+ timeline: "i-lucide-gantt-chart",
12
+ call: "i-lucide-phone",
13
+ graph: "i-lucide-git-fork",
14
+ chart: "i-lucide-chart-line",
15
+ dashboard: "i-lucide-layout-dashboard",
16
+ map: "i-lucide-map",
17
+ slides: "i-lucide-presentation",
18
+ media: "i-lucide-play",
19
+ code: "i-lucide-code",
20
+ spatial: "i-lucide-box"
21
+ };
22
+ export const JUN_FALLBACK_ICON = "i-lucide-file-text";
23
+ export function normalizeIcon(raw) {
24
+ if (!raw) return void 0;
25
+ if (raw.startsWith("i-") || raw.includes(":")) return raw;
26
+ return `i-lucide-${raw}`;
27
+ }
28
+ export function iconForDocType(type, metaIcon, extraTypeIcons) {
29
+ return normalizeIcon(metaIcon ?? void 0) ?? (type ? extraTypeIcons?.[type] ?? JUN_BASE_TYPE_ICONS[type] : void 0) ?? JUN_FALLBACK_ICON;
30
+ }
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Plain text of an editor's BODY — excluding the documentHeader (the document
3
+ * title renders INSIDE the editor as a node) and the documentMeta chip row.
4
+ *
5
+ * **Never use `editor.getText()` for this.** It includes both, which is what
6
+ * renamed every composer post to its placeholder title and corrupted the
7
+ * `meta.body` feed mirror on janis.io. Every "derive a label or a mirror from
8
+ * the body" consumer must go through this function.
9
+ */
10
+ export interface JunPmNodeLike {
11
+ type: {
12
+ name: string;
13
+ };
14
+ content: {
15
+ size: number;
16
+ };
17
+ textBetween: (from: number, to: number, blockSeparator?: string) => string;
18
+ }
19
+ /**
20
+ * The structural minimum this walk needs. Exported so consumers can type an
21
+ * editor ref against it instead of importing TipTap's own types — the editor
22
+ * component is resolved from `@abraca/nuxt`, whose internals are not part of
23
+ * its public export map.
24
+ */
25
+ export interface JunEditorLike {
26
+ state: {
27
+ doc: {
28
+ forEach: (cb: (node: JunPmNodeLike) => void) => void;
29
+ };
30
+ };
31
+ }
32
+ export declare function junEditorBodyText(editor: JunEditorLike | null | undefined): string;
@@ -0,0 +1,10 @@
1
+ export function junEditorBodyText(editor) {
2
+ if (!editor) return "";
3
+ let text = "";
4
+ editor.state.doc.forEach((node) => {
5
+ if (node.type.name === "documentHeader" || node.type.name === "documentMeta") return;
6
+ const t = node.textBetween(0, node.content.size, "\n");
7
+ if (t) text += (text ? "\n" : "") + t;
8
+ });
9
+ return text.trim();
10
+ }
@@ -0,0 +1 @@
1
+ export declare function junMapboxToken(): string;
@@ -0,0 +1,5 @@
1
+ import { useRuntimeConfig } from "#app";
2
+ export function junMapboxToken() {
3
+ const pub = useRuntimeConfig().public;
4
+ return pub.jun?.mapboxToken ?? pub.abracadabra?.mapboxToken ?? pub.abracadabra?.mapboxAccessToken ?? "";
5
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * junMatch — the one scoring function the palette ranks everything with.
3
+ *
4
+ * Pages, commands and filter chips are all matched here, so a command cannot
5
+ * quietly rank on a different scale than a page and end up permanently above
6
+ * or below it. The scale is the SAME one `server/api/search.get.ts` uses for
7
+ * documents (label-at-0 = 100, label-inside = 80, excerpt = 60, body = 45/40),
8
+ * which is what lets client hits and server hits merge into one sorted list
9
+ * without a normalisation pass.
10
+ *
11
+ * Four tiers, deliberately in this order:
12
+ *
13
+ * - **prefix** (100) — the query starts the text. What you meant.
14
+ * - **word prefix** (86) — it starts a WORD inside it. "mode" finding "Edit
15
+ * mode" must not lose to a substring hit in the middle of another word.
16
+ * - **substring** (72) — anywhere in the text.
17
+ * - **subsequence** (≤ 58) — the letters appear in order with gaps, which is
18
+ * what makes "npg" find "New page". Scored BELOW every literal tier and
19
+ * penalised by how scattered the letters are, because a loose subsequence
20
+ * match on a long string is nearly always noise: "eod" matches half a site.
21
+ *
22
+ * A subsequence match also requires every query character to be present, so it
23
+ * never widens the result set — it only reorders what a stricter matcher would
24
+ * have shown as nothing.
25
+ */
26
+ /** No match. Callers test `> 0`, never truthiness on a possible NaN. */
27
+ export declare const JUN_NO_MATCH = 0;
28
+ /**
29
+ * Score `text` against a lowercase `query`. Returns 0 when it does not match.
30
+ *
31
+ * `query` is expected pre-lowercased and pre-trimmed by the caller — this runs
32
+ * once per candidate per keystroke over the whole tree, and lowercasing the
33
+ * needle inside would do it thousands of times for no reason.
34
+ */
35
+ export declare function junMatchScore(text: string, query: string): number;
36
+ /**
37
+ * The best score across several texts, so a candidate with a label AND
38
+ * keywords is ranked by whichever of them the visitor actually typed.
39
+ *
40
+ * Keyword hits are worth slightly less than the same hit on the visible label:
41
+ * a row whose own name matches should sort above a row that merely lists the
42
+ * word as a synonym, or "dark" puts "Switch to light mode" (keyword: dark)
43
+ * above a page actually called "Dark".
44
+ */
45
+ export declare function junMatchBest(query: string, label: string, keywords?: string[]): number;
@@ -0,0 +1,37 @@
1
+ export const JUN_NO_MATCH = 0;
2
+ export function junMatchScore(text, query) {
3
+ if (!query) return JUN_NO_MATCH;
4
+ if (!text) return JUN_NO_MATCH;
5
+ const haystack = text.toLowerCase();
6
+ const idx = haystack.indexOf(query);
7
+ if (idx === 0) return 100;
8
+ if (idx > 0) {
9
+ const prev = haystack[idx - 1];
10
+ const boundary = prev === " " || prev === "-" || prev === "/" || prev === "_" || prev === "\xB7";
11
+ return boundary ? 86 : 72;
12
+ }
13
+ return subsequenceScore(haystack, query);
14
+ }
15
+ function subsequenceScore(haystack, query) {
16
+ let cursor = 0;
17
+ let first = -1;
18
+ let last = -1;
19
+ for (const ch of query) {
20
+ const at = haystack.indexOf(ch, cursor);
21
+ if (at < 0) return JUN_NO_MATCH;
22
+ if (first < 0) first = at;
23
+ last = at;
24
+ cursor = at + 1;
25
+ }
26
+ const spread = last - first + 1;
27
+ const tightness = query.length / Math.max(spread, 1);
28
+ return 30 + Math.round(tightness * 28);
29
+ }
30
+ export function junMatchBest(query, label, keywords = []) {
31
+ let best = junMatchScore(label, query);
32
+ for (const k of keywords) {
33
+ const score = junMatchScore(k, query);
34
+ if (score > 0) best = Math.max(best, score - 6);
35
+ }
36
+ return best;
37
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Typed meta schemas per page type.
3
+ *
4
+ * A `metaSchema` on a LIST type declares the chips its CHILD pages get in their
5
+ * embedded editor's meta header — `AEditor` resolves a document's schema by
6
+ * walking up to the nearest typed ancestor. The same vocabulary feeds the
7
+ * renderers' own `AMetaChip` rows, so the two can never drift.
8
+ *
9
+ * Consumed by the generated page-type plugin (see `module.ts`).
10
+ */
11
+ import type { JunPageTypeKey } from '../types.js';
12
+ /** Shared option lists — referenced by both the schemas and the renderers. */
13
+ export declare const JUN_APP_STATUSES: readonly ["idea", "building", "live", "archived"];
14
+ export declare const JUN_LIBRARY_STATUSES: readonly ["want", "reading", "read"];
15
+ export declare const JUN_USES_DEFAULT_CATEGORIES: readonly ["Hardware", "Software", "Desk", "Audio", "Everyday"];
16
+ /** Watch state. Ordered the way the shelves read: what's next, then what's done. */
17
+ export declare const JUN_CINEMA_STATUSES: readonly ["watchlist", "watching", "seen"];
18
+ /** The keyless service adapters. Mirrors `DEFAULT_SERVICE_ADAPTERS` in module.ts. */
19
+ export declare const JUN_SERVICE_PROVIDERS: readonly ["github-repo", "github-user", "npm", "crates", "rss", "http", "og"];
20
+ type MetaField = Record<string, unknown>;
21
+ /** The meta schema for a page type, or `undefined` when it declares none. */
22
+ export declare function junMetaSchema(key: JunPageTypeKey): MetaField[] | undefined;
23
+ export {};
@@ -0,0 +1,94 @@
1
+ export const JUN_APP_STATUSES = ["idea", "building", "live", "archived"];
2
+ export const JUN_LIBRARY_STATUSES = ["want", "reading", "read"];
3
+ export const JUN_USES_DEFAULT_CATEGORIES = [
4
+ "Hardware",
5
+ "Software",
6
+ "Desk",
7
+ "Audio",
8
+ "Everyday"
9
+ ];
10
+ export const JUN_CINEMA_STATUSES = ["watchlist", "watching", "seen"];
11
+ export const JUN_SERVICE_PROVIDERS = [
12
+ "github-repo",
13
+ "github-user",
14
+ "npm",
15
+ "crates",
16
+ "rss",
17
+ "http",
18
+ "og"
19
+ ];
20
+ const SCHEMAS = {
21
+ // A feed's schema describes the chips its CHILD entries get — `AEditor`
22
+ // walks up to the nearest typed ancestor — so these are the entry's fields,
23
+ // declared on the journal.
24
+ journal: [
25
+ { type: "date", key: "date", label: "Date" },
26
+ { type: "textarea", key: "excerpt", label: "Excerpt" },
27
+ { type: "tags", key: "tags", label: "Tags" }
28
+ ],
29
+ links: [
30
+ { type: "url", key: "url", label: "Link URL" },
31
+ { type: "icon", key: "icon", label: "Icon" },
32
+ { type: "text", key: "description", label: "Description" }
33
+ ],
34
+ cv: [
35
+ { type: "daterange", startKey: "start", endKey: "end", label: "Period", allowOpenEnd: true },
36
+ { type: "text", key: "place", label: "Place" },
37
+ { type: "icon", key: "icon", label: "Icon" },
38
+ { type: "text", key: "description", label: "Summary" }
39
+ ],
40
+ uses: [
41
+ { type: "select", key: "category", options: [...JUN_USES_DEFAULT_CATEGORIES], label: "Category" },
42
+ { type: "url", key: "url", label: "URL" },
43
+ { type: "icon", key: "icon", label: "Icon" },
44
+ { type: "text", key: "description", label: "Description" }
45
+ ],
46
+ library: [
47
+ { type: "select", key: "status", options: [...JUN_LIBRARY_STATUSES], label: "Status" },
48
+ { type: "text", key: "author", label: "Author" },
49
+ { type: "url", key: "url", label: "URL" }
50
+ ],
51
+ apps: [
52
+ { type: "select", key: "status", options: [...JUN_APP_STATUSES], label: "Status" },
53
+ { type: "url", key: "url", label: "URL" },
54
+ { type: "textarea", key: "description", label: "Description" }
55
+ ],
56
+ live: [
57
+ { type: "datetime", key: "date", label: "Date" },
58
+ { type: "location", latKey: "geoLat", lngKey: "geoLng", label: "Location" },
59
+ { type: "text", key: "location", label: "Place" },
60
+ { type: "text", key: "nowPlaying", label: "Now playing" }
61
+ ],
62
+ // A film's runtime and dimensions are NOT here: `useDocImport` extracts
63
+ // `mediaDuration`/`mediaWidth`/`mediaHeight` from the file itself, and a
64
+ // second, hand-typed field for the same fact is a field that disagrees.
65
+ cinema: [
66
+ { type: "select", key: "status", options: [...JUN_CINEMA_STATUSES], label: "Status" },
67
+ { type: "text", key: "year", label: "Year" },
68
+ { type: "text", key: "director", label: "Director" },
69
+ { type: "url", key: "videoUrl", label: "Video URL" },
70
+ { type: "tags", key: "tags", label: "Tags" }
71
+ ],
72
+ // Likewise `mediaArtist`/`mediaAlbum`/`mediaDuration` come from the file's own
73
+ // tags — they get chips because an owner legitimately corrects bad ID3 data,
74
+ // which is not the same as typing it in twice.
75
+ festival: [
76
+ { type: "text", key: "stage", label: "Stage" },
77
+ { type: "text", key: "mediaArtist", label: "Artist" },
78
+ { type: "text", key: "mediaAlbum", label: "Album" },
79
+ { type: "url", key: "audioUrl", label: "Audio URL" },
80
+ { type: "url", key: "url", label: "Listen on" }
81
+ ],
82
+ services: [
83
+ { type: "select", key: "provider", options: [...JUN_SERVICE_PROVIDERS], label: "Provider" },
84
+ { type: "text", key: "ref", label: "Reference" },
85
+ { type: "text", key: "group", label: "Group" }
86
+ ]
87
+ // `mosaic` declares none on purpose. Every key a pane carries — `paneDoc`,
88
+ // `paneSpan`, `paneRect`, `paneWidget` — is written by dragging, and is in
89
+ // `metaExcludeKeys` for exactly that reason: a chip for a grid rectangle is
90
+ // an editable string that can only be got wrong.
91
+ };
92
+ export function junMetaSchema(key) {
93
+ return SCHEMAS[key];
94
+ }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * `junMotion` — the typed escape hatch for `v-motion`.
3
+ *
4
+ * `@vueuse/motion` is INSTALLED by this module (see `autoInstall`), but its
5
+ * directive typing is registered by that package's own Nuxt plugin, which does
6
+ * not exist during the module's STANDALONE `vue-tsc` run. Every inline
7
+ * `v-motion="{ initial, enter }"` therefore fails the module's own typecheck
8
+ * with:
9
+ *
10
+ * Object literal may only specify known properties, and 'enter' does not
11
+ * exist in type 'Options<any>'
12
+ *
13
+ * …while compiling and running correctly inside a consuming app. Sixteen
14
+ * components in the reference site use the directive, so this needs one answer
15
+ * rather than a cast per file.
16
+ *
17
+ * Wrapping the variants keeps type checking exactly where it is useful — on
18
+ * the OBJECT, against the shape below — while handing the directive a value it
19
+ * will not re-check. Declaring `GlobalDirectives` was tried first and had no
20
+ * effect, and per-file `as any` would have scattered the same lie sixteen
21
+ * times with no argument checking at all.
22
+ *
23
+ * Usage:
24
+ *
25
+ * <div v-motion="junMotion({ initial: { opacity: 0, y: 12 }, enter: { opacity: 1, y: 0 } })">
26
+ */
27
+ /** A single motion state. Deliberately permissive — it mirrors CSS. */
28
+ export interface JunMotionState {
29
+ opacity?: number;
30
+ x?: number;
31
+ y?: number;
32
+ scale?: number;
33
+ rotate?: number;
34
+ transition?: {
35
+ duration?: number;
36
+ delay?: number;
37
+ type?: string;
38
+ stiffness?: number;
39
+ damping?: number;
40
+ mass?: number;
41
+ ease?: string | number[];
42
+ };
43
+ }
44
+ /**
45
+ * The lifecycle states `v-motion` understands. `visible*` variants drive on
46
+ * scroll; `enter` drives on mount.
47
+ */
48
+ export interface JunMotionVariants {
49
+ initial?: JunMotionState;
50
+ enter?: JunMotionState;
51
+ leave?: JunMotionState;
52
+ visible?: JunMotionState;
53
+ visibleOnce?: JunMotionState;
54
+ hovered?: JunMotionState;
55
+ tapped?: JunMotionState;
56
+ focused?: JunMotionState;
57
+ }
58
+ /**
59
+ * Pass motion variants to `v-motion` with the OBJECT type-checked and the
60
+ * directive value left unchecked.
61
+ *
62
+ * The return type is `any`, not `unknown`, and that is forced: the directive
63
+ * resolves to a declared `Options<any>` whose shape does not match what
64
+ * `v-motion` actually accepts, and `unknown` is not assignable to it
65
+ * ("Type 'unknown' is not assignable to type 'Options<any>'"). `any` is the
66
+ * only type that satisfies a declaration we do not control.
67
+ *
68
+ * The checking that matters is still there — on `variants`, at every call
69
+ * site, against `JunMotionVariants`.
70
+ */
71
+ export declare function junMotion(variants: JunMotionVariants): any;
@@ -0,0 +1,3 @@
1
+ export function junMotion(variants) {
2
+ return variants;
3
+ }
@@ -0,0 +1,21 @@
1
+ /**
2
+ * junServiceRef — turn a pasted URL into a provider + reference.
3
+ *
4
+ * The whole interaction design of the `services` page rests on this: adding a
5
+ * card is pasting a link, not filling in a form with a provider dropdown and an
6
+ * id field whose format you have to know. `github.com/tokio-rs/tokio` becomes
7
+ * `{ provider: 'github-repo', ref: 'tokio-rs/tokio' }`, and a URL nothing
8
+ * recognises falls back to the OpenGraph unfurl, which works on any page.
9
+ *
10
+ * Pure and dependency-free so it can be unit-tested — the sniffing rules are
11
+ * exactly the kind of thing that rots quietly when a host adds a path segment.
12
+ */
13
+ export interface JunServiceRef {
14
+ provider: string;
15
+ ref: string;
16
+ }
17
+ export declare function junServiceRef(raw: string | null | undefined): JunServiceRef | null;
18
+ /** Display name for a provider id. */
19
+ export declare function junServiceLabel(provider: string): string;
20
+ /** Lucide icon for a provider id. Kebab-case, `i-lucide-` prefixed. */
21
+ export declare function junServiceIcon(provider: string): string;