@kolkrabbi/kol-workshop 0.41.0 → 0.41.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-workshop",
3
- "version": "0.41.0",
3
+ "version": "0.41.1",
4
4
  "private": false,
5
5
  "description": "Docs viewer, shell and tag system",
6
6
  "license": "MIT",
@@ -13,12 +13,12 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "d3": "^7.9.0",
16
- "@kolkrabbi/kol-search": "^0.3.0",
17
- "@kolkrabbi/kol-markdown": "^0.1.3",
18
- "@kolkrabbi/kol-brand": "^0.1.3"
16
+ "@kolkrabbi/kol-markdown": "^0.2.0",
17
+ "@kolkrabbi/kol-brand": "^0.2.0",
18
+ "@kolkrabbi/kol-search": "^0.3.0"
19
19
  },
20
20
  "peerDependencies": {
21
- "@kolkrabbi/kol-component": ">=0.266.0",
21
+ "@kolkrabbi/kol-component": ">=0.296.0",
22
22
  "@kolkrabbi/kol-framework": ">=0.45.0",
23
23
  "@kolkrabbi/kol-theme": ">=0.165.0",
24
24
  "@kolkrabbi/kol-icons": ">=0.18.0",
@@ -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.274.0",
32
- "@kolkrabbi/kol-icons": "^0.39.0",
33
- "@kolkrabbi/kol-framework": "^0.51.0",
34
- "@kolkrabbi/kol-theme": "^0.176.0"
31
+ "@kolkrabbi/kol-component": "^0.311.1",
32
+ "@kolkrabbi/kol-framework": "^0.62.1",
33
+ "@kolkrabbi/kol-icons": "^0.52.0",
34
+ "@kolkrabbi/kol-theme": "^0.196.0"
35
35
  },
36
36
  "files": [
37
37
  "src",
@@ -1,6 +1,6 @@
1
1
  import { useLocation, Link } from 'react-router-dom'
2
2
  import { Icon } from '@kolkrabbi/kol-component'
3
- import { RailRow } from '../shell'
3
+ import { RailRow } from '../shell/index.js'
4
4
 
5
5
  /**
6
6
  * WorkshopDefaultSidebar — EXAMPLE composition. The contextual right rail:
@@ -1,13 +1,13 @@
1
1
  import { useEffect, useMemo, useState } from 'react'
2
2
  import { Link, useLocation } from 'react-router-dom'
3
- import { ShellSidebar, RailSection, RailRow } from '../shell'
3
+ import { ShellSidebar, RailSection, RailRow } from '../shell/index.js'
4
4
  import { Icon } from '@kolkrabbi/kol-component'
5
5
  import {
6
6
  extractDocNumber,
7
7
  cleanTitle,
8
8
  categoryLabels,
9
9
  groupDocsByMajor,
10
- } from '../engine'
10
+ } from '../engine/index.js'
11
11
 
12
12
  /**
13
13
  * WorkshopSidebar — EXAMPLE composition. This is the app-specific glue that
@@ -1,7 +1,7 @@
1
1
  import { useLayoutEffect, useRef, useState } from 'react'
2
2
  import { Badge, Icon, Tag } from '@kolkrabbi/kol-component'
3
3
  import { getTagColor } from '@kolkrabbi/kol-markdown'
4
- import { useTagMode } from '../tags'
4
+ import { useTagMode } from '../tags/index.js'
5
5
  import TagPath from '../tags/TagPath.jsx'
6
6
 
7
7
  /* EVERY field carries an icon (user ruling 2026-08-01). Ten of these were
@@ -1,8 +1,8 @@
1
1
  import { useContext, useEffect, useMemo, useState } from 'react'
2
2
  import { useParams, Link, useNavigate } from 'react-router-dom'
3
3
  import { CodeBlock, Divider, Icon, Table, useScrollSpy } from '@kolkrabbi/kol-component'
4
- import { ShellTocContext, RightRail, SHELL_SCROLL_ROOT } from '../shell'
5
- import { useTagMode } from '../tags'
4
+ import { ShellTocContext, RightRail, SHELL_SCROLL_ROOT } from '../shell/index.js'
5
+ import { useTagMode } from '../tags/index.js'
6
6
  import TagPath from '../tags/TagPath.jsx'
7
7
  import { parseDocsMarkdown, isIndexFile } from '@kolkrabbi/kol-markdown'
8
8
  import { buildTagCounts } from '@kolkrabbi/kol-markdown'
@@ -173,7 +173,7 @@ export default function SearchPage({ items = [], spaces = [], facets = DEFAULT_F
173
173
  ))}
174
174
  </ol>
175
175
  )}
176
- {out.total > out.results.length && <p className="kol-helper-12 text-meta">{out.total - out.results.length} more — narrow the query.</p>}
176
+ {out.total > out.results.length && <p className="kol-mono-12 text-meta">{out.total - out.results.length} more — narrow the query.</p>}
177
177
  </section>
178
178
  )}
179
179
  </div>
@@ -9,6 +9,11 @@
9
9
  export { default as ShellLayout } from './ShellLayout.jsx'
10
10
  export { ShellTocContext, ShellFullHeightContext, ShellTocCollapsedContext, ShellNavCollapsedContext, ShellContentWidthContext, SHELL_SCROLL_ROOT, usePageMeta, usePageMetaValue } from './ShellLayout.jsx'
11
11
  export { default as ShellSidebar } from './ShellSidebar.jsx'
12
+ /* the workshop rail IS a NavRail preset (2026-10-24): `NavRail preset="workshop"` renders ShellSidebar once this
13
+ * package is imported — kol-component cannot import kol-workshop, so the name is registered from here */
14
+ import { registerRailPreset } from '@kolkrabbi/kol-component'
15
+ import ShellSidebarForRail from './ShellSidebar.jsx'
16
+ registerRailPreset('workshop', ShellSidebarForRail)
12
17
  /* the left rail's column and its three states — open · icons · hidden (2026-10-02) */
13
18
  export { ShellNavColumn } from './ShellLayout.jsx'
14
19
  export { ShellRailModeContext } from './ShellSidebar.jsx'