@abraca/junis 2.83.0 → 2.85.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 (61) hide show
  1. package/README.md +2 -2
  2. package/dist/module.json +1 -1
  3. package/dist/module.mjs +49 -5
  4. package/dist/runtime/assets/css/jun.css +1 -1
  5. package/dist/runtime/components/JunBlobBackdrop.client.vue +1 -1
  6. package/dist/runtime/components/JunCampfireChat.vue +6 -4
  7. package/dist/runtime/components/JunCampfireComposer.d.vue.ts +27 -0
  8. package/dist/runtime/components/JunCampfireComposer.vue +158 -0
  9. package/dist/runtime/components/JunCampfireComposer.vue.d.ts +27 -0
  10. package/dist/runtime/components/JunCampfirePanel.vue +8 -18
  11. package/dist/runtime/components/JunCampfirePresence.client.vue +102 -2
  12. package/dist/runtime/components/JunCampfireReactions.d.vue.ts +13 -0
  13. package/dist/runtime/components/JunCampfireReactions.vue +142 -0
  14. package/dist/runtime/components/JunCampfireReactions.vue.d.ts +13 -0
  15. package/dist/runtime/components/JunCampfireRoster.vue +82 -31
  16. package/dist/runtime/components/JunHead.vue +37 -5
  17. package/dist/runtime/components/JunLogo.vue +10 -45
  18. package/dist/runtime/components/JunMosaicPane.client.d.vue.ts +9 -0
  19. package/dist/runtime/components/JunMosaicPane.client.vue +63 -3
  20. package/dist/runtime/components/JunMosaicPane.client.vue.d.ts +9 -0
  21. package/dist/runtime/components/JunPatternBackdrop.client.vue +1 -1
  22. package/dist/runtime/components/JunShaderBackdrop.client.vue +1 -1
  23. package/dist/runtime/components/JunStudioBar.client.vue +2 -1
  24. package/dist/runtime/components/renderers/JunConfigRenderer.vue +14 -14
  25. package/dist/runtime/components/renderers/JunEntryRenderer.vue +6 -8
  26. package/dist/runtime/components/renderers/JunFestivalRenderer.vue +1 -1
  27. package/dist/runtime/components/renderers/JunHomeRenderer.vue +3 -3
  28. package/dist/runtime/components/renderers/JunLiveRenderer.vue +1 -1
  29. package/dist/runtime/components/renderers/JunMosaicRenderer.vue +14 -12
  30. package/dist/runtime/components/renderers/JunNowRenderer.vue +2 -2
  31. package/dist/runtime/components/renderers/JunUsesRenderer.vue +6 -8
  32. package/dist/runtime/composables/useJunCampfire.d.ts +2 -0
  33. package/dist/runtime/composables/useJunCampfire.js +11 -1
  34. package/dist/runtime/composables/useJunDocMenu.d.ts +16 -1
  35. package/dist/runtime/composables/useJunDocMenu.js +8 -0
  36. package/dist/runtime/composables/useJunOptions.d.ts +1 -0
  37. package/dist/runtime/composables/useJunTheme.js +9 -48
  38. package/dist/runtime/layouts/jun.vue +10 -0
  39. package/dist/runtime/plugins/jun-sw.client.d.ts +2 -0
  40. package/dist/runtime/plugins/jun-sw.client.js +36 -0
  41. package/dist/runtime/server/plugins/jun-janitor.js +2 -1
  42. package/dist/runtime/server/routes/jun-icon.png.get.d.ts +2 -0
  43. package/dist/runtime/server/routes/jun-icon.png.get.js +25 -0
  44. package/dist/runtime/server/routes/jun-icon.svg.get.d.ts +2 -0
  45. package/dist/runtime/server/routes/jun-icon.svg.get.js +9 -0
  46. package/dist/runtime/server/routes/jun-splash.png.get.d.ts +2 -0
  47. package/dist/runtime/server/routes/jun-splash.png.get.js +37 -0
  48. package/dist/runtime/server/routes/jun-sw.js.get.d.ts +2 -0
  49. package/dist/runtime/server/routes/jun-sw.js.get.js +126 -0
  50. package/dist/runtime/server/routes/manifest.webmanifest.get.d.ts +24 -0
  51. package/dist/runtime/server/routes/manifest.webmanifest.get.js +51 -0
  52. package/dist/runtime/server/utils/junBrand.d.ts +4 -0
  53. package/dist/runtime/server/utils/junBrand.js +9 -0
  54. package/dist/runtime/server/utils/junIcon.d.ts +44 -0
  55. package/dist/runtime/server/utils/junIcon.js +374 -0
  56. package/dist/runtime/types.d.ts +51 -2
  57. package/dist/runtime/utils/junIdentity.d.ts +121 -0
  58. package/dist/runtime/utils/junIdentity.js +115 -0
  59. package/dist/runtime/utils/junMark.d.ts +254 -0
  60. package/dist/runtime/utils/junMark.js +169 -0
  61. package/package.json +7 -7
@@ -13,12 +13,21 @@ type __VLS_Props = {
13
13
  live?: boolean;
14
14
  /** Why it is a card rather than a renderer. Shown to the owner only. */
15
15
  fallbackNote?: string;
16
+ /**
17
+ * Where clicking the tile goes. `null` suppresses the click layer entirely
18
+ * — an interactive pane, or the owner arranging the grid.
19
+ */
20
+ to?: string | null;
21
+ /** `meta.paneScroll === false`. Clips like it used to. */
22
+ noScroll?: boolean;
16
23
  };
17
24
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
+ to: string | null;
18
26
  interactive: boolean;
19
27
  icon: string;
20
28
  live: boolean;
21
29
  fallbackNote: string;
30
+ noScroll: boolean;
22
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
32
  declare const _default: typeof __VLS_export;
24
33
  export default _default;
@@ -1,13 +1,16 @@
1
1
  <script setup>
2
- import { onBeforeUnmount, onMounted, ref } from "vue";
2
+ import { computed, onBeforeUnmount, onMounted, ref } from "vue";
3
3
  const props = defineProps({
4
4
  targetDocId: { type: String, required: true },
5
5
  label: { type: String, required: true },
6
6
  icon: { type: String, required: false, default: "i-lucide-file-text" },
7
7
  interactive: { type: Boolean, required: false, default: false },
8
8
  live: { type: Boolean, required: false, default: true },
9
- fallbackNote: { type: String, required: false, default: "" }
9
+ fallbackNote: { type: String, required: false, default: "" },
10
+ to: { type: [String, null], required: false, default: null },
11
+ noScroll: { type: Boolean, required: false, default: false }
10
12
  });
13
+ const scrolls = computed(() => !props.interactive && !props.noScroll);
11
14
  const el = ref(null);
12
15
  const mounted = ref(false);
13
16
  let observer = null;
@@ -40,8 +43,50 @@ onBeforeUnmount(() => {
40
43
  class="relative h-full w-full overflow-hidden"
41
44
  >
42
45
  <template v-if="live">
46
+ <!-- SCROLLING. `awareness` is off: an aware ring and hover broadcast per
47
+ tile would put a `useAAField` on every pane of every mosaic, and the
48
+ tile already carries the mosaic's own presence anchor. `peers` is
49
+ kept — where somebody else is reading inside a tile is exactly the
50
+ sort of thing this site is for. -->
51
+ <AScroll
52
+ v-if="mounted && scrolls"
53
+ :field-key="`jun-mosaic:${targetDocId}`"
54
+ :awareness="false"
55
+ peers
56
+ class="jun-mosaic-scroll h-full w-full"
57
+ >
58
+ <!-- `min-h-full`, NOT `h-full`: the content must be free to EXCEED the
59
+ tile (that is the whole point) while a renderer with no intrinsic
60
+ height — one that used to size itself off the `h-full` this
61
+ replaces — still fills it instead of collapsing to nothing.
62
+ `relative` because the click layer below is sized to this box. -->
63
+ <div class="relative min-h-full w-full">
64
+ <div :class="interactive ? '' : 'pointer-events-none select-none'">
65
+ <ADocRenderer
66
+ :doc-id="targetDocId"
67
+ :editable="false"
68
+ :show-sub-pages="false"
69
+ editor-class="w-full"
70
+ renderer-class="w-full"
71
+ >
72
+ <template #loading>
73
+ <div class="h-40 w-full animate-pulse bg-black/[0.04] dark:bg-white/[0.06]" />
74
+ </template>
75
+ </ADocRenderer>
76
+ </div>
77
+
78
+ <!-- Inside the scroller, over the whole CONTENT. See the header. -->
79
+ <NuxtLink
80
+ v-if="to"
81
+ :to="to"
82
+ class="absolute inset-0 z-10"
83
+ :aria-label="label"
84
+ />
85
+ </div>
86
+ </AScroll>
87
+
43
88
  <div
44
- v-if="mounted"
89
+ v-else-if="mounted"
45
90
  class="h-full w-full overflow-hidden"
46
91
  :class="interactive ? '' : 'pointer-events-none select-none'"
47
92
  >
@@ -91,5 +136,20 @@ onBeforeUnmount(() => {
91
136
  {{ fallbackNote }}
92
137
  </p>
93
138
  </div>
139
+
140
+ <!-- The click layer for every case the scroller does NOT cover: a card, a
141
+ pane still waiting to come into view, and one opted out of scrolling.
142
+ The scrolling case renders its own INSIDE the scroller, because an
143
+ anchor over the tile swallows the wheel. -->
144
+ <NuxtLink
145
+ v-if="to && !(live && mounted && scrolls)"
146
+ :to="to"
147
+ class="absolute inset-0 z-10"
148
+ :aria-label="label"
149
+ />
94
150
  </div>
95
151
  </template>
152
+
153
+ <style scoped>
154
+ .jun-mosaic-scroll{scrollbar-width:none}.jun-mosaic-scroll::-webkit-scrollbar{display:none}
155
+ </style>
@@ -13,12 +13,21 @@ type __VLS_Props = {
13
13
  live?: boolean;
14
14
  /** Why it is a card rather than a renderer. Shown to the owner only. */
15
15
  fallbackNote?: string;
16
+ /**
17
+ * Where clicking the tile goes. `null` suppresses the click layer entirely
18
+ * — an interactive pane, or the owner arranging the grid.
19
+ */
20
+ to?: string | null;
21
+ /** `meta.paneScroll === false`. Clips like it used to. */
22
+ noScroll?: boolean;
16
23
  };
17
24
  declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
25
+ to: string | null;
18
26
  interactive: boolean;
19
27
  icon: string;
20
28
  live: boolean;
21
29
  fallbackNote: string;
30
+ noScroll: boolean;
22
31
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
32
  declare const _default: typeof __VLS_export;
24
33
  export default _default;
@@ -91,5 +91,5 @@ onBeforeUnmount(() => {
91
91
  </template>
92
92
 
93
93
  <style scoped>
94
- .jun-pattern-backdrop{background:#f5f5f7}:root.dark .jun-pattern-backdrop{background:#0e0f11}.pattern-parallax{inset:-3%;opacity:var(--jun-blob-opacity,1);position:absolute;transform:translate3d(var(--px,0),var(--py,0),0);transition:opacity .6s ease;will-change:transform}.is-quiet .pattern-parallax{opacity:0}.layer{inset:0;position:absolute;will-change:transform,opacity}.is-paused .layer{animation-play-state:paused}.is-dots .layer--1{animation:pattern-drift-dots 60s linear infinite;background-image:radial-gradient(circle at center,var(--jun-bd-a) 1.1px,transparent 1.2px);background-size:26px 26px;opacity:.18}.is-dots .layer--2{background:radial-gradient(ellipse 70% 60% at 50% 0,var(--jun-bd-c) 0,transparent 70%);opacity:.22}:root.dark .is-dots .layer--1{opacity:.4}:root.dark .is-dots .layer--2{opacity:.34}.is-grid .layer--1{animation:pattern-drift-grid 90s linear infinite;background-size:64px 64px;-webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 40%,#000 20%,transparent 78%);mask-image:radial-gradient(ellipse 80% 70% at 50% 40%,#000 20%,transparent 78%);opacity:.13}.is-grid .layer--1,.is-grid .layer--2{background-image:linear-gradient(to right,var(--jun-bd-a) 1px,transparent 1px),linear-gradient(to bottom,var(--jun-bd-a) 1px,transparent 1px)}.is-grid .layer--2{background-size:16px 16px;-webkit-mask-image:radial-gradient(ellipse 60% 50% at 50% 40%,#000 10%,transparent 70%);mask-image:radial-gradient(ellipse 60% 50% at 50% 40%,#000 10%,transparent 70%);opacity:.06}:root.dark .is-grid .layer--1{opacity:.32}:root.dark .is-grid .layer--2{opacity:.14}.is-aurora .layer--1{animation:pattern-aurora-a 38s ease-in-out infinite;background:linear-gradient(115deg,transparent 12%,var(--jun-bd-a) 38%,transparent 62%);mix-blend-mode:multiply;opacity:.3}.is-aurora .layer--2{animation:pattern-aurora-b 52s ease-in-out infinite;background:linear-gradient(-70deg,transparent 20%,var(--jun-bd-c) 50%,transparent 80%);mix-blend-mode:multiply;opacity:.26}:root.dark .is-aurora .layer--1,:root.dark .is-aurora .layer--2{mix-blend-mode:screen;opacity:.55}.is-mesh .layer--1{animation:pattern-mesh-a 44s ease-in-out infinite;background:radial-gradient(closest-side at 12% 18%,var(--jun-bd-a) 0,transparent 70%),radial-gradient(closest-side at 88% 12%,var(--jun-bd-c) 0,transparent 72%);background-repeat:no-repeat;background-size:70% 70%,65% 65%;mix-blend-mode:multiply;opacity:.5}.is-mesh .layer--2{animation:pattern-mesh-b 57s ease-in-out infinite;background:radial-gradient(closest-side at 20% 88%,var(--jun-bd-b) 0,transparent 72%),radial-gradient(closest-side at 82% 82%,var(--jun-bd-a) 0,transparent 68%);background-repeat:no-repeat;background-size:68% 68%,62% 62%;mix-blend-mode:multiply;opacity:.42}:root.dark .is-mesh .layer--1{mix-blend-mode:screen;opacity:.62}:root.dark .is-mesh .layer--2{mix-blend-mode:screen;opacity:.55}.is-rings .layer--1{animation:pattern-rings 26s ease-out infinite;background:repeating-radial-gradient(circle at 50% 42%,var(--jun-bd-a) 0 1px,transparent 1px 84px);-webkit-mask-image:radial-gradient(circle at 50% 42%,#000 5%,transparent 72%);mask-image:radial-gradient(circle at 50% 42%,#000 5%,transparent 72%);opacity:.16}.is-rings .layer--2{background:radial-gradient(circle at 50% 42%,var(--jun-bd-c) 0,transparent 55%);mix-blend-mode:multiply;opacity:.3}:root.dark .is-rings .layer--1{--jun-ring-o:0.34}:root.dark .is-rings .layer--2{mix-blend-mode:screen;opacity:.4}.is-waves .layer--1{animation:pattern-wave-a 30s ease-in-out infinite;background:radial-gradient(ellipse 120% 60% at 50% 118%,var(--jun-bd-a) 0,transparent 70%);mix-blend-mode:multiply;opacity:.34}.is-waves .layer--2{animation:pattern-wave-b 43s ease-in-out infinite;background:radial-gradient(ellipse 150% 55% at 30% 126%,var(--jun-bd-c) 0,transparent 68%);mix-blend-mode:multiply;opacity:.3}.is-waves .layer--3{animation:pattern-wave-c 37s ease-in-out infinite;background:radial-gradient(ellipse 100% 70% at 78% 132%,var(--jun-bd-b) 0,transparent 65%);mix-blend-mode:multiply;opacity:.24}:root.dark .is-waves .layer--1,:root.dark .is-waves .layer--2,:root.dark .is-waves .layer--3{mix-blend-mode:screen;opacity:.56}.is-noise .layer--1{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='a'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' type='fractalNoise'/%3E%3C/filter%3E%3Cpath d='M0 0h120v120H0z' filter='url(%23a)' opacity='.5'/%3E%3C/svg%3E");opacity:.055}.is-noise .layer--2{background:radial-gradient(ellipse 90% 70% at 50% 0,var(--jun-bd-c) 0,transparent 72%);mix-blend-mode:multiply;opacity:.28}:root.dark .is-noise .layer--1{opacity:.13}:root.dark .is-noise .layer--2{mix-blend-mode:screen;opacity:.36}@keyframes pattern-drift-dots{0%{transform:translate(0)}to{transform:translate(26px,26px)}}@keyframes pattern-drift-grid{0%{transform:translate(0)}to{transform:translate(64px)}}@keyframes pattern-aurora-a{0%,to{transform:translate(-6%,-4%) scale(1.15)}50%{transform:translate(8%,6%) scale(1.3)}}@keyframes pattern-aurora-b{0%,to{transform:translate(7%,5%) scale(1.25)}50%{transform:translate(-8%,-6%) scale(1.1)}}@keyframes pattern-mesh-a{0%,to{transform:translate(0) scale(1)}50%{transform:translate(5%,4%) scale(1.12)}}@keyframes pattern-mesh-b{0%,to{transform:translate(0) scale(1.06)}50%{transform:translate(-6%,-3%) scale(.96)}}@keyframes pattern-rings{0%{opacity:var(--jun-ring-o,.16);transform:scale(1)}to{opacity:0;transform:scale(1.9)}}@keyframes pattern-wave-a{0%,to{transform:translate(0)}50%{transform:translate(-4%,-3%)}}@keyframes pattern-wave-b{0%,to{transform:translate(0)}50%{transform:translate(5%,-2%)}}@keyframes pattern-wave-c{0%,to{transform:translate(0)}50%{transform:translate(-3%,-4%)}}@media (prefers-reduced-motion:reduce){.layer{animation:none!important}.pattern-parallax{transform:none!important}}
94
+ .jun-pattern-backdrop{background:var(--jun-canvas);min-height:100lvh}.pattern-parallax{inset:-3%;opacity:var(--jun-blob-opacity,1);position:absolute;transform:translate3d(var(--px,0),var(--py,0),0);transition:opacity .6s ease;will-change:transform}.is-quiet .pattern-parallax{opacity:0}.layer{inset:0;position:absolute;will-change:transform,opacity}.is-paused .layer{animation-play-state:paused}.is-dots .layer--1{animation:pattern-drift-dots 60s linear infinite;background-image:radial-gradient(circle at center,var(--jun-bd-a) 1.1px,transparent 1.2px);background-size:26px 26px;opacity:.18}.is-dots .layer--2{background:radial-gradient(ellipse 70% 60% at 50% 0,var(--jun-bd-c) 0,transparent 70%);opacity:.22}:root.dark .is-dots .layer--1{opacity:.4}:root.dark .is-dots .layer--2{opacity:.34}.is-grid .layer--1{animation:pattern-drift-grid 90s linear infinite;background-size:64px 64px;-webkit-mask-image:radial-gradient(ellipse 80% 70% at 50% 40%,#000 20%,transparent 78%);mask-image:radial-gradient(ellipse 80% 70% at 50% 40%,#000 20%,transparent 78%);opacity:.13}.is-grid .layer--1,.is-grid .layer--2{background-image:linear-gradient(to right,var(--jun-bd-a) 1px,transparent 1px),linear-gradient(to bottom,var(--jun-bd-a) 1px,transparent 1px)}.is-grid .layer--2{background-size:16px 16px;-webkit-mask-image:radial-gradient(ellipse 60% 50% at 50% 40%,#000 10%,transparent 70%);mask-image:radial-gradient(ellipse 60% 50% at 50% 40%,#000 10%,transparent 70%);opacity:.06}:root.dark .is-grid .layer--1{opacity:.32}:root.dark .is-grid .layer--2{opacity:.14}.is-aurora .layer--1{animation:pattern-aurora-a 38s ease-in-out infinite;background:linear-gradient(115deg,transparent 12%,var(--jun-bd-a) 38%,transparent 62%);mix-blend-mode:multiply;opacity:.3}.is-aurora .layer--2{animation:pattern-aurora-b 52s ease-in-out infinite;background:linear-gradient(-70deg,transparent 20%,var(--jun-bd-c) 50%,transparent 80%);mix-blend-mode:multiply;opacity:.26}:root.dark .is-aurora .layer--1,:root.dark .is-aurora .layer--2{mix-blend-mode:screen;opacity:.55}.is-mesh .layer--1{animation:pattern-mesh-a 44s ease-in-out infinite;background:radial-gradient(closest-side at 12% 18%,var(--jun-bd-a) 0,transparent 70%),radial-gradient(closest-side at 88% 12%,var(--jun-bd-c) 0,transparent 72%);background-repeat:no-repeat;background-size:70% 70%,65% 65%;mix-blend-mode:multiply;opacity:.5}.is-mesh .layer--2{animation:pattern-mesh-b 57s ease-in-out infinite;background:radial-gradient(closest-side at 20% 88%,var(--jun-bd-b) 0,transparent 72%),radial-gradient(closest-side at 82% 82%,var(--jun-bd-a) 0,transparent 68%);background-repeat:no-repeat;background-size:68% 68%,62% 62%;mix-blend-mode:multiply;opacity:.42}:root.dark .is-mesh .layer--1{mix-blend-mode:screen;opacity:.62}:root.dark .is-mesh .layer--2{mix-blend-mode:screen;opacity:.55}.is-rings .layer--1{animation:pattern-rings 26s ease-out infinite;background:repeating-radial-gradient(circle at 50% 42%,var(--jun-bd-a) 0 1px,transparent 1px 84px);-webkit-mask-image:radial-gradient(circle at 50% 42%,#000 5%,transparent 72%);mask-image:radial-gradient(circle at 50% 42%,#000 5%,transparent 72%);opacity:.16}.is-rings .layer--2{background:radial-gradient(circle at 50% 42%,var(--jun-bd-c) 0,transparent 55%);mix-blend-mode:multiply;opacity:.3}:root.dark .is-rings .layer--1{--jun-ring-o:0.34}:root.dark .is-rings .layer--2{mix-blend-mode:screen;opacity:.4}.is-waves .layer--1{animation:pattern-wave-a 30s ease-in-out infinite;background:radial-gradient(ellipse 120% 60% at 50% 118%,var(--jun-bd-a) 0,transparent 70%);mix-blend-mode:multiply;opacity:.34}.is-waves .layer--2{animation:pattern-wave-b 43s ease-in-out infinite;background:radial-gradient(ellipse 150% 55% at 30% 126%,var(--jun-bd-c) 0,transparent 68%);mix-blend-mode:multiply;opacity:.3}.is-waves .layer--3{animation:pattern-wave-c 37s ease-in-out infinite;background:radial-gradient(ellipse 100% 70% at 78% 132%,var(--jun-bd-b) 0,transparent 65%);mix-blend-mode:multiply;opacity:.24}:root.dark .is-waves .layer--1,:root.dark .is-waves .layer--2,:root.dark .is-waves .layer--3{mix-blend-mode:screen;opacity:.56}.is-noise .layer--1{background-image:url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='a'%3E%3CfeTurbulence baseFrequency='.85' numOctaves='3' type='fractalNoise'/%3E%3C/filter%3E%3Cpath d='M0 0h120v120H0z' filter='url(%23a)' opacity='.5'/%3E%3C/svg%3E");opacity:.055}.is-noise .layer--2{background:radial-gradient(ellipse 90% 70% at 50% 0,var(--jun-bd-c) 0,transparent 72%);mix-blend-mode:multiply;opacity:.28}:root.dark .is-noise .layer--1{opacity:.13}:root.dark .is-noise .layer--2{mix-blend-mode:screen;opacity:.36}@keyframes pattern-drift-dots{0%{transform:translate(0)}to{transform:translate(26px,26px)}}@keyframes pattern-drift-grid{0%{transform:translate(0)}to{transform:translate(64px)}}@keyframes pattern-aurora-a{0%,to{transform:translate(-6%,-4%) scale(1.15)}50%{transform:translate(8%,6%) scale(1.3)}}@keyframes pattern-aurora-b{0%,to{transform:translate(7%,5%) scale(1.25)}50%{transform:translate(-8%,-6%) scale(1.1)}}@keyframes pattern-mesh-a{0%,to{transform:translate(0) scale(1)}50%{transform:translate(5%,4%) scale(1.12)}}@keyframes pattern-mesh-b{0%,to{transform:translate(0) scale(1.06)}50%{transform:translate(-6%,-3%) scale(.96)}}@keyframes pattern-rings{0%{opacity:var(--jun-ring-o,.16);transform:scale(1)}to{opacity:0;transform:scale(1.9)}}@keyframes pattern-wave-a{0%,to{transform:translate(0)}50%{transform:translate(-4%,-3%)}}@keyframes pattern-wave-b{0%,to{transform:translate(0)}50%{transform:translate(5%,-2%)}}@keyframes pattern-wave-c{0%,to{transform:translate(0)}50%{transform:translate(-3%,-4%)}}@media (prefers-reduced-motion:reduce){.layer{animation:none!important}.pattern-parallax{transform:none!important}}
95
95
  </style>
@@ -78,5 +78,5 @@ const plasmaWarp = computed(() => paletteName.value === "globe" ? 0.45 : 0.55);
78
78
  </template>
79
79
 
80
80
  <style scoped>
81
- .jun-shader-backdrop{-webkit-mask-image:radial-gradient(160% 130% at 50% 50%,#000 0,#000 80%,rgba(0,0,0,.9) 100%);mask-image:radial-gradient(160% 130% at 50% 50%,#000 0,#000 80%,rgba(0,0,0,.9) 100%)}.jun-shader-backdrop :deep(.shader),.jun-shader-backdrop :deep(canvas){display:block;height:100%!important;width:100%!important}.jun-vignette{background:radial-gradient(130% 90% at 50% 50%,transparent 40%,hsla(0,0%,100%,.18) 100%);inset:0;pointer-events:none;position:absolute}:root.dark .jun-vignette{background:radial-gradient(130% 90% at 50% 50%,transparent 40%,rgba(0,0,0,.3) 100%)}
81
+ .jun-shader-backdrop{background:var(--jun-canvas);-webkit-mask-image:radial-gradient(160% 130% at 50% 50%,#000 0,#000 80%,rgba(0,0,0,.9) 100%);mask-image:radial-gradient(160% 130% at 50% 50%,#000 0,#000 80%,rgba(0,0,0,.9) 100%);min-height:100lvh}.jun-shader-backdrop :deep(.shader),.jun-shader-backdrop :deep(canvas){display:block;height:100%!important;width:100%!important}.jun-vignette{background:radial-gradient(130% 90% at 50% 50%,transparent 40%,hsla(0,0%,100%,.18) 100%);inset:0;pointer-events:none;position:absolute}:root.dark .jun-vignette{background:radial-gradient(130% 90% at 50% 50%,transparent 40%,rgba(0,0,0,.3) 100%)}
82
82
  </style>
@@ -80,7 +80,8 @@ const typeMenuItems = computed(() => [
80
80
  docTypes.value.map((t) => ({
81
81
  label: t.label,
82
82
  icon: normalizeIcon(t.icon),
83
- active: t.key === currentType.value,
83
+ type: "checkbox",
84
+ checked: t.key === currentType.value,
84
85
  onSelect: () => changeType(t.key, t.label)
85
86
  }))
86
87
  ]);
@@ -550,7 +550,7 @@ function shows(id) {
550
550
  </div>
551
551
  </header>
552
552
 
553
- <div class="grid gap-4 sm:grid-cols-2">
553
+ <div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
554
554
  <UFormField
555
555
  label="Site title"
556
556
  help="Falls back to the page title when empty."
@@ -683,7 +683,7 @@ function shows(id) {
683
683
  </div>
684
684
  </UFormField>
685
685
 
686
- <div class="grid gap-4 sm:grid-cols-2">
686
+ <div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
687
687
  <UFormField
688
688
  label="Shape"
689
689
  help="Ghost drops the panel — border, ring and frosting."
@@ -730,7 +730,7 @@ function shows(id) {
730
730
  </UFormField>
731
731
  </div>
732
732
 
733
- <div class="grid gap-x-8 gap-y-3 pt-1 sm:grid-cols-3">
733
+ <div class="grid grid-cols-1 gap-x-8 gap-y-3 pt-1 sm:grid-cols-3">
734
734
  <div class="flex items-center justify-between gap-3">
735
735
  <div class="min-w-0">
736
736
  <p class="text-xs font-medium">
@@ -777,7 +777,7 @@ function shows(id) {
777
777
  />
778
778
  </div>
779
779
  </div>
780
- <div class="grid gap-x-8 gap-y-3 sm:grid-cols-3">
780
+ <div class="grid grid-cols-1 gap-x-8 gap-y-3 sm:grid-cols-3">
781
781
  <div class="flex items-center justify-between gap-3">
782
782
  <div class="min-w-0">
783
783
  <p class="text-xs font-medium">
@@ -1187,7 +1187,7 @@ function shows(id) {
1187
1187
  </div>
1188
1188
  </UFormField>
1189
1189
 
1190
- <div class="grid gap-4 sm:grid-cols-2">
1190
+ <div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
1191
1191
  <UFormField
1192
1192
  label="Grayscale tint"
1193
1193
  help="The neutral family everything grey is mixed from."
@@ -1375,7 +1375,7 @@ function shows(id) {
1375
1375
  <!-- The modifiers only exist once there is something to modify. -->
1376
1376
  <div
1377
1377
  v-if="backgroundSettings.active"
1378
- class="mt-4 grid gap-4 sm:grid-cols-[auto_1fr_auto]"
1378
+ class="mt-4 grid grid-cols-1 gap-4 sm:grid-cols-[auto_1fr_auto]"
1379
1379
  >
1380
1380
  <div>
1381
1381
  <p class="mb-1.5 text-[11px] text-muted">
@@ -1464,7 +1464,7 @@ function shows(id) {
1464
1464
  </header>
1465
1465
 
1466
1466
  <div
1467
- class="grid gap-4 transition-opacity sm:grid-cols-[2fr_1fr]"
1467
+ class="grid grid-cols-1 gap-4 transition-opacity sm:grid-cols-[2fr_1fr]"
1468
1468
  :class="announceEnabled ? '' : 'opacity-50'"
1469
1469
  >
1470
1470
  <UFormField label="Text">
@@ -1525,7 +1525,7 @@ function shows(id) {
1525
1525
  :class="campfireEnabled ? '' : 'pointer-events-none opacity-50'"
1526
1526
  >
1527
1527
  <!-- Name and mark -->
1528
- <div class="grid gap-4 sm:grid-cols-[2fr_1fr]">
1528
+ <div class="grid grid-cols-1 gap-4 sm:grid-cols-[2fr_1fr]">
1529
1529
  <UFormField
1530
1530
  label="Name"
1531
1531
  help="Shown in the panel header and read out by screen readers. Renaming it also drops the two strings that only make sense around a fire."
@@ -1566,7 +1566,7 @@ function shows(id) {
1566
1566
  label="What it offers"
1567
1567
  help="Each panel is a tab. Switch them all off and the pill becomes a read-only presence badge."
1568
1568
  >
1569
- <div class="grid gap-x-8 gap-y-3 sm:grid-cols-3">
1569
+ <div class="grid grid-cols-1 gap-x-8 gap-y-3 sm:grid-cols-3">
1570
1570
  <div class="flex items-center justify-between gap-3">
1571
1571
  <div class="min-w-0">
1572
1572
  <p class="text-xs font-medium">
@@ -1625,7 +1625,7 @@ function shows(id) {
1625
1625
  VANISH gives no clue that the numbers underneath survived. -->
1626
1626
  <div
1627
1627
  v-show="campfireChat"
1628
- class="grid gap-4 sm:grid-cols-2"
1628
+ class="grid grid-cols-1 gap-4 sm:grid-cols-2"
1629
1629
  >
1630
1630
  <UFormField
1631
1631
  label="Messages kept on screen"
@@ -1651,7 +1651,7 @@ function shows(id) {
1651
1651
  <!-- Roster detail -->
1652
1652
  <div
1653
1653
  v-show="campfireRoster"
1654
- class="grid gap-x-8 gap-y-3 sm:grid-cols-3"
1654
+ class="grid grid-cols-1 gap-x-8 gap-y-3 sm:grid-cols-3"
1655
1655
  >
1656
1656
  <div class="flex items-center justify-between gap-3">
1657
1657
  <div class="min-w-0">
@@ -1829,7 +1829,7 @@ function shows(id) {
1829
1829
  </div>
1830
1830
  </UFormField>
1831
1831
 
1832
- <div class="grid gap-4 sm:grid-cols-2">
1832
+ <div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
1833
1833
  <UFormField
1834
1834
  label="Panel size"
1835
1835
  help="Every size clamps to the viewport on a phone."
@@ -1996,7 +1996,7 @@ function shows(id) {
1996
1996
  </div>
1997
1997
  </header>
1998
1998
 
1999
- <div class="grid gap-x-8 gap-y-3 sm:grid-cols-3">
1999
+ <div class="grid grid-cols-1 gap-x-8 gap-y-3 sm:grid-cols-3">
2000
2000
  <div class="flex items-center justify-between gap-3">
2001
2001
  <div class="min-w-0">
2002
2002
  <p class="text-xs font-medium">
@@ -2044,7 +2044,7 @@ function shows(id) {
2044
2044
  </div>
2045
2045
  </div>
2046
2046
 
2047
- <div class="grid gap-4 sm:grid-cols-2">
2047
+ <div class="grid grid-cols-1 gap-4 sm:grid-cols-2">
2048
2048
  <UFormField
2049
2049
  label="Author name"
2050
2050
  help="Feeds and structured data."
@@ -65,11 +65,6 @@ function onExcerptFocus() {
65
65
  sel?.removeAllRanges();
66
66
  sel?.addRange(range);
67
67
  }
68
- function onTagsPatch(p) {
69
- const raw = p.tags;
70
- const tags = typeof raw === "string" ? raw.split(",").map((t) => t.trim()).filter(Boolean) : void 0;
71
- patchMeta({ tags: tags?.length ? tags : void 0 });
72
- }
73
68
  const isDraft = computed(() => !!meta.value.draft);
74
69
  function publish() {
75
70
  patchMeta({
@@ -202,13 +197,16 @@ function removeCover() {
202
197
  meta-key="date"
203
198
  @patch="patchMeta"
204
199
  />
200
+ <!-- The platform's tag editor, not a comma-separated text field. It
201
+ reads a legacy comma STRING as well as the canonical array, so
202
+ entries written before this switch keep their tags. -->
205
203
  <AMetaChip
206
- field-type="text"
207
- label="Tags (comma-separated)"
204
+ field-type="tags"
205
+ label="Tags"
208
206
  icon="i-lucide-tags"
209
207
  :meta="metaRecord"
210
208
  meta-key="tags"
211
- @patch="onTagsPatch"
209
+ @patch="patchMeta"
212
210
  />
213
211
 
214
212
  <div class="flex-1" />
@@ -202,7 +202,7 @@ function onPageDrop(e) {
202
202
  function addStage() {
203
203
  const existing = declaredStages.value;
204
204
  const name = `Stage ${existing.length + 1}`;
205
- tree.updateMeta(props.docId, { stages: [...existing, name].join(", ") });
205
+ tree.updateMeta(props.docId, { stages: [...existing, name] });
206
206
  }
207
207
  const artDropId = ref(null);
208
208
  function onRowDragOver(entry, e) {
@@ -257,7 +257,7 @@ const studioOpen = ref(false);
257
257
  </div>
258
258
  </div>
259
259
 
260
- <div :class="layout === 'split' ? 'grid gap-12 lg:grid-cols-[minmax(0,19rem)_minmax(0,1fr)]' : ''">
260
+ <div :class="layout === 'split' ? 'grid grid-cols-1 gap-12 lg:grid-cols-[minmax(0,19rem)_minmax(0,1fr)]' : ''">
261
261
  <!-- ── Hero ───────────────────────────────────────────────────────── -->
262
262
  <header
263
263
  v-if="showHero"
@@ -332,7 +332,7 @@ const studioOpen = ref(false);
332
332
  class="text-xs text-muted transition-colors hover:text-default"
333
333
  >All →</NuxtLink>
334
334
  </div>
335
- <ul :class="layout === 'magazine' ? 'grid gap-3 sm:grid-cols-2' : 'flex flex-col gap-3'">
335
+ <ul :class="layout === 'magazine' ? 'grid grid-cols-1 gap-3 sm:grid-cols-2' : 'flex flex-col gap-3'">
336
336
  <li
337
337
  v-for="entry in latest"
338
338
  :key="entry.id"
@@ -510,7 +510,7 @@ const studioOpen = ref(false);
510
510
  </h2>
511
511
  <div class="h-px flex-1 bg-black/10 dark:bg-white/10" />
512
512
  </div>
513
- <div class="grid gap-3 sm:grid-cols-2">
513
+ <div class="grid grid-cols-1 gap-3 sm:grid-cols-2">
514
514
  <JunItemMenu
515
515
  v-for="page in topLevel"
516
516
  :key="page.id"
@@ -610,7 +610,7 @@ function onFeedDrop(e) {
610
610
  @click.stop
611
611
  >
612
612
  <div
613
- class="grid gap-1 overflow-hidden rounded-lg"
613
+ class="grid grid-cols-1 gap-1 overflow-hidden rounded-lg"
614
614
  :class="mediaOf(entry).length === 1 ? 'grid-cols-1' : 'grid-cols-2'"
615
615
  >
616
616
  <template
@@ -117,7 +117,11 @@ const panes = computed(
117
117
  live: !cyclic && !overCap,
118
118
  note: cyclic ? "This pane points at a page that contains it." : overCap ? "Past the live-pane limit \u2014 still here, just not rendered." : "",
119
119
  icon: iconFor(targetEntry?.type, targetEntry?.meta?.icon),
120
- interactive: meta.paneInteractive === true
120
+ interactive: meta.paneInteractive === true,
121
+ // Scrolling is ON for a window pane, because clipping a document with no
122
+ // indication that anything was clipped is the bug. `false` is the opt
123
+ // OUT — for a tile that is meant to read as a crop.
124
+ noScroll: meta.paneScroll === false
121
125
  };
122
126
  })
123
127
  );
@@ -495,25 +499,23 @@ const hereNow = computed(() => travellers.value.filter((t) => !t.idle).length);
495
499
 
496
500
  <!-- ── A document ──────────────────────────────────────────────── -->
497
501
  <template v-else>
502
+ <!-- The click layer is the PANE's now, not the tile's. A pane is a
503
+ WINDOW: it opens the document rather than letting you work
504
+ inside it — but an anchor stretched over the whole tile also
505
+ swallowed every wheel event, which is why a scrollable tile
506
+ could never have worked while this lived out here. Interactive
507
+ panes get no link, and neither does edit mode, where the tile
508
+ itself is the thing being arranged. -->
498
509
  <JunMosaicPane
499
510
  :target-doc-id="pane.targetId"
500
511
  :label="pane.entry.label"
501
512
  :icon="pane.icon"
502
513
  :interactive="pane.interactive"
503
514
  :live="pane.live"
515
+ :no-scroll="pane.noScroll"
516
+ :to="!pane.interactive && !editing ? getDocUrl(pane.targetId) : null"
504
517
  :fallback-note="editing ? pane.note : ''"
505
518
  />
506
-
507
- <!-- The click layer. A pane is a WINDOW: it opens the document rather
508
- than letting you work inside it. Interactive panes skip this, and
509
- so does edit mode, where the tile itself is the thing being
510
- arranged. -->
511
- <NuxtLink
512
- v-if="!pane.interactive && !editing"
513
- :to="getDocUrl(pane.targetId)"
514
- class="absolute inset-0 z-10"
515
- :aria-label="pane.entry.label"
516
- />
517
519
  </template>
518
520
 
519
521
  <!-- ── Owner affordances ───────────────────────────────────────── -->
@@ -288,7 +288,7 @@ function commitText(field, e) {
288
288
  >
289
289
  <div
290
290
  v-if="uploads.length"
291
- class="grid gap-1.5 overflow-hidden rounded-xl"
291
+ class="grid grid-cols-1 gap-1.5 overflow-hidden rounded-xl"
292
292
  :class="uploads.length === 1 ? 'grid-cols-1' : 'grid-cols-2'"
293
293
  >
294
294
  <div
@@ -323,7 +323,7 @@ function commitText(field, e) {
323
323
 
324
324
  <div
325
325
  v-else-if="legacyImages.length"
326
- class="grid gap-1.5 overflow-hidden rounded-xl"
326
+ class="grid grid-cols-1 gap-1.5 overflow-hidden rounded-xl"
327
327
  :class="legacyImages.length === 1 ? 'grid-cols-1' : 'grid-cols-2'"
328
328
  >
329
329
  <NuxtImg
@@ -43,11 +43,6 @@ const categories = computed(() => {
43
43
  const c = pageMeta.value.categories;
44
44
  return Array.isArray(c) && c.length ? c.filter((x) => typeof x === "string" && x.trim()) : [...JUN_USES_DEFAULT_CATEGORIES];
45
45
  });
46
- function onCategoriesPatch(p) {
47
- const raw = p.categories;
48
- const list = typeof raw === "string" ? raw.split(",").map((t) => t.trim()).filter(Boolean) : void 0;
49
- tree.updateMeta(props.docId, { categories: list?.length ? list : void 0 });
50
- }
51
46
  const items = computed(
52
47
  () => (tree.childrenOf(null) ?? []).filter((e) => !!e.label)
53
48
  );
@@ -118,13 +113,16 @@ function addItem(category) {
118
113
  v-if="editing"
119
114
  class="mb-6 flex flex-wrap items-center gap-1.5"
120
115
  >
116
+ <!-- The platform's tag editor. Categories are a list, and a list edits
117
+ as a list — the comma-separated text field this replaced could not
118
+ tell a category containing a comma from two categories. -->
121
119
  <AMetaChip
122
- field-type="text"
123
- label="Categories (comma-separated)"
120
+ field-type="tags"
121
+ label="Categories"
124
122
  icon="i-lucide-layout-list"
125
123
  :meta="pageMeta"
126
124
  meta-key="categories"
127
- @patch="onCategoriesPatch"
125
+ @patch="(p) => tree.updateMeta(props.docId, p)"
128
126
  />
129
127
  </div>
130
128
 
@@ -47,6 +47,8 @@ export interface JunCampfireSettings {
47
47
  roster: boolean;
48
48
  identity: boolean;
49
49
  reactions: boolean;
50
+ /** Speech bubbles beside a CLOSED hearth. Implies `chat`. */
51
+ bubbles: boolean;
50
52
  follow: boolean;
51
53
  showPages: boolean;
52
54
  showBots: boolean;
@@ -9,7 +9,7 @@ const TABS = ["auto", "here", "fire", "you"];
9
9
  const SIZES = ["sm", "md", "lg"];
10
10
  const HISTORY_MIN = 5;
11
11
  const HISTORY_MAX = 300;
12
- const REACTIONS_MAX = 8;
12
+ const REACTIONS_MAX = 12;
13
13
  const TITLE_MAX = 32;
14
14
  const ICON_RE = /^i-lucide-[a-z0-9]+(?:-[a-z0-9]+)*$/;
15
15
  export function junCampfireReactions(raw) {
@@ -56,6 +56,16 @@ export function useJunCampfireSettings() {
56
56
  roster,
57
57
  identity,
58
58
  reactions,
59
+ // `&& chat` is the whole rule: a bubble is a chat message, so a site with
60
+ // the fire out must not have sentences drifting past its hearth.
61
+ //
62
+ // `?? true` because a MISSING build default must not read as "off". This
63
+ // key is newer than the option object some consumers ship, and an absent
64
+ // `campfire.bubbles` made `flag()` hand back `undefined` — falsy, so the
65
+ // whole feature was silently disabled for anyone whose `runtimeConfig`
66
+ // predates it. Every other flag here has a real boolean behind it; this
67
+ // is the one that could arrive without one.
68
+ bubbles: chat && flag(c.campfireBubbles, build.bubbles ?? true),
59
69
  follow: flag(c.campfireFollow, build.follow),
60
70
  showPages: flag(c.campfireShowPages, build.showPages),
61
71
  showBots: flag(c.campfireShowBots, build.showBots),
@@ -10,7 +10,21 @@ export interface JunMenuCtx {
10
10
  /** True while the owner is in edit mode. */
11
11
  editing: boolean;
12
12
  }
13
- /** A `UContextMenu`/`UDropdownMenu` item. Kept structural — Nuxt UI's own type is not exported in a usable form. */
13
+ /**
14
+ * A `UContextMenu`/`UDropdownMenu` item. Kept structural — Nuxt UI's own type
15
+ * is not exported in a usable form.
16
+ *
17
+ * > **`checked` alone renders NOTHING. An item that reports a current choice
18
+ * > must also carry `type: 'checkbox'`.** Nuxt UI paints the tick from
19
+ * > `ContextMenu.ItemIndicator`, which only exists inside the
20
+ * > `ContextMenu.CheckboxItem` branch — every other item type drops `checked`
21
+ * > on the floor in silence. Both the "Page type ▸" and "Icon ▸" submenus here
22
+ * > shipped without it, so the one thing a switcher has to say — which option
23
+ * > you are ON — was the one thing it never said. (The indicator lands in the
24
+ * > TRAILING slot, so a checkbox item keeps its leading icon; there is no
25
+ * > trade.) `active` is not a menu-item prop at all, and setting it does
26
+ * > nothing anywhere.
27
+ */
14
28
  export interface JunMenuItem {
15
29
  label?: string;
16
30
  icon?: string;
@@ -18,6 +32,7 @@ export interface JunMenuItem {
18
32
  kbds?: string[];
19
33
  disabled?: boolean;
20
34
  type?: 'label' | 'separator' | 'checkbox';
35
+ /** Requires `type: 'checkbox'` to render. See the note above. */
21
36
  checked?: boolean;
22
37
  children?: JunMenuItem[];
23
38
  onSelect?: (e?: Event) => void;
@@ -182,12 +182,18 @@ export function useJunDocMenu() {
182
182
  ...ICON_CHOICES.map((choice) => ({
183
183
  label: choice.label,
184
184
  icon: choice.icon,
185
+ // `type: 'checkbox'` is what MAKES the tick — see `JunMenuItem`.
186
+ type: "checkbox",
185
187
  checked: current === choice.icon,
186
188
  onSelect: () => tree.updateMeta(ctx.docId, { icon: choice.icon })
187
189
  })),
188
190
  {
189
191
  label: "Use page-type icon",
190
192
  icon: "i-lucide-rotate-ccw",
193
+ // Ticked when nothing is overridden — "inherits the page type" is a
194
+ // state of this list, not an escape from it.
195
+ type: "checkbox",
196
+ checked: !current,
191
197
  onSelect: () => tree.updateMeta(ctx.docId, { icon: void 0 })
192
198
  }
193
199
  ]
@@ -206,12 +212,14 @@ export function useJunDocMenu() {
206
212
  {
207
213
  label: "Document",
208
214
  icon: "i-lucide-file-text",
215
+ type: "checkbox",
209
216
  checked: currentType === "doc" || !currentType,
210
217
  onSelect: () => setType("doc")
211
218
  },
212
219
  ...opts.pageTypes.map((type) => ({
213
220
  label: labelForType(type) ?? type,
214
221
  icon: opts.typeIcons[type] ?? "i-lucide-file-text",
222
+ type: "checkbox",
215
223
  checked: currentType === type,
216
224
  onSelect: () => setType(type)
217
225
  }))
@@ -10,6 +10,7 @@ export declare function useJunBrand(): import("vue").ComputedRef<{
10
10
  logoMark: import("../types.js").JunLogoMark;
11
11
  logoVariant: import("../types.js").JunLogoVariant;
12
12
  themeColor: string;
13
+ iconBackground: string;
13
14
  schemaType: import("../types.js").JunBrand["schemaType"];
14
15
  }>;
15
16
  /** Site-wide feature flags. */