@abraca/junis 2.85.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 (152) hide show
  1. package/dist/module.d.mts +17 -2
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +235 -19
  4. package/dist/runtime/assets/css/jun.css +1 -1
  5. package/dist/runtime/components/JunCampfirePresence.client.vue +75 -10
  6. package/dist/runtime/components/JunCollectionIntro.d.vue.ts +11 -0
  7. package/dist/runtime/components/JunCollectionIntro.vue +45 -0
  8. package/dist/runtime/components/JunCollectionIntro.vue.d.ts +11 -0
  9. package/dist/runtime/components/JunConfigRow.d.vue.ts +43 -0
  10. package/dist/runtime/components/JunConfigRow.vue +34 -0
  11. package/dist/runtime/components/JunConfigRow.vue.d.ts +43 -0
  12. package/dist/runtime/components/JunFooter.vue +1 -1
  13. package/dist/runtime/components/JunHorizontalTimeline.d.vue.ts +30 -0
  14. package/dist/runtime/components/JunHorizontalTimeline.vue.d.ts +30 -0
  15. package/dist/runtime/components/JunLinksRow.d.vue.ts +16 -1
  16. package/dist/runtime/components/JunLinksRow.vue +17 -7
  17. package/dist/runtime/components/JunLinksRow.vue.d.ts +16 -1
  18. package/dist/runtime/components/JunMedia.client.d.vue.ts +1 -1
  19. package/dist/runtime/components/JunMedia.client.vue.d.ts +1 -1
  20. package/dist/runtime/components/JunNavigation.vue +21 -4
  21. package/dist/runtime/components/JunNoteLinks.d.vue.ts +6 -0
  22. package/dist/runtime/components/JunNoteLinks.vue +57 -0
  23. package/dist/runtime/components/JunNoteLinks.vue.d.ts +6 -0
  24. package/dist/runtime/components/JunPageHero.d.vue.ts +8 -2
  25. package/dist/runtime/components/JunPageHero.vue +15 -3
  26. package/dist/runtime/components/JunPageHero.vue.d.ts +8 -2
  27. package/dist/runtime/components/JunReaders.d.vue.ts +11 -0
  28. package/dist/runtime/components/JunReaders.vue +99 -0
  29. package/dist/runtime/components/JunReaders.vue.d.ts +11 -0
  30. package/dist/runtime/components/JunSearch.client.vue +2 -2
  31. package/dist/runtime/components/JunSectionPresence.client.d.vue.ts +17 -0
  32. package/dist/runtime/components/JunSectionPresence.client.vue +99 -0
  33. package/dist/runtime/components/JunSectionPresence.client.vue.d.ts +17 -0
  34. package/dist/runtime/components/JunThreadComposer.d.vue.ts +37 -0
  35. package/dist/runtime/components/JunThreadComposer.vue +54 -0
  36. package/dist/runtime/components/JunThreadComposer.vue.d.ts +37 -0
  37. package/dist/runtime/components/JunTravellersChip.vue +35 -5
  38. package/dist/runtime/components/JunVideoEmbed.client.d.vue.ts +1 -1
  39. package/dist/runtime/components/JunVideoEmbed.client.vue.d.ts +1 -1
  40. package/dist/runtime/components/JunViewControl.d.vue.ts +29 -0
  41. package/dist/runtime/components/JunViewControl.vue +340 -0
  42. package/dist/runtime/components/JunViewControl.vue.d.ts +29 -0
  43. package/dist/runtime/components/JunViewControls.d.vue.ts +27 -0
  44. package/dist/runtime/components/JunViewControls.vue +94 -0
  45. package/dist/runtime/components/JunViewControls.vue.d.ts +27 -0
  46. package/dist/runtime/components/renderers/JunAppsRenderer.vue +45 -4
  47. package/dist/runtime/components/renderers/JunCinemaRenderer.vue +42 -4
  48. package/dist/runtime/components/renderers/JunConfigRenderer.vue +348 -225
  49. package/dist/runtime/components/renderers/JunCourseRenderer.d.vue.ts +10 -0
  50. package/dist/runtime/components/renderers/JunCourseRenderer.vue +229 -0
  51. package/dist/runtime/components/renderers/JunCourseRenderer.vue.d.ts +10 -0
  52. package/dist/runtime/components/renderers/JunCvRenderer.vue +44 -6
  53. package/dist/runtime/components/renderers/JunDeckRenderer.d.vue.ts +9 -0
  54. package/dist/runtime/components/renderers/JunDeckRenderer.vue +370 -0
  55. package/dist/runtime/components/renderers/JunDeckRenderer.vue.d.ts +9 -0
  56. package/dist/runtime/components/renderers/JunEntryRenderer.vue +151 -23
  57. package/dist/runtime/components/renderers/JunFestivalRenderer.vue +41 -4
  58. package/dist/runtime/components/renderers/JunGardenRenderer.d.vue.ts +10 -0
  59. package/dist/runtime/components/renderers/JunGardenRenderer.vue +280 -0
  60. package/dist/runtime/components/renderers/JunGardenRenderer.vue.d.ts +10 -0
  61. package/dist/runtime/components/renderers/JunGuestbookRenderer.vue +96 -14
  62. package/dist/runtime/components/renderers/JunHomeRenderer.vue +28 -129
  63. package/dist/runtime/components/renderers/JunItemRenderer.d.vue.ts +10 -0
  64. package/dist/runtime/components/renderers/JunItemRenderer.vue +398 -0
  65. package/dist/runtime/components/renderers/JunItemRenderer.vue.d.ts +10 -0
  66. package/dist/runtime/components/renderers/JunJournalRenderer.vue +141 -11
  67. package/dist/runtime/components/renderers/JunLibraryRenderer.vue +295 -12
  68. package/dist/runtime/components/renderers/JunLinksRenderer.vue +33 -1
  69. package/dist/runtime/components/renderers/JunLiveRenderer.vue +37 -1
  70. package/dist/runtime/components/renderers/JunMosaicRenderer.vue +3 -2
  71. package/dist/runtime/components/renderers/JunMovieRenderer.vue +32 -5
  72. package/dist/runtime/components/renderers/JunNowRenderer.vue +38 -5
  73. package/dist/runtime/components/renderers/JunPollRenderer.d.vue.ts +9 -0
  74. package/dist/runtime/components/renderers/JunPollRenderer.vue +231 -0
  75. package/dist/runtime/components/renderers/JunPollRenderer.vue.d.ts +9 -0
  76. package/dist/runtime/components/renderers/JunProjectRenderer.vue +74 -18
  77. package/dist/runtime/components/renderers/JunServicesRenderer.vue +40 -2
  78. package/dist/runtime/components/renderers/JunStatsRenderer.vue +37 -50
  79. package/dist/runtime/components/renderers/JunThreadRenderer.d.vue.ts +9 -0
  80. package/dist/runtime/components/renderers/JunThreadRenderer.vue +304 -0
  81. package/dist/runtime/components/renderers/JunThreadRenderer.vue.d.ts +9 -0
  82. package/dist/runtime/components/renderers/JunTrackRenderer.vue +32 -4
  83. package/dist/runtime/components/renderers/JunUsesRenderer.vue +51 -5
  84. package/dist/runtime/components/renderers/JunWallRenderer.vue +60 -5
  85. package/dist/runtime/composables/useJunDeck.d.ts +66 -0
  86. package/dist/runtime/composables/useJunDeck.js +61 -0
  87. package/dist/runtime/composables/useJunDocPage.d.ts +14 -11
  88. package/dist/runtime/composables/useJunDocPage.js +67 -3
  89. package/dist/runtime/composables/useJunFollow.d.ts +65 -9
  90. package/dist/runtime/composables/useJunFollow.js +237 -20
  91. package/dist/runtime/composables/useJunGarden.d.ts +67 -0
  92. package/dist/runtime/composables/useJunGarden.js +92 -0
  93. package/dist/runtime/composables/useJunPresence.d.ts +26 -0
  94. package/dist/runtime/composables/useJunPresence.js +9 -2
  95. package/dist/runtime/composables/useJunSections.d.ts +73 -0
  96. package/dist/runtime/composables/useJunSections.js +117 -0
  97. package/dist/runtime/composables/useJunSettings.d.ts +1 -1
  98. package/dist/runtime/composables/useJunSettings.js +5 -1
  99. package/dist/runtime/composables/useJunSiteConfig.d.ts +37 -0
  100. package/dist/runtime/composables/useJunTheme.js +40 -2
  101. package/dist/runtime/composables/useJunViewOptions.d.ts +85 -0
  102. package/dist/runtime/composables/useJunViewOptions.js +63 -0
  103. package/dist/runtime/pages/doc.vue +14 -8
  104. package/dist/runtime/server/api/health.get.d.ts +19 -0
  105. package/dist/runtime/server/api/health.get.js +40 -0
  106. package/dist/runtime/server/api/links.get.d.ts +19 -0
  107. package/dist/runtime/server/api/links.get.js +37 -0
  108. package/dist/runtime/server/api/resolve/[...slug].get.d.ts +9 -0
  109. package/dist/runtime/server/api/resolve/[...slug].get.js +5 -0
  110. package/dist/runtime/server/api/stats.get.js +2 -1
  111. package/dist/runtime/server/janitor/junJanitorChores.js +8 -0
  112. package/dist/runtime/server/plugins/jun-bootstrap.js +103 -15
  113. package/dist/runtime/server/plugins/jun-doc-cache.js +42 -4
  114. package/dist/runtime/server/plugins/jun-janitor.js +7 -0
  115. package/dist/runtime/server/plugins/jun-rpc.js +293 -0
  116. package/dist/runtime/server/plugins/jun-watchdog.d.ts +2 -0
  117. package/dist/runtime/server/plugins/jun-watchdog.js +54 -0
  118. package/dist/runtime/server/routes/sitemap.xml.get.js +2 -0
  119. package/dist/runtime/server/utils/junBoot.d.ts +1 -0
  120. package/dist/runtime/server/utils/junBoot.js +4 -0
  121. package/dist/runtime/server/utils/junCache.d.ts +17 -0
  122. package/dist/runtime/server/utils/junCache.js +5 -0
  123. package/dist/runtime/server/utils/junSeedGate.d.ts +68 -0
  124. package/dist/runtime/server/utils/junSeedGate.js +41 -0
  125. package/dist/runtime/types.d.ts +57 -1
  126. package/dist/runtime/utils/junCourse.d.ts +106 -0
  127. package/dist/runtime/utils/junCourse.js +65 -0
  128. package/dist/runtime/utils/junGarden.d.ts +193 -0
  129. package/dist/runtime/utils/junGarden.js +233 -0
  130. package/dist/runtime/utils/junMetaSchemas.js +8 -1
  131. package/dist/runtime/utils/junModeration.d.ts +67 -0
  132. package/dist/runtime/utils/junModeration.js +20 -0
  133. package/dist/runtime/utils/junMotion.d.ts +26 -0
  134. package/dist/runtime/utils/junMotion.js +31 -0
  135. package/dist/runtime/utils/junPeople.d.ts +43 -0
  136. package/dist/runtime/utils/junPeople.js +9 -0
  137. package/dist/runtime/utils/junPoll.d.ts +79 -0
  138. package/dist/runtime/utils/junPoll.js +82 -0
  139. package/dist/runtime/utils/junReadiness.d.ts +131 -0
  140. package/dist/runtime/utils/junReadiness.js +69 -0
  141. package/dist/runtime/utils/junSections.d.ts +115 -0
  142. package/dist/runtime/utils/junSections.js +45 -0
  143. package/dist/runtime/utils/junSlides.d.ts +66 -0
  144. package/dist/runtime/utils/junSlides.js +47 -0
  145. package/dist/runtime/utils/junThread.d.ts +81 -0
  146. package/dist/runtime/utils/junThread.js +75 -0
  147. package/dist/runtime/utils/junViewSpecs.d.ts +671 -0
  148. package/dist/runtime/utils/junViewSpecs.js +534 -0
  149. package/dist/runtime/utils/junViewValues.d.ts +125 -0
  150. package/dist/runtime/utils/junViewValues.js +104 -0
  151. package/dist/types.d.mts +1 -1
  152. package/package.json +5 -1
package/dist/module.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as _nuxt_schema from '@nuxt/schema';
2
- import { JunBrand, JunPageTypesOption, JunFeatures, JunContextMenuOptions, JunNavigationOptions, JunCampfireOptions, JunBackdropKind, JunLayoutPolicy, JunSiteConfigDefaults, JunSeedOptions, JunJanitorOptions, JunGuestNames, JunEmbedOptions, JunMosaicOptions, JunServicesOptions, JunPaletteSet } from '../dist/runtime/types.js';
3
- export { JunBackdropKind, JunBrand, JunCampfireOptions, JunCampfirePillMode, JunCampfirePlacement, JunCampfireRosterStyle, JunCampfireSize, JunCampfireTab, JunContextMenuOptions, JunEmbedOptions, JunFeatures, JunGuestNames, JunJanitorBaselineMode, JunJanitorIdentity, JunJanitorIdentityMode, JunJanitorMode, JunJanitorOptions, JunJsonLdSpec, JunLayoutPolicy, JunMosaicOptions, JunNavActiveStyle, JunNavItemMode, JunNavPlacement, JunNavShape, JunNavSize, JunNavigationOptions, JunPageTypeKey, JunPageTypeOverride, JunPageTypesOption, JunPalette, JunPaletteSet, JunRuntimeOptions, JunSeedNode, JunSeedOptions, JunServicesOptions, JunSiteConfigDefaults } from '../dist/runtime/types.js';
2
+ import { JunBrand, JunPageTypesOption, JunFeatures, JunContextMenuOptions, JunNavigationOptions, JunCampfireOptions, JunBackdropKind, JunLayoutPolicy, JunSiteConfigDefaults, JunSeedOptions, JunJanitorOptions, JunGuestNames, JunRendererDefaults, JunEmbedOptions, JunMosaicOptions, JunServicesOptions, JunPaletteSet } from '../dist/runtime/types.js';
3
+ export { JunBackdropKind, JunBrand, JunCampfireOptions, JunCampfirePillMode, JunCampfirePlacement, JunCampfireRosterStyle, JunCampfireSize, JunCampfireTab, JunContextMenuOptions, JunEmbedOptions, JunFeatures, JunGuestNames, JunJanitorBaselineMode, JunJanitorIdentity, JunJanitorIdentityMode, JunJanitorMode, JunJanitorOptions, JunJsonLdSpec, JunLayoutPolicy, JunMosaicOptions, JunNavActiveStyle, JunNavItemMode, JunNavPlacement, JunNavShape, JunNavSize, JunNavigationOptions, JunPageTypeKey, JunPageTypeOverride, JunPageTypesOption, JunPalette, JunPaletteSet, JunRendererDefaults, JunRuntimeOptions, JunSeedNode, JunSeedOptions, JunServicesOptions, JunSiteConfigDefaults } from '../dist/runtime/types.js';
4
4
 
5
5
  interface ModuleOptions {
6
6
  /** Site identity. The only thing most sites need to set. */
@@ -103,6 +103,21 @@ interface ModuleOptions {
103
103
  mapboxToken?: string;
104
104
  /** Extra meta keys that must never auto-materialise as an editor chip. */
105
105
  metaExcludeKeys?: string[];
106
+ /**
107
+ * The site's HOUSE STYLE for its renderers — how each page type lays out
108
+ * before any owner touches it.
109
+ *
110
+ * Keyed by page-type key, then by the option keys that type's renderer
111
+ * declares (`{ library: { variant: 'grid', covers: true } }`). An owner still
112
+ * overrides any of it per document, and a document that stores nothing follows
113
+ * whatever is set here — so changing a default later reaches every page that
114
+ * never disagreed with it.
115
+ *
116
+ * Unknown keys and out-of-range values are IGNORED rather than rendered: a
117
+ * variant a renderer does not have falls back to its default, because a
118
+ * mistyped setting must not be able to blank a page.
119
+ */
120
+ renderers?: JunRendererDefaults;
106
121
  /**
107
122
  * How the site treats media it does not host — the video facade's poster
108
123
  * policy. `features.thirdPartyEmbeds` is the on/off switch; this is the
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.0.0"
6
6
  },
7
- "version": "2.85.0",
7
+ "version": "2.86.0",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -33,13 +33,121 @@ const PAGE_TYPES = {
33
33
  label: "Links",
34
34
  icon: "i-lucide-link",
35
35
  renderer: "JunLinksRenderer",
36
+ default: true,
37
+ // A row WITH a url opens outward and its page is rarely visited by a
38
+ // human — but it is in the sitemap either way, so it is a page a crawler
39
+ // reads. "Rarely visited" was the reasoning that left it blank.
40
+ itemChildren: {
41
+ label: "Link",
42
+ icon: "i-lucide-link"
43
+ }
44
+ },
45
+ thread: {
46
+ label: "Conversation",
47
+ icon: "i-lucide-messages-square",
48
+ renderer: "JunThreadRenderer",
49
+ default: true,
50
+ jsonLd: {
51
+ "@context": "https://schema.org",
52
+ "@type": "DiscussionForumPosting",
53
+ "headline": { from: "title" },
54
+ "description": { from: "description" },
55
+ "datePublished": { from: "meta.date", format: "iso-date" },
56
+ "author": { "@type": "Person", "name": { from: "authorName" } }
57
+ }
58
+ },
59
+ course: {
60
+ label: "Course",
61
+ icon: "i-lucide-graduation-cap",
62
+ renderer: "JunCourseRenderer",
63
+ default: true,
64
+ // Steps ARE pages: each one renders through the shared item page unless it
65
+ // carries a type of its own. Nothing about a step is special except its
66
+ // position, which is the tree's `order`.
67
+ itemChildren: {
68
+ label: "Step",
69
+ icon: "i-lucide-list-ordered",
70
+ jsonLd: {
71
+ "@context": "https://schema.org",
72
+ "@type": "LearningResource",
73
+ "name": { from: "title" },
74
+ "description": { from: "description" }
75
+ }
76
+ },
77
+ // NOT `feedItems`: a course is revised, not published in instalments, and
78
+ // syndicating every step edit is what makes a documentation feed unreadable.
79
+ jsonLd: {
80
+ "@context": "https://schema.org",
81
+ "@type": "Course",
82
+ "name": { from: "title" },
83
+ "description": { from: "description" },
84
+ "provider": { "@type": "Person", "name": { from: "authorName" } }
85
+ }
86
+ },
87
+ garden: {
88
+ label: "Garden",
89
+ icon: "i-lucide-sprout",
90
+ renderer: "JunGardenRenderer",
91
+ default: true,
92
+ // A garden's notes ARE pages, so an unclaimed child renders as an item — the
93
+ // same choice the library and the cinema make. A note with its own type
94
+ // (usually `jun-entry`, which has the prose settings) keeps its own renderer.
95
+ itemChildren: {
96
+ label: "Note",
97
+ icon: "i-lucide-notebook-pen",
98
+ jsonLd: {
99
+ "@context": "https://schema.org",
100
+ "@type": "Article",
101
+ "headline": { from: "title" },
102
+ "description": { from: "description" },
103
+ "author": { "@type": "Person", "name": { from: "authorName" } }
104
+ }
105
+ },
106
+ // A collection of writing, which is what a garden is. NOT `feedItems`: notes
107
+ // are revised rather than published, and syndicating a note every time
108
+ // somebody tends it is what makes a wiki's feed unreadable.
109
+ jsonLd: {
110
+ "@context": "https://schema.org",
111
+ "@type": "CollectionPage",
112
+ "name": { from: "title" },
113
+ "description": { from: "description" }
114
+ }
115
+ },
116
+ poll: {
117
+ label: "Poll",
118
+ icon: "i-lucide-chart-no-axes-column",
119
+ renderer: "JunPollRenderer",
36
120
  default: true
121
+ // No `itemChildren`: a poll's choices are meta on the poll itself, not child
122
+ // documents. A choice is a word, and giving each one a page — with a slug, a
123
+ // feed entry and a sitemap line — would be a lot of site for the word "Yes".
124
+ },
125
+ deck: {
126
+ label: "Deck",
127
+ icon: "i-lucide-presentation",
128
+ renderer: "JunDeckRenderer",
129
+ default: true,
130
+ // A talk is a document with headings, so the structured data is the same
131
+ // shape an entry's is — a written thing with a date and an author. Nothing
132
+ // about presenting it changes what it IS.
133
+ jsonLd: {
134
+ "@context": "https://schema.org",
135
+ "@type": "PresentationDigitalDocument",
136
+ "name": { from: "title" },
137
+ "description": { from: "description" },
138
+ "datePublished": { from: "meta.date", format: "iso-date" },
139
+ "author": { "@type": "Person", "name": { from: "authorName" } }
140
+ }
37
141
  },
38
142
  cv: {
39
143
  label: "Journey",
40
144
  icon: "i-lucide-milestone",
41
145
  renderer: "JunCvRenderer",
42
146
  default: true,
147
+ itemChildren: {
148
+ label: "Station",
149
+ icon: "i-lucide-milestone"
150
+ },
43
151
  jsonLd: {
44
152
  "@context": "https://schema.org",
45
153
  "@type": "ProfilePage",
@@ -101,19 +209,54 @@ const PAGE_TYPES = {
101
209
  label: "Uses",
102
210
  icon: "i-lucide-wrench",
103
211
  renderer: "JunUsesRenderer",
104
- default: true
212
+ default: true,
213
+ itemChildren: {
214
+ label: "Tool",
215
+ icon: "i-lucide-wrench",
216
+ jsonLd: {
217
+ "@context": "https://schema.org",
218
+ "@type": "Product",
219
+ "name": { from: "title" },
220
+ "description": { from: "description" },
221
+ "category": { from: "meta.category" },
222
+ "url": { from: "meta.url" }
223
+ }
224
+ }
105
225
  },
106
226
  library: {
107
227
  label: "Library",
108
228
  icon: "i-lucide-library",
109
229
  renderer: "JunLibraryRenderer",
110
- default: true
230
+ default: true,
231
+ itemChildren: {
232
+ label: "Book",
233
+ icon: "i-lucide-book",
234
+ jsonLd: {
235
+ "@context": "https://schema.org",
236
+ "@type": "Book",
237
+ "name": { from: "title" },
238
+ "description": { from: "description" },
239
+ "author": { "@type": "Person", "name": { from: "meta.author" } },
240
+ "url": { from: "meta.url" }
241
+ }
242
+ }
111
243
  },
112
244
  wall: {
113
245
  label: "Wall",
114
246
  icon: "i-lucide-images",
115
247
  renderer: "JunWallRenderer",
116
- default: true
248
+ default: true,
249
+ itemChildren: {
250
+ label: "Photograph",
251
+ icon: "i-lucide-image",
252
+ jsonLd: {
253
+ "@context": "https://schema.org",
254
+ "@type": "Photograph",
255
+ "name": { from: "title" },
256
+ "description": { from: "description" },
257
+ "dateCreated": { from: "meta.dateTaken", format: "iso-date" }
258
+ }
259
+ }
117
260
  },
118
261
  redirect: {
119
262
  label: "Redirect",
@@ -188,7 +331,15 @@ const PAGE_TYPES = {
188
331
  label: "Signals",
189
332
  icon: "i-lucide-radar",
190
333
  renderer: "JunServicesRenderer",
191
- default: true
334
+ default: true,
335
+ // The card's live figures are not repeated on the item page: they are
336
+ // fetched per render and belong to the card. What the page adds is the
337
+ // document — which provider, which reference, and whatever the owner has
338
+ // written about why this thing is being watched.
339
+ itemChildren: {
340
+ label: "Signal",
341
+ icon: "i-lucide-radar"
342
+ }
192
343
  },
193
344
  mosaic: {
194
345
  label: "Mosaic",
@@ -204,9 +355,20 @@ const PAGE_TYPES = {
204
355
  // never referenced, so mapbox-gl never enters the bundle graph and no site
205
356
  // pays for a dependency it did not ask for. It is also the module's only
206
357
  // page type that needs an external service token.
207
- default: false
358
+ default: false,
359
+ itemChildren: {
360
+ label: "Waypoint",
361
+ icon: "i-lucide-map-pin",
362
+ jsonLd: {
363
+ "@context": "https://schema.org",
364
+ "@type": "Place",
365
+ "name": { from: "title" },
366
+ "description": { from: "description" }
367
+ }
368
+ }
208
369
  }
209
370
  };
371
+ const ITEM_TYPE_ID = "jun-item";
210
372
  const BUILTIN_META_EXCLUDE_KEYS = [
211
373
  "draft",
212
374
  "bodyIsMirror",
@@ -261,7 +423,22 @@ const BUILTIN_META_EXCLUDE_KEYS = [
261
423
  "paneWidget",
262
424
  "paneSpan",
263
425
  "paneRect",
264
- "paneInteractive"
426
+ "paneInteractive",
427
+ // A renderer's DISPLAY settings — which variant, how dense, which fields
428
+ // (`useJunViewOptions`). One namespaced object rather than a key per option,
429
+ // which is also why this is one entry here instead of a growing list. Edited
430
+ // through `<JunViewControls>`; a chip for it would stringify the object.
431
+ "junView",
432
+ // A note's stated maturity (`seedling` / `budding` / `evergreen`), picked from
433
+ // a select on the page. Excluded for the same reason as `mosaicLayout`: it has
434
+ // a fixed vocabulary, and a chip for it is a free-text field where "evergreeen"
435
+ // reads as no answer at all.
436
+ "maturity",
437
+ // Who has got how far through a course — an object keyed by IDENTITY, written
438
+ // only by the RPC runner. Same class of hazard as `pollVotes`: a chip would
439
+ // stringify every learner's progress onto the page, and it is not owner content
440
+ // in the first place.
441
+ "courseProgress"
265
442
  ];
266
443
  const DEFAULT_SERVICE_ADAPTERS = [
267
444
  "github-repo",
@@ -574,7 +751,8 @@ const module$1 = defineNuxtModule({
574
751
  autoInstall: true,
575
752
  embeds: { remoteThumbnails: false },
576
753
  mosaic: { maxPanes: 24, maxDepth: 1 },
577
- services: { adapters: DEFAULT_SERVICE_ADAPTERS, ttl: 600 }
754
+ services: { adapters: DEFAULT_SERVICE_ADAPTERS, ttl: 600 },
755
+ renderers: {}
578
756
  },
579
757
  async setup(options, nuxt) {
580
758
  const resolver = createResolver(import.meta.url);
@@ -632,18 +810,24 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
632
810
  immersive: options.layout?.immersive ?? ["graph", "map", ...present("globe")],
633
811
  panel: options.layout?.panel ?? DEFAULT_PANEL_TYPES,
634
812
  feed: options.layout?.feed ?? present("home", "apps", "journal", "live", "wall", "cinema", "festival", "services", "mosaic"),
635
- selfPadded: options.layout?.selfPadded ?? present(
636
- "entry",
637
- "now",
638
- "app",
639
- "uses",
640
- "library",
641
- "redirect",
642
- "guestbook",
643
- "stats",
644
- "movie",
645
- "track"
646
- ),
813
+ selfPadded: options.layout?.selfPadded ?? [
814
+ ...present(
815
+ "entry",
816
+ "now",
817
+ "app",
818
+ "uses",
819
+ "library",
820
+ "redirect",
821
+ "guestbook",
822
+ "stats",
823
+ "movie",
824
+ "track"
825
+ ),
826
+ // The item page owns its own column and padding, like every other
827
+ // detail type. Not `present()`-gated: it is registered
828
+ // unconditionally, so it cannot drop out with a disabled key.
829
+ ITEM_TYPE_ID
830
+ ],
647
831
  readingWidth: options.layout?.readingWidth ?? { prose: "max-w-3xl", default: "max-w-6xl" }
648
832
  };
649
833
  function defaultPaletteMap() {
@@ -708,6 +892,13 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
708
892
  jsonLd: Object.fromEntries(
709
893
  enabled.filter((e) => e.def.jsonLd).map((e) => [e.type, e.def.jsonLd])
710
894
  ),
895
+ // Keyed by the PARENT's registered type id, so a site that remaps
896
+ // `library` to a legacy id keeps its book pages — the same reason
897
+ // `typeIds` exists. Disabled types drop out with everything else.
898
+ itemParents: Object.fromEntries(
899
+ enabled.filter((e) => e.def.itemChildren).map((e) => [e.type, { ...e.def.itemChildren }])
900
+ ),
901
+ itemType: ITEM_TYPE_ID,
711
902
  metaExcludeKeys: [...BUILTIN_META_EXCLUDE_KEYS, ...options.metaExcludeKeys ?? []],
712
903
  palettes: options.palettes ?? DEFAULT_PALETTES,
713
904
  paletteMap: options.paletteMap ?? defaultPaletteMap(),
@@ -721,6 +912,10 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
721
912
  maxPanes: options.mosaic?.maxPanes ?? 24,
722
913
  maxDepth: options.mosaic?.maxDepth ?? 1
723
914
  },
915
+ // The site's house style for its renderers. Not merged with anything —
916
+ // there is no module-level default block, because each renderer declares
917
+ // its own defaults beside the layout they drive (`useJunViewOptions`).
918
+ renderers: options.renderers ?? {},
724
919
  services: {
725
920
  // Replacement, not a merge: a site listing two adapters means two, and
726
921
  // `defu` would hand it those two plus all seven of ours.
@@ -830,6 +1025,18 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
830
1025
  ` metaSchema: junMetaSchema(${JSON.stringify(e.key)}),`,
831
1026
  ` },`
832
1027
  ].join("\n"));
1028
+ const itemEntry = [
1029
+ ` ${JSON.stringify(ITEM_TYPE_ID)}: {`,
1030
+ ` label: ${JSON.stringify("Item")},`,
1031
+ ` icon: ${JSON.stringify("i-lucide-file-text")},`,
1032
+ ` component: itemRenderer,`,
1033
+ ` hasEditor: false,`,
1034
+ // No schema of its own on purpose: an item's chips come from its
1035
+ // PARENT, which `AEditor` already resolves by walking up the tree
1036
+ // from `parentId`. Declaring one here would shadow the collection's.
1037
+ ` metaSchema: undefined,`,
1038
+ ` },`
1039
+ ].join("\n");
833
1040
  return [
834
1041
  "// AUTO-GENERATED by @abraca/junis \u2014 page-type registration.",
835
1042
  "// Renderers are lazy: each drags in a heavy dep graph transitively",
@@ -841,6 +1048,9 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
841
1048
  `import { junMetaSchema } from ${JSON.stringify(resolver.resolve("./runtime/utils/junMetaSchemas"))}`,
842
1049
  "",
843
1050
  ...imports,
1051
+ `const itemRenderer = defineAsyncComponent(() => import(${JSON.stringify(
1052
+ resolver.resolve("./runtime/components/renderers/JunItemRenderer.vue")
1053
+ )}))`,
844
1054
  "",
845
1055
  "export default defineNuxtPlugin((nuxtApp) => {",
846
1056
  " const jun = useRuntimeConfig().public.jun",
@@ -851,6 +1061,7 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
851
1061
  " metaExcludeKeys: jun.metaExcludeKeys,",
852
1062
  " pageTypes: {",
853
1063
  ...entries,
1064
+ itemEntry,
854
1065
  " },",
855
1066
  " })",
856
1067
  " })",
@@ -899,6 +1110,9 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
899
1110
  if (enabled.some((e) => e.key === "stats")) {
900
1111
  addServerHandler({ route: `${base}/stats`, handler: resolver.resolve("./runtime/server/api/stats.get") });
901
1112
  }
1113
+ if (enabled.some((e) => e.key === "garden")) {
1114
+ addServerHandler({ route: `${base}/links`, handler: resolver.resolve("./runtime/server/api/links.get") });
1115
+ }
902
1116
  if (enabled.some((e) => e.key === "services")) {
903
1117
  addServerHandler({ route: `${base}/service`, handler: resolver.resolve("./runtime/server/api/service.get") });
904
1118
  }
@@ -929,6 +1143,8 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
929
1143
  addPlugin(resolver.resolve("./runtime/plugins/jun-sw.client"));
930
1144
  }
931
1145
  }
1146
+ addServerHandler({ route: `${base}/health`, handler: resolver.resolve("./runtime/server/api/health.get") });
1147
+ addServerPlugin(resolver.resolve("./runtime/server/plugins/jun-watchdog"));
932
1148
  if (runtime.features.docCache) {
933
1149
  addServerPlugin(resolver.resolve("./runtime/server/plugins/jun-doc-cache"));
934
1150
  nuxt.options.nitro.experimental = defu(nuxt.options.nitro.experimental, { tasks: true });
@@ -10,4 +10,4 @@
10
10
  dark:from-neutral-900/65 dark:to-neutral-900/45
11
11
  border border-white/10 dark:border-white/5
12
12
  ring-1 ring-black/5 dark:ring-white/10
13
- shadow-lg shadow-black/10}}@layer base{.jun-flow-page{padding-bottom:env(safe-area-inset-bottom,0);padding-top:6rem}html[data-jun-nav=bottom] .jun-flow-page,html[data-jun-nav=rail-left] .jun-flow-page,html[data-jun-nav=rail-right] .jun-flow-page{padding-top:2rem}html[data-jun-nav=rail-left] .jun-flow-page{padding-left:var(--jun-nav-rail-w,0)}html[data-jun-nav=rail-right] .jun-flow-page{padding-right:var(--jun-nav-rail-w,0)}html[data-jun-nav=bottom] .jun-flow-page{padding-bottom:calc(7rem + env(safe-area-inset-bottom, 0px))}body,html{color-scheme:light dark;overscroll-behavior:none;scroll-behavior:smooth}body{-webkit-tap-highlight-color:transparent;padding-top:env(safe-area-inset-top);touch-action:manipulation}@media (display-mode:standalone){.jun-bar,.jun-nav,.jun-studio-bar{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:root:not(.dark) body:before{background:var(--color-neutral-900);content:"";height:env(safe-area-inset-top,0);inset:0 0 auto;pointer-events:none;position:fixed;z-index:40}}html{overflow-y:scroll;scrollbar-gutter:stable}:root[style*="--scrollbar-width"] body,body[data-scroll-locked]{margin-right:0!important;padding-right:0!important}html.jun-viewport-bound,html.jun-viewport-bound body{height:100dvh;overflow:hidden}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:var(--ui-border);border:2px solid transparent;border-radius:9999px}::-webkit-scrollbar-thumb:hover{background-color:var(--ui-border-accented)}::-webkit-scrollbar-corner{background:transparent}*{scrollbar-color:var(--ui-border) transparent;scrollbar-width:thin}.jun-scrollbar-hide::-webkit-scrollbar{display:none}.jun-scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.ProseMirror[contenteditable=false] .meta-field-chip,.ProseMirror[contenteditable=false] [data-type=document-meta],.aeditor-breadcrumb{display:none!important}html[data-jun-player] body{padding-bottom:calc(4rem + env(safe-area-inset-bottom, 0px))}html[data-jun-player][data-jun-nav=bottom] body{padding-bottom:0}.jun-player{bottom:calc(1rem + env(safe-area-inset-bottom, 0px));left:50%;max-width:min(22rem,calc(100vw - 10rem));translate:-50% 0;width:-moz-max-content;width:max-content}html[data-jun-nav=bottom] .jun-player{bottom:auto;max-width:min(22rem,calc(100vw - 2rem));top:calc(1rem + env(safe-area-inset-top, 0px))}.jun-player-sheet{bottom:calc(1.5rem + env(safe-area-inset-bottom, 0px) + var(--jun-player-h, 0px));left:50%;translate:-50% 0;width:min(22rem,calc(100vw - 10rem))}html[data-jun-nav=bottom] .jun-player-sheet{bottom:auto;top:calc(1.5rem + env(safe-area-inset-top, 0px) + var(--jun-player-h, 0px));width:min(22rem,calc(100vw - 2rem))}}:root{--ui-primary:#000;--ui-container:70rem;--jun-canvas:var(--color-neutral-100);--jun-nav-h:3rem;--jun-nav-offset:calc(var(--jun-nav-h) + env(safe-area-inset-top, 0px));--jun-chrome-top:0px;--jun-chrome-bottom:0px;--jun-chrome-left-top:0px;--jun-chrome-left-bottom:0px;--jun-chrome-right-top:0px;--jun-chrome-right-bottom:0px;--jun-sun-from:#24242a;--jun-sun-to:#0f0f12;--jun-sun-core:#fff;--jun-sun-glow:#18181b;--jun-ember:#f59e0b;--jun-ember-glow:#fbbf24}.dark{--ui-primary:#fff;--jun-canvas:var(--color-neutral-950);--jun-sun-from:#fafafa;--jun-sun-to:#e4e4e7;--jun-sun-core:#101013;--jun-sun-glow:#f4f4f5}body,html{background-color:var(--jun-canvas)}.jun-nav-docked{border-left-color:transparent;border-radius:0;border-right-color:transparent;border-top-color:transparent;height:var(--jun-nav-offset);max-width:none;padding-top:env(safe-area-inset-top,0)}.jun-panel-page{top:var(--jun-nav-offset)}.a-map-toolbar-bar,.graph-toolbar-bar{backdrop-filter:blur(8px)!important;background:linear-gradient(180deg,#fff,hsla(0,0%,100%,.4))!important;border:1px solid hsla(0,0%,100%,.1)!important;border-radius:9999px!important;bottom:calc(1.5rem + env(safe-area-inset-bottom, 0px))!important;box-shadow:0 20px 25px -5px rgba(0,0,0,.12),0 8px 10px -6px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.05)!important;gap:4px!important;padding:4px 10px!important}.dark .a-map-toolbar-bar,.dark .graph-toolbar-bar{background:linear-gradient(180deg,#18181b,rgba(24,24,27,.7))!important;border-color:rgba(0,0,0,.05)!important;box-shadow:0 20px 25px -5px rgba(0,0,0,.4),0 8px 10px -6px rgba(0,0,0,.3),0 0 0 1px hsla(0,0%,100%,.1)!important}.a-map-toolbar-bar .toolbar-divider,.graph-toolbar-bar .toolbar-divider{background:rgba(0,0,0,.12)!important}.dark .a-map-toolbar-bar .toolbar-divider,.dark .graph-toolbar-bar .toolbar-divider{background:hsla(0,0%,100%,.15)!important}.graph-minimap{top:6rem!important}.jun-fade-enter-active,.jun-fade-leave-active{transition:opacity .22s ease}.jun-fade-enter-from,.jun-fade-leave-to{opacity:0}html[data-jun-restore] .jun-fade-enter-active,html[data-jun-restore] .jun-fade-leave-active{transition:none}.aa-presence-blobs__blob{filter:none;-webkit-mask-image:radial-gradient(closest-side,#000 0,rgba(0,0,0,.62) 42%,rgba(0,0,0,.22) 68%,transparent 100%);mask-image:radial-gradient(closest-side,#000 0,rgba(0,0,0,.62) 42%,rgba(0,0,0,.22) 68%,transparent 100%);opacity:.3}:root:not(.dark) .aa-presence-blobs__blob{opacity:.2}:root:not(.dark) .jun-presence-blobs{mix-blend-mode:multiply}:root:not(.dark) .jun-presence-blobs__blob{opacity:.24}:root:not(.dark) .jun-presence-blobs__blob:not(.is-anchored){opacity:.15}.jun-logo{transition:transform .4s cubic-bezier(.22,1,.36,1),filter .4s ease,opacity .5s ease}.jun-logo-dot,.jun-sun-core{transform-box:fill-box;transform-origin:center;transition:transform .4s cubic-bezier(.22,1,.36,1)}.jun-logo-dot:nth-of-type(2){transition-delay:.04s}.jun-logo-dot:nth-of-type(3){transition-delay:.08s}.jun-sun-halo{transform-box:fill-box;transform-origin:center;transition:opacity .4s ease,transform .4s cubic-bezier(.22,1,.36,1)}:is(.jun-logo:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo):not(.jun-logo--sun){transform:scale(1.04)}:is(.jun-logo:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo) .jun-logo-dot{transform:scale(1.18)}:is(.jun-logo--sun:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo--sun) .jun-sun-halo{opacity:.8;transform:scale(1.14)}:is(.jun-logo--sun:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo--sun) .jun-sun-core{transform:scale(1.1)}:is(.jun-logo:active,:is(a,button,summary):active .jun-logo):not(.jun-logo--sun){transform:scale(.96)}:is(.jun-logo--sun:active,:is(a,button,summary):active .jun-logo--sun) .jun-sun-core{transform:scale(.9)}.jun-logo-bang:empty{display:none}.jun-logo-bang{display:inline-block;font-weight:700;padding-inline:.02em;transition:transform .4s cubic-bezier(.22,1,.36,1)}:is(a,button,summary,.jun-logo-lockup):hover .jun-logo-bang{transform:translateY(-.06em)}.jun-logo-lockup.is-sun .jun-logo-bang{color:var(--jun-sun-glow)}@media (prefers-reduced-motion:reduce){.jun-logo,.jun-logo-bang,.jun-logo-dot,.jun-sun-core,.jun-sun-halo{transition:none}}html.doc-dragging .ProseMirror{border-radius:8px;outline:2px dashed rgba(0,0,0,.18);outline-offset:8px;transition:outline-color .2s ease}html.dark.doc-dragging .ProseMirror,html.doc-dragging.dark .ProseMirror{outline-color:hsla(0,0%,100%,.22)}html.doc-dragging [data-doc-drop-zone]{border-radius:10px;outline:2px dashed rgba(0,0,0,.14);outline-offset:4px}html.dark.doc-dragging [data-doc-drop-zone],html.doc-dragging.dark [data-doc-drop-zone]{outline-color:hsla(0,0%,100%,.18)}html.theme-switching,html.theme-switching *{transition:background-color .45s ease,color .45s ease,border-color .45s ease,fill .45s ease,stroke .45s ease!important}@media (prefers-reduced-motion:reduce){.jun-fade-enter-active,.jun-fade-leave-active{transition:none}html.theme-switching,html.theme-switching *{transition:none!important}}html.jun-surface-soft *,html.jun-surface-soft :after,html.jun-surface-soft :before,html.jun-surface-solid *,html.jun-surface-solid :after,html.jun-surface-solid :before{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html.jun-surface-soft .jun-blur,html.jun-surface-soft .jun-blur-gradient,html.jun-surface-soft .jun-blur-inverted,html.jun-surface-soft .jun-campfire-banner,html.jun-surface-soft .jun-campfire-panel,html.jun-surface-soft .jun-campfire-pill,html.jun-surface-soft .jun-chrome{backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}html.jun-surface-solid .jun-blur,html.jun-surface-solid .jun-blur-gradient,html.jun-surface-solid .jun-card,html.jun-surface-solid .jun-chrome:not(.is-on){background-color:color-mix(in srgb,var(--color-neutral-50) 97%,transparent)!important;background-image:none!important}html.jun-surface-solid.dark .jun-blur,html.jun-surface-solid.dark .jun-blur-gradient,html.jun-surface-solid.dark .jun-card,html.jun-surface-solid.dark .jun-chrome:not(.is-on){background-color:color-mix(in srgb,var(--color-neutral-900) 97%,transparent)!important}html.jun-surface-solid .jun-bar.is-on{background-color:var(--color-neutral-900)!important;background-image:none!important}html.jun-surface-solid.dark .jun-bar.is-on{background-color:var(--color-neutral-100)!important}html.jun-surface-solid .jun-campfire-banner,html.jun-surface-solid .jun-campfire-panel,html.jun-surface-solid .jun-campfire-pill{background:color-mix(in srgb,var(--color-neutral-50) 97%,transparent)!important}html.jun-surface-solid.dark .jun-campfire-banner,html.jun-surface-solid.dark .jun-campfire-panel,html.jun-surface-solid.dark .jun-campfire-pill{background:color-mix(in srgb,var(--color-neutral-900) 97%,transparent)!important}html.jun-surface-solid .jun-blur-inverted{background-color:rgba(250,250,252,.92)!important;background-image:none!important}html.jun-surface-solid.dark .jun-blur-inverted{background-color:rgba(14,15,17,.92)!important}.jun-palette-panel{display:flex;flex-direction:column;left:var(--jun-palette-left,50vw);max-height:var(--jun-palette-max-h,min(60vh,34rem));max-width:none;overflow:hidden;position:fixed;top:var(--jun-palette-top,5.5rem);transform-origin:var(--jun-palette-origin,top center);translate:var(--jun-palette-tx,-50%) var(--jun-palette-ty,0);width:var(--jun-palette-w,min(42rem,calc(100vw - 2rem)))}.jun-palette-panel[data-state=open]{animation:jun-palette-in .26s cubic-bezier(.22,1,.36,1) both}.jun-palette-panel[data-state=closed]{animation:jun-palette-out .13s ease-in both}@keyframes jun-palette-in{0%{opacity:0;transform:var(--jun-palette-from,translateY(-8px)) scale(.97)}to{opacity:1;transform:none}}@keyframes jun-palette-out{0%{opacity:1;transform:none}to{opacity:0;transform:var(--jun-palette-from,translateY(-8px)) scale(.98)}}.jun-palette-cursor{border-radius:.375rem;left:.5rem;pointer-events:none;position:absolute;right:.5rem;top:0;transition:transform .26s cubic-bezier(.22,1,.36,1),height .26s cubic-bezier(.22,1,.36,1),opacity .16s ease}.jun-palette-cursor.is-placing{transition:none}.jun-settings-panel{display:flex;flex-direction:column;height:min(46rem,calc(100vh - 4rem));left:50vw;max-height:none;max-width:none;overflow:hidden;position:fixed;top:50vh;transform-origin:center;translate:-50% -50%;width:min(56rem,calc(100vw - 2rem))}.jun-settings-panel[data-state=open]{animation:jun-settings-in .26s cubic-bezier(.22,1,.36,1) both}.jun-settings-panel[data-state=closed]{animation:jun-settings-out .13s ease-in both}@keyframes jun-settings-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}@keyframes jun-settings-out{0%{opacity:1;transform:none}to{opacity:0;transform:scale(.98)}}@media (max-width:767px){.jun-settings-panel{border-radius:.75rem;height:calc(100dvh - 2rem);width:calc(100vw - 1rem)}}.jun-settings-marker{transition:top .22s cubic-bezier(.22,1,.36,1),height .22s cubic-bezier(.22,1,.36,1)}@media (prefers-reduced-motion:reduce){.jun-settings-panel[data-state=closed],.jun-settings-panel[data-state=open]{animation-duration:1ms}.jun-settings-marker{transition:none}}.jun-palette-stagger>*{animation:jun-palette-row-in .32s cubic-bezier(.22,1,.36,1) both}@keyframes jun-palette-row-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.jun-pal-move{transition:transform .28s cubic-bezier(.22,1,.36,1)}.jun-pal-enter-active{transition:opacity .2s ease,transform .2s cubic-bezier(.22,1,.36,1)}.jun-pal-leave-active{left:0;position:absolute;right:0;transition:opacity .12s ease,transform .12s ease}.jun-pal-enter-from,.jun-pal-leave-to{opacity:0;transform:translateY(-4px)}.jun-palette-snippet mark{background:transparent;color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px}@media (prefers-reduced-motion:reduce){.jun-palette-panel[data-state=closed],.jun-palette-panel[data-state=open],.jun-palette-stagger>*{animation:none}.jun-pal-enter-active,.jun-pal-leave-active,.jun-pal-move,.jun-palette-cursor{transition:none}}html[data-jun-nav=bottom] .jun-player-enter-from,html[data-jun-nav=bottom] .jun-player-leave-to{transform:translateY(-1.5rem)}@media (prefers-reduced-motion:reduce){html[data-jun-nav=bottom] .jun-player-enter-from,html[data-jun-nav=bottom] .jun-player-leave-to{transform:none}}.jun-bar{--jun-bar-stack:0px;--jun-bar-inset:0px;position:fixed;transition:top .45s cubic-bezier(.22,1,.36,1),right .45s cubic-bezier(.22,1,.36,1),bottom .45s cubic-bezier(.22,1,.36,1),left .45s cubic-bezier(.22,1,.36,1),box-shadow .35s ease;z-index:60}.jun-bar-pill{align-items:center;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.jun-bar[data-jun-corner=top-left]{left:calc(var(--jun-chrome-left-top, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-left, 1rem) + env(safe-area-inset-left, 0px))}.jun-bar[data-jun-corner=bottom-left]{left:calc(var(--jun-chrome-left-bottom, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-left, 1rem) + env(safe-area-inset-left, 0px))}.jun-bar[data-jun-corner=top-right]{right:calc(var(--jun-chrome-right-top, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-right, 1rem) + env(safe-area-inset-right, 0px))}.jun-bar[data-jun-corner=bottom-right]{right:calc(var(--jun-chrome-right-bottom, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-right, 1rem) + env(safe-area-inset-right, 0px))}.jun-bar[data-jun-corner^=bottom]{bottom:calc(var(--jun-chrome-bottom, 0px) + var(--jun-bar-stack) + var(--jun-chrome-y-bottom, 1rem) + env(safe-area-inset-bottom, 0px))}.jun-bar[data-jun-corner^=top]{top:calc(var(--jun-chrome-top, 0px) + var(--jun-bar-stack) + var(--jun-chrome-y-top, 1rem) + env(safe-area-inset-top, 0px))}.jun-bar-pill,.jun-bar-trigger{border-radius:var(--jun-chrome-radius,9999px);transition:border-radius .5s cubic-bezier(.22,1,.36,1)}@media (prefers-reduced-motion:reduce){.jun-bar-pill,.jun-bar-trigger{transition:none}}.jun-hearth-embers{height:1px;pointer-events:none;width:1px;z-index:61}.jun-ember-ink{color:var(--jun-ember)}.jun-bar.is-opaque{backdrop-filter:none;-webkit-backdrop-filter:none}.jun-bar.is-opaque:not(.is-on){background-color:color-mix(in srgb,var(--color-neutral-50) 97%,transparent);background-image:none}:root.dark .jun-bar.is-opaque:not(.is-on){background-color:color-mix(in srgb,var(--color-neutral-900) 97%,transparent)}.jun-bar-trigger{touch-action:none;-webkit-touch-callout:none}.jun-bar.is-pressing{box-shadow:0 12px 32px -8px rgba(0,0,0,.28)}.jun-bar.is-on{background-color:var(--color-neutral-900);background-image:none;border-color:transparent;color:var(--color-neutral-50)}:root.dark .jun-bar.is-on{background-color:var(--color-neutral-100);color:var(--color-neutral-900)}.jun-studio-bar{min-height:2.375rem;min-width:4rem}.jun-bar-knob{background-color:var(--color-neutral-900);bottom:1px;box-shadow:0 1px 3px rgba(0,0,0,.2);color:var(--color-neutral-50);left:1px;position:absolute;top:1px;transition:left .42s cubic-bezier(.22,1,.36,1),translate .42s cubic-bezier(.22,1,.36,1),background-color .3s ease,color .3s ease,box-shadow .3s ease;translate:0 0;width:2.25rem}:root.dark .jun-bar-knob{background-color:var(--color-neutral-100);color:var(--color-neutral-900)}.jun-bar.is-on .jun-bar-knob{background-color:var(--color-neutral-50);box-shadow:0 1px 4px rgba(0,0,0,.3);color:var(--color-neutral-900);left:calc(100% - 1px);translate:-100% 0}:root.dark .jun-bar.is-on .jun-bar-knob{background-color:var(--color-neutral-900);color:var(--color-neutral-100)}.jun-bar-row{padding:0;transition:padding .42s cubic-bezier(.22,1,.36,1)}.jun-bar.is-expanded .jun-bar-row{padding-left:2.5rem;padding-right:.5rem}.jun-bar.is-expanded.is-on .jun-bar-row{padding-left:.625rem;padding-right:2.625rem}.jun-bar-sep{background:currentColor;flex:none;height:1rem;margin-inline:.125rem;opacity:.18;width:1px}.jun-bar-title{border-bottom:1px solid color-mix(in srgb,currentColor 22%,transparent);color:inherit}.jun-bar-title::-moz-placeholder{color:currentColor;opacity:.45}.jun-bar-title::placeholder{color:currentColor;opacity:.45}.jun-bar-title:focus{border-bottom-color:color-mix(in srgb,currentColor 55%,transparent)}.jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-50)}.jun-bar.is-on .jun-bar-health,:root.dark .jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-900)}:root.dark .jun-bar.is-on .jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-100)}.jun-bar .jun-bar-trigger:hover,.jun-bar [data-jun-action]:hover{background-color:color-mix(in srgb,currentColor 10%,transparent)}[data-jun-action].is-hot{background-color:color-mix(in srgb,currentColor 18%,transparent);transform:scale(1.06)}[data-jun-action]{transition:background-color .15s ease,transform .15s cubic-bezier(.22,1,.36,1)}@media (prefers-reduced-motion:reduce){.jun-bar,.jun-bar-knob,.jun-bar-row,[data-jun-action]{transition:none}[data-jun-action].is-hot{transform:none}}
13
+ shadow-lg shadow-black/10}}@layer base{.jun-flow-page{padding-bottom:env(safe-area-inset-bottom,0);padding-top:6rem}html[data-jun-nav=bottom] .jun-flow-page,html[data-jun-nav=rail-left] .jun-flow-page,html[data-jun-nav=rail-right] .jun-flow-page{padding-top:2rem}html[data-jun-nav=rail-left] .jun-flow-page{padding-left:var(--jun-nav-rail-w,0)}html[data-jun-nav=rail-right] .jun-flow-page{padding-right:var(--jun-nav-rail-w,0)}html[data-jun-nav=bottom] .jun-flow-page{padding-bottom:calc(7rem + env(safe-area-inset-bottom, 0px))}body,html{color-scheme:light dark;overscroll-behavior:none;scroll-behavior:smooth}body{-webkit-tap-highlight-color:transparent;padding-top:env(safe-area-inset-top);touch-action:manipulation}@media (display-mode:standalone){.jun-bar,.jun-nav,.jun-studio-bar{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:root:not(.dark) body:before{background:var(--color-neutral-900);content:"";height:env(safe-area-inset-top,0);inset:0 0 auto;pointer-events:none;position:fixed;z-index:40}}html{overflow-y:scroll;scrollbar-gutter:stable}:root[style*="--scrollbar-width"] body,body[data-scroll-locked]{margin-right:0!important;padding-right:0!important}html.jun-viewport-bound,html.jun-viewport-bound body{height:100dvh;overflow:hidden}::-webkit-scrollbar{height:10px;width:10px}::-webkit-scrollbar-track{background:transparent}::-webkit-scrollbar-thumb{background-clip:padding-box;background-color:var(--ui-border);border:2px solid transparent;border-radius:9999px}::-webkit-scrollbar-thumb:hover{background-color:var(--ui-border-accented)}::-webkit-scrollbar-corner{background:transparent}*{scrollbar-color:var(--ui-border) transparent;scrollbar-width:thin}.jun-scrollbar-hide::-webkit-scrollbar{display:none}.jun-scrollbar-hide{-ms-overflow-style:none;scrollbar-width:none}.ProseMirror[contenteditable=false] .meta-field-chip,.ProseMirror[contenteditable=false] [data-type=document-meta],.aeditor-breadcrumb{display:none!important}html[data-jun-player] body{padding-bottom:calc(4rem + env(safe-area-inset-bottom, 0px))}html[data-jun-player][data-jun-nav=bottom] body{padding-bottom:0}.jun-player{bottom:calc(1rem + env(safe-area-inset-bottom, 0px));left:50%;max-width:min(22rem,calc(100vw - 10rem));translate:-50% 0;width:-moz-max-content;width:max-content}html[data-jun-nav=bottom] .jun-player{bottom:auto;max-width:min(22rem,calc(100vw - 2rem));top:calc(1rem + env(safe-area-inset-top, 0px))}.jun-player-sheet{bottom:calc(1.5rem + env(safe-area-inset-bottom, 0px) + var(--jun-player-h, 0px));left:50%;translate:-50% 0;width:min(22rem,calc(100vw - 10rem))}html[data-jun-nav=bottom] .jun-player-sheet{bottom:auto;top:calc(1.5rem + env(safe-area-inset-top, 0px) + var(--jun-player-h, 0px));width:min(22rem,calc(100vw - 2rem))}}:root{--ui-primary:#000;--ui-container:70rem;--jun-canvas:var(--color-neutral-100);--jun-nav-h:3rem;--jun-nav-offset:calc(var(--jun-nav-h) + env(safe-area-inset-top, 0px));--jun-chrome-top:0px;--jun-chrome-bottom:0px;--jun-chrome-left-top:0px;--jun-chrome-left-bottom:0px;--jun-chrome-right-top:0px;--jun-chrome-right-bottom:0px;--jun-sun-from:#24242a;--jun-sun-to:#0f0f12;--jun-sun-core:#fff;--jun-sun-glow:#18181b;--jun-ember:#f59e0b;--jun-ember-glow:#fbbf24}.dark{--ui-primary:#fff;--jun-canvas:var(--color-neutral-950);--jun-sun-from:#fafafa;--jun-sun-to:#e4e4e7;--jun-sun-core:#101013;--jun-sun-glow:#f4f4f5}body,html{background-color:var(--jun-canvas)}.jun-nav-docked{border-left-color:transparent;border-radius:0;border-right-color:transparent;border-top-color:transparent;height:var(--jun-nav-offset);max-width:none;padding-top:env(safe-area-inset-top,0)}.jun-panel-page{top:var(--jun-nav-offset)}.a-map-toolbar-bar,.graph-toolbar-bar{backdrop-filter:blur(8px)!important;background:linear-gradient(180deg,#fff,hsla(0,0%,100%,.4))!important;border:1px solid hsla(0,0%,100%,.1)!important;border-radius:9999px!important;bottom:calc(1.5rem + env(safe-area-inset-bottom, 0px))!important;box-shadow:0 20px 25px -5px rgba(0,0,0,.12),0 8px 10px -6px rgba(0,0,0,.1),0 0 0 1px rgba(0,0,0,.05)!important;gap:4px!important;padding:4px 10px!important}.dark .a-map-toolbar-bar,.dark .graph-toolbar-bar{background:linear-gradient(180deg,#18181b,rgba(24,24,27,.7))!important;border-color:rgba(0,0,0,.05)!important;box-shadow:0 20px 25px -5px rgba(0,0,0,.4),0 8px 10px -6px rgba(0,0,0,.3),0 0 0 1px hsla(0,0%,100%,.1)!important}.a-map-toolbar-bar .toolbar-divider,.graph-toolbar-bar .toolbar-divider{background:rgba(0,0,0,.12)!important}.dark .a-map-toolbar-bar .toolbar-divider,.dark .graph-toolbar-bar .toolbar-divider{background:hsla(0,0%,100%,.15)!important}.graph-minimap{top:6rem!important}.jun-fade-enter-active,.jun-fade-leave-active{transition:opacity .22s ease}.jun-fade-enter-from,.jun-fade-leave-to{opacity:0}html[data-jun-restore] .jun-fade-enter-active,html[data-jun-restore] .jun-fade-leave-active{transition:none}.aa-presence-blobs__blob{filter:none;-webkit-mask-image:radial-gradient(closest-side,#000 0,rgba(0,0,0,.62) 42%,rgba(0,0,0,.22) 68%,transparent 100%);mask-image:radial-gradient(closest-side,#000 0,rgba(0,0,0,.62) 42%,rgba(0,0,0,.22) 68%,transparent 100%);opacity:.3}:root:not(.dark) .aa-presence-blobs__blob{opacity:.2}:root:not(.dark) .jun-presence-blobs{mix-blend-mode:multiply}:root:not(.dark) .jun-presence-blobs__blob{opacity:.24}:root:not(.dark) .jun-presence-blobs__blob:not(.is-anchored){opacity:.15}.jun-logo{transition:transform .4s cubic-bezier(.22,1,.36,1),filter .4s ease,opacity .5s ease}.jun-logo-dot,.jun-sun-core{transform-box:fill-box;transform-origin:center;transition:transform .4s cubic-bezier(.22,1,.36,1)}.jun-logo-dot:nth-of-type(2){transition-delay:.04s}.jun-logo-dot:nth-of-type(3){transition-delay:.08s}.jun-sun-halo{transform-box:fill-box;transform-origin:center;transition:opacity .4s ease,transform .4s cubic-bezier(.22,1,.36,1)}:is(.jun-logo:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo):not(.jun-logo--sun){transform:scale(1.04)}:is(.jun-logo:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo) .jun-logo-dot{transform:scale(1.18)}:is(.jun-logo--sun:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo--sun) .jun-sun-halo{opacity:.8;transform:scale(1.14)}:is(.jun-logo--sun:hover,:is(a,button,summary,.jun-logo-lockup):hover .jun-logo--sun) .jun-sun-core{transform:scale(1.1)}:is(.jun-logo:active,:is(a,button,summary):active .jun-logo):not(.jun-logo--sun){transform:scale(.96)}:is(.jun-logo--sun:active,:is(a,button,summary):active .jun-logo--sun) .jun-sun-core{transform:scale(.9)}.jun-logo-bang:empty{display:none}.jun-logo-bang{display:inline-block;font-weight:700;padding-inline:.02em;transition:transform .4s cubic-bezier(.22,1,.36,1)}:is(a,button,summary,.jun-logo-lockup):hover .jun-logo-bang{transform:translateY(-.06em)}.jun-logo-lockup.is-sun .jun-logo-bang{color:var(--jun-sun-glow)}@media (prefers-reduced-motion:reduce){.jun-logo,.jun-logo-bang,.jun-logo-dot,.jun-sun-core,.jun-sun-halo{transition:none}}html.doc-dragging .ProseMirror{border-radius:8px;outline:2px dashed rgba(0,0,0,.18);outline-offset:8px;transition:outline-color .2s ease}html.dark.doc-dragging .ProseMirror,html.doc-dragging.dark .ProseMirror{outline-color:hsla(0,0%,100%,.22)}html.doc-dragging [data-doc-drop-zone]{border-radius:10px;outline:2px dashed rgba(0,0,0,.14);outline-offset:4px}html.dark.doc-dragging [data-doc-drop-zone],html.doc-dragging.dark [data-doc-drop-zone]{outline-color:hsla(0,0%,100%,.18)}html.theme-switching,html.theme-switching *{transition:background-color .45s ease,color .45s ease,border-color .45s ease,fill .45s ease,stroke .45s ease!important}@media (prefers-reduced-motion:reduce){.jun-fade-enter-active,.jun-fade-leave-active{transition:none}html.theme-switching,html.theme-switching *{transition:none!important}}html.jun-surface-soft *,html.jun-surface-soft :after,html.jun-surface-soft :before,html.jun-surface-solid *,html.jun-surface-solid :after,html.jun-surface-solid :before{backdrop-filter:none!important;-webkit-backdrop-filter:none!important}html.jun-surface-soft .jun-blur,html.jun-surface-soft .jun-blur-gradient,html.jun-surface-soft .jun-blur-inverted,html.jun-surface-soft .jun-campfire-banner,html.jun-surface-soft .jun-campfire-panel,html.jun-surface-soft .jun-campfire-pill,html.jun-surface-soft .jun-chrome{backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}html.jun-surface-solid .jun-blur,html.jun-surface-solid .jun-blur-gradient,html.jun-surface-solid .jun-card,html.jun-surface-solid .jun-chrome:not(.is-on){background-color:color-mix(in srgb,var(--color-neutral-50) 97%,transparent)!important;background-image:none!important}html.jun-surface-solid.dark .jun-blur,html.jun-surface-solid.dark .jun-blur-gradient,html.jun-surface-solid.dark .jun-card,html.jun-surface-solid.dark .jun-chrome:not(.is-on){background-color:color-mix(in srgb,var(--color-neutral-900) 97%,transparent)!important}html.jun-surface-solid .jun-bar.is-on{background-color:var(--color-neutral-900)!important;background-image:none!important}html.jun-surface-solid.dark .jun-bar.is-on{background-color:var(--color-neutral-100)!important}html.jun-surface-solid .jun-campfire-banner,html.jun-surface-solid .jun-campfire-panel,html.jun-surface-solid .jun-campfire-pill{background:color-mix(in srgb,var(--color-neutral-50) 97%,transparent)!important}html.jun-surface-solid.dark .jun-campfire-banner,html.jun-surface-solid.dark .jun-campfire-panel,html.jun-surface-solid.dark .jun-campfire-pill{background:color-mix(in srgb,var(--color-neutral-900) 97%,transparent)!important}html.jun-surface-solid .jun-blur-inverted{background-color:rgba(250,250,252,.92)!important;background-image:none!important}html.jun-surface-solid.dark .jun-blur-inverted{background-color:rgba(14,15,17,.92)!important}.jun-palette-panel{display:flex;flex-direction:column;left:var(--jun-palette-left,50vw);max-height:var(--jun-palette-max-h,min(60vh,34rem));max-width:none;overflow:hidden;position:fixed;top:var(--jun-palette-top,5.5rem);transform-origin:var(--jun-palette-origin,top center);translate:var(--jun-palette-tx,-50%) var(--jun-palette-ty,0);width:var(--jun-palette-w,min(42rem,calc(100vw - 2rem)))}.jun-palette-panel[data-state=open]{animation:jun-palette-in .26s cubic-bezier(.22,1,.36,1) both}.jun-palette-panel[data-state=closed]{animation:jun-palette-out .13s ease-in both}@keyframes jun-palette-in{0%{opacity:0;transform:var(--jun-palette-from,translateY(-8px)) scale(.97)}to{opacity:1;transform:none}}@keyframes jun-palette-out{0%{opacity:1;transform:none}to{opacity:0;transform:var(--jun-palette-from,translateY(-8px)) scale(.98)}}.jun-palette-cursor{border-radius:.375rem;left:.5rem;pointer-events:none;position:absolute;right:.5rem;top:0;transition:transform .26s cubic-bezier(.22,1,.36,1),height .26s cubic-bezier(.22,1,.36,1),opacity .16s ease}.jun-palette-cursor.is-placing{transition:none}.jun-settings-panel{display:flex;flex-direction:column;height:min(46rem,calc(100vh - 4rem));left:50vw;max-height:none;max-width:none;overflow:hidden;position:fixed;top:50vh;transform-origin:center;translate:-50% -50%;width:min(56rem,calc(100vw - 2rem))}.jun-settings-panel[data-state=open]{animation:jun-settings-in .26s cubic-bezier(.22,1,.36,1) both}.jun-settings-panel[data-state=closed]{animation:jun-settings-out .13s ease-in both}@keyframes jun-settings-in{0%{opacity:0;transform:scale(.97)}to{opacity:1;transform:none}}@keyframes jun-settings-out{0%{opacity:1;transform:none}to{opacity:0;transform:scale(.98)}}@media (max-width:767px){.jun-settings-panel{border-radius:.75rem;height:calc(100dvh - 2rem);width:calc(100vw - 1rem)}}.jun-settings-marker{transition:top .22s cubic-bezier(.22,1,.36,1),height .22s cubic-bezier(.22,1,.36,1)}@media (prefers-reduced-motion:reduce){.jun-settings-panel[data-state=closed],.jun-settings-panel[data-state=open]{animation-duration:1ms}.jun-settings-marker{transition:none}}.jun-palette-stagger>*{animation:jun-palette-row-in .32s cubic-bezier(.22,1,.36,1) both}@keyframes jun-palette-row-in{0%{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}.jun-pal-move{transition:transform .28s cubic-bezier(.22,1,.36,1)}.jun-pal-enter-active{transition:opacity .2s ease,transform .2s cubic-bezier(.22,1,.36,1)}.jun-pal-leave-active{left:0;position:absolute;right:0;transition:opacity .12s ease,transform .12s ease}.jun-pal-enter-from,.jun-pal-leave-to{opacity:0;transform:translateY(-4px)}.jun-palette-snippet mark{background:transparent;color:inherit;font-weight:600;text-decoration:underline;text-underline-offset:2px}@media (prefers-reduced-motion:reduce){.jun-palette-panel[data-state=closed],.jun-palette-panel[data-state=open],.jun-palette-stagger>*{animation:none}.jun-pal-enter-active,.jun-pal-leave-active,.jun-pal-move,.jun-palette-cursor{transition:none}}html[data-jun-nav=bottom] .jun-player-enter-from,html[data-jun-nav=bottom] .jun-player-leave-to{transform:translateY(-1.5rem)}@media (prefers-reduced-motion:reduce){html[data-jun-nav=bottom] .jun-player-enter-from,html[data-jun-nav=bottom] .jun-player-leave-to{transform:none}}.jun-bar{--jun-bar-stack:0px;--jun-bar-inset:0px;position:fixed;transition:top .45s cubic-bezier(.22,1,.36,1),right .45s cubic-bezier(.22,1,.36,1),bottom .45s cubic-bezier(.22,1,.36,1),left .45s cubic-bezier(.22,1,.36,1),box-shadow .35s ease;z-index:60}.jun-bar-pill{align-items:center;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.jun-bar[data-jun-corner=top-left]{left:calc(var(--jun-chrome-left-top, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-left, 1rem) + env(safe-area-inset-left, 0px))}.jun-bar[data-jun-corner=bottom-left]{left:calc(var(--jun-chrome-left-bottom, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-left, 1rem) + env(safe-area-inset-left, 0px))}.jun-bar[data-jun-corner=top-right]{right:calc(var(--jun-chrome-right-top, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-right, 1rem) + env(safe-area-inset-right, 0px))}.jun-bar[data-jun-corner=bottom-right]{right:calc(var(--jun-chrome-right-bottom, 0px) + var(--jun-bar-inset) + var(--jun-chrome-x-right, 1rem) + env(safe-area-inset-right, 0px))}.jun-bar[data-jun-corner^=bottom]{bottom:calc(var(--jun-chrome-bottom, 0px) + var(--jun-bar-stack) + var(--jun-chrome-y-bottom, 1rem) + env(safe-area-inset-bottom, 0px))}.jun-bar[data-jun-corner^=top]{top:calc(var(--jun-chrome-top, 0px) + var(--jun-bar-stack) + var(--jun-chrome-y-top, 1rem) + env(safe-area-inset-top, 0px))}.jun-bar-pill,.jun-bar-trigger{border-radius:var(--jun-chrome-radius,9999px);transition:border-radius .5s cubic-bezier(.22,1,.36,1)}@media (prefers-reduced-motion:reduce){.jun-bar-pill,.jun-bar-trigger{transition:none}}.jun-hearth-embers{height:1px;pointer-events:none;width:1px;z-index:61}.jun-ember-ink{color:var(--jun-ember)}.jun-bar.is-opaque{backdrop-filter:none;-webkit-backdrop-filter:none}.jun-bar.is-opaque:not(.is-on){background-color:color-mix(in srgb,var(--color-neutral-50) 97%,transparent);background-image:none}:root.dark .jun-bar.is-opaque:not(.is-on){background-color:color-mix(in srgb,var(--color-neutral-900) 97%,transparent)}.jun-bar-trigger{touch-action:none;-webkit-touch-callout:none}.jun-bar.is-pressing{box-shadow:0 12px 32px -8px rgba(0,0,0,.28)}.jun-bar.is-on{background-color:var(--color-neutral-900);background-image:none;border-color:transparent;color:var(--color-neutral-50)}:root.dark .jun-bar.is-on{background-color:var(--color-neutral-100);color:var(--color-neutral-900)}.jun-studio-bar{min-height:2.375rem;min-width:4rem}.jun-bar-knob{background-color:var(--color-neutral-900);bottom:1px;box-shadow:0 1px 3px rgba(0,0,0,.2);color:var(--color-neutral-50);left:1px;position:absolute;top:1px;transition:left .42s cubic-bezier(.22,1,.36,1),translate .42s cubic-bezier(.22,1,.36,1),background-color .3s ease,color .3s ease,box-shadow .3s ease;translate:0 0;width:2.25rem}:root.dark .jun-bar-knob{background-color:var(--color-neutral-100);color:var(--color-neutral-900)}.jun-bar.is-on .jun-bar-knob{background-color:var(--color-neutral-50);box-shadow:0 1px 4px rgba(0,0,0,.3);color:var(--color-neutral-900);left:calc(100% - 1px);translate:-100% 0}:root.dark .jun-bar.is-on .jun-bar-knob{background-color:var(--color-neutral-900);color:var(--color-neutral-100)}.jun-bar-row{padding:0;transition:padding .42s cubic-bezier(.22,1,.36,1)}.jun-bar.is-expanded .jun-bar-row{padding-left:2.5rem;padding-right:.5rem}.jun-bar.is-expanded.is-on .jun-bar-row{padding-left:.625rem;padding-right:2.625rem}.jun-bar-sep{background:currentColor;flex:none;height:1rem;margin-inline:.125rem;opacity:.18;width:1px}.jun-bar-title{border-bottom:1px solid color-mix(in srgb,currentColor 22%,transparent);color:inherit}.jun-bar-title::-moz-placeholder{color:currentColor;opacity:.45}.jun-bar-title::placeholder{color:currentColor;opacity:.45}.jun-bar-title:focus{border-bottom-color:color-mix(in srgb,currentColor 55%,transparent)}.jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-50)}.jun-bar.is-on .jun-bar-health,:root.dark .jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-900)}:root.dark .jun-bar.is-on .jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-100)}.jun-bar .jun-bar-trigger:hover,.jun-bar [data-jun-action]:hover{background-color:color-mix(in srgb,currentColor 10%,transparent)}[data-jun-action].is-hot{background-color:color-mix(in srgb,currentColor 18%,transparent);transform:scale(1.06)}[data-jun-action]{transition:background-color .15s ease,transform .15s cubic-bezier(.22,1,.36,1)}@media (prefers-reduced-motion:reduce){.jun-bar,.jun-bar-knob,.jun-bar-row,[data-jun-action]{transition:none}[data-jun-action].is-hot{transform:none}}:root{--jun-density:1}.jun-collection-intro .ProseMirror,.jun-entry-body .ProseMirror,.jun-item-body .ProseMirror,.jun-project-body .ProseMirror,.jun-thread-body .ProseMirror,.prose{line-height:calc(var(--jun-density)*1.65)}.jun-collection-intro .ProseMirror>*+*,.jun-entry-body .ProseMirror>*+*,.jun-item-body .ProseMirror>*+*,.jun-project-body .ProseMirror>*+*,.prose>*+*{margin-top:calc(.9em*var(--jun-density))}:root[data-jun-motion=reduced] *,:root[data-jun-motion=reduced] :after,:root[data-jun-motion=reduced] :before{animation-duration:1ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transform:none!important;transition-duration:.12s!important}:root[data-jun-motion=none] *,:root[data-jun-motion=none] :after,:root[data-jun-motion=none] :before{animation:none!important;scroll-behavior:auto!important;transform:none!important;transition:none!important}html[data-jun-chrome~=no-backdrop] .jun-blob-backdrop,html[data-jun-chrome~=no-backdrop] .jun-fallback-bg,html[data-jun-chrome~=no-backdrop] .jun-pattern-backdrop,html[data-jun-chrome~=no-backdrop] .jun-shader-backdrop,html[data-jun-chrome~=no-footer] .jun-footer,html[data-jun-chrome~=no-nav] .jun-nav-root{display:none}
@@ -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;