@kolkrabbi/kol-workshop 0.45.0 → 0.46.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kolkrabbi/kol-workshop",
3
- "version": "0.45.0",
3
+ "version": "0.46.0",
4
4
  "private": false,
5
5
  "description": "Docs viewer, shell and tag system",
6
6
  "license": "MIT",
@@ -18,22 +18,22 @@
18
18
  "@kolkrabbi/kol-brand": "^0.2.0"
19
19
  },
20
20
  "peerDependencies": {
21
- "@kolkrabbi/kol-component": ">=0.296.0",
21
+ "@kolkrabbi/kol-component": ">=0.355.0",
22
22
  "@kolkrabbi/kol-framework": ">=0.63.0",
23
23
  "@kolkrabbi/kol-shell": ">=0.89.0",
24
24
  "@kolkrabbi/kol-theme": ">=0.165.0",
25
- "@kolkrabbi/kol-icons": ">=0.18.0",
25
+ "@kolkrabbi/kol-icons": ">=0.68.0",
26
26
  "gsap": "^3.13.0",
27
27
  "react": "^18.3.0 || ^19.0.0",
28
28
  "react-dom": "^18.3.0 || ^19.0.0",
29
29
  "react-router-dom": "^6.0.0 || ^7.0.0"
30
30
  },
31
31
  "devDependencies": {
32
- "@kolkrabbi/kol-icons": "^0.66.0",
33
- "@kolkrabbi/kol-framework": "^0.70.0",
34
- "@kolkrabbi/kol-shell": "^0.113.0",
35
- "@kolkrabbi/kol-theme": "^0.214.0",
36
- "@kolkrabbi/kol-component": "^0.344.0"
32
+ "@kolkrabbi/kol-component": "^0.355.0",
33
+ "@kolkrabbi/kol-theme": "^0.216.1",
34
+ "@kolkrabbi/kol-framework": "^0.74.0",
35
+ "@kolkrabbi/kol-shell": "^0.118.0",
36
+ "@kolkrabbi/kol-icons": "^0.68.0"
37
37
  },
38
38
  "files": [
39
39
  "src",
@@ -1,5 +1,5 @@
1
1
  import { useLocation, Link } from 'react-router-dom'
2
- import { Icon } from '@kolkrabbi/kol-component'
2
+ import { IconLoader } from '@kolkrabbi/kol-component'
3
3
  import { RailRow } from '../shell/index.js'
4
4
 
5
5
  /**
@@ -42,10 +42,10 @@ const WorkshopDefaultSidebar = ({ routes = [], basePath = '/workshop' }) => {
42
42
  <div className="shell-sidebar-label kol-doc-eyebrow">Repository</div>
43
43
  <div>
44
44
  {links.live && (
45
- <RailRow href={links.live} icon={<Icon name="external-link" size={14} />}>Live site</RailRow>
45
+ <RailRow href={links.live} icon={<IconLoader name="external-link" size={14} />}>Live site</RailRow>
46
46
  )}
47
47
  {links.repo && (
48
- <RailRow href={links.repo} icon={<Icon name="external-link" size={14} />}>GitHub</RailRow>
48
+ <RailRow href={links.repo} icon={<IconLoader name="external-link" size={14} />}>GitHub</RailRow>
49
49
  )}
50
50
  </div>
51
51
  </div>
@@ -54,8 +54,8 @@ const WorkshopDefaultSidebar = ({ routes = [], basePath = '/workshop' }) => {
54
54
  <div>
55
55
  <div className="shell-sidebar-label kol-doc-eyebrow">Quick actions</div>
56
56
  <div>
57
- <RailRow to={basePath} icon={<Icon name="layout" size={14} />}>Workshop home</RailRow>
58
- <RailRow onClick={() => navigator.clipboard.writeText(window.location.pathname)} icon={<Icon name="copy" size={14} />}>Copy path</RailRow>
57
+ <RailRow to={basePath} icon={<IconLoader name="layout" size={14} />}>Workshop home</RailRow>
58
+ <RailRow onClick={() => navigator.clipboard.writeText(window.location.pathname)} icon={<IconLoader name="copy" size={14} />}>Copy path</RailRow>
59
59
  </div>
60
60
  </div>
61
61
  </div>
@@ -1,7 +1,7 @@
1
1
  import { useEffect, useMemo, useState } from 'react'
2
2
  import { Link, useLocation } from 'react-router-dom'
3
3
  import { ShellSidebar, RailSection, RailRow } from '../shell/index.js'
4
- import { Icon } from '@kolkrabbi/kol-component'
4
+ import { IconLoader } from '@kolkrabbi/kol-component'
5
5
  import {
6
6
  extractDocNumber,
7
7
  cleanTitle,
@@ -85,7 +85,7 @@ const DocsSidebar = ({ inventory = [], docHref, basePath, onNavigate, collapsed,
85
85
  count={docs.length}
86
86
  collapsed={!!isCollapsed}
87
87
  onToggle={() => toggleGroup(major)}
88
- icon={Icon}
88
+ icon={IconLoader}
89
89
  >
90
90
  <nav className="shell-nav-items">
91
91
  {docs.map((d) => (
@@ -1,5 +1,5 @@
1
1
  import { useLayoutEffect, useRef, useState } from 'react'
2
- import { Badge, Icon, Tag } from '@kolkrabbi/kol-component'
2
+ import { Badge, IconLoader, Tag } from '@kolkrabbi/kol-component'
3
3
  import { getTagColor } from '@kolkrabbi/kol-markdown'
4
4
  import { useTagMode } from '../tags/index.js'
5
5
  import TagPath from '../tags/TagPath.jsx'
@@ -219,7 +219,7 @@ const DocsFrontmatter = ({ metadata, docId, fields: config = {} }) => {
219
219
  return (
220
220
  <div key={key} className="docs-frontmatter-row">
221
221
  <span className="docs-frontmatter-key kol-helper-12 text-meta">
222
- {icon && <Icon name={icon} size={14} className="text-oq-48" />}
222
+ {icon && <IconLoader name={icon} size={14} className="text-oq-48" />}
223
223
  {cfg.label ?? FIELD_LABELS[key] ?? humanise(key)}
224
224
  </span>
225
225
  <span className="docs-frontmatter-value kol-mono-12 text-strong">
@@ -290,7 +290,7 @@ const DocsFrontmatter = ({ metadata, docId, fields: config = {} }) => {
290
290
  className="docs-frontmatter-toggle kol-helper-12 text-meta"
291
291
  onClick={() => setExpanded((v) => !v)}
292
292
  >
293
- <Icon name={expanded ? 'chevron-up' : 'chevron-down'} size={14} />
293
+ <IconLoader name={expanded ? 'chevron-up' : 'chevron-down'} size={14} />
294
294
  {expanded ? 'Collapse' : 'Expand'}
295
295
  </button>
296
296
  )}
@@ -1,6 +1,6 @@
1
1
  import { Fragment, useContext, useEffect, useMemo, useState } from 'react'
2
2
  import { useParams, Link, useNavigate } from 'react-router-dom'
3
- import { CodeBlock, Divider, Icon, Table, useScrollSpy } from '@kolkrabbi/kol-component'
3
+ import { CodeBlock, Divider, IconLoader, Table, useScrollSpy } from '@kolkrabbi/kol-component'
4
4
  import { ShellTocContext, RightRail, SHELL_SCROLL_ROOT } from '../shell/index.js'
5
5
  import { useTagMode } from '../tags/index.js'
6
6
  import TagPath from '../tags/TagPath.jsx'
@@ -28,11 +28,11 @@ const DocReaderSidebar = ({ toc, allTags, related, docId, docsIndexHref, compone
28
28
  const activeId = useScrollSpy((toc ?? []).map((h) => h.id), { root: SHELL_SCROLL_ROOT })
29
29
 
30
30
  const actions = [
31
- { id: 'back', label: 'Back', icon: <Icon name="arrow-left" size={14} />, onClick: () => navigate(-1) },
32
- { id: 'docs', label: 'All documentation', icon: <Icon name="book-open" size={14} />, to: docsIndexHref },
33
- { id: 'components', label: 'View components', icon: <Icon name="grid" size={14} />, to: componentsHref },
34
- { id: 'copy', label: 'Copy path', icon: <Icon name="copy" size={14} />, onClick: () => navigator.clipboard.writeText(docFilePath(docId)) },
35
- { id: 'graph', label: 'Graph view', icon: <Icon name="polygon" size={14} />, onClick: () => openTagMode(null, { view: 'graph' }) },
31
+ { id: 'back', label: 'Back', icon: <IconLoader name="arrow-left" size={14} />, onClick: () => navigate(-1) },
32
+ { id: 'docs', label: 'All documentation', icon: <IconLoader name="book-open" size={14} />, to: docsIndexHref },
33
+ { id: 'components', label: 'View components', icon: <IconLoader name="grid" size={14} />, to: componentsHref },
34
+ { id: 'copy', label: 'Copy path', icon: <IconLoader name="copy" size={14} />, onClick: () => navigator.clipboard.writeText(docFilePath(docId)) },
35
+ { id: 'graph', label: 'Graph view', icon: <IconLoader name="polygon" size={14} />, onClick: () => openTagMode(null, { view: 'graph' }) },
36
36
  ]
37
37
 
38
38
  return (
@@ -45,7 +45,7 @@ const DocReaderSidebar = ({ toc, allTags, related, docId, docsIndexHref, compone
45
45
  tags={allTags}
46
46
  renderTag={(tag) => <TagPath tag={tag} />}
47
47
  onTagClick={(tag) => openTagMode(tag)}
48
- icon={Icon}
48
+ icon={IconLoader}
49
49
  />
50
50
  )
51
51
  }
@@ -1,5 +1,5 @@
1
1
  import { Link } from 'react-router-dom'
2
- import { Icon } from '@kolkrabbi/kol-component'
2
+ import { IconLoader } from '@kolkrabbi/kol-component'
3
3
 
4
4
  /**
5
5
  * ExhibitLinkCard — A card linking to an exhibit page. the card an exhibit's landing page uses for each child
@@ -44,7 +44,7 @@ export default function ExhibitLinkCard({
44
44
  <h3 className="kol-card-kicker">{label}</h3>
45
45
  {subtitle && <p className="kol-mono-10 mt-1 italic text-fg-64">{subtitle}</p>}
46
46
  </div>
47
- <Icon name={icon} size={16} />
47
+ <IconLoader name={icon} size={16} />
48
48
  </div>
49
49
 
50
50
  <div className="flex flex-1 items-center justify-center overflow-hidden rounded border border-fg-08">
@@ -55,7 +55,7 @@ export default function ExhibitLinkCard({
55
55
  className="h-full w-full scale-100 object-cover object-center transition-transform duration-300 group-hover:scale-105"
56
56
  />
57
57
  ) : (
58
- <Icon
58
+ <IconLoader
59
59
  name={icon}
60
60
  size={64}
61
61
  className="text-auto transition-transform duration-300 group-hover:scale-105"
@@ -1,5 +1,5 @@
1
1
  import { Link, useNavigate } from 'react-router-dom'
2
- import { DocsToc, Icon } from '@kolkrabbi/kol-component'
2
+ import { DocsToc, IconLoader } from '@kolkrabbi/kol-component'
3
3
  import RailSection from '../shell/RailSection.jsx'
4
4
  import RailRow from '../shell/RailRow.jsx'
5
5
 
@@ -39,13 +39,13 @@ export default function ExhibitSidebar({
39
39
  return (
40
40
  <div className="shell-rail-stack-inner">
41
41
  {sections.length > 0 && (
42
- <RailSection level={1} label="On this page" icon={Icon}>
42
+ <RailSection level={1} label="On this page" icon={IconLoader}>
43
43
  <DocsToc toc={sections} />
44
44
  </RailSection>
45
45
  )}
46
46
 
47
47
  {links.length > 0 && (
48
- <RailSection level={1} label="Documentation" icon={Icon}>
48
+ <RailSection level={1} label="Documentation" icon={IconLoader}>
49
49
  <nav className="shell-nav-items">
50
50
  {links.map(({ id, label }) => (
51
51
  <RailRow key={id} to={docHref(id)}>
@@ -57,22 +57,22 @@ export default function ExhibitSidebar({
57
57
  )}
58
58
 
59
59
  {actions && (
60
- <RailSection level={1} label="Quick actions" icon={Icon}>
60
+ <RailSection level={1} label="Quick actions" icon={IconLoader}>
61
61
  <div className="space-y-1">
62
62
  <button
63
63
  type="button"
64
64
  className="shell-sidebar-action kol-mono-14 text-body"
65
65
  onClick={() => navigate(-1)}
66
66
  >
67
- <Icon name="arrow-left" size={14} />
67
+ <IconLoader name="arrow-left" size={14} />
68
68
  Back
69
69
  </button>
70
70
  <Link to={docHref()} className="shell-sidebar-action kol-mono-14 text-body">
71
- <Icon name="book-open" size={14} className="text-oq-64" />
71
+ <IconLoader name="book-open" size={14} className="text-oq-64" />
72
72
  All documentation
73
73
  </Link>
74
74
  <Link to={basePath} className="shell-sidebar-action kol-mono-14 text-body">
75
- <Icon name="layout" size={14} className="text-oq-64" />
75
+ <IconLoader name="layout" size={14} className="text-oq-64" />
76
76
  Workshop home
77
77
  </Link>
78
78
  <button
@@ -80,7 +80,7 @@ export default function ExhibitSidebar({
80
80
  className="shell-sidebar-action kol-mono-14 text-body"
81
81
  onClick={() => navigator.clipboard?.writeText(window.location.pathname)}
82
82
  >
83
- <Icon name="copy" size={14} />
83
+ <IconLoader name="copy" size={14} />
84
84
  Copy path
85
85
  </button>
86
86
  </div>
@@ -4,7 +4,7 @@ import { useNavigate, useSearchParams } from 'react-router-dom'
4
4
  import { EmptyState, Input, Tag } from '@kolkrabbi/kol-component'
5
5
  import ResultRow from './ResultRow.jsx'
6
6
  import { ShellSearchScopeContext } from '../shell/ShellLayout.jsx'
7
- import { Icon } from '@kolkrabbi/kol-icons'
7
+ import { IconLoader } from '@kolkrabbi/kol-icons'
8
8
  import { createIndex, search, parseQuery } from '@kolkrabbi/kol-search'
9
9
 
10
10
  /**
@@ -170,7 +170,7 @@ export default function SearchPage({ items = [], spaces: allSpaces = [], facets
170
170
  variant={rowVariant}
171
171
  title={<Highlight text={r.item.title} ranges={r.highlights.title} />}
172
172
  /* Round 6 (2026-10-01): `kindIcons` puts a glyph for the kind on the row, `rowMeta="path"` prints the route as the second line */
173
- icon={kindIcons?.[r.item.kind] && <Icon name={kindIcons[r.item.kind]} size={14} />}
173
+ icon={kindIcons?.[r.item.kind] && <IconLoader name={kindIcons[r.item.kind]} size={14} />}
174
174
  meta={rowMeta === 'path' ? r.item.href : [r.item.kind, r.item.category, r.item.space, r.item.date].filter(Boolean).join(' · ')}
175
175
  description={r.item.description}
176
176
  />
@@ -1,6 +1,6 @@
1
1
  import { useState } from 'react'
2
2
  import { Link } from 'react-router-dom'
3
- import { Icon } from '@kolkrabbi/kol-component'
3
+ import { IconLoader } from '@kolkrabbi/kol-component'
4
4
 
5
5
  /**
6
6
  * RailSection — THE rail ladder. One component owns every rail header, at
@@ -58,7 +58,7 @@ import { Icon } from '@kolkrabbi/kol-component'
58
58
  * @param {Function} [onToggle] required when `collapsed` is passed
59
59
  * @param {boolean} [defaultCollapsed=false] uncontrolled initial state
60
60
  * @param {Function} [onNavigate] click hook on the label link (close a drawer, etc.)
61
- * @param {Icon} [icon] the chevron renderer, injected — the shell package
61
+ * @param {IconLoader} [icon] the chevron renderer, injected — the shell package
62
62
  * must not reach into kol-component from here
63
63
  */
64
64
  export default function RailSection({
@@ -71,7 +71,7 @@ export default function RailSection({
71
71
  onToggle,
72
72
  defaultCollapsed = false,
73
73
  onNavigate,
74
- icon: IconComponent = Icon,
74
+ icon: IconComponent = IconLoader,
75
75
  /* a leading glyph for the group, between the caret and the label (rail icons, 2026-10-01) */
76
76
  glyph,
77
77
  children,
@@ -1,6 +1,6 @@
1
1
  import { createContext, useContext, useState, useEffect } from 'react'
2
2
  import { useLocation, useNavigate } from 'react-router-dom'
3
- import { Button, Icon, Tooltip } from '@kolkrabbi/kol-component'
3
+ import { Button, IconLoader, Tooltip } from '@kolkrabbi/kol-component'
4
4
  import RailSection from './RailSection.jsx'
5
5
  import RailRow from './RailRow.jsx'
6
6
 
@@ -125,7 +125,7 @@ const ShellSidebar = ({ routes = [], basePath = '/', onNavigate, label = 'Naviga
125
125
  * so its caret sits on its siblings' text edge. A leaf is a RailRow wherever it lands. */
126
126
  /* A ROUTE MAY CARRY A GLYPH (rail icons, open-questions Round 6, ruled 2026-10-01): `icon` is an
127
127
  * icon name, drawn on the row or beside the group's label. The consumer decides which routes. */
128
- const glyphOf = (route) => (route.icon ? <Icon name={route.icon} size={14} className="shrink-0" /> : undefined)
128
+ const glyphOf = (route) => (route.icon ? <IconLoader name={route.icon} size={14} className="shrink-0" /> : undefined)
129
129
  const renderGroup = (route) => (
130
130
  <RailSection
131
131
  level={2}
@@ -137,7 +137,7 @@ const ShellSidebar = ({ routes = [], basePath = '/', onNavigate, label = 'Naviga
137
137
  collapsed={isFolded(route)}
138
138
  onToggle={() => handleSectionClick(route)}
139
139
  onNavigate={onNavigate}
140
- icon={Icon}
140
+ icon={IconLoader}
141
141
  glyph={glyphOf(route)}
142
142
  >
143
143
  {/* a group that wears a glyph steps its children in by the glyph (14 + the 8 gap), so they
@@ -218,7 +218,7 @@ const ShellSidebar = ({ routes = [], basePath = '/', onNavigate, label = 'Naviga
218
218
  collapsed={mode === 'full' ? false : navCollapsed}
219
219
  onToggle={handleToggle}
220
220
  onNavigate={onNavigate}
221
- icon={Icon}
221
+ icon={IconLoader}
222
222
  >
223
223
  {body}
224
224
  </RailSection>