@kolkrabbi/kol-workshop 0.41.2 → 0.41.3
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-workshop",
|
|
3
|
-
"version": "0.41.
|
|
3
|
+
"version": "0.41.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Docs viewer, shell and tag system",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"d3": "^7.9.0",
|
|
16
|
-
"@kolkrabbi/kol-brand": "^0.2.0",
|
|
17
16
|
"@kolkrabbi/kol-markdown": "^0.2.0",
|
|
17
|
+
"@kolkrabbi/kol-brand": "^0.2.0",
|
|
18
18
|
"@kolkrabbi/kol-search": "^0.3.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
@@ -28,10 +28,10 @@
|
|
|
28
28
|
"react-router-dom": "^6.0.0 || ^7.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
-
"@kolkrabbi/kol-component": "^0.
|
|
31
|
+
"@kolkrabbi/kol-component": "^0.314.0",
|
|
32
32
|
"@kolkrabbi/kol-icons": "^0.52.0",
|
|
33
|
-
"@kolkrabbi/kol-framework": "^0.62.
|
|
34
|
-
"@kolkrabbi/kol-theme": "^0.
|
|
33
|
+
"@kolkrabbi/kol-framework": "^0.62.5",
|
|
34
|
+
"@kolkrabbi/kol-theme": "^0.197.0"
|
|
35
35
|
},
|
|
36
36
|
"files": [
|
|
37
37
|
"src",
|
|
@@ -2,7 +2,7 @@ import { createContext, useContext, useMemo, useRef, useState, useEffect, Suspen
|
|
|
2
2
|
import { Outlet, Link, useLocation, useNavigate, useNavigationType } from 'react-router-dom'
|
|
3
3
|
import { ShellHeader } from '@kolkrabbi/kol-framework'
|
|
4
4
|
import ShellSidebar, { RAIL_FOLD_EVENT, ShellRailModeContext } from './ShellSidebar.jsx'
|
|
5
|
-
import { FullscreenOverlay, IconFrame, Rail, CommandOverlay, ShortcutsOverlay, SettingsPanel, SettingsSections, SettingsSwitch, Tooltip, useDragResize } from '@kolkrabbi/kol-component'
|
|
5
|
+
import { FullscreenOverlay, IconFrame, Rail, CommandOverlay, ShortcutsOverlay, SettingsPanel, SettingsSections, SettingsSwitch, Tooltip, useDragResize, useScrollFade } from '@kolkrabbi/kol-component'
|
|
6
6
|
import { createIndex, search } from '@kolkrabbi/kol-search'
|
|
7
7
|
import { useTagMode } from '../tags/TagModeContext.jsx'
|
|
8
8
|
import TagModeOverlay from '../tags/TagModeOverlay.jsx'
|
|
@@ -123,7 +123,7 @@ export function ShellNavColumn({ mode = 'open', children, grip, railRef }) {
|
|
|
123
123
|
<aside
|
|
124
124
|
ref={railRef}
|
|
125
125
|
aria-label="Navigation"
|
|
126
|
-
className={`shell-rail shell-rail--nav shell-sidebar-sticky hidden lg:block pt-6 md:pt-6 lg:pt-8 pb-14 ${icons ? `shell-rail--icons ${peek ? 'is-peek' : ''}` : ''}`.trim()}
|
|
126
|
+
className={`shell-rail shell-rail--nav kol-scroll-fade shell-sidebar-sticky hidden lg:block pt-6 md:pt-6 lg:pt-8 pb-14 ${icons ? `shell-rail--icons ${peek ? 'is-peek' : ''}` : ''}`.trim()}
|
|
127
127
|
onMouseEnter={icons ? () => setPeek(true) : undefined}
|
|
128
128
|
onMouseLeave={icons ? () => setPeek(false) : undefined}
|
|
129
129
|
>
|
|
@@ -169,7 +169,7 @@ const MainColumn = ({ children, fullHeight, width = 'canvas', padStart, padEnd }
|
|
|
169
169
|
* below). The breakpoint here and the one in gridCols are one decision and
|
|
170
170
|
* must not be stated twice differently. */
|
|
171
171
|
const TocColumn = ({ children, grip, railRef }) => (
|
|
172
|
-
<aside ref={railRef} aria-label="Table of contents" className="shell-rail shell-rail--toc shell-sidebar-sticky hidden xl:block pt-6 md:pt-6 lg:pt-8 pb-14">
|
|
172
|
+
<aside ref={railRef} aria-label="Table of contents" className="shell-rail shell-rail--toc kol-scroll-fade shell-sidebar-sticky hidden xl:block pt-6 md:pt-6 lg:pt-8 pb-14">
|
|
173
173
|
{grip}
|
|
174
174
|
{/* The width is the grid track (--kol-shell-toc-w). An empty rail still
|
|
175
175
|
* holds its column (user ruling 2026-08-01): a rail that disappears
|
|
@@ -225,6 +225,9 @@ const ShellLayout = ({ routes = [], basePath = '/', brand: brandProp, brandLogoS
|
|
|
225
225
|
const [tocCollapsed, setTocCollapsed] = useState(() => readSettings().tocHidden === true)
|
|
226
226
|
const navGrab = useRailGrab('kol-shell-nav', 'left', () => { setNavCollapsed(true); writeSettings({ ...readSettings(), navHidden: true }) })
|
|
227
227
|
const tocGrab = useRailGrab('kol-shell-toc', 'right', () => { setTocCollapsed(true); writeSettings({ ...readSettings(), tocHidden: true }) })
|
|
228
|
+
/* both rails fade where they clip — the head once scrolled, the foot while more lies below (kol-theme `.kol-scroll-fade`) */
|
|
229
|
+
useScrollFade(navGrab.ref)
|
|
230
|
+
useScrollFade(tocGrab.ref)
|
|
228
231
|
const [isSettingsOpen, setIsSettingsOpen] = useState(false)
|
|
229
232
|
/* ONE QUERY (user ruling 2026-08-01). The search modal's text used to live here
|
|
230
233
|
* while tags lived in TagModeContext — two states, and therefore two
|