@abraca/junis 2.87.0 → 2.90.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 (109) hide show
  1. package/dist/module.d.mts +43 -4
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +121 -6
  4. package/dist/runtime/assets/css/jun.css +2 -2
  5. package/dist/runtime/components/JunDocSurface.d.vue.ts +20 -2
  6. package/dist/runtime/components/JunDocSurface.vue +27 -2
  7. package/dist/runtime/components/JunDocSurface.vue.d.ts +20 -2
  8. package/dist/runtime/components/JunHead.vue +16 -4
  9. package/dist/runtime/components/JunNavDock.d.vue.ts +15 -0
  10. package/dist/runtime/components/JunNavDock.vue +94 -0
  11. package/dist/runtime/components/JunNavDock.vue.d.ts +15 -0
  12. package/dist/runtime/components/JunNavMenu.client.d.vue.ts +15 -0
  13. package/dist/runtime/components/JunNavMenu.client.vue +501 -0
  14. package/dist/runtime/components/JunNavMenu.client.vue.d.ts +15 -0
  15. package/dist/runtime/components/JunNavPreview.d.vue.ts +17 -0
  16. package/dist/runtime/components/JunNavPreview.vue +169 -0
  17. package/dist/runtime/components/JunNavPreview.vue.d.ts +17 -0
  18. package/dist/runtime/components/JunNavigation.d.vue.ts +4 -11
  19. package/dist/runtime/components/JunNavigation.vue +813 -138
  20. package/dist/runtime/components/JunNavigation.vue.d.ts +4 -11
  21. package/dist/runtime/components/JunNoteLinks.vue +1 -1
  22. package/dist/runtime/components/JunOfflinePanel.client.d.vue.ts +3 -0
  23. package/dist/runtime/components/JunOfflinePanel.client.vue +293 -0
  24. package/dist/runtime/components/JunOfflinePanel.client.vue.d.ts +3 -0
  25. package/dist/runtime/components/JunPageHero.vue +3 -3
  26. package/dist/runtime/components/JunSectionBar.d.vue.ts +41 -0
  27. package/dist/runtime/components/JunSectionBar.vue +144 -0
  28. package/dist/runtime/components/JunSectionBar.vue.d.ts +41 -0
  29. package/dist/runtime/components/renderers/JunConfigRenderer.vue +618 -6
  30. package/dist/runtime/components/renderers/JunEntryRenderer.vue +48 -0
  31. package/dist/runtime/composables/useJunCommands.d.ts +1 -1
  32. package/dist/runtime/composables/useJunCommands.js +14 -1
  33. package/dist/runtime/composables/useJunCreatePage.js +7 -1
  34. package/dist/runtime/composables/useJunDocPage.d.ts +28 -0
  35. package/dist/runtime/composables/useJunDocPage.js +111 -20
  36. package/dist/runtime/composables/useJunGarden.d.ts +1 -1
  37. package/dist/runtime/composables/useJunGarden.js +3 -2
  38. package/dist/runtime/composables/useJunGestures.d.ts +53 -0
  39. package/dist/runtime/composables/useJunGestures.js +89 -0
  40. package/dist/runtime/composables/useJunMenuState.d.ts +4 -0
  41. package/dist/runtime/composables/useJunMenuState.js +5 -0
  42. package/dist/runtime/composables/useJunNavItems.d.ts +50 -0
  43. package/dist/runtime/composables/useJunNavItems.js +188 -0
  44. package/dist/runtime/composables/useJunNavSettings.d.ts +58 -1
  45. package/dist/runtime/composables/useJunNavSettings.js +110 -8
  46. package/dist/runtime/composables/useJunOffline.d.ts +109 -0
  47. package/dist/runtime/composables/useJunOffline.js +294 -0
  48. package/dist/runtime/composables/useJunOptions.d.ts +1 -0
  49. package/dist/runtime/composables/useJunSettings.d.ts +1 -1
  50. package/dist/runtime/composables/useJunSettings.js +2 -0
  51. package/dist/runtime/composables/useJunSiblings.d.ts +30 -0
  52. package/dist/runtime/composables/useJunSiblings.js +38 -0
  53. package/dist/runtime/composables/useJunSiteConfig.d.ts +70 -3
  54. package/dist/runtime/composables/useJunTheme.js +4 -1
  55. package/dist/runtime/composables/useJunViewingAccent.js +10 -0
  56. package/dist/runtime/layouts/jun.vue +32 -2
  57. package/dist/runtime/pages/doc.vue +2 -0
  58. package/dist/runtime/pages/index.vue +2 -0
  59. package/dist/runtime/server/api/health.get.d.ts +15 -0
  60. package/dist/runtime/server/api/health.get.js +7 -2
  61. package/dist/runtime/server/api/links.get.js +27 -3
  62. package/dist/runtime/server/api/offline.get.d.ts +10 -0
  63. package/dist/runtime/server/api/offline.get.js +13 -0
  64. package/dist/runtime/server/api/resolve/[...slug].get.d.ts +20 -0
  65. package/dist/runtime/server/api/resolve/[...slug].get.js +31 -0
  66. package/dist/runtime/server/api/search.get.d.ts +1 -1
  67. package/dist/runtime/server/api/search.get.js +42 -39
  68. package/dist/runtime/server/api/tree.get.js +3 -1
  69. package/dist/runtime/server/janitor/junJanitorChores.d.ts +14 -7
  70. package/dist/runtime/server/janitor/junJanitorChores.js +21 -3
  71. package/dist/runtime/server/janitor/junJanitorMachine.js +36 -4
  72. package/dist/runtime/server/janitor/junJanitorPerform.d.ts +15 -1
  73. package/dist/runtime/server/janitor/junJanitorPerform.js +13 -5
  74. package/dist/runtime/server/janitor/junJanitorYText.d.ts +40 -3
  75. package/dist/runtime/server/janitor/junJanitorYText.js +60 -14
  76. package/dist/runtime/server/plugins/jun-compress.d.ts +2 -0
  77. package/dist/runtime/server/plugins/jun-compress.js +76 -0
  78. package/dist/runtime/server/plugins/jun-janitor.js +132 -81
  79. package/dist/runtime/server/routes/jun-card.png.get.d.ts +2 -0
  80. package/dist/runtime/server/routes/jun-card.png.get.js +40 -0
  81. package/dist/runtime/server/routes/jun-sw.js.get.js +66 -13
  82. package/dist/runtime/server/routes/sitemap.xml.get.js +5 -18
  83. package/dist/runtime/server/utils/junCard.d.ts +39 -0
  84. package/dist/runtime/server/utils/junCard.js +159 -0
  85. package/dist/runtime/server/utils/junIcon.d.ts +27 -2
  86. package/dist/runtime/server/utils/junIcon.js +5 -5
  87. package/dist/runtime/server/utils/junJanitorStatus.d.ts +59 -0
  88. package/dist/runtime/server/utils/junJanitorStatus.js +27 -0
  89. package/dist/runtime/server/utils/junPages.d.ts +51 -0
  90. package/dist/runtime/server/utils/junPages.js +70 -0
  91. package/dist/runtime/types.d.ts +295 -0
  92. package/dist/runtime/utils/junAdopt.d.ts +43 -0
  93. package/dist/runtime/utils/junAdopt.js +7 -0
  94. package/dist/runtime/utils/junGesture.d.ts +84 -0
  95. package/dist/runtime/utils/junGesture.js +40 -0
  96. package/dist/runtime/utils/junLetters.d.ts +86 -0
  97. package/dist/runtime/utils/junLetters.js +173 -0
  98. package/dist/runtime/utils/junNavValue.d.ts +56 -0
  99. package/dist/runtime/utils/junNavValue.js +36 -0
  100. package/dist/runtime/utils/junOffline.d.ts +138 -0
  101. package/dist/runtime/utils/junOffline.js +73 -0
  102. package/dist/runtime/utils/junSearchRank.d.ts +79 -0
  103. package/dist/runtime/utils/junSearchRank.js +73 -0
  104. package/dist/runtime/utils/junSocial.d.ts +59 -0
  105. package/dist/runtime/utils/junSocial.js +56 -0
  106. package/dist/runtime/utils/junViewSpecs.d.ts +39 -1
  107. package/dist/runtime/utils/junViewSpecs.js +92 -1
  108. package/dist/types.d.mts +1 -1
  109. package/package.json +13 -9
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, 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';
2
+ import { JunBrand, JunPageTypesOption, JunFeatures, JunContextMenuOptions, JunNavigationOptions, JunCampfireOptions, JunBackdropKind, JunLayoutPolicy, JunSiteConfigDefaults, JunSeedOptions, JunJanitorOptions, JunGuestNames, JunRendererDefaults, JunEmbedOptions, JunMosaicOptions, JunOfflineOptions, JunPrefetchPolicy, 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, JunOfflineOptions, JunPageTypeKey, JunPageTypeOverride, JunPageTypesOption, JunPalette, JunPaletteSet, JunPrefetchPolicy, 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. */
@@ -129,6 +129,43 @@ interface ModuleOptions {
129
129
  * embedded mosaic may nest. Content is document meta, not config.
130
130
  */
131
131
  mosaic?: JunMosaicOptions;
132
+ /**
133
+ * What an offline copy of this site may contain, and whether one is offered
134
+ * at all. Every key is a ceiling the Site Config can lower; none of them
135
+ * downloads anything. See `JunOfflineOptions`.
136
+ */
137
+ offline?: JunOfflineOptions;
138
+ /**
139
+ * Compress what the site sends — `/_nuxt/**` at build time, HTML and JSON per
140
+ * request.
141
+ *
142
+ * **On**, and it is the one default here that exists because of a production
143
+ * measurement rather than a preference: jun.is served 8.28 MB over 295
144
+ * requests on a cold visit with not one `content-encoding` header anywhere on
145
+ * the origin. Set `false` only when something in front of the app already
146
+ * compresses — a CDN, or a proxy with the middleware actually enabled.
147
+ */
148
+ compress?: boolean;
149
+ /**
150
+ * When a link fetches the page behind it.
151
+ *
152
+ * `'interaction'` is the default, and it is a correction rather than a
153
+ * preference. Nuxt's own default is `{ visibility: true }` — every lazy route
154
+ * whose link enters the viewport is fetched at idle. On this module's
155
+ * navigation that is most of the site: **jun.is shipped 160 prefetched
156
+ * chunks, 0.79 MB on the wire**, after first paint, to a visitor who may read
157
+ * one page and leave.
158
+ *
159
+ * That is the same silent download the offline round exists to prevent. It
160
+ * would be incoherent to ship three tiers so a reader can choose what to keep
161
+ * and leave three quarters of a megabyte fetching itself underneath them.
162
+ *
163
+ * `'interaction'` fetches when someone reaches for a link — hover, or focus —
164
+ * which on a pointer device lands well before the click. `'visibility'`
165
+ * restores Nuxt's default for a site whose readers move fast and whose
166
+ * bandwidth is not the constraint. `false` fetches nothing ahead of time.
167
+ */
168
+ prefetch?: JunPrefetchPolicy | false;
132
169
  /** Which external-service adapters the `services` page type may call. */
133
170
  services?: JunServicesOptions;
134
171
  /**
@@ -154,8 +191,10 @@ interface ModuleOptions {
154
191
  */
155
192
  apiBase?: string;
156
193
  /**
157
- * Contribute the five `@nuxt/fonts` families the `themeFont` presets need
158
- * (Outfit, Instrument Serif, Newsreader, Space Grotesk, JetBrains Mono).
194
+ * Contribute the `@nuxt/fonts` families the `themeFont` presets need —
195
+ * Outfit, Instrument Serif, Newsreader, Space Grotesk and JetBrains Mono for
196
+ * the single-face presets, plus Playfair Display, Source Serif 4, Fraunces,
197
+ * Inter and the two IBM Plex faces for the pairings.
159
198
  * They are lazy — a face only downloads while its preset class applies.
160
199
  */
161
200
  fonts?: boolean;
package/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.0.0"
6
6
  },
7
- "version": "2.87.0",
7
+ "version": "2.90.0",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "1.0.2",
10
10
  "unbuild": "3.6.1"
package/dist/module.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { existsSync } from 'node:fs';
1
+ import { existsSync, readFileSync } from 'node:fs';
2
2
  import { defineNuxtModule, createResolver, hasNuxtModule, installModule, addImportsDir, addComponentsDir, addPluginTemplate, addPlugin, addLayout, extendPages, addServerImportsDir, addServerHandler, addServerPlugin } from '@nuxt/kit';
3
3
  import { defu } from 'defu';
4
4
  import { JUN_RUNTIME_BACKDROPS } from '../dist/runtime/types.js';
@@ -592,7 +592,37 @@ const DEFAULT_NAVIGATION = {
592
592
  // visitor and the page they are on — which is a disclosure a site should opt
593
593
  // into rather than inherit. The campfire is where a real user center lives.
594
594
  travellers: false,
595
- travellersList: false
595
+ travellersList: false,
596
+ // The section bar is OFF: it is a new row of chrome on every nested page, and
597
+ // a site that upgrades must look exactly as it did until somebody picks it.
598
+ section: "off",
599
+ counts: "off",
600
+ // ── Mobile ────────────────────────────────────────────────────────────────
601
+ // `track` is the navbar phones have always had: the same scrolling row of
602
+ // items, narrower. Every other mode is an opt-in, so an upgrade changes
603
+ // nothing until an owner picks one.
604
+ mobileMode: "track",
605
+ mobilePlacement: "inherit",
606
+ breakpoint: "sm",
607
+ menuIcon: "menu",
608
+ menuSide: "right",
609
+ mobileItemMode: "inherit",
610
+ menuChildren: false,
611
+ menuExtras: true,
612
+ desktopMenu: false,
613
+ // ── Track layout ──────────────────────────────────────────────────────────
614
+ // All five describe what this track already did; they exist so it can now do
615
+ // something else.
616
+ overflow: "scroll",
617
+ children: "none",
618
+ align: "center",
619
+ width: "contained",
620
+ separators: false,
621
+ scrollArrows: true,
622
+ edgeFade: false,
623
+ snap: true,
624
+ // The `1024px` that was hard-coded in `JunNavigation`'s rail fallback.
625
+ railBreakpoint: "lg"
596
626
  };
597
627
  const DEFAULT_CAMPFIRE = {
598
628
  title: "User Center",
@@ -631,7 +661,16 @@ const FONT_FAMILIES = [
631
661
  { name: "Instrument Serif", provider: "google", fallbacks: ["Georgia", "serif"], weights: [400], styles: ["normal", "italic"], display: "swap" },
632
662
  { name: "Newsreader", provider: "google", fallbacks: ["Georgia", "serif"], weights: [400, 500, 600], styles: ["normal", "italic"], display: "swap" },
633
663
  { name: "Space Grotesk", provider: "google", fallbacks: ["system-ui", "sans-serif"], weights: [300, 400, 500, 600, 700], styles: ["normal"], display: "swap" },
634
- { name: "JetBrains Mono", provider: "google", fallbacks: ["ui-monospace", "monospace"], weights: [400, 500, 600], styles: ["normal"], display: "swap" }
664
+ { name: "JetBrains Mono", provider: "google", fallbacks: ["ui-monospace", "monospace"], weights: [400, 500, 600], styles: ["normal"], display: "swap" },
665
+ // The three PAIRINGS. Two faces each — a body face and a display face — and
666
+ // the same lazy contract: a family is downloaded only while its preset class
667
+ // is on <html>, so a site pays for the one it wears and nothing else.
668
+ { name: "Playfair Display", provider: "google", fallbacks: ["Georgia", "serif"], weights: [400, 500, 600, 700], styles: ["normal", "italic"], display: "swap" },
669
+ { name: "Source Serif 4", provider: "google", fallbacks: ["Georgia", "serif"], weights: [300, 400, 600], styles: ["normal", "italic"], display: "swap" },
670
+ { name: "Fraunces", provider: "google", fallbacks: ["Georgia", "serif"], weights: [400, 500, 600, 700], styles: ["normal", "italic"], display: "swap" },
671
+ { name: "Inter", provider: "google", fallbacks: ["system-ui", "sans-serif"], weights: [300, 400, 500, 600, 700], styles: ["normal"], display: "swap" },
672
+ { name: "IBM Plex Sans", provider: "google", fallbacks: ["system-ui", "sans-serif"], weights: [300, 400, 500, 600], styles: ["normal"], display: "swap" },
673
+ { name: "IBM Plex Mono", provider: "google", fallbacks: ["ui-monospace", "monospace"], weights: [400, 500, 600], styles: ["normal"], display: "swap" }
635
674
  ];
636
675
  function nuxtOptionsRecord(nuxt) {
637
676
  return nuxt.options;
@@ -647,6 +686,13 @@ function siblingOptions(nuxt, key) {
647
686
  all[key] = created;
648
687
  return created;
649
688
  }
689
+ function moduleVersion(resolver) {
690
+ try {
691
+ return JSON.parse(readFileSync(resolver.resolve("../package.json"), "utf8")).version ?? "0.0.0";
692
+ } catch {
693
+ return "0.0.0";
694
+ }
695
+ }
650
696
  function resolveJanitor(options, featureOn) {
651
697
  const name = options?.name ?? "janitor";
652
698
  return {
@@ -709,6 +755,9 @@ const module$1 = defineNuxtModule({
709
755
  openEditing: false,
710
756
  search: true,
711
757
  feeds: true,
758
+ socialCards: true,
759
+ gestures: true,
760
+ lockZoom: false,
712
761
  sitemap: true,
713
762
  rpc: true,
714
763
  docCache: true,
@@ -749,8 +798,23 @@ const module$1 = defineNuxtModule({
749
798
  apiBase: "/api/_jun",
750
799
  fonts: true,
751
800
  autoInstall: true,
801
+ // Nuxt's default is `visibility`, which on this module's navigation fetched
802
+ // 160 chunks — 0.79 MB — after first paint. See the option's own comment.
803
+ prefetch: "interaction",
752
804
  embeds: { remoteThumbnails: false },
753
805
  mosaic: { maxPanes: 24, maxDepth: 1 },
806
+ // Conservative all the way down. `defaultMode: 'visited'` is the only one
807
+ // of these that is not simply "no": it keeps the pages a reader opened
808
+ // anyway, which costs nothing and is the difference between a tunnel and a
809
+ // dinosaur.
810
+ offline: {
811
+ enabled: true,
812
+ defaultMode: "visited",
813
+ fullSite: true,
814
+ media: false,
815
+ budgetMb: 60,
816
+ docSync: false
817
+ },
754
818
  services: { adapters: DEFAULT_SERVICE_ADAPTERS, ttl: 600 },
755
819
  renderers: {}
756
820
  },
@@ -849,12 +913,18 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
849
913
  return map;
850
914
  }
851
915
  const runtime = {
916
+ version: moduleVersion(resolver),
917
+ // Evaluated when the module's `setup()` runs — which is `nuxt build` for
918
+ // an image, and process start in dev. Both are the answer to "how old is
919
+ // the code answering this request".
920
+ builtAt: Date.now(),
852
921
  brand: {
853
922
  name: options.brand?.name ?? "Jun!s",
854
923
  tagline: options.brand?.tagline ?? "",
855
924
  // A site with no explicit SEO description describes itself with its
856
925
  // tagline rather than with its own title, which is what a page with
857
926
  // no prose otherwise ends up doing.
927
+ lang: options.brand?.lang ?? "en",
858
928
  seoDescription: options.brand?.seoDescription ?? options.brand?.tagline ?? "",
859
929
  avatar: options.brand?.avatar ?? "",
860
930
  // The sun. It is the one mark that carries a colour, and that colour
@@ -912,6 +982,14 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
912
982
  maxPanes: options.mosaic?.maxPanes ?? 24,
913
983
  maxDepth: options.mosaic?.maxDepth ?? 1
914
984
  },
985
+ offline: {
986
+ enabled: options.offline?.enabled !== false,
987
+ defaultMode: options.offline?.defaultMode ?? "visited",
988
+ fullSite: options.offline?.fullSite !== false,
989
+ media: options.offline?.media === true,
990
+ budgetMb: options.offline?.budgetMb ?? 60,
991
+ docSync: options.offline?.docSync === true
992
+ },
915
993
  // The site's house style for its renderers. Not merged with anything —
916
994
  // there is no module-level default block, because each renderer declares
917
995
  // its own defaults beside the layout they drive (`useJunViewOptions`).
@@ -962,6 +1040,9 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
962
1040
  );
963
1041
  const abra = siblingOptions(nuxt, "abracadabra");
964
1042
  abra.guestName ??= runtime.guestNames;
1043
+ const abraFeatures = asRecord(abra.features) ?? {};
1044
+ abraFeatures.backgroundSync ??= runtime.offline.docSync;
1045
+ abra.features = abraFeatures;
965
1046
  if (options.fonts !== false) {
966
1047
  const fonts = siblingOptions(nuxt, "fonts");
967
1048
  const families = Array.isArray(fonts.families) ? fonts.families : [];
@@ -1142,6 +1223,9 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
1142
1223
  if (runtime.features.sitemap) {
1143
1224
  addServerHandler({ route: "/sitemap.xml", handler: resolver.resolve("./runtime/server/routes/sitemap.xml.get") });
1144
1225
  }
1226
+ if (runtime.features.socialCards) {
1227
+ addServerHandler({ route: "/jun-card.png", handler: resolver.resolve("./runtime/server/routes/jun-card.png.get") });
1228
+ }
1145
1229
  if (options.pwa !== false) {
1146
1230
  const iconPng = resolver.resolve("./runtime/server/routes/jun-icon.png.get");
1147
1231
  addServerHandler({ route: "/jun-icon.png", handler: iconPng });
@@ -1158,6 +1242,9 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
1158
1242
  addServerHandler({ route: "/jun-sw.js", handler: resolver.resolve("./runtime/server/routes/jun-sw.js.get") });
1159
1243
  addPlugin(resolver.resolve("./runtime/plugins/jun-sw.client"));
1160
1244
  }
1245
+ if (runtime.offline.enabled) {
1246
+ addServerHandler({ route: `${base}/offline`, handler: resolver.resolve("./runtime/server/api/offline.get") });
1247
+ }
1161
1248
  }
1162
1249
  addServerHandler({ route: `${base}/health`, handler: resolver.resolve("./runtime/server/api/health.get") });
1163
1250
  addServerPlugin(resolver.resolve("./runtime/server/plugins/jun-watchdog"));
@@ -1171,18 +1258,46 @@ Switch them off with \`jun.pageTypes: { ${missing.map((e) => `${e.key}: false`).
1171
1258
  }
1172
1259
  });
1173
1260
  }
1174
- if (runtime.features.rpc) {
1175
- addServerPlugin(resolver.resolve("./runtime/server/plugins/jun-rpc"));
1176
- }
1177
1261
  if (runtime.features.bootstrap && options.seed?.enabled !== false) {
1178
1262
  addServerPlugin(resolver.resolve("./runtime/server/plugins/jun-bootstrap"));
1179
1263
  }
1180
1264
  if (runtime.features.janitor && options.janitor?.enabled !== false) {
1181
1265
  addServerPlugin(resolver.resolve("./runtime/server/plugins/jun-janitor"));
1182
1266
  }
1267
+ if (runtime.features.rpc) {
1268
+ addServerPlugin(resolver.resolve("./runtime/server/plugins/jun-rpc"));
1269
+ }
1183
1270
  nuxt.options.nitro.externals = defu(nuxt.options.nitro.externals, {
1184
1271
  inline: ["happy-dom"]
1185
1272
  });
1273
+ if (options.compress !== false) {
1274
+ nuxt.options.nitro.compressPublicAssets = defu(
1275
+ // `true` is a legal value for this option, and `defu` would treat it as
1276
+ // a scalar and refuse to merge — normalise it first.
1277
+ asRecord(nuxt.options.nitro.compressPublicAssets) ?? (nuxt.options.nitro.compressPublicAssets === true ? {} : void 0),
1278
+ { gzip: true, brotli: true }
1279
+ );
1280
+ addServerPlugin(resolver.resolve("./runtime/server/plugins/jun-compress"));
1281
+ }
1282
+ if (options.prefetch !== void 0) {
1283
+ const appChose = nuxt.options._layers?.some(
1284
+ (layer) => layer?.config?.experimental?.defaults?.nuxtLink !== void 0
1285
+ );
1286
+ if (!appChose) {
1287
+ const link = options.prefetch === false ? { prefetch: false } : {
1288
+ prefetch: true,
1289
+ // Both keys, explicitly. `prefetchOn` is a partial object and
1290
+ // omitting one leaves whatever was there before.
1291
+ prefetchOn: options.prefetch === "interaction" ? { visibility: false, interaction: true } : { visibility: true, interaction: false }
1292
+ };
1293
+ nuxt.options.experimental ??= {};
1294
+ nuxt.options.experimental.defaults ??= {};
1295
+ nuxt.options.experimental.defaults.nuxtLink = {
1296
+ ...nuxt.options.experimental.defaults.nuxtLink,
1297
+ ...link
1298
+ };
1299
+ }
1300
+ }
1186
1301
  if (options.pwa !== false && hasNuxtModule("@vite-pwa/nuxt")) {
1187
1302
  const all = nuxtOptionsRecord(nuxt);
1188
1303
  all.pwa = defu(asRecord(all.pwa), {
@@ -1,4 +1,4 @@
1
- @source "../../components/**/*.vue";@source "../../pages/**/*.vue";@source "../../layouts/**/*.vue";html.jun-font-serif{--font-sans:"Newsreader","Georgia",serif;font-family:Newsreader,Georgia,serif}html.jun-font-grotesk{--font-sans:"Space Grotesk",system-ui,sans-serif;font-family:Space Grotesk,system-ui,sans-serif}html.jun-font-mono{--font-sans:"JetBrains Mono",ui-monospace,monospace;font-family:JetBrains Mono,ui-monospace,monospace}@theme{--font-sans:"Outfit",system-ui,sans-serif;--font-serif:"Instrument Serif","Georgia",serif;--color-neutral-50:#fafaf9;--color-neutral-100:#f5f5f4;--color-neutral-200:#e7e5e4;--color-neutral-300:#d6d3d1;--color-neutral-400:#a8a29e;--color-neutral-500:#78716c;--color-neutral-600:#57534e;--color-neutral-700:#44403c;--color-neutral-800:#292524;--color-neutral-900:#1c1917;--color-neutral-950:#0c0a09}@layer components{.jun-blur{@apply bg-neutral-50/40 text-neutral-950 backdrop-blur-sm
1
+ @source "../../components/**/*.vue";@source "../../pages/**/*.vue";@source "../../layouts/**/*.vue";html.jun-font-serif{--font-sans:"Newsreader","Georgia",serif;font-family:Newsreader,Georgia,serif}html.jun-font-grotesk{--font-sans:"Space Grotesk",system-ui,sans-serif;font-family:Space Grotesk,system-ui,sans-serif}html.jun-font-mono{--font-sans:"JetBrains Mono",ui-monospace,monospace;font-family:JetBrains Mono,ui-monospace,monospace}html.jun-font-editorial{--font-sans:"Source Serif 4",Georgia,serif;--font-serif:"Playfair Display",Georgia,serif;font-family:"Source Serif 4",Georgia,serif}html.jun-font-humanist{--font-sans:"Inter",system-ui,sans-serif;--font-serif:"Fraunces",Georgia,serif;font-family:Inter,system-ui,sans-serif}html.jun-font-technical{--font-sans:"IBM Plex Sans",system-ui,sans-serif;--font-serif:"IBM Plex Mono",ui-monospace,monospace;font-family:IBM Plex Sans,system-ui,sans-serif}@theme{--font-sans:"Outfit",system-ui,sans-serif;--font-serif:"Instrument Serif","Georgia",serif;--color-neutral-50:#fafaf9;--color-neutral-100:#f5f5f4;--color-neutral-200:#e7e5e4;--color-neutral-300:#d6d3d1;--color-neutral-400:#a8a29e;--color-neutral-500:#78716c;--color-neutral-600:#57534e;--color-neutral-700:#44403c;--color-neutral-800:#292524;--color-neutral-900:#1c1917;--color-neutral-950:#0c0a09}@layer components{.jun-blur{@apply bg-neutral-50/40 text-neutral-950 backdrop-blur-sm
2
2
  dark:bg-neutral-900/70 dark:text-neutral-100/90}.jun-blur-inverted{@apply bg-gradient-to-t from-neutral-50 via-neutral-50/40 to-neutral-50/10
3
3
  text-neutral-100/90 backdrop-blur-sm
4
4
  dark:from-neutral-950/10 dark:to-neutral-950/20 dark:via-transparent
@@ -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}}: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}
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))}html[data-jun-dock=on] .jun-flow-page{padding-bottom:max(calc(var(--jun-nav-dock-h, 0px) + 1.5rem),var(--jun-safe-b,env(safe-area-inset-bottom,0px)))}body,html,html[data-jun-nav-menu=open]{overscroll-behavior:none}body,html{color-scheme:light dark;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-track{overscroll-behavior-x:contain;touch-action:pan-x pan-y}.jun-nav-track[data-jun-axis=vertical]{overscroll-behavior-y:contain;touch-action:pan-y}.jun-nav-armed,.jun-nav-panel{-webkit-touch-callout:none}.jun-nav-armed{box-shadow:0 10px 24px -8px rgba(0,0,0,.35);scale:1.12;-webkit-user-select:none;-moz-user-select:none;user-select:none}.jun-nav-track[data-jun-sep=on] [data-nav-id]{position:relative}.jun-nav-track[data-jun-sep=on] [data-nav-id]+[data-nav-id]:before{background:currentColor;bottom:25%;content:"";left:calc(var(--jun-nav-gap, 1.5rem)/-2);opacity:.18;position:absolute;top:25%;width:1px}.jun-nav-track[data-jun-axis=vertical][data-jun-sep=on] [data-nav-id]+[data-nav-id]:before{bottom:auto;height:1px;left:25%;right:25%;top:calc(var(--jun-nav-gap, .25rem)/-2);width:auto}.jun-nav-track[data-jun-fade=both]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 2rem,#000 calc(100% - 2rem),transparent);mask-image:linear-gradient(90deg,transparent,#000 2rem,#000 calc(100% - 2rem),transparent)}.jun-nav-track[data-jun-fade=start]{-webkit-mask-image:linear-gradient(90deg,transparent,#000 2rem);mask-image:linear-gradient(90deg,transparent,#000 2rem)}.jun-nav-track[data-jun-fade=end]{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 2rem),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 2rem),transparent)}.jun-nav-track[data-jun-axis=vertical][data-jun-fade=both]{-webkit-mask-image:linear-gradient(180deg,transparent,#000 1.5rem,#000 calc(100% - 1.5rem),transparent);mask-image:linear-gradient(180deg,transparent,#000 1.5rem,#000 calc(100% - 1.5rem),transparent)}.jun-nav-track[data-jun-axis=vertical][data-jun-fade=start]{-webkit-mask-image:linear-gradient(180deg,transparent,#000 1.5rem);mask-image:linear-gradient(180deg,transparent,#000 1.5rem)}.jun-nav-track[data-jun-axis=vertical][data-jun-fade=end]{-webkit-mask-image:linear-gradient(180deg,#000 calc(100% - 1.5rem),transparent);mask-image:linear-gradient(180deg,#000 calc(100% - 1.5rem),transparent)}.jun-nav-children{background-color:color-mix(in srgb,var(--color-neutral-100) 92%,transparent)}:root.dark .jun-nav-children{background-color:color-mix(in srgb,var(--color-neutral-900) 92%,transparent)}.jun-nav-presence-dot{animation:jun-nav-dot-breathe 5s ease-in-out infinite}@keyframes jun-nav-dot-breathe{0%,to{opacity:.85;transform:scale(1)}50%{opacity:1;transform:scale(1.25)}}@media (prefers-reduced-motion:reduce){.jun-nav-presence-dot{animation:none}}.jun-nav-menu{background-color:color-mix(in srgb,var(--color-neutral-100) 92%,transparent)}:root.dark .jun-nav-menu{background-color:color-mix(in srgb,var(--color-neutral-900) 92%,transparent)}.jun-nav-menu-grab{touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.jun-nav-dock{padding-bottom:var(--jun-safe-b,env(safe-area-inset-bottom,0));-webkit-touch-callout:none;background-color:color-mix(in srgb,var(--color-neutral-100) 88%,transparent)}:root.dark .jun-nav-dock{background-color:color-mix(in srgb,var(--color-neutral-900) 88%,transparent)}.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}html[data-jun-hero=minimal] .jun-page-hero{align-items:baseline;margin-bottom:1.5rem}html[data-jun-hero=minimal] .jun-hero-title{font-size:1.25rem;font-weight:600;letter-spacing:-.01em;line-height:1.3}html[data-jun-hero=minimal] .jun-hero-subtitle{font-size:.875rem;letter-spacing:.02em;margin-top:.25rem}html[data-jun-hero=banner] .jun-page-hero{background:linear-gradient(135deg,color-mix(in srgb,var(--ui-primary) 14%,transparent),color-mix(in srgb,var(--ui-primary) 4%,transparent) 60%,transparent);border-radius:1rem;margin-inline:-1rem;padding:1.75rem 1rem 1.5rem;position:relative}@media (min-width:640px){html[data-jun-hero=banner] .jun-page-hero{margin-inline:-1.5rem;padding:2.25rem 1.5rem 2rem}}html[data-jun-hero=banner] .jun-hero-subtitle{opacity:.85}@media (min-width:1024px){html[data-jun-hero=split] .jun-hero-lines{align-items:end;display:grid;gap:2rem;grid-template-columns:minmax(0,3fr) minmax(0,2fr)}html[data-jun-hero=split] .jun-hero-subtitle{margin-top:0;padding-bottom:.35rem;text-align:right}}.jun-skip-link{background:var(--jun-canvas,#fff);border-radius:.6rem;box-shadow:0 2px 18px -4px rgba(0,0,0,.35);color:var(--ui-text-highlighted,inherit);font-size:.875rem;font-weight:500;left:-9999px;outline:2px solid currentColor;padding:.6rem 1rem;position:absolute;top:0;z-index:100}.jun-skip-link:focus{left:.75rem;top:calc(.75rem + env(safe-area-inset-top, 0px))}#jun-main:focus{outline:none}
@@ -1,4 +1,11 @@
1
1
  import type { JunLayoutBucket } from '../composables/useJunDocPage.js';
2
+ import type { JunSectionItem } from './JunSectionBar.vue.js';
3
+ interface JunSectionPayload {
4
+ parentId: string;
5
+ parentTitle: string;
6
+ parentSlug: string | null;
7
+ items: JunSectionItem[];
8
+ }
2
9
  type __VLS_Props = {
3
10
  docId: string;
4
11
  bucket: JunLayoutBucket;
@@ -16,12 +23,23 @@ type __VLS_Props = {
16
23
  html?: string;
17
24
  /** Show the breadcrumb trail. Off on the index, which has no parent chain. */
18
25
  breadcrumbs?: boolean;
26
+ /**
27
+ * The SSR payload's section — the pages beside this one. Rendered by
28
+ * `<JunSectionBar>` until the live tree can answer for itself.
29
+ */
30
+ section?: JunSectionPayload | null;
31
+ /** The SSR ancestor trail — which item in the section bar is the way here. */
32
+ trail?: {
33
+ id: string;
34
+ title: string;
35
+ slug: string | null;
36
+ }[];
19
37
  };
20
- declare var __VLS_37: {
38
+ declare var __VLS_42: {
21
39
  feed: boolean;
22
40
  };
23
41
  type __VLS_Slots = {} & {
24
- footer?: (props: typeof __VLS_37) => any;
42
+ footer?: (props: typeof __VLS_42) => any;
25
43
  };
26
44
  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>;
27
45
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -1,5 +1,7 @@
1
1
  <script setup>
2
- import { useJunLayoutPolicy } from "#imports";
2
+ import { computed, ref } from "vue";
3
+ import { useJunLayoutPolicy, useNuxtData } from "#imports";
4
+ import { useJunGestures } from "../composables/useJunGestures";
3
5
  const props = defineProps({
4
6
  docId: { type: String, required: true },
5
7
  bucket: { type: String, required: true },
@@ -8,9 +10,22 @@ const props = defineProps({
8
10
  editable: { type: Boolean, required: true },
9
11
  entry: { type: [Object, null], required: false },
10
12
  html: { type: String, required: false },
11
- breadcrumbs: { type: Boolean, required: false }
13
+ breadcrumbs: { type: Boolean, required: false },
14
+ section: { type: [Object, null], required: false },
15
+ trail: { type: Array, required: false }
12
16
  });
13
17
  const { isFeedType } = useJunLayoutPolicy();
18
+ const flowEl = ref(null);
19
+ const { data: ssrConfig } = useNuxtData("jun-site-config");
20
+ const { swipeOffset, isSwiping } = useJunGestures(flowEl, {
21
+ bucket: () => props.bucket,
22
+ docId: computed(() => props.docId),
23
+ config: computed(() => ssrConfig.value ?? {})
24
+ });
25
+ const swipeStyle = computed(() => swipeOffset.value.x === 0 && !isSwiping.value ? void 0 : {
26
+ transform: `translate3d(${swipeOffset.value.x}px, 0, 0)`,
27
+ transition: isSwiping.value ? "none" : "transform 220ms cubic-bezier(0.22, 1, 0.36, 1)"
28
+ });
14
29
  </script>
15
30
 
16
31
  <template>
@@ -84,13 +99,23 @@ const { isFeedType } = useJunLayoutPolicy();
84
99
  travel over the navbar rather than being clipped by it. -->
85
100
  <div
86
101
  v-else
102
+ ref="flowEl"
87
103
  class="jun-flow-page flex min-h-screen flex-col"
104
+ :style="swipeStyle"
88
105
  >
89
106
  <JunBreadcrumbs
90
107
  v-if="breadcrumbs"
91
108
  :doc-id="props.docId"
92
109
  />
93
110
  <div :class="['mx-auto flex w-full flex-1 flex-col', props.flowMaxW]">
111
+ <!-- The section this page is in. Renders nothing unless a site asked for
112
+ it AND there is more than one page in the section. -->
113
+ <JunSectionBar
114
+ :doc-id="props.docId"
115
+ :ssr-trail="props.trail"
116
+ :ssr-section="props.section"
117
+ :column="props.flowMaxW ? '' : 'mx-auto w-full max-w-3xl px-4 sm:px-6'"
118
+ />
94
119
  <ADocRenderer
95
120
  :key="props.renderKey"
96
121
  :doc-id="props.docId"
@@ -1,4 +1,11 @@
1
1
  import type { JunLayoutBucket } from '../composables/useJunDocPage.js';
2
+ import type { JunSectionItem } from './JunSectionBar.vue.js';
3
+ interface JunSectionPayload {
4
+ parentId: string;
5
+ parentTitle: string;
6
+ parentSlug: string | null;
7
+ items: JunSectionItem[];
8
+ }
2
9
  type __VLS_Props = {
3
10
  docId: string;
4
11
  bucket: JunLayoutBucket;
@@ -16,12 +23,23 @@ type __VLS_Props = {
16
23
  html?: string;
17
24
  /** Show the breadcrumb trail. Off on the index, which has no parent chain. */
18
25
  breadcrumbs?: boolean;
26
+ /**
27
+ * The SSR payload's section — the pages beside this one. Rendered by
28
+ * `<JunSectionBar>` until the live tree can answer for itself.
29
+ */
30
+ section?: JunSectionPayload | null;
31
+ /** The SSR ancestor trail — which item in the section bar is the way here. */
32
+ trail?: {
33
+ id: string;
34
+ title: string;
35
+ slug: string | null;
36
+ }[];
19
37
  };
20
- declare var __VLS_37: {
38
+ declare var __VLS_42: {
21
39
  feed: boolean;
22
40
  };
23
41
  type __VLS_Slots = {} & {
24
- footer?: (props: typeof __VLS_37) => any;
42
+ footer?: (props: typeof __VLS_42) => any;
25
43
  };
26
44
  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>;
27
45
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -13,6 +13,7 @@ const title = computed(() => str("seoTitle") ?? brand.name);
13
13
  const description = computed(() => str("seoDescription") ?? brand.tagline);
14
14
  const author = computed(() => str("authorName") ?? brand.name);
15
15
  const ogImage = computed(() => str("seoOgImage"));
16
+ const lang = computed(() => str("seoLang") ?? brand.lang ?? "en");
16
17
  const feedsEnabled = computed(() => features.feeds && junConfigOn(site.value.feedsEnabled));
17
18
  const titleTemplate = computed(() => {
18
19
  const tpl = str("seoTitleTemplate");
@@ -32,14 +33,25 @@ const identityJsonLd = computed(() => {
32
33
  });
33
34
  useHead(() => ({
34
35
  titleTemplate: titleTemplate.value,
35
- htmlAttrs: { lang: "en" },
36
+ htmlAttrs: { lang: lang.value },
36
37
  meta: [
37
38
  { charset: "utf-8" },
38
- // App-like viewport: the site is installable and its locked page types own
39
- // their own scroll, so browser pinch-zoom would drift every fixed layer.
39
+ /*
40
+ * The viewport, and ZOOM.
41
+ *
42
+ * This used to end `maximum-scale=1, user-scalable=no` unconditionally.
43
+ * The reasoning was real but partial: the LOCKED page types own their own
44
+ * scroll and their fixed layers drift when the visual viewport scales — a
45
+ * page of prose does neither. Blocking pinch zoom site-wide is WCAG 1.4.4,
46
+ * and iOS has ignored the flag since iOS 10, so the cost fell entirely on
47
+ * Android and desktop readers who wanted bigger text while the benefit was
48
+ * collected on the one platform that was not listening.
49
+ *
50
+ * `features.lockZoom` brings it back for a site that wants it. Off.
51
+ */
40
52
  {
41
53
  name: "viewport",
42
- content: "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover"
54
+ content: features.lockZoom ? "width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" : "width=device-width, initial-scale=1, viewport-fit=cover"
43
55
  },
44
56
  { name: "description", content: description.value },
45
57
  { name: "author", content: author.value },
@@ -0,0 +1,15 @@
1
+ import { type JunNavigationItem } from '../composables/useJunNavItems.js';
2
+ type __VLS_Props = {
3
+ items: JunNavigationItem[];
4
+ /** How many real tabs fit before the overflow one. Four plus `⋯` on a phone. */
5
+ max?: number;
6
+ };
7
+ declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
8
+ more: () => any;
9
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onMore?: (() => any) | undefined;
11
+ }>, {
12
+ max: number;
13
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;