@abraca/junis 2.84.0 → 2.86.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 (178) hide show
  1. package/dist/module.d.mts +17 -2
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +270 -22
  4. package/dist/runtime/assets/css/jun.css +1 -1
  5. package/dist/runtime/components/JunBlobBackdrop.client.vue +1 -1
  6. package/dist/runtime/components/JunCampfirePresence.client.vue +75 -10
  7. package/dist/runtime/components/JunCollectionIntro.d.vue.ts +11 -0
  8. package/dist/runtime/components/JunCollectionIntro.vue +45 -0
  9. package/dist/runtime/components/JunCollectionIntro.vue.d.ts +11 -0
  10. package/dist/runtime/components/JunConfigRow.d.vue.ts +43 -0
  11. package/dist/runtime/components/JunConfigRow.vue +34 -0
  12. package/dist/runtime/components/JunConfigRow.vue.d.ts +43 -0
  13. package/dist/runtime/components/JunFooter.vue +1 -1
  14. package/dist/runtime/components/JunHead.vue +37 -5
  15. package/dist/runtime/components/JunHorizontalTimeline.d.vue.ts +30 -0
  16. package/dist/runtime/components/JunHorizontalTimeline.vue.d.ts +30 -0
  17. package/dist/runtime/components/JunLinksRow.d.vue.ts +16 -1
  18. package/dist/runtime/components/JunLinksRow.vue +17 -7
  19. package/dist/runtime/components/JunLinksRow.vue.d.ts +16 -1
  20. package/dist/runtime/components/JunLogo.vue +10 -45
  21. package/dist/runtime/components/JunMedia.client.d.vue.ts +1 -1
  22. package/dist/runtime/components/JunMedia.client.vue.d.ts +1 -1
  23. package/dist/runtime/components/JunNavigation.vue +21 -4
  24. package/dist/runtime/components/JunNoteLinks.d.vue.ts +6 -0
  25. package/dist/runtime/components/JunNoteLinks.vue +57 -0
  26. package/dist/runtime/components/JunNoteLinks.vue.d.ts +6 -0
  27. package/dist/runtime/components/JunPageHero.d.vue.ts +8 -2
  28. package/dist/runtime/components/JunPageHero.vue +15 -3
  29. package/dist/runtime/components/JunPageHero.vue.d.ts +8 -2
  30. package/dist/runtime/components/JunPatternBackdrop.client.vue +1 -1
  31. package/dist/runtime/components/JunReaders.d.vue.ts +11 -0
  32. package/dist/runtime/components/JunReaders.vue +99 -0
  33. package/dist/runtime/components/JunReaders.vue.d.ts +11 -0
  34. package/dist/runtime/components/JunSearch.client.vue +2 -2
  35. package/dist/runtime/components/JunSectionPresence.client.d.vue.ts +17 -0
  36. package/dist/runtime/components/JunSectionPresence.client.vue +99 -0
  37. package/dist/runtime/components/JunSectionPresence.client.vue.d.ts +17 -0
  38. package/dist/runtime/components/JunShaderBackdrop.client.vue +1 -1
  39. package/dist/runtime/components/JunThreadComposer.d.vue.ts +37 -0
  40. package/dist/runtime/components/JunThreadComposer.vue +54 -0
  41. package/dist/runtime/components/JunThreadComposer.vue.d.ts +37 -0
  42. package/dist/runtime/components/JunTravellersChip.vue +35 -5
  43. package/dist/runtime/components/JunVideoEmbed.client.d.vue.ts +1 -1
  44. package/dist/runtime/components/JunVideoEmbed.client.vue.d.ts +1 -1
  45. package/dist/runtime/components/JunViewControl.d.vue.ts +29 -0
  46. package/dist/runtime/components/JunViewControl.vue +340 -0
  47. package/dist/runtime/components/JunViewControl.vue.d.ts +29 -0
  48. package/dist/runtime/components/JunViewControls.d.vue.ts +27 -0
  49. package/dist/runtime/components/JunViewControls.vue +94 -0
  50. package/dist/runtime/components/JunViewControls.vue.d.ts +27 -0
  51. package/dist/runtime/components/renderers/JunAppsRenderer.vue +45 -4
  52. package/dist/runtime/components/renderers/JunCinemaRenderer.vue +42 -4
  53. package/dist/runtime/components/renderers/JunConfigRenderer.vue +362 -239
  54. package/dist/runtime/components/renderers/JunCourseRenderer.d.vue.ts +10 -0
  55. package/dist/runtime/components/renderers/JunCourseRenderer.vue +229 -0
  56. package/dist/runtime/components/renderers/JunCourseRenderer.vue.d.ts +10 -0
  57. package/dist/runtime/components/renderers/JunCvRenderer.vue +44 -6
  58. package/dist/runtime/components/renderers/JunDeckRenderer.d.vue.ts +9 -0
  59. package/dist/runtime/components/renderers/JunDeckRenderer.vue +370 -0
  60. package/dist/runtime/components/renderers/JunDeckRenderer.vue.d.ts +9 -0
  61. package/dist/runtime/components/renderers/JunEntryRenderer.vue +157 -31
  62. package/dist/runtime/components/renderers/JunFestivalRenderer.vue +42 -5
  63. package/dist/runtime/components/renderers/JunGardenRenderer.d.vue.ts +10 -0
  64. package/dist/runtime/components/renderers/JunGardenRenderer.vue +280 -0
  65. package/dist/runtime/components/renderers/JunGardenRenderer.vue.d.ts +10 -0
  66. package/dist/runtime/components/renderers/JunGuestbookRenderer.vue +96 -14
  67. package/dist/runtime/components/renderers/JunHomeRenderer.vue +31 -132
  68. package/dist/runtime/components/renderers/JunItemRenderer.d.vue.ts +10 -0
  69. package/dist/runtime/components/renderers/JunItemRenderer.vue +398 -0
  70. package/dist/runtime/components/renderers/JunItemRenderer.vue.d.ts +10 -0
  71. package/dist/runtime/components/renderers/JunJournalRenderer.vue +141 -11
  72. package/dist/runtime/components/renderers/JunLibraryRenderer.vue +295 -12
  73. package/dist/runtime/components/renderers/JunLinksRenderer.vue +33 -1
  74. package/dist/runtime/components/renderers/JunLiveRenderer.vue +38 -2
  75. package/dist/runtime/components/renderers/JunMosaicRenderer.vue +3 -2
  76. package/dist/runtime/components/renderers/JunMovieRenderer.vue +32 -5
  77. package/dist/runtime/components/renderers/JunNowRenderer.vue +40 -7
  78. package/dist/runtime/components/renderers/JunPollRenderer.d.vue.ts +9 -0
  79. package/dist/runtime/components/renderers/JunPollRenderer.vue +231 -0
  80. package/dist/runtime/components/renderers/JunPollRenderer.vue.d.ts +9 -0
  81. package/dist/runtime/components/renderers/JunProjectRenderer.vue +74 -18
  82. package/dist/runtime/components/renderers/JunServicesRenderer.vue +40 -2
  83. package/dist/runtime/components/renderers/JunStatsRenderer.vue +37 -50
  84. package/dist/runtime/components/renderers/JunThreadRenderer.d.vue.ts +9 -0
  85. package/dist/runtime/components/renderers/JunThreadRenderer.vue +304 -0
  86. package/dist/runtime/components/renderers/JunThreadRenderer.vue.d.ts +9 -0
  87. package/dist/runtime/components/renderers/JunTrackRenderer.vue +32 -4
  88. package/dist/runtime/components/renderers/JunUsesRenderer.vue +57 -13
  89. package/dist/runtime/components/renderers/JunWallRenderer.vue +60 -5
  90. package/dist/runtime/composables/useJunDeck.d.ts +66 -0
  91. package/dist/runtime/composables/useJunDeck.js +61 -0
  92. package/dist/runtime/composables/useJunDocPage.d.ts +14 -11
  93. package/dist/runtime/composables/useJunDocPage.js +67 -3
  94. package/dist/runtime/composables/useJunFollow.d.ts +65 -9
  95. package/dist/runtime/composables/useJunFollow.js +237 -20
  96. package/dist/runtime/composables/useJunGarden.d.ts +67 -0
  97. package/dist/runtime/composables/useJunGarden.js +92 -0
  98. package/dist/runtime/composables/useJunOptions.d.ts +1 -0
  99. package/dist/runtime/composables/useJunPresence.d.ts +26 -0
  100. package/dist/runtime/composables/useJunPresence.js +9 -2
  101. package/dist/runtime/composables/useJunSections.d.ts +73 -0
  102. package/dist/runtime/composables/useJunSections.js +117 -0
  103. package/dist/runtime/composables/useJunSettings.d.ts +1 -1
  104. package/dist/runtime/composables/useJunSettings.js +5 -1
  105. package/dist/runtime/composables/useJunSiteConfig.d.ts +37 -0
  106. package/dist/runtime/composables/useJunTheme.js +49 -50
  107. package/dist/runtime/composables/useJunViewOptions.d.ts +85 -0
  108. package/dist/runtime/composables/useJunViewOptions.js +63 -0
  109. package/dist/runtime/pages/doc.vue +14 -8
  110. package/dist/runtime/plugins/jun-sw.client.d.ts +2 -0
  111. package/dist/runtime/plugins/jun-sw.client.js +36 -0
  112. package/dist/runtime/server/api/health.get.d.ts +19 -0
  113. package/dist/runtime/server/api/health.get.js +40 -0
  114. package/dist/runtime/server/api/links.get.d.ts +19 -0
  115. package/dist/runtime/server/api/links.get.js +37 -0
  116. package/dist/runtime/server/api/resolve/[...slug].get.d.ts +9 -0
  117. package/dist/runtime/server/api/resolve/[...slug].get.js +5 -0
  118. package/dist/runtime/server/api/stats.get.js +2 -1
  119. package/dist/runtime/server/janitor/junJanitorChores.js +8 -0
  120. package/dist/runtime/server/plugins/jun-bootstrap.js +103 -15
  121. package/dist/runtime/server/plugins/jun-doc-cache.js +42 -4
  122. package/dist/runtime/server/plugins/jun-janitor.js +9 -1
  123. package/dist/runtime/server/plugins/jun-rpc.js +293 -0
  124. package/dist/runtime/server/plugins/jun-watchdog.d.ts +2 -0
  125. package/dist/runtime/server/plugins/jun-watchdog.js +54 -0
  126. package/dist/runtime/server/routes/jun-icon.png.get.d.ts +2 -0
  127. package/dist/runtime/server/routes/jun-icon.png.get.js +25 -0
  128. package/dist/runtime/server/routes/jun-icon.svg.get.d.ts +2 -0
  129. package/dist/runtime/server/routes/jun-icon.svg.get.js +9 -0
  130. package/dist/runtime/server/routes/jun-splash.png.get.d.ts +2 -0
  131. package/dist/runtime/server/routes/jun-splash.png.get.js +37 -0
  132. package/dist/runtime/server/routes/jun-sw.js.get.d.ts +2 -0
  133. package/dist/runtime/server/routes/jun-sw.js.get.js +126 -0
  134. package/dist/runtime/server/routes/manifest.webmanifest.get.d.ts +24 -0
  135. package/dist/runtime/server/routes/manifest.webmanifest.get.js +51 -0
  136. package/dist/runtime/server/routes/sitemap.xml.get.js +2 -0
  137. package/dist/runtime/server/utils/junBoot.d.ts +1 -0
  138. package/dist/runtime/server/utils/junBoot.js +4 -0
  139. package/dist/runtime/server/utils/junBrand.d.ts +4 -0
  140. package/dist/runtime/server/utils/junBrand.js +9 -0
  141. package/dist/runtime/server/utils/junCache.d.ts +17 -0
  142. package/dist/runtime/server/utils/junCache.js +5 -0
  143. package/dist/runtime/server/utils/junIcon.d.ts +44 -0
  144. package/dist/runtime/server/utils/junIcon.js +374 -0
  145. package/dist/runtime/server/utils/junSeedGate.d.ts +68 -0
  146. package/dist/runtime/server/utils/junSeedGate.js +41 -0
  147. package/dist/runtime/types.d.ts +82 -3
  148. package/dist/runtime/utils/junCourse.d.ts +106 -0
  149. package/dist/runtime/utils/junCourse.js +65 -0
  150. package/dist/runtime/utils/junGarden.d.ts +193 -0
  151. package/dist/runtime/utils/junGarden.js +233 -0
  152. package/dist/runtime/utils/junIdentity.d.ts +121 -0
  153. package/dist/runtime/utils/junIdentity.js +115 -0
  154. package/dist/runtime/utils/junMark.d.ts +254 -0
  155. package/dist/runtime/utils/junMark.js +169 -0
  156. package/dist/runtime/utils/junMetaSchemas.js +8 -1
  157. package/dist/runtime/utils/junModeration.d.ts +67 -0
  158. package/dist/runtime/utils/junModeration.js +20 -0
  159. package/dist/runtime/utils/junMotion.d.ts +26 -0
  160. package/dist/runtime/utils/junMotion.js +31 -0
  161. package/dist/runtime/utils/junPeople.d.ts +43 -0
  162. package/dist/runtime/utils/junPeople.js +9 -0
  163. package/dist/runtime/utils/junPoll.d.ts +79 -0
  164. package/dist/runtime/utils/junPoll.js +82 -0
  165. package/dist/runtime/utils/junReadiness.d.ts +131 -0
  166. package/dist/runtime/utils/junReadiness.js +69 -0
  167. package/dist/runtime/utils/junSections.d.ts +115 -0
  168. package/dist/runtime/utils/junSections.js +45 -0
  169. package/dist/runtime/utils/junSlides.d.ts +66 -0
  170. package/dist/runtime/utils/junSlides.js +47 -0
  171. package/dist/runtime/utils/junThread.d.ts +81 -0
  172. package/dist/runtime/utils/junThread.js +75 -0
  173. package/dist/runtime/utils/junViewSpecs.d.ts +671 -0
  174. package/dist/runtime/utils/junViewSpecs.js +534 -0
  175. package/dist/runtime/utils/junViewValues.d.ts +125 -0
  176. package/dist/runtime/utils/junViewValues.js +104 -0
  177. package/dist/types.d.mts +1 -1
  178. package/package.json +5 -1
@@ -15,11 +15,37 @@ import {
15
15
  useJunStudio
16
16
  } from "#imports";
17
17
  import { junCampfireLabel, useJunCampfireNames } from "../composables/useJunCampfire";
18
+ import { junSectionText, useJunSectionMarks } from "../composables/useJunSections";
18
19
  const settings = useJunCampfireSettings();
19
20
  const abra = useAbracadabra();
20
21
  const { others, self, everyone } = useJunCampfirePeople();
21
22
  const channelDocId = useJunCampfireChannel();
22
- const { toggle: toggleFollow, unfollow, followingClientId, followingUser, isFollowing } = useJunFollow();
23
+ const { toggle: toggleFollow, unfollow, followingClientId, followingUser, isFollowing, followers, notice } = useJunFollow();
24
+ const { markFor } = useJunSectionMarks();
25
+ const banner = computed(() => {
26
+ if (open.value) return null;
27
+ if (isFollowing.value && followingUser.value) {
28
+ return {
29
+ kind: "following",
30
+ name: followingUser.value.name || "someone",
31
+ color: followingUser.value.color || "var(--ui-text-muted)",
32
+ /**
33
+ * Which part of the page they are in, when the page has parts. On a long
34
+ * document the banner otherwise says the same sentence whether the leader
35
+ * is at the top or three screens down, which is precisely the interval
36
+ * where a follower wants to know. Read through awareness only — see the
37
+ * note in `useJunSections` about why the follow machinery cannot depend on
38
+ * the section machinery.
39
+ */
40
+ where: junSectionText(markFor(followingClientId.value), 24)
41
+ };
42
+ }
43
+ if (notice.value) return { kind: "notice", name: notice.value, color: "", where: "" };
44
+ return null;
45
+ });
46
+ const ledLabel = computed(
47
+ () => followers.value.length === 1 ? `${followers.value[0].name} is travelling with you` : `${followers.value.length} travellers are following you`
48
+ );
23
49
  const count = computed(() => others.value.length);
24
50
  const label = computed(() => junCampfireLabel(count.value, settings.value.label));
25
51
  const open = ref(false);
@@ -324,28 +350,47 @@ onBeforeUnmount(() => {
324
350
  </TransitionGroup>
325
351
 
326
352
  <Transition name="jun-campfire-rise">
327
- <button
328
- v-if="isFollowing && followingUser && !open"
329
- type="button"
353
+ <component
354
+ :is="banner.kind === 'following' ? 'button' : 'div'"
355
+ v-if="banner"
356
+ :key="banner.kind"
357
+ :type="banner.kind === 'following' ? 'button' : void 0"
330
358
  class="jun-bar jun-bar-pill jun-chrome jun-campfire-banner gap-1.5 rounded-full py-1 pr-2
331
359
  pl-2.5 text-xs"
332
360
  :data-jun-corner="corner"
333
361
  :style="panelStyle"
334
- :aria-label="`Stop following ${followingUser.name}`"
335
- @click="unfollow()"
362
+ data-jun-follow-ui
363
+ :aria-label="banner.kind === 'following' ? `Stop following ${banner.name}` : banner.name"
364
+ :aria-live="banner.kind === 'notice' ? 'polite' : void 0"
365
+ @click="banner.kind === 'following' && unfollow()"
336
366
  >
337
367
  <span
368
+ v-if="banner.kind === 'following'"
338
369
  class="size-2 rounded-full"
339
- :style="{ background: followingUser.color || 'var(--ui-text-muted)' }"
370
+ :style="{ background: banner.color }"
371
+ />
372
+ <UIcon
373
+ v-else
374
+ name="i-lucide-footprints"
375
+ class="size-3 text-neutral-400"
340
376
  />
341
377
  <span class="font-medium text-neutral-600 dark:text-neutral-300">
342
- following {{ followingUser.name }}
378
+ <template v-if="banner.kind === 'following'">following {{ banner.name }}</template>
379
+ <template v-else>{{ banner.name }}</template>
343
380
  </span>
381
+ <!-- Where they are inside the page, on a page that has parts. Its own
382
+ element so it can be dimmer than the name and truncate on its
383
+ own — the name must never be the thing that gets cut. -->
384
+ <span
385
+ v-if="banner.where"
386
+ class="jun-campfire-banner__where hidden max-w-40 truncate text-neutral-400 sm:inline dark:text-neutral-500"
387
+ >· {{ banner.where }}</span>
344
388
  <UIcon
389
+ v-if="banner.kind === 'following'"
345
390
  name="i-lucide-x"
346
391
  class="size-3 text-neutral-400"
347
392
  />
348
- </button>
393
+ </component>
349
394
  </Transition>
350
395
 
351
396
  <button
@@ -397,6 +442,26 @@ onBeforeUnmount(() => {
397
442
  >{{ initial(p.name) }}</span>
398
443
  </span>
399
444
 
445
+ <!-- The LEADER's half of a follow. Being followed was invisible: the
446
+ site would navigate somebody else's browser and never tell the
447
+ person doing the navigating that anyone was there. It costs one
448
+ awareness field and it is the difference between company and being
449
+ watched. Shown in every pill mode except the bare ember, which by
450
+ definition shows nothing. -->
451
+ <span
452
+ v-if="followers.length && settings.pillMode !== 'ember'"
453
+ class="jun-campfire-led flex items-center gap-1 rounded-full px-1.5 py-0.5 text-[10px]
454
+ font-medium tabular-nums text-neutral-600 dark:text-neutral-300"
455
+ :title="ledLabel"
456
+ :aria-label="ledLabel"
457
+ >
458
+ <UIcon
459
+ name="i-lucide-footprints"
460
+ class="size-3"
461
+ />
462
+ {{ followers.length }}
463
+ </span>
464
+
400
465
  <span
401
466
  v-if="settings.pillMode === 'full'"
402
467
  class="font-medium tracking-wide whitespace-nowrap text-neutral-600 dark:text-neutral-300"
@@ -417,5 +482,5 @@ onBeforeUnmount(() => {
417
482
  </template>
418
483
 
419
484
  <style scoped>
420
- .jun-campfire-pill{transition:transform .5s cubic-bezier(.22,1,.36,1)}.jun-campfire-pill:hover{transform:scale(1.03)}.jun-campfire-pill:active{transform:scale(.97)}.jun-campfire-pill.is-static{cursor:default}.jun-campfire-pill.is-static:hover{transform:none}.jun-campfire-badge{background:var(--color-neutral-900);border-radius:999px;color:#fff;font-size:9px;font-variant-numeric:tabular-nums;font-weight:500;line-height:.95rem;min-width:.95rem;padding:0 .2rem;position:absolute;right:-.35rem;top:-.25rem}:root.dark .jun-campfire-badge{background:var(--color-neutral-100);color:var(--color-neutral-900)}.jun-campfire-badge.is-ember{background:var(--jun-ember);color:#fff}.jun-campfire-glow{animation:jun-campfire-breathe 3.2s ease-in-out infinite;background:radial-gradient(circle at 50% 55%,color-mix(in srgb,var(--jun-ember-glow) 55%,transparent),color-mix(in srgb,var(--jun-ember) 18%,transparent) 55%,transparent 72%)}@keyframes jun-campfire-breathe{0%,to{opacity:.5;transform:scale(.9)}50%{opacity:1;transform:scale(1.15)}}.jun-campfire-floater{animation:jun-campfire-float 1.9s cubic-bezier(.22,1,.36,1) forwards;bottom:0;filter:drop-shadow(0 0 8px currentColor);font-size:1.25rem;position:absolute;right:0}@keyframes jun-campfire-float{0%{opacity:0;transform:translate(0) scale(.6)}18%{opacity:1;transform:translate(var(--dx),-1.5rem) scale(1.1)}to{opacity:0;transform:translate(calc(var(--dx)*1.6),-7.5rem) scale(.8)}}.jun-campfire-rise-enter-active,.jun-campfire-rise-leave-active{transition:opacity .28s ease,transform .28s cubic-bezier(.22,1,.36,1)}.jun-campfire-rise-enter-from,.jun-campfire-rise-leave-to{opacity:0;transform:translateY(12px) scale(.98)}.jun-campfire-bubbles{align-items:flex-end;display:flex;flex-direction:column-reverse;gap:.375rem;max-width:min(19rem,calc(100vw - 2rem));pointer-events:none}[data-jun-corner^=top].jun-campfire-bubbles{flex-direction:column}.jun-campfire-bubble,[data-jun-corner$=left].jun-campfire-bubbles{align-items:flex-start}.jun-campfire-bubble{display:flex;max-width:100%;pointer-events:auto;text-align:left;transition:transform .2s cubic-bezier(.22,1,.36,1)}.jun-campfire-bubble:hover{transform:translateY(-1px)}.jun-campfire-bubble span>span:last-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}.jun-campfire-bubble-enter-active,.jun-campfire-bubble-leave-active{transition:opacity .3s ease,transform .3s cubic-bezier(.22,1,.36,1)}.jun-campfire-bubble-enter-from,.jun-campfire-bubble-leave-to{opacity:0;transform:translateY(8px) scale(.96)}.jun-campfire-bubble-move{transition:transform .3s cubic-bezier(.22,1,.36,1)}@media (prefers-reduced-motion:reduce){.jun-campfire-glow{animation:none;opacity:.7}.jun-campfire-floater{animation-duration:1.2s}.jun-campfire-pill{transition:none}.jun-campfire-pill:hover{transform:none}.jun-campfire-rise-enter-active,.jun-campfire-rise-leave-active{transition:opacity .2s ease}.jun-campfire-rise-enter-from,.jun-campfire-rise-leave-to{transform:none}.jun-campfire-bubble,.jun-campfire-bubble-move{transition:none}.jun-campfire-bubble:hover{transform:none}.jun-campfire-bubble-enter-active,.jun-campfire-bubble-leave-active{transition:opacity .2s ease}.jun-campfire-bubble-enter-from,.jun-campfire-bubble-leave-to{transform:none}}
485
+ .jun-campfire-pill{transition:transform .5s cubic-bezier(.22,1,.36,1)}.jun-campfire-led{background:color-mix(in srgb,currentColor 9%,transparent)}.jun-campfire-pill:hover{transform:scale(1.03)}.jun-campfire-pill:active{transform:scale(.97)}.jun-campfire-pill.is-static{cursor:default}.jun-campfire-pill.is-static:hover{transform:none}.jun-campfire-badge{background:var(--color-neutral-900);border-radius:999px;color:#fff;font-size:9px;font-variant-numeric:tabular-nums;font-weight:500;line-height:.95rem;min-width:.95rem;padding:0 .2rem;position:absolute;right:-.35rem;top:-.25rem}:root.dark .jun-campfire-badge{background:var(--color-neutral-100);color:var(--color-neutral-900)}.jun-campfire-badge.is-ember{background:var(--jun-ember);color:#fff}.jun-campfire-glow{animation:jun-campfire-breathe 3.2s ease-in-out infinite;background:radial-gradient(circle at 50% 55%,color-mix(in srgb,var(--jun-ember-glow) 55%,transparent),color-mix(in srgb,var(--jun-ember) 18%,transparent) 55%,transparent 72%)}@keyframes jun-campfire-breathe{0%,to{opacity:.5;transform:scale(.9)}50%{opacity:1;transform:scale(1.15)}}.jun-campfire-floater{animation:jun-campfire-float 1.9s cubic-bezier(.22,1,.36,1) forwards;bottom:0;filter:drop-shadow(0 0 8px currentColor);font-size:1.25rem;position:absolute;right:0}@keyframes jun-campfire-float{0%{opacity:0;transform:translate(0) scale(.6)}18%{opacity:1;transform:translate(var(--dx),-1.5rem) scale(1.1)}to{opacity:0;transform:translate(calc(var(--dx)*1.6),-7.5rem) scale(.8)}}.jun-campfire-rise-enter-active,.jun-campfire-rise-leave-active{transition:opacity .28s ease,transform .28s cubic-bezier(.22,1,.36,1)}.jun-campfire-rise-enter-from,.jun-campfire-rise-leave-to{opacity:0;transform:translateY(12px) scale(.98)}.jun-campfire-bubbles{align-items:flex-end;display:flex;flex-direction:column-reverse;gap:.375rem;max-width:min(19rem,calc(100vw - 2rem));pointer-events:none}[data-jun-corner^=top].jun-campfire-bubbles{flex-direction:column}.jun-campfire-bubble,[data-jun-corner$=left].jun-campfire-bubbles{align-items:flex-start}.jun-campfire-bubble{display:flex;max-width:100%;pointer-events:auto;text-align:left;transition:transform .2s cubic-bezier(.22,1,.36,1)}.jun-campfire-bubble:hover{transform:translateY(-1px)}.jun-campfire-bubble span>span:last-child{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}.jun-campfire-bubble-enter-active,.jun-campfire-bubble-leave-active{transition:opacity .3s ease,transform .3s cubic-bezier(.22,1,.36,1)}.jun-campfire-bubble-enter-from,.jun-campfire-bubble-leave-to{opacity:0;transform:translateY(8px) scale(.96)}.jun-campfire-bubble-move{transition:transform .3s cubic-bezier(.22,1,.36,1)}@media (prefers-reduced-motion:reduce){.jun-campfire-glow{animation:none;opacity:.7}.jun-campfire-floater{animation-duration:1.2s}.jun-campfire-pill{transition:none}.jun-campfire-pill:hover{transform:none}.jun-campfire-rise-enter-active,.jun-campfire-rise-leave-active{transition:opacity .2s ease}.jun-campfire-rise-enter-from,.jun-campfire-rise-leave-to{transform:none}.jun-campfire-bubble,.jun-campfire-bubble-move{transition:none}.jun-campfire-bubble:hover{transform:none}.jun-campfire-bubble-enter-active,.jun-campfire-bubble-leave-active{transition:opacity .2s ease}.jun-campfire-bubble-enter-from,.jun-campfire-bubble-leave-to{transform:none}}
421
486
  </style>
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ /** The COLLECTION document — this renders that document's own body. */
3
+ docId: string;
4
+ docLabel?: string;
5
+ docMeta?: Record<string, unknown>;
6
+ /** Placeholder shown to the owner while the intro is empty. */
7
+ placeholder?: string;
8
+ };
9
+ 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>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,45 @@
1
+ <script setup>
2
+ import { computed, ref } from "vue";
3
+ import { junEditorBodyText, useJunStudio } 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
+ placeholder: { type: String, required: false }
9
+ });
10
+ const { editing } = useJunStudio();
11
+ const introEditor = ref(null);
12
+ const hasProse = ref(false);
13
+ function recalc() {
14
+ hasProse.value = junEditorBodyText(introEditor.value?.editor).trim().length > 0;
15
+ }
16
+ const shown = computed(() => editing.value || hasProse.value);
17
+ </script>
18
+
19
+ <template>
20
+ <div
21
+ class="jun-collection-intro"
22
+ :class="shown ? 'mb-8' : 'jun-collection-intro--empty'"
23
+ >
24
+ <AEditor
25
+ ref="introEditor"
26
+ :doc-id="props.docId"
27
+ :doc-label="props.docLabel"
28
+ :doc-meta="props.docMeta ?? {}"
29
+ :editable="editing"
30
+ :show-toolbar="editing"
31
+ :show-suggestion-menu="editing"
32
+ :show-drag-handle="editing"
33
+ :show-breadcrumb="false"
34
+ :breadcrumb-menu="false"
35
+ :placeholder="props.placeholder ?? 'Say what this page is\u2026'"
36
+ :show-sub-pages="false"
37
+ @ready="recalc"
38
+ @update="recalc"
39
+ />
40
+ </div>
41
+ </template>
42
+
43
+ <style scoped>
44
+ .jun-collection-intro--empty{display:none}.jun-collection-intro :deep(.document-header){display:none}.jun-collection-intro :deep([data-meta-key=excerpt]){display:none}.jun-collection-intro :deep(.ProseMirror),.jun-collection-intro :deep(.aeditor-canvas){padding:0}
45
+ </style>
@@ -0,0 +1,11 @@
1
+ type __VLS_Props = {
2
+ /** The COLLECTION document — this renders that document's own body. */
3
+ docId: string;
4
+ docLabel?: string;
5
+ docMeta?: Record<string, unknown>;
6
+ /** Placeholder shown to the owner while the intro is empty. */
7
+ placeholder?: string;
8
+ };
9
+ 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>;
10
+ declare const _default: typeof __VLS_export;
11
+ export default _default;
@@ -0,0 +1,43 @@
1
+ /**
2
+ * JunConfigRow — one labelled setting row in the settings panel.
3
+ *
4
+ * `JunConfigRenderer` had **27** copies of this six-line block: a
5
+ * `flex items-center justify-between gap-3` wrapper, a `min-w-0` column holding a
6
+ * `text-xs font-medium` label and a `text-[11px] text-muted` hint, and a control
7
+ * beside it. Twenty-seven chances for one of them to drift, and they had already
8
+ * started to — some rows carried the hint, some did not, and two used a different
9
+ * gap.
10
+ *
11
+ * It was deliberately NOT extracted for three rounds, which was the right call
12
+ * every time: a 1,600-line template rewrite in the same change as six other things
13
+ * is the unreviewable diff this repo has warned itself about. The condition it was
14
+ * waiting for is a round where it is the ONLY change to that file.
15
+ *
16
+ * ── Why a `hint` slot as well as a prop ─────────────────────────────────────
17
+ *
18
+ * Most hints are a sentence. A few carry a `<code>` fragment or a link, and a
19
+ * prop-only component would have sent those back to hand-rolling the whole row —
20
+ * which is how a shared component ends up used by half its call sites.
21
+ */
22
+ type __VLS_Props = {
23
+ label: string;
24
+ /** One short line under the label. Omit for a row that needs none. */
25
+ hint?: string;
26
+ /** Dim the whole row — for a setting this build cannot offer. */
27
+ muted?: boolean;
28
+ };
29
+ declare var __VLS_1: {}, __VLS_3: {};
30
+ type __VLS_Slots = {} & {
31
+ hint?: (props: typeof __VLS_1) => any;
32
+ } & {
33
+ default?: (props: typeof __VLS_3) => any;
34
+ };
35
+ declare const __VLS_base: 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>;
36
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
+ declare const _default: typeof __VLS_export;
38
+ export default _default;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -0,0 +1,34 @@
1
+ <script setup>
2
+ defineProps({
3
+ label: { type: String, required: true },
4
+ hint: { type: String, required: false },
5
+ muted: { type: Boolean, required: false }
6
+ });
7
+ </script>
8
+
9
+ <template>
10
+ <div
11
+ data-jun-config-row
12
+ class="flex items-center justify-between gap-3"
13
+ :class="muted ? 'opacity-60' : ''"
14
+ >
15
+ <div class="min-w-0">
16
+ <p class="text-xs font-medium">
17
+ {{ label }}
18
+ </p>
19
+ <p
20
+ v-if="hint || $slots.hint"
21
+ class="text-[11px] text-muted"
22
+ >
23
+ <slot name="hint">
24
+ {{ hint }}
25
+ </slot>
26
+ </p>
27
+ </div>
28
+ <!-- The control. `flex-none` so a long label never squeezes a switch out of
29
+ shape — one of the small inconsistencies the 27 copies had between them. -->
30
+ <div class="flex-none">
31
+ <slot />
32
+ </div>
33
+ </div>
34
+ </template>
@@ -0,0 +1,43 @@
1
+ /**
2
+ * JunConfigRow — one labelled setting row in the settings panel.
3
+ *
4
+ * `JunConfigRenderer` had **27** copies of this six-line block: a
5
+ * `flex items-center justify-between gap-3` wrapper, a `min-w-0` column holding a
6
+ * `text-xs font-medium` label and a `text-[11px] text-muted` hint, and a control
7
+ * beside it. Twenty-seven chances for one of them to drift, and they had already
8
+ * started to — some rows carried the hint, some did not, and two used a different
9
+ * gap.
10
+ *
11
+ * It was deliberately NOT extracted for three rounds, which was the right call
12
+ * every time: a 1,600-line template rewrite in the same change as six other things
13
+ * is the unreviewable diff this repo has warned itself about. The condition it was
14
+ * waiting for is a round where it is the ONLY change to that file.
15
+ *
16
+ * ── Why a `hint` slot as well as a prop ─────────────────────────────────────
17
+ *
18
+ * Most hints are a sentence. A few carry a `<code>` fragment or a link, and a
19
+ * prop-only component would have sent those back to hand-rolling the whole row —
20
+ * which is how a shared component ends up used by half its call sites.
21
+ */
22
+ type __VLS_Props = {
23
+ label: string;
24
+ /** One short line under the label. Omit for a row that needs none. */
25
+ hint?: string;
26
+ /** Dim the whole row — for a setting this build cannot offer. */
27
+ muted?: boolean;
28
+ };
29
+ declare var __VLS_1: {}, __VLS_3: {};
30
+ type __VLS_Slots = {} & {
31
+ hint?: (props: typeof __VLS_1) => any;
32
+ } & {
33
+ default?: (props: typeof __VLS_3) => any;
34
+ };
35
+ declare const __VLS_base: 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>;
36
+ declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
37
+ declare const _default: typeof __VLS_export;
38
+ export default _default;
39
+ type __VLS_WithSlots<T, S> = T & {
40
+ new (): {
41
+ $slots: S;
42
+ };
43
+ };
@@ -65,7 +65,7 @@ const visible = computed(
65
65
  <template>
66
66
  <footer
67
67
  v-if="visible"
68
- class="relative z-10 flex flex-wrap items-center justify-center gap-x-3 gap-y-1 px-6 pb-10 pt-16 text-center text-xs tracking-wide text-black/40 dark:text-white/35"
68
+ class="jun-footer relative z-10 flex flex-wrap items-center justify-center gap-x-3 gap-y-1 px-6 pb-10 pt-16 text-center text-xs tracking-wide text-black/40 dark:text-white/35"
69
69
  >
70
70
  <span v-if="text">{{ text }}</span>
71
71
  <span
@@ -3,9 +3,12 @@ import { computed } from "vue";
3
3
  import { useHead, useSeoMeta } from "#app";
4
4
  import { useJunOptions } from "../composables/useJunOptions";
5
5
  import { junConfigOn, junConfigStr, useJunSiteConfigValues } from "../composables/useJunSiteConfigValues";
6
+ import { junAppleSplashLinks, junIconUrls, junIdentity } from "../utils/junIdentity";
6
7
  const { brand, features } = useJunOptions();
7
8
  const site = await useJunSiteConfigValues();
8
9
  const str = (key) => junConfigStr(site.value[key]);
10
+ const identity = computed(() => junIdentity(brand, site.value));
11
+ const icons = computed(() => junIconUrls(identity.value));
9
12
  const title = computed(() => str("seoTitle") ?? brand.name);
10
13
  const description = computed(() => str("seoDescription") ?? brand.tagline);
11
14
  const author = computed(() => str("authorName") ?? brand.name);
@@ -47,16 +50,45 @@ useHead(() => ({
47
50
  { key: "theme-color-light", name: "theme-color", media: "(prefers-color-scheme: light)", content: "#ffffff" },
48
51
  { key: "theme-color-dark", name: "theme-color", media: "(prefers-color-scheme: dark)", content: brand.themeColor },
49
52
  // PWA app chrome.
53
+ //
54
+ // Both capability metas, and BOTH are needed: `mobile-web-app-capable` is
55
+ // the standard one, `apple-mobile-web-app-capable` is what iOS reads, and
56
+ // iOS reads it out of the SERVED HTML at add-to-home-screen time. A tag
57
+ // injected by JavaScript after hydration is too late — the icon then opens
58
+ // in the in-app Safari overlay instead of standalone.
50
59
  { name: "mobile-web-app-capable", content: "yes" },
51
60
  { name: "apple-mobile-web-app-capable", content: "yes" },
52
61
  { name: "apple-touch-fullscreen", content: "yes" },
62
+ // `black-translucent` is load-bearing, not cosmetic: it is what puts the
63
+ // page UNDER the status bar, which is the whole reason `viewport-fit=cover`
64
+ // and the `env(safe-area-inset-*)` rules in jun.css exist. Change this and
65
+ // every safe-area rule becomes dead weight.
53
66
  { name: "apple-mobile-web-app-status-bar-style", content: "black-translucent" },
54
- { name: "apple-mobile-web-app-title", content: brand.name }
67
+ { name: "apple-mobile-web-app-title", content: identity.value.shortName },
68
+ { name: "application-name", content: identity.value.name },
69
+ // Windows tiles read this one and ignore the manifest.
70
+ { name: "msapplication-TileColor", content: identity.value.themeColor }
71
+ ],
72
+ link: [
73
+ // ── Identity ──────────────────────────────────────────────────────────
74
+ // ONE svg favicon, which answers both colour schemes from inside itself
75
+ // (see `junFaviconSvg`). `?v=` is the brand fingerprint — the response is
76
+ // immutable for a year, so this is what lets a changed accent ever show.
77
+ { key: "jun-favicon", rel: "icon", type: "image/svg+xml", href: icons.value.favicon },
78
+ // iOS takes PNG and nothing else. Without this it uses a SCREENSHOT of the
79
+ // page as the home-screen icon, which is the single most obvious tell that
80
+ // an installed site is a website rather than an app.
81
+ { key: "jun-apple-icon", rel: "apple-touch-icon", sizes: "180x180", href: icons.value.appleTouch },
82
+ { key: "jun-manifest", rel: "manifest", href: `/manifest.webmanifest?v=${identity.value.version}` },
83
+ // iOS launch screens. Thirty-two near-identical tags, which sounds like a
84
+ // lot of head and gzips to almost nothing — see `JUN_IOS_SCREENS` for the
85
+ // measurement and for why the list has to name devices individually.
86
+ ...junAppleSplashLinks(identity.value),
87
+ ...feedsEnabled.value ? [
88
+ { rel: "alternate", type: "application/atom+xml", title: "Atom feed", href: "/feed.xml" },
89
+ { rel: "alternate", type: "application/feed+json", title: "JSON feed", href: "/feed.json" }
90
+ ] : []
55
91
  ],
56
- link: feedsEnabled.value ? [
57
- { rel: "alternate", type: "application/atom+xml", title: "Atom feed", href: "/feed.xml" },
58
- { rel: "alternate", type: "application/feed+json", title: "JSON feed", href: "/feed.json" }
59
- ] : [],
60
92
  script: identityJsonLd.value ? [{ key: "jun-identity-ld", type: "application/ld+json", innerHTML: identityJsonLd.value }] : []
61
93
  }));
62
94
  useSeoMeta({
@@ -0,0 +1,30 @@
1
+ export interface Waypoint {
2
+ id: string;
3
+ label: string;
4
+ meta?: {
5
+ date?: string;
6
+ geoLat?: number;
7
+ geoLng?: number;
8
+ transport?: string;
9
+ color?: string;
10
+ description?: string;
11
+ routeKm?: number;
12
+ };
13
+ }
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ declare const __VLS_export: import("vue").DefineComponent<{
17
+ waypoints: Waypoint[];
18
+ selectedId?: string | null;
19
+ ready?: boolean;
20
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
+ select: (wp: Waypoint) => any;
22
+ focusRoute: (a: Waypoint, b: Waypoint, selectId?: string | undefined) => any;
23
+ }, string, import("vue").PublicProps, Readonly<{
24
+ waypoints: Waypoint[];
25
+ selectedId?: string | null;
26
+ ready?: boolean;
27
+ }> & Readonly<{
28
+ onSelect?: ((wp: Waypoint) => any) | undefined;
29
+ onFocusRoute?: ((a: Waypoint, b: Waypoint, selectId?: string | undefined) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -0,0 +1,30 @@
1
+ export interface Waypoint {
2
+ id: string;
3
+ label: string;
4
+ meta?: {
5
+ date?: string;
6
+ geoLat?: number;
7
+ geoLng?: number;
8
+ transport?: string;
9
+ color?: string;
10
+ description?: string;
11
+ routeKm?: number;
12
+ };
13
+ }
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
16
+ declare const __VLS_export: import("vue").DefineComponent<{
17
+ waypoints: Waypoint[];
18
+ selectedId?: string | null;
19
+ ready?: boolean;
20
+ }, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
21
+ select: (wp: Waypoint) => any;
22
+ focusRoute: (a: Waypoint, b: Waypoint, selectId?: string | undefined) => any;
23
+ }, string, import("vue").PublicProps, Readonly<{
24
+ waypoints: Waypoint[];
25
+ selectedId?: string | null;
26
+ ready?: boolean;
27
+ }> & Readonly<{
28
+ onSelect?: ((wp: Waypoint) => any) | undefined;
29
+ onFocusRoute?: ((a: Waypoint, b: Waypoint, selectId?: string | undefined) => any) | undefined;
30
+ }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -13,7 +13,22 @@ type __VLS_Props = {
13
13
  accentTitle?: string;
14
14
  /** Owner edit mode: always link to the entry's own document page. */
15
15
  forceInternal?: boolean;
16
+ /**
17
+ * Display settings from the page's own `useJunViewOptions`, so the links and
18
+ * gear pages can be configured without a second row component. All default to
19
+ * the row as it has always looked.
20
+ */
21
+ showIcon?: boolean;
22
+ showDescription?: boolean;
23
+ showHost?: boolean;
24
+ /** Half the vertical padding and one line of text. For a long list. */
25
+ compact?: boolean;
16
26
  };
17
- 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>;
27
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
28
+ compact: boolean;
29
+ showIcon: boolean;
30
+ showDescription: boolean;
31
+ showHost: boolean;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
33
  declare const _default: typeof __VLS_export;
19
34
  export default _default;
@@ -6,7 +6,11 @@ const props = defineProps({
6
6
  entry: { type: Object, required: true },
7
7
  accent: { type: Object, required: false },
8
8
  accentTitle: { type: String, required: false },
9
- forceInternal: { type: Boolean, required: false }
9
+ forceInternal: { type: Boolean, required: false },
10
+ showIcon: { type: Boolean, required: false, default: true },
11
+ showDescription: { type: Boolean, required: false, default: true },
12
+ showHost: { type: Boolean, required: false, default: true },
13
+ compact: { type: Boolean, required: false, default: false }
10
14
  });
11
15
  const { getDocUrl } = useDocSlugs();
12
16
  const docIcon = useJunDocIcon();
@@ -37,8 +41,9 @@ const faviconSrc = computed(
37
41
  <component
38
42
  :is="external ? 'a' : NuxtLink"
39
43
  v-bind="external ? { href: entry.meta.url, target: '_blank', rel: 'noopener noreferrer' } : { to: getDocUrl(entry.id) }"
40
- class="jun-card group relative flex items-center gap-4 rounded-xl px-4 py-3.5
44
+ class="jun-card group relative flex items-center rounded-xl px-4
41
45
  transition-all duration-300 hover:scale-[1.01] hover:shadow-xl"
46
+ :class="compact ? 'gap-3 py-2' : 'gap-4 py-3.5'"
42
47
  :title="accentTitle"
43
48
  >
44
49
  <!-- Presence halo — a traveller is reading this link's page right now. -->
@@ -50,9 +55,11 @@ const faviconSrc = computed(
50
55
  />
51
56
 
52
57
  <span
53
- class="flex size-10 shrink-0 items-center justify-center rounded-lg bg-black/5
58
+ v-if="showIcon"
59
+ class="flex shrink-0 items-center justify-center rounded-lg bg-black/5
54
60
  text-black/60 ring-1 ring-black/5 transition-transform duration-300
55
61
  group-hover:scale-110 dark:bg-white/10 dark:text-white/70 dark:ring-white/10"
62
+ :class="compact ? 'size-7' : 'size-10'"
56
63
  >
57
64
  <img
58
65
  v-if="faviconSrc"
@@ -65,16 +72,19 @@ const faviconSrc = computed(
65
72
  <UIcon
66
73
  v-else
67
74
  :name="icon"
68
- class="size-4.5"
75
+ :class="compact ? 'size-3.5' : 'size-4.5'"
69
76
  />
70
77
  </span>
71
78
 
72
79
  <span class="min-w-0 flex-1">
73
- <span class="block truncate text-sm font-medium tracking-wide text-highlighted sm:text-base">
80
+ <span
81
+ class="block truncate font-medium tracking-wide text-highlighted"
82
+ :class="compact ? 'text-sm' : 'text-sm sm:text-base'"
83
+ >
74
84
  {{ entry.label }}
75
85
  </span>
76
86
  <span
77
- v-if="entry.meta?.description"
87
+ v-if="entry.meta?.description && showDescription && !compact"
78
88
  class="block truncate text-xs text-muted sm:text-sm"
79
89
  >
80
90
  {{ entry.meta.description }}
@@ -83,7 +93,7 @@ const faviconSrc = computed(
83
93
 
84
94
  <span class="flex shrink-0 items-center gap-1.5 text-xs text-dimmed">
85
95
  <span
86
- v-if="host"
96
+ v-if="host && showHost"
87
97
  class="hidden tracking-wide sm:inline"
88
98
  >{{ host }}</span>
89
99
  <UIcon
@@ -13,7 +13,22 @@ type __VLS_Props = {
13
13
  accentTitle?: string;
14
14
  /** Owner edit mode: always link to the entry's own document page. */
15
15
  forceInternal?: boolean;
16
+ /**
17
+ * Display settings from the page's own `useJunViewOptions`, so the links and
18
+ * gear pages can be configured without a second row component. All default to
19
+ * the row as it has always looked.
20
+ */
21
+ showIcon?: boolean;
22
+ showDescription?: boolean;
23
+ showHost?: boolean;
24
+ /** Half the vertical padding and one line of text. For a long list. */
25
+ compact?: boolean;
16
26
  };
17
- 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>;
27
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
28
+ compact: boolean;
29
+ showIcon: boolean;
30
+ showDescription: boolean;
31
+ showHost: boolean;
32
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
33
  declare const _default: typeof __VLS_export;
19
34
  export default _default;