@abraca/junis 2.82.0 → 2.84.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.
- package/README.md +19 -14
- package/dist/module.json +1 -1
- package/dist/module.mjs +21 -2
- package/dist/runtime/assets/css/jun.css +1 -1
- package/dist/runtime/components/JunCampfireChat.vue +7 -5
- package/dist/runtime/components/JunCampfireComposer.d.vue.ts +27 -0
- package/dist/runtime/components/JunCampfireComposer.vue +158 -0
- package/dist/runtime/components/JunCampfireComposer.vue.d.ts +27 -0
- package/dist/runtime/components/JunCampfirePanel.vue +18 -28
- package/dist/runtime/components/JunCampfirePresence.client.vue +109 -9
- package/dist/runtime/components/JunCampfireReactions.d.vue.ts +13 -0
- package/dist/runtime/components/JunCampfireReactions.vue +142 -0
- package/dist/runtime/components/JunCampfireReactions.vue.d.ts +13 -0
- package/dist/runtime/components/JunCampfireRoster.vue +92 -41
- package/dist/runtime/components/JunCampfireYou.vue +9 -9
- package/dist/runtime/components/JunGlobeEditor.client.vue +396 -183
- package/dist/runtime/components/JunGlobeMap.client.vue +1 -0
- package/dist/runtime/components/JunHorizontalTimeline.vue +41 -4
- package/dist/runtime/components/JunImagePopup.client.vue +1 -1
- package/dist/runtime/components/JunMosaicPane.client.d.vue.ts +9 -0
- package/dist/runtime/components/JunMosaicPane.client.vue +63 -3
- package/dist/runtime/components/JunMosaicPane.client.vue.d.ts +9 -0
- package/dist/runtime/components/JunStudioBar.client.vue +2 -1
- package/dist/runtime/components/renderers/JunAppsRenderer.vue +5 -5
- package/dist/runtime/components/renderers/JunCvRenderer.vue +1 -1
- package/dist/runtime/components/renderers/JunEntryRenderer.vue +1 -1
- package/dist/runtime/components/renderers/JunGuestbookRenderer.vue +2 -0
- package/dist/runtime/components/renderers/JunHomeRenderer.vue +2 -2
- package/dist/runtime/components/renderers/JunJournalRenderer.vue +6 -6
- package/dist/runtime/components/renderers/JunLiveRenderer.vue +2 -1
- package/dist/runtime/components/renderers/JunMosaicRenderer.vue +14 -12
- package/dist/runtime/components/renderers/JunMovieRenderer.vue +1 -1
- package/dist/runtime/components/renderers/JunNowRenderer.vue +39 -0
- package/dist/runtime/components/renderers/JunProjectRenderer.vue +2 -2
- package/dist/runtime/components/renderers/JunStatsRenderer.vue +15 -2
- package/dist/runtime/components/renderers/JunTrackRenderer.vue +44 -0
- package/dist/runtime/components/renderers/JunWallRenderer.vue +1 -0
- package/dist/runtime/composables/useJunCampfire.d.ts +2 -0
- package/dist/runtime/composables/useJunCampfire.js +11 -1
- package/dist/runtime/composables/useJunChrome.js +11 -2
- package/dist/runtime/composables/useJunDocMenu.d.ts +16 -1
- package/dist/runtime/composables/useJunDocMenu.js +8 -0
- package/dist/runtime/composables/useJunTheme.js +9 -0
- package/dist/runtime/layouts/jun.vue +10 -0
- package/dist/runtime/plugins/jun-fresh-server.client.d.ts +2 -0
- package/dist/runtime/plugins/jun-fresh-server.client.js +42 -0
- package/dist/runtime/server/janitor/junJanitorChores.d.ts +23 -2
- package/dist/runtime/server/janitor/junJanitorChores.js +74 -8
- package/dist/runtime/server/janitor/junJanitorMachine.js +16 -2
- package/dist/runtime/server/janitor/junJanitorStore.d.ts +35 -1
- package/dist/runtime/server/janitor/junJanitorStore.js +62 -4
- package/dist/runtime/server/plugins/jun-bootstrap.js +88 -3
- package/dist/runtime/server/utils/junVisibility.js +2 -0
- package/dist/runtime/types.d.ts +26 -0
- package/dist/runtime/utils/junVisibility.js +2 -0
- package/package.json +10 -8
package/README.md
CHANGED
|
@@ -5,23 +5,28 @@ a document tree and you get a website: typed page renderers, presence-aware
|
|
|
5
5
|
chrome, an owner editing studio, server-side rendering, feeds, search, and
|
|
6
6
|
visitor interaction — all driven by documents rather than code.
|
|
7
7
|
|
|
8
|
-
Everything is a document, settings included. The site's configuration lives in a
|
|
9
|
-
hidden document whose meta *is* the config and whose page is the settings UI.
|
|
10
|
-
|
|
11
8
|
> **Status: pre-1.0, and honest about it.** All **23** page types render and are
|
|
12
|
-
> exercised on every boot
|
|
13
|
-
>
|
|
14
|
-
>
|
|
15
|
-
>
|
|
16
|
-
>
|
|
9
|
+
> exercised on every boot from an **empty database** — the playground ships no
|
|
10
|
+
> database, deliberately, because one that ships a database never proves its
|
|
11
|
+
> seeder works. A cold start seeds **98 documents**, **34 bodies** and two
|
|
12
|
+
> generated photographs for the wall.
|
|
13
|
+
>
|
|
14
|
+
> Verified on every change, and these numbers are what the commands print:
|
|
15
|
+
>
|
|
16
|
+
> | | |
|
|
17
|
+
> |---|---|
|
|
18
|
+
> | `pnpm parity` | **619** SSR assertions across all 23 types |
|
|
19
|
+
> | `pnpm parity:nav` | **56** assertions — the only check that catches broken client-side navigation |
|
|
20
|
+
> | `pnpm test` | **150** assertions, no server needed |
|
|
21
|
+
> | `pnpm lint` · `pnpm typecheck` | clean |
|
|
17
22
|
>
|
|
18
|
-
>
|
|
19
|
-
>
|
|
20
|
-
>
|
|
23
|
+
> The **globe** is on in the playground with a token and seeded waypoints, and
|
|
24
|
+
> off by default in the module because enabling it pulls `mapbox-gl` into the
|
|
25
|
+
> bundle graph.
|
|
21
26
|
>
|
|
22
|
-
>
|
|
23
|
-
>
|
|
24
|
-
>
|
|
27
|
+
> **The largest gap:** `parity` and `parity:nav` both walk the site as a
|
|
28
|
+
> *visitor*. Nothing automated exercises the owner **studio**. Remaining gaps
|
|
29
|
+
> are in `FOLLOW-UP.md`; `CLAUDE.md` is the working reference.
|
|
25
30
|
|
|
26
31
|
```bash
|
|
27
32
|
pnpm add @abraca/junis @abraca/nuxt @abraca/dabra @abraca/convert
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -424,12 +424,21 @@ const DEFAULT_CAMPFIRE = {
|
|
|
424
424
|
roster: true,
|
|
425
425
|
identity: true,
|
|
426
426
|
reactions: true,
|
|
427
|
+
bubbles: true,
|
|
427
428
|
follow: true,
|
|
428
429
|
showPages: true,
|
|
429
430
|
showBots: false,
|
|
430
431
|
allowRename: true,
|
|
431
|
-
// Warmth, welcome, a
|
|
432
|
-
|
|
432
|
+
// The QUICK row — one press each, no picker. Warmth, welcome, agreement, a
|
|
433
|
+
// shared drink, and enough range that a passing traveller has something to
|
|
434
|
+
// say that is not just approval. Never sparkles.
|
|
435
|
+
//
|
|
436
|
+
// Eight rather than four: the footer row was laid out for eight from the
|
|
437
|
+
// start and shipped with half of them, so a visitor's whole vocabulary was
|
|
438
|
+
// fire, heart, wave, coffee. Anything beyond this row lives in the picker
|
|
439
|
+
// (`JunCampfireReactions`), which is the full set and always available —
|
|
440
|
+
// this is the shortcut, not the ceiling.
|
|
441
|
+
reactionSet: ["\u{1F525}", "\u2764\uFE0F", "\u{1F44B}", "\u2615", "\u{1F604}", "\u{1F389}", "\u{1F44F}", "\u{1F914}"],
|
|
433
442
|
historyLimit: 60,
|
|
434
443
|
placement: "bottom-right",
|
|
435
444
|
size: "md",
|
|
@@ -511,6 +520,9 @@ const module$1 = defineNuxtModule({
|
|
|
511
520
|
awareBlobs: true,
|
|
512
521
|
// Kept, deliberately unmounted — see runtime/types.ts for why.
|
|
513
522
|
peerCursors: false,
|
|
523
|
+
// ON: unlike cursors, this shows exactly one person's selection and only
|
|
524
|
+
// while you have chosen to follow them. That is company, not surveillance.
|
|
525
|
+
peerSelection: true,
|
|
514
526
|
travellersChip: false,
|
|
515
527
|
campfire: false,
|
|
516
528
|
studio: true,
|
|
@@ -568,6 +580,10 @@ const module$1 = defineNuxtModule({
|
|
|
568
580
|
const resolver = createResolver(import.meta.url);
|
|
569
581
|
const iconOptions = siblingOptions(nuxt, "icon");
|
|
570
582
|
iconOptions.cssLayer ??= "base";
|
|
583
|
+
const registerFreshServerGuard = () => addPlugin({
|
|
584
|
+
src: resolver.resolve("./runtime/plugins/jun-fresh-server.client"),
|
|
585
|
+
mode: "client"
|
|
586
|
+
});
|
|
571
587
|
if (options.autoInstall !== false) {
|
|
572
588
|
if (!hasNuxtModule("@nuxt/ui")) await installModule("@nuxt/ui");
|
|
573
589
|
if (!hasNuxtModule("@nuxt/image")) await installModule("@nuxt/image");
|
|
@@ -577,11 +593,14 @@ const module$1 = defineNuxtModule({
|
|
|
577
593
|
}
|
|
578
594
|
if (options.fonts !== false && !hasNuxtModule("@nuxt/fonts")) await installModule("@nuxt/fonts");
|
|
579
595
|
if (!hasNuxtModule("@vueuse/motion/nuxt")) await installModule("@vueuse/motion/nuxt");
|
|
596
|
+
registerFreshServerGuard();
|
|
580
597
|
if (!hasNuxtModule("@abraca/nuxt")) await installModule("@abraca/nuxt");
|
|
581
598
|
} else if (!hasNuxtModule("@abraca/nuxt")) {
|
|
582
599
|
throw new Error(
|
|
583
600
|
"[@abraca/junis] requires @abraca/nuxt. Add it to `modules` before @abraca/junis, or leave `jun.autoInstall` on."
|
|
584
601
|
);
|
|
602
|
+
} else {
|
|
603
|
+
registerFreshServerGuard();
|
|
585
604
|
}
|
|
586
605
|
const enabled = [];
|
|
587
606
|
for (const [key, def] of Object.entries(PAGE_TYPES)) {
|
|
@@ -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-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:7rem}body,html{color-scheme:light dark;overscroll-behavior-y:none;scroll-behavior:smooth}body{-webkit-tap-highlight-color:transparent;padding-top:env(safe-area-inset-top);touch-action:manipulation}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:100vh;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-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}.dark{--ui-primary:#fff;--jun-sun-from:#fafafa;--jun-sun-to:#e4e4e7;--jun-sun-core:#101013;--jun-sun-glow:#f4f4f5}.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{background-color:rgba(250,250,252,.97)!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{background-color:rgba(24,24,27,.97)!important}html.jun-surface-solid .jun-campfire-banner,html.jun-surface-solid .jun-campfire-panel,html.jun-surface-solid .jun-campfire-pill{background:hsla(0,0%,100%,.97)!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:rgba(24,24,27,.97)!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)}.jun-hearth-embers{height:1px;pointer-events:none;width:1px;z-index:61}.jun-bar.is-opaque{backdrop-filter:none;-webkit-backdrop-filter:none;background-color:rgba(250,250,252,.97);background-image:none}:root.dark .jun-bar.is-opaque{background-color:rgba(24,24,27,.97)}.jun-bar-trigger{touch-action:none;-webkit-touch-callout:none}.jun-bar.is-pressing{box-shadow:0 12px 32px -8px rgba(0,0,0,.28)}.jun-bar.is-on{background-color:var(--color-neutral-900);background-image:none;border-color:transparent;color:var(--color-neutral-50)}:root.dark .jun-bar.is-on{background-color:var(--color-neutral-100);color:var(--color-neutral-900)}.jun-studio-bar{min-height:2.375rem;min-width:4rem}.jun-bar-knob{background-color:var(--color-neutral-900);bottom:1px;box-shadow:0 1px 3px rgba(0,0,0,.2);color:var(--color-neutral-50);left:1px;position:absolute;top:1px;transition:left .42s cubic-bezier(.22,1,.36,1),translate .42s cubic-bezier(.22,1,.36,1),background-color .3s ease,color .3s ease,box-shadow .3s ease;translate:0 0;width:2.25rem}:root.dark .jun-bar-knob{background-color:var(--color-neutral-100);color:var(--color-neutral-900)}.jun-bar.is-on .jun-bar-knob{background-color:var(--color-neutral-50);box-shadow:0 1px 4px rgba(0,0,0,.3);color:var(--color-neutral-900);left:calc(100% - 1px);translate:-100% 0}:root.dark .jun-bar.is-on .jun-bar-knob{background-color:var(--color-neutral-900);color:var(--color-neutral-100)}.jun-bar-row{padding:0;transition:padding .42s cubic-bezier(.22,1,.36,1)}.jun-bar.is-expanded .jun-bar-row{padding-left:2.5rem;padding-right:.5rem}.jun-bar.is-expanded.is-on .jun-bar-row{padding-left:.625rem;padding-right:2.625rem}.jun-bar-sep{background:currentColor;flex:none;height:1rem;margin-inline:.125rem;opacity:.18;width:1px}.jun-bar-title{border-bottom:1px solid color-mix(in srgb,currentColor 22%,transparent);color:inherit}.jun-bar-title::-moz-placeholder{color:currentColor;opacity:.45}.jun-bar-title::placeholder{color:currentColor;opacity:.45}.jun-bar-title:focus{border-bottom-color:color-mix(in srgb,currentColor 55%,transparent)}.jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-50)}.jun-bar.is-on .jun-bar-health,:root.dark .jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-900)}:root.dark .jun-bar.is-on .jun-bar-health{box-shadow:0 0 0 2px var(--color-neutral-100)}.jun-bar .jun-bar-trigger:hover,.jun-bar [data-jun-action]:hover{background-color:color-mix(in srgb,currentColor 10%,transparent)}[data-jun-action].is-hot{background-color:color-mix(in srgb,currentColor 18%,transparent);transform:scale(1.06)}[data-jun-action]{transition:background-color .15s ease,transform .15s cubic-bezier(.22,1,.36,1)}@media (prefers-reduced-motion:reduce){.jun-bar,.jun-bar-knob,.jun-bar-row,[data-jun-action]{transition:none}[data-jun-action].is-hot{transform:none}}
|
|
13
|
+
shadow-lg shadow-black/10}}@layer base{.jun-flow-page{padding-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:7rem}body,html{color-scheme:light dark;overscroll-behavior-y:none;scroll-behavior:smooth}body{-webkit-tap-highlight-color:transparent;padding-top:env(safe-area-inset-top);touch-action:manipulation}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:100vh;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-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-sun-from:#fafafa;--jun-sun-to:#e4e4e7;--jun-sun-core:#101013;--jun-sun-glow:#f4f4f5}.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}}
|
|
@@ -112,7 +112,7 @@ onBeforeUnmount(() => {
|
|
|
112
112
|
<p
|
|
113
113
|
v-if="sendError"
|
|
114
114
|
class="mx-3 mb-1 flex items-start gap-1.5 rounded-lg bg-black/[0.04] px-2.5 py-1.5
|
|
115
|
-
text-[11px] text-
|
|
115
|
+
text-[11px] text-neutral-500 dark:bg-white/[0.06] dark:text-neutral-400"
|
|
116
116
|
role="status"
|
|
117
117
|
>
|
|
118
118
|
<UIcon
|
|
@@ -122,12 +122,14 @@ onBeforeUnmount(() => {
|
|
|
122
122
|
<span>{{ sendError }}</span>
|
|
123
123
|
</p>
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
125
|
+
<!-- `JunCampfireComposer`, not `<AChatInput>`: that one is built for a
|
|
126
|
+
full-width panel and brought 62px of chrome and a primary-coloured
|
|
127
|
+
focus ring into a 320px monochrome surface. See its header. -->
|
|
128
|
+
<div class="px-1.5 pb-1.5">
|
|
129
|
+
<JunCampfireComposer
|
|
127
130
|
:autofocus="true"
|
|
128
|
-
:can-send="true"
|
|
129
131
|
:mention-users="mentionUsers"
|
|
130
|
-
:placeholder="`
|
|
132
|
+
:placeholder="`say something to ${place}\u2026`"
|
|
131
133
|
@send="onSend"
|
|
132
134
|
@typing="typing()"
|
|
133
135
|
/>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
/** Live peers, for `@` completion. Bots included — you may want to address one. */
|
|
4
|
+
mentionUsers?: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
isAgent?: boolean;
|
|
8
|
+
}[];
|
|
9
|
+
autofocus?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
send: (content: string) => any;
|
|
13
|
+
typing: () => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onSend?: ((content: string) => any) | undefined;
|
|
16
|
+
onTyping?: (() => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
autofocus: boolean;
|
|
19
|
+
mentionUsers: {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
isAgent?: boolean;
|
|
23
|
+
}[];
|
|
24
|
+
placeholder: string;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
<script setup>
|
|
2
|
+
import { computed, nextTick, ref } from "vue";
|
|
3
|
+
const props = defineProps({
|
|
4
|
+
placeholder: { type: String, required: false, default: "say something\u2026" },
|
|
5
|
+
mentionUsers: { type: Array, required: false, default: () => [] },
|
|
6
|
+
autofocus: { type: Boolean, required: false, default: false }
|
|
7
|
+
});
|
|
8
|
+
const emit = defineEmits(["send", "typing"]);
|
|
9
|
+
const draft = ref("");
|
|
10
|
+
const inputEl = ref(null);
|
|
11
|
+
const MAX_ROWS_PX = 84;
|
|
12
|
+
function autoGrow() {
|
|
13
|
+
const el = inputEl.value;
|
|
14
|
+
if (!el) return;
|
|
15
|
+
el.style.height = "auto";
|
|
16
|
+
el.style.height = `${Math.min(el.scrollHeight, MAX_ROWS_PX)}px`;
|
|
17
|
+
}
|
|
18
|
+
const canSend = computed(() => draft.value.trim().length > 0);
|
|
19
|
+
function send() {
|
|
20
|
+
const text = draft.value.trim();
|
|
21
|
+
if (!text) return;
|
|
22
|
+
emit("send", text);
|
|
23
|
+
draft.value = "";
|
|
24
|
+
closeMentions();
|
|
25
|
+
void nextTick(autoGrow);
|
|
26
|
+
}
|
|
27
|
+
const mentionOpen = ref(false);
|
|
28
|
+
const mentionQuery = ref("");
|
|
29
|
+
const mentionIndex = ref(0);
|
|
30
|
+
const mentionMatches = computed(() => {
|
|
31
|
+
if (!mentionOpen.value) return [];
|
|
32
|
+
const q = mentionQuery.value.toLowerCase();
|
|
33
|
+
return props.mentionUsers.filter((u) => !q || u.name.toLowerCase().includes(q)).slice(0, 6);
|
|
34
|
+
});
|
|
35
|
+
function closeMentions() {
|
|
36
|
+
mentionOpen.value = false;
|
|
37
|
+
mentionQuery.value = "";
|
|
38
|
+
mentionIndex.value = 0;
|
|
39
|
+
}
|
|
40
|
+
function syncMentions() {
|
|
41
|
+
const el = inputEl.value;
|
|
42
|
+
if (!el) return;
|
|
43
|
+
const upto = draft.value.slice(0, el.selectionStart ?? draft.value.length);
|
|
44
|
+
const m = /(?:^|\s)@([^\s@]*)$/.exec(upto);
|
|
45
|
+
if (!m) return closeMentions();
|
|
46
|
+
mentionOpen.value = true;
|
|
47
|
+
mentionQuery.value = m[1] ?? "";
|
|
48
|
+
mentionIndex.value = 0;
|
|
49
|
+
}
|
|
50
|
+
function acceptMention(name) {
|
|
51
|
+
const el = inputEl.value;
|
|
52
|
+
const caret = el?.selectionStart ?? draft.value.length;
|
|
53
|
+
const before = draft.value.slice(0, caret).replace(/(?:^|\s)@([^\s@]*)$/, (s) => `${s.startsWith("@") ? "" : s[0]}@${name} `);
|
|
54
|
+
draft.value = before + draft.value.slice(caret);
|
|
55
|
+
closeMentions();
|
|
56
|
+
void nextTick(() => {
|
|
57
|
+
el?.focus();
|
|
58
|
+
const at = before.length;
|
|
59
|
+
el?.setSelectionRange(at, at);
|
|
60
|
+
autoGrow();
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
function onInput() {
|
|
64
|
+
autoGrow();
|
|
65
|
+
syncMentions();
|
|
66
|
+
emit("typing");
|
|
67
|
+
}
|
|
68
|
+
function onKeydown(e) {
|
|
69
|
+
if (mentionOpen.value && mentionMatches.value.length) {
|
|
70
|
+
if (e.key === "ArrowDown") {
|
|
71
|
+
e.preventDefault();
|
|
72
|
+
mentionIndex.value = (mentionIndex.value + 1) % mentionMatches.value.length;
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
if (e.key === "ArrowUp") {
|
|
76
|
+
e.preventDefault();
|
|
77
|
+
mentionIndex.value = (mentionIndex.value - 1 + mentionMatches.value.length) % mentionMatches.value.length;
|
|
78
|
+
return;
|
|
79
|
+
}
|
|
80
|
+
if (e.key === "Enter" || e.key === "Tab") {
|
|
81
|
+
e.preventDefault();
|
|
82
|
+
acceptMention(mentionMatches.value[mentionIndex.value].name);
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (e.key === "Escape") {
|
|
86
|
+
e.preventDefault();
|
|
87
|
+
closeMentions();
|
|
88
|
+
return;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
if (e.key === "Enter" && !e.shiftKey) {
|
|
92
|
+
e.preventDefault();
|
|
93
|
+
send();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
</script>
|
|
97
|
+
|
|
98
|
+
<template>
|
|
99
|
+
<div class="jun-campfire-composer relative flex items-end gap-1 px-2.5 py-1.5">
|
|
100
|
+
<!-- Mentions. Anchored to the composer and floating ABOVE it: the panel
|
|
101
|
+
clips, so a list opening downward would be cut off by the footer. -->
|
|
102
|
+
<div
|
|
103
|
+
v-if="mentionOpen && mentionMatches.length"
|
|
104
|
+
class="jun-campfire-mentions absolute right-2 bottom-full left-2 mb-1 overflow-hidden rounded-lg"
|
|
105
|
+
>
|
|
106
|
+
<button
|
|
107
|
+
v-for="(u, i) in mentionMatches"
|
|
108
|
+
:key="u.id"
|
|
109
|
+
type="button"
|
|
110
|
+
class="jun-campfire-mention flex w-full items-center gap-1.5 px-2.5 py-1 text-left text-xs"
|
|
111
|
+
:class="i === mentionIndex ? 'is-on' : ''"
|
|
112
|
+
@mousedown.prevent="acceptMention(u.name)"
|
|
113
|
+
>
|
|
114
|
+
<span class="truncate text-neutral-700 dark:text-neutral-200">{{ u.name }}</span>
|
|
115
|
+
<span
|
|
116
|
+
v-if="u.isAgent"
|
|
117
|
+
class="text-[9px] tracking-wide text-neutral-400 dark:text-neutral-500"
|
|
118
|
+
>bot</span>
|
|
119
|
+
</button>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
<textarea
|
|
123
|
+
ref="inputEl"
|
|
124
|
+
v-model="draft"
|
|
125
|
+
rows="1"
|
|
126
|
+
:placeholder="placeholder"
|
|
127
|
+
:autofocus="autofocus"
|
|
128
|
+
class="jun-campfire-field max-h-[84px] min-h-[1.75rem] flex-1 resize-none bg-transparent py-1
|
|
129
|
+
text-xs leading-snug text-neutral-800 outline-none placeholder:text-neutral-400
|
|
130
|
+
dark:text-neutral-100 dark:placeholder:text-neutral-500"
|
|
131
|
+
@input="onInput"
|
|
132
|
+
@keydown="onKeydown"
|
|
133
|
+
@blur="closeMentions"
|
|
134
|
+
/>
|
|
135
|
+
|
|
136
|
+
<!-- Only when there is something to send. A permanently-lit send button on
|
|
137
|
+
an empty composer is a control that does nothing, taking the eye. -->
|
|
138
|
+
<Transition name="jun-campfire-send">
|
|
139
|
+
<button
|
|
140
|
+
v-if="canSend"
|
|
141
|
+
type="button"
|
|
142
|
+
class="jun-campfire-send mb-0.5 flex size-6 shrink-0 items-center justify-center rounded-md
|
|
143
|
+
text-neutral-500 dark:text-neutral-400"
|
|
144
|
+
aria-label="Send"
|
|
145
|
+
@click="send()"
|
|
146
|
+
>
|
|
147
|
+
<UIcon
|
|
148
|
+
name="i-lucide-arrow-up"
|
|
149
|
+
class="size-3.5"
|
|
150
|
+
/>
|
|
151
|
+
</button>
|
|
152
|
+
</Transition>
|
|
153
|
+
</div>
|
|
154
|
+
</template>
|
|
155
|
+
|
|
156
|
+
<style scoped>
|
|
157
|
+
.jun-campfire-composer{border-radius:.625rem;transition:background-color .2s ease}.jun-campfire-composer:focus-within{background:rgba(0,0,0,.04)}:root.dark .jun-campfire-composer:focus-within{background:hsla(0,0%,100%,.06)}.jun-campfire-field{scrollbar-width:none}.jun-campfire-field::-webkit-scrollbar{display:none}.jun-campfire-send{transition:background-color .2s ease,color .2s ease}.jun-campfire-send:hover{background:rgba(0,0,0,.06);color:var(--color-neutral-700)}:root.dark .jun-campfire-send:hover{background:hsla(0,0%,100%,.08);color:var(--color-neutral-200)}.jun-campfire-send-enter-active,.jun-campfire-send-leave-active{transition:opacity .15s ease,transform .15s cubic-bezier(.22,1,.36,1)}.jun-campfire-send-enter-from,.jun-campfire-send-leave-to{opacity:0;transform:scale(.8)}.jun-campfire-mentions{background:var(--color-white);box-shadow:0 8px 24px rgba(0,0,0,.12),inset 0 0 0 1px rgba(0,0,0,.08)}:root.dark .jun-campfire-mentions{background:var(--color-neutral-900);box-shadow:0 8px 24px rgba(0,0,0,.4),inset 0 0 0 1px hsla(0,0%,100%,.12)}.jun-campfire-mention.is-on{background:rgba(0,0,0,.06)}:root.dark .jun-campfire-mention.is-on{background:hsla(0,0%,100%,.08)}@media (prefers-reduced-motion:reduce){.jun-campfire-composer,.jun-campfire-send,.jun-campfire-send-enter-active,.jun-campfire-send-leave-active{transition:none}.jun-campfire-send-enter-from,.jun-campfire-send-leave-to{transform:none}}
|
|
158
|
+
</style>
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
placeholder?: string;
|
|
3
|
+
/** Live peers, for `@` completion. Bots included — you may want to address one. */
|
|
4
|
+
mentionUsers?: {
|
|
5
|
+
id: string;
|
|
6
|
+
name: string;
|
|
7
|
+
isAgent?: boolean;
|
|
8
|
+
}[];
|
|
9
|
+
autofocus?: boolean;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
12
|
+
send: (content: string) => any;
|
|
13
|
+
typing: () => any;
|
|
14
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
15
|
+
onSend?: ((content: string) => any) | undefined;
|
|
16
|
+
onTyping?: (() => any) | undefined;
|
|
17
|
+
}>, {
|
|
18
|
+
autofocus: boolean;
|
|
19
|
+
mentionUsers: {
|
|
20
|
+
id: string;
|
|
21
|
+
name: string;
|
|
22
|
+
isAgent?: boolean;
|
|
23
|
+
}[];
|
|
24
|
+
placeholder: string;
|
|
25
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
|
+
declare const _default: typeof __VLS_export;
|
|
27
|
+
export default _default;
|
|
@@ -57,27 +57,27 @@ const bodyClass = "jun-scrollbar-hide min-h-0 flex-1 overflow-y-auto";
|
|
|
57
57
|
<template>
|
|
58
58
|
<div
|
|
59
59
|
class="jun-campfire-panel flex flex-col overflow-hidden rounded-2xl shadow-2xl shadow-black/20
|
|
60
|
-
ring-1 ring-
|
|
60
|
+
ring-1 ring-neutral-900/10 dark:ring-white/15"
|
|
61
61
|
:class="[`is-${settings.size}`, settings.blur ? 'is-blurred' : 'is-opaque']"
|
|
62
62
|
role="dialog"
|
|
63
63
|
:aria-label="settings.title"
|
|
64
64
|
>
|
|
65
65
|
<!-- Header -->
|
|
66
|
-
<div class="flex items-center gap-2 border-b border-
|
|
66
|
+
<div class="flex items-center gap-2 border-b border-neutral-900/5 px-4 py-3 dark:border-white/10">
|
|
67
67
|
<UIcon
|
|
68
68
|
:name="settings.icon"
|
|
69
69
|
class="size-4 shrink-0"
|
|
70
|
-
:class="settings.ember ? '
|
|
70
|
+
:class="settings.ember ? 'jun-ember-ink' : 'text-neutral-400 dark:text-neutral-500'"
|
|
71
71
|
/>
|
|
72
|
-
<span class="truncate text-sm font-medium text-
|
|
72
|
+
<span class="truncate text-sm font-medium text-neutral-800 dark:text-neutral-100">
|
|
73
73
|
{{ settings.title }}
|
|
74
74
|
</span>
|
|
75
|
-
<span class="ml-auto truncate text-xs text-
|
|
75
|
+
<span class="ml-auto truncate text-xs text-neutral-500 dark:text-neutral-400">{{ label }}</span>
|
|
76
76
|
<button
|
|
77
77
|
type="button"
|
|
78
78
|
data-jun-action="close"
|
|
79
79
|
class="jun-campfire-close -mr-1 flex size-6 flex-none items-center justify-center rounded-md
|
|
80
|
-
text-
|
|
80
|
+
text-neutral-400 dark:text-neutral-500"
|
|
81
81
|
:class="hot === 'close' ? 'is-hot' : ''"
|
|
82
82
|
:aria-label="`Close ${settings.title}`"
|
|
83
83
|
@click="emit('close')"
|
|
@@ -92,7 +92,7 @@ const bodyClass = "jun-scrollbar-hide min-h-0 flex-1 overflow-y-auto";
|
|
|
92
92
|
<!-- Tabs. One tab is a heading, not a choice — so the strip goes away. -->
|
|
93
93
|
<div
|
|
94
94
|
v-if="tabs.length > 1"
|
|
95
|
-
class="flex gap-0.5 border-b border-
|
|
95
|
+
class="flex gap-0.5 border-b border-neutral-900/5 px-2 py-1.5 dark:border-white/10"
|
|
96
96
|
role="tablist"
|
|
97
97
|
>
|
|
98
98
|
<button
|
|
@@ -154,12 +154,12 @@ const bodyClass = "jun-scrollbar-hide min-h-0 flex-1 overflow-y-auto";
|
|
|
154
154
|
>
|
|
155
155
|
<UIcon
|
|
156
156
|
name="i-lucide-message-square-dashed"
|
|
157
|
-
class="size-5 text-
|
|
157
|
+
class="size-5 text-neutral-300 dark:text-neutral-600"
|
|
158
158
|
/>
|
|
159
|
-
<p class="text-xs text-
|
|
159
|
+
<p class="text-xs text-neutral-500 dark:text-neutral-400">
|
|
160
160
|
no channel yet
|
|
161
161
|
</p>
|
|
162
|
-
<p class="text-[11px] leading-relaxed text-
|
|
162
|
+
<p class="text-[11px] leading-relaxed text-neutral-400 dark:text-neutral-500">
|
|
163
163
|
Nobody can speak here until the site opens its chat channel.
|
|
164
164
|
</p>
|
|
165
165
|
</div>
|
|
@@ -176,27 +176,17 @@ const bodyClass = "jun-scrollbar-hide min-h-0 flex-1 overflow-y-auto";
|
|
|
176
176
|
/>
|
|
177
177
|
</div>
|
|
178
178
|
|
|
179
|
-
<!-- Reactions — a gesture at the fire, on every tab.
|
|
180
|
-
|
|
179
|
+
<!-- Reactions — a gesture at the fire, on every tab. The quick row is the
|
|
180
|
+
owner's set; `+` opens the rest. See `JunCampfireReactions`. -->
|
|
181
|
+
<JunCampfireReactions
|
|
181
182
|
v-if="settings.reactions"
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
:key="r"
|
|
187
|
-
type="button"
|
|
188
|
-
:data-jun-action="`react:${r}`"
|
|
189
|
-
class="jun-campfire-react inline-flex size-8 items-center justify-center rounded-lg text-base"
|
|
190
|
-
:class="hot === `react:${r}` ? 'is-hot' : ''"
|
|
191
|
-
:aria-label="`React ${r}`"
|
|
192
|
-
@click="emit('react', r)"
|
|
193
|
-
>
|
|
194
|
-
{{ r }}
|
|
195
|
-
</button>
|
|
196
|
-
</div>
|
|
183
|
+
:set="settings.reactionSet"
|
|
184
|
+
:hot="hot"
|
|
185
|
+
@react="emit('react', $event)"
|
|
186
|
+
/>
|
|
197
187
|
</div>
|
|
198
188
|
</template>
|
|
199
189
|
|
|
200
190
|
<style scoped>
|
|
201
|
-
.jun-campfire-panel.is-sm{height:min(27.5rem,calc(100dvh - 9rem));width:min(17rem,calc(100vw - 2rem))}.jun-campfire-panel.is-md{height:min(32.375rem,calc(100dvh - 9rem));width:min(20rem,calc(100vw - 2rem))}.jun-campfire-panel.is-lg{height:min(37.25rem,calc(100dvh - 9rem));width:min(23rem,calc(100vw - 2rem))}.jun-campfire-panel.is-blurred{backdrop-filter:blur(24px);background:hsla(0,0%,100%,.7)}:root.dark .jun-campfire-panel.is-blurred{background:
|
|
191
|
+
.jun-campfire-panel.is-sm{max-height:min(27.5rem,calc(100dvh - 9rem));min-height:min(13rem,calc(100dvh - 9rem));width:min(17rem,calc(100vw - 2rem))}.jun-campfire-panel.is-md{max-height:min(32.375rem,calc(100dvh - 9rem));min-height:min(14.5rem,calc(100dvh - 9rem));width:min(20rem,calc(100vw - 2rem))}.jun-campfire-panel.is-lg{max-height:min(37.25rem,calc(100dvh - 9rem));min-height:min(16rem,calc(100dvh - 9rem));width:min(23rem,calc(100vw - 2rem))}.jun-campfire-panel.is-blurred{backdrop-filter:blur(24px);background:hsla(0,0%,100%,.7)}:root.dark .jun-campfire-panel.is-blurred{background:color-mix(in srgb,var(--color-neutral-900) 70%,transparent)}.jun-campfire-panel.is-opaque{background:hsla(0,0%,100%,.97)}:root.dark .jun-campfire-panel.is-opaque{background:color-mix(in srgb,var(--color-neutral-900) 97%,transparent)}.jun-campfire-tab{color:var(--color-neutral-500);transition:background-color .2s ease,color .2s ease}:root.dark .jun-campfire-tab{color:var(--color-neutral-400)}.jun-campfire-tab:hover{background:rgba(0,0,0,.035)}:root.dark .jun-campfire-tab:hover{background:hsla(0,0%,100%,.05)}.jun-campfire-tab.is-on{background:rgba(0,0,0,.06);color:var(--color-neutral-900)}:root.dark .jun-campfire-tab.is-on{background:hsla(0,0%,100%,.09);color:var(--color-neutral-100)}.jun-campfire-unread{background:rgba(0,0,0,.55);border-radius:999px;color:#fff;font-size:9px;font-variant-numeric:tabular-nums;line-height:.9rem;min-width:.9rem;padding:0 .2rem;position:absolute;right:.35rem;top:.1rem}:root.dark .jun-campfire-unread{background:hsla(0,0%,100%,.65);color:var(--color-neutral-900)}.jun-campfire-unread.is-ember{background:var(--jun-ember);color:#fff}.jun-campfire-close{transition:background-color .2s ease,color .2s ease}.jun-campfire-close:hover{background:rgba(0,0,0,.06);color:var(--color-neutral-700)}:root.dark .jun-campfire-close:hover{background:hsla(0,0%,100%,.08);color:var(--color-neutral-200)}@media (prefers-reduced-motion:reduce){.jun-campfire-close,.jun-campfire-tab{transition:none}}
|
|
202
192
|
</style>
|