@kolkrabbi/kol-workshop 0.47.0 → 0.48.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
CHANGED
|
@@ -28,7 +28,7 @@ Two entry points:
|
|
|
28
28
|
| `DocumentationReader` | the docs viewer — renders one doc from the inventory (article + header + frontmatter + token render) |
|
|
29
29
|
| `ShellLayout`, `ShellRail` | the docs shell composition (adapts the DS `ShellHeader`/`ShellDrawer`/`ShellSearchOverlay`) |
|
|
30
30
|
| `TagModeProvider`, `TagModeGate`, `TagModeOverlay`, `TagGraph` | the tag system, incl. the d3 tag graph |
|
|
31
|
-
| `WorkshopRail`, `
|
|
31
|
+
| `WorkshopRail`, `WorkshopDefaultRail` | example sidebar compositions to copy |
|
|
32
32
|
|
|
33
33
|
The React layer imports its chrome (`Icon`/`Tag`/`CodeBlock`/`Divider`/`DocsToc` from `kol-component`, `ShellHeader` from `kol-framework`) from the DS packages — it keeps **no** local copies. Chrome CSS ships in `@kolkrabbi/kol-theme` (`kol-components-workshop.css`, already in the theme aggregate).
|
|
34
34
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kolkrabbi/kol-workshop",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Docs viewer, shell and tag system",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"d3": "^7.9.0",
|
|
16
|
+
"@kolkrabbi/kol-brand": "^0.2.0",
|
|
16
17
|
"@kolkrabbi/kol-markdown": "^0.2.0",
|
|
17
|
-
"@kolkrabbi/kol-search": "^0.3.0"
|
|
18
|
-
"@kolkrabbi/kol-brand": "^0.2.0"
|
|
18
|
+
"@kolkrabbi/kol-search": "^0.3.0"
|
|
19
19
|
},
|
|
20
20
|
"peerDependencies": {
|
|
21
21
|
"@kolkrabbi/kol-component": ">=0.355.0",
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"react-router-dom": "^6.0.0 || ^7.0.0"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@kolkrabbi/kol-
|
|
32
|
+
"@kolkrabbi/kol-component": "^0.358.0",
|
|
33
33
|
"@kolkrabbi/kol-framework": "^0.74.0",
|
|
34
|
+
"@kolkrabbi/kol-icons": "^0.68.0",
|
|
34
35
|
"@kolkrabbi/kol-shell": "^0.118.0",
|
|
35
|
-
"@kolkrabbi/kol-theme": "^0.217.0"
|
|
36
|
-
"@kolkrabbi/kol-component": "^0.358.0"
|
|
36
|
+
"@kolkrabbi/kol-theme": "^0.217.0"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"src",
|
|
@@ -3,7 +3,7 @@ import { IconLoader } from '@kolkrabbi/kol-component'
|
|
|
3
3
|
import { RailRow } from '../shell/index.js'
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
|
-
*
|
|
6
|
+
* WorkshopDefaultRail — EXAMPLE composition. The contextual right rail:
|
|
7
7
|
* given the current route it shows sibling pages, the section's repo links, and
|
|
8
8
|
* quick actions. Decoupled from app singletons via props:
|
|
9
9
|
*
|
|
@@ -12,7 +12,7 @@ import { RailRow } from '../shell/index.js'
|
|
|
12
12
|
* basePath — mount point of the workshop (drives route matching + hrefs).
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
const
|
|
15
|
+
const WorkshopDefaultRail = ({ routes = [], basePath = '/workshop' }) => {
|
|
16
16
|
const location = useLocation()
|
|
17
17
|
const stripped = location.pathname.startsWith(basePath)
|
|
18
18
|
? location.pathname.slice(basePath.length).replace(/^\//, '')
|
|
@@ -62,4 +62,4 @@ const WorkshopDefaultSidebar = ({ routes = [], basePath = '/workshop' }) => {
|
|
|
62
62
|
)
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
export default
|
|
65
|
+
export default WorkshopDefaultRail
|
|
@@ -7,4 +7,6 @@
|
|
|
7
7
|
export { default as WorkshopRail } from './WorkshopRail.jsx'
|
|
8
8
|
/** @deprecated WorkshopSidebar = WorkshopRail (2026-11-08, ITS RAIL) — alias for the 30-day ledger */
|
|
9
9
|
export { default as WorkshopSidebar } from './WorkshopRail.jsx'
|
|
10
|
-
export { default as
|
|
10
|
+
export { default as WorkshopDefaultRail } from './WorkshopDefaultRail.jsx'
|
|
11
|
+
/** @deprecated WorkshopDefaultSidebar = WorkshopDefaultRail (2026-11-08, ITS RAIL) — alias for the 30-day ledger */
|
|
12
|
+
export { default as WorkshopDefaultSidebar } from './WorkshopDefaultRail.jsx'
|