@kolkrabbi/kol-shell 0.98.0 → 0.99.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-shell",
3
- "version": "0.98.0",
3
+ "version": "0.99.1",
4
4
  "private": false,
5
5
  "description": "The application shell",
6
6
  "license": "MIT",
@@ -12,7 +12,7 @@
12
12
  "./src/*": "./src/*"
13
13
  },
14
14
  "peerDependencies": {
15
- "@kolkrabbi/kol-component": ">=0.323.0",
15
+ "@kolkrabbi/kol-component": ">=0.331.0",
16
16
  "@kolkrabbi/kol-framework": ">=0.55.0",
17
17
  "@kolkrabbi/kol-icons": ">=0.16.0",
18
18
  "@kolkrabbi/kol-theme": ">=0.207.0",
@@ -21,10 +21,10 @@
21
21
  "react-dom": "^18.3.0 || ^19.0.0"
22
22
  },
23
23
  "devDependencies": {
24
- "@kolkrabbi/kol-framework": "^0.67.0",
25
- "@kolkrabbi/kol-icons": "^0.56.0",
26
- "@kolkrabbi/kol-component": "^0.323.0",
27
- "@kolkrabbi/kol-theme": "^0.207.0"
24
+ "@kolkrabbi/kol-component": "^0.332.0",
25
+ "@kolkrabbi/kol-framework": "^0.69.0",
26
+ "@kolkrabbi/kol-icons": "^0.60.0",
27
+ "@kolkrabbi/kol-theme": "^0.210.0"
28
28
  },
29
29
  "files": [
30
30
  "src",
@@ -147,7 +147,7 @@ function FloatNav({ items = [], currentPath = '/', onNavigate, actions = [], sha
147
147
  const before = moreRows.filter((i) => !i.foot)
148
148
  const after = moreRows.filter((i) => i.foot)
149
149
  const active = activePath(items, currentPath)
150
- const value = open || inMore.some((i) => i.path === active) ? MORE : active
150
+ const value = open || inMore.some((i) => i.path != null && i.path === active) ? MORE : active
151
151
 
152
152
  const key = (i) => i.path ?? i.id ?? i.label
153
153
  const tabs = inBar.map((i) => ({ value: key(i), label: i.label, icon: i.icon, selected: sub === key(i) || (i.selected ?? (moreKeepsOpen ? key(i) === active : undefined)) }))
package/src/HubHome.jsx CHANGED
@@ -1,5 +1,5 @@
1
- import { useEffect, useState } from 'react'
2
- import { Button, PopoverPanel, usePopover, useMediaQuery, VectorLoader, floatSurfaceClass } from '@kolkrabbi/kol-component'
1
+ import { cloneElement, isValidElement, useEffect, useState } from 'react'
2
+ import { Button, PopoverPanel, usePopover, useMediaQuery, usePrefersReducedMotion, VectorLoader, floatSurfaceClass } from '@kolkrabbi/kol-component'
3
3
  import AppFloatNav from './AppFloatNav.jsx'
4
4
  import WalkthroughPanel from './WalkthroughPanel.jsx'
5
5
  import MoreRows from './MoreSheet.jsx'
@@ -101,6 +101,14 @@ const HUB_VIEWS = [
101
101
  { value: 'saved', label: 'SAVED' },
102
102
  ]
103
103
 
104
+ /* the signed-out chrome under an intro stage: every child but the stage, and the dock inside AppFloatNav's `contents` wrapper
105
+ * (a `display: contents` box takes no opacity) — held at 0, then faded in 700 ms after 800 ms */
106
+ const CHROME_FADE = {
107
+ hold: '[&>:not([data-hub-stage])]:opacity-0 [&>.contents>*]:opacity-0',
108
+ show: '[&>:not([data-hub-stage])]:transition-opacity [&>:not([data-hub-stage])]:duration-700 [&>:not([data-hub-stage])]:delay-800 '
109
+ + '[&>.contents>*]:transition-opacity [&>.contents>*]:duration-700 [&>.contents>*]:delay-800',
110
+ }
111
+
104
112
  /* RECENT is the newest files — fxr, mirror and monitor each wrote twelve */
105
113
  const RECENT_FILES = 12
106
114
 
@@ -191,6 +199,17 @@ export default function HubHome({
191
199
  window.addEventListener('keydown', onKey)
192
200
  return () => window.removeEventListener('keydown', onKey)
193
201
  }, [formOpen]) // eslint-disable-line react-hooks/exhaustive-deps
202
+ /* THE CHROME WAITS FOR THE BREATH (LoaderAppIntro, kol-fxr 2026-11-01): under an intro stage (GrowthLineStage `intro`)
203
+ * everything here but the stage starts at opacity 0 and fades in (700 ms) 800 ms into the breath — the stage's
204
+ * `onIntroBreath`, chained onto its own — then the classes leave, so the sign-in transitions are untouched */
205
+ const reduced = usePrefersReducedMotion()
206
+ const introStage = isValidElement(stage) && !!stage.props.intro
207
+ const [chrome, setChrome] = useState(() => (introStage && !reduced ? 'hold' : null))
208
+ useEffect(() => {
209
+ if (chrome !== 'show') return undefined
210
+ const t = setTimeout(() => setChrome(null), 1500)
211
+ return () => clearTimeout(t)
212
+ }, [chrome])
194
213
  const coarse = useTouchPrimary()
195
214
  const narrow = useMediaQuery('(max-width: 767px)')
196
215
  const [view, setView] = useState(defaultView ?? views?.[0]?.value)
@@ -281,13 +300,15 @@ export default function HubHome({
281
300
  const outActions = typeof signedOutActions === 'function' ? signedOutActions(outDefaults) ?? [] : outDefaults
282
301
  const { open: _o, onClose: _c, ...form } = signInForm ?? {}
283
302
  return (
284
- <div className="relative min-h-dvh overflow-hidden" data-hub-signed-out>
303
+ <div className={`relative min-h-dvh overflow-hidden${chrome ? ` ${CHROME_FADE[chrome]}` : ''}`} data-hub-signed-out>
285
304
  {/* the rest of Home turns surface-secondary under an open sign-in column (a desk only) */}
286
305
  <div className={`absolute inset-0 bg-surface-secondary transition-opacity duration-300 max-md:hidden ${formOpen ? 'opacity-100' : 'opacity-0'}`} aria-hidden="true" />
287
306
  {/* the column overlays the stage, never resizes it — a stage that sizes to its box would reseed. It SLIDES half the
288
307
  * column right instead, so the growth's centre sits in the middle of the grey that is left (kol-fxr 2026-10-30 — user:
289
308
  * *"when shelf opens, then growth center shifts to center the gray visible area"*) */}
290
- {stage && <div className={`absolute inset-0 transition-transform duration-300 ${formOpen ? 'md:translate-x-[336px]' : ''}`} aria-hidden="true">{stage}</div>}
309
+ {stage && <div className={`absolute inset-0 transition-transform duration-300 ${formOpen ? 'md:translate-x-[336px]' : ''}`} aria-hidden="true" data-hub-stage>{introStage
310
+ ? cloneElement(stage, { onIntroBreath: () => { stage.props.onIntroBreath?.(); setChrome((c) => (c === 'hold' ? 'show' : c)) } })
311
+ : stage}</div>}
291
312
  {signInForm && (
292
313
  <aside aria-label={form.title} aria-hidden={!formOpen} inert={!formOpen} className={`absolute inset-y-0 left-0 w-[672px] px-16 flex flex-col justify-center bg-surface-primary transition-transform duration-300 max-md:hidden ${formOpen ? 'translate-x-0' : '-translate-x-full'}`}>
293
314
  {formOpen && <AccountForm {...form} />}
package/src/MoreSheet.jsx CHANGED
@@ -63,7 +63,7 @@ export default function MoreRows({ actions = [], items = [], active, onPick, ite
63
63
  size="lg"
64
64
  iconLeft={i.icon}
65
65
  iconSize={glyph}
66
- aria-current={i.path === active ? 'page' : undefined}
66
+ aria-current={i.path != null && i.path === active ? 'page' : undefined}
67
67
  className={rowCls}
68
68
  onClick={() => onPick?.(i)}
69
69
  >