@kolkrabbi/kol-shell 0.43.0 → 0.45.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-shell",
3
- "version": "0.43.0",
3
+ "version": "0.45.0",
4
4
  "private": false,
5
5
  "description": "KOL application shell — fixed 48px NavRail + AppShell layout root, PageShell/PageHeader scaffolds, ContentFilters catalog organism, GridCard, SettingsScaffold, WalkthroughPanel, ShortcutsOverlay. App chrome (kol-framework owns site chrome). Nav items, content, shortcuts and settings are consumer-injected. Sits above @kolkrabbi/kol-{theme,component,framework}.",
6
6
  "license": "MIT",
@@ -14,16 +14,16 @@
14
14
  "peerDependencies": {
15
15
  "@kolkrabbi/kol-component": ">=0.174.0",
16
16
  "@kolkrabbi/kol-icons": ">=0.16.0",
17
- "@kolkrabbi/kol-theme": ">=0.135.0",
17
+ "@kolkrabbi/kol-theme": ">=0.136.0",
18
18
  "gsap": "^3.13.0",
19
19
  "react": "^18.3.0 || ^19.0.0",
20
20
  "react-dom": "^18.3.0 || ^19.0.0"
21
21
  },
22
22
  "devDependencies": {
23
- "@kolkrabbi/kol-component": "^0.176.0",
24
- "@kolkrabbi/kol-framework": "^0.41.0",
25
23
  "@kolkrabbi/kol-icons": "^0.25.0",
26
- "@kolkrabbi/kol-theme": "^0.135.0"
24
+ "@kolkrabbi/kol-framework": "^0.41.0",
25
+ "@kolkrabbi/kol-component": "^0.176.0",
26
+ "@kolkrabbi/kol-theme": "^0.136.0"
27
27
  },
28
28
  "files": [
29
29
  "src",
@@ -48,6 +48,9 @@ import WalkthroughPanel from './WalkthroughPanel.jsx'
48
48
  * @param {'bleed'|'capped'} width the page's TIER, forwarded to PageShell (two-page-scaffolds-one-job, 2026-09-03):
49
49
  * `bleed` (default) fills the window — the app tier; `capped` centres on the
50
50
  * framework container — the site tier, so a brand book adopting this page keeps its geometry
51
+ * @param {ReactNode} trailingActions the header's RIGHT slot (ContentFilters' — MediaLibrary's SELECT / FLAT); never empty beside the divider
52
+ * @param {number} minColumn the grid track's floor in px (default 160); a shelf of three decks passes 280 — the six-track ceiling still applies
53
+ * @param {'catalog'|'file'} rowVariant the list row (default `catalog`, the 36px no-thumb row); `file` = the 48px thumb row, for a catalog whose grid shows a cover
51
54
  * @param {ElementType} iconComponent icon renderer seam for ContentFilters
52
55
  * @param {boolean} showCountOnlyWhenFiltering (default true)
53
56
  * @param {Object} filtersProps spread onto ContentFilters last — e.g. `{ mutuallyExclusiveFilters: ['category', 'u_label'] }`
@@ -87,6 +90,19 @@ export default function CatalogPage({
87
90
  defaultLayout = 'grid',
88
91
  walkthrough,
89
92
  actions,
93
+ /* the header's RIGHT slot — where MediaLibrary puts SELECT / FLAT. CatalogPage
94
+ shipped with no way to fill it, so every catalog page rendered an empty slot
95
+ beside the divider (kol-client-olina 2026-09-03, on /slide-deck). */
96
+ trailingActions,
97
+ /* the grid track's floor. 160 is a 26-tile catalog's; a shelf of three decks
98
+ wants ~280 so the cards read at all. A ceiling of 6 tracks still applies. */
99
+ minColumn = 160,
100
+ /* the LIST row's variant. `catalog` (default) is the 36px GridCard row — title
101
+ and detail on one line, no thumb — which is what every app-tier list was
102
+ ruled on (CatalogPageMonitorParity). A catalog whose grid shows a cover
103
+ passes `file`: the 48px thumb row, so the list shows the same cover small
104
+ (kol-client-olina 2026-09-03; user, on the bare row: "ugly ugly ugly"). */
105
+ rowVariant = 'catalog',
90
106
  iconComponent,
91
107
  showCountOnlyWhenFiltering = true,
92
108
  filtersProps,
@@ -109,6 +125,7 @@ export default function CatalogPage({
109
125
  showCountOnlyWhenFiltering={showCountOnlyWhenFiltering}
110
126
  iconComponent={iconComponent}
111
127
  viewModeOptions={views}
128
+ trailingActions={trailingActions}
112
129
  viewMode={view}
113
130
  onViewModeChange={onViewChange}
114
131
  defaultViewMode={defaultView}
@@ -131,13 +148,13 @@ export default function CatalogPage({
131
148
  * six-column ruling — below the ceiling the hide-set is
132
149
  * desktop-only geometry. */
133
150
  return (
134
- <div style={{ display: 'grid', gridTemplateColumns: layout === 'list' ? 'repeat(auto-fill, minmax(min(100%, max(240px, calc((100% - 3 * 8px) / 4))), 1fr))' : 'repeat(auto-fill, minmax(min(100%, max(160px, calc((100% - 5 * 24px) / 6))), 1fr))', gap: layout === 'list' ? 8 : 24 }}>
151
+ <div style={{ display: 'grid', gridTemplateColumns: layout === 'list' ? 'repeat(auto-fill, minmax(min(100%, max(240px, calc((100% - 3 * 8px) / 4))), 1fr))' : `repeat(auto-fill, minmax(min(100%, max(${minColumn}px, calc((100% - 5 * 24px) / 6))), 1fr))`, gap: layout === 'list' ? 8 : 24 }}>
135
152
  {rows.map((item, i) => {
136
153
  if (hidden.has(i)) return null
137
154
  const c = cards[i]
138
155
  const key = c.key ?? item.key ?? item.id ?? item.name ?? i
139
156
  return layout === 'list'
140
- ? <ContentRow key={key} variant="catalog" title={c.title} detail={c.detail} actions={c.actions} onClick={c.onClick} href={c.href} onNavigate={c.onNavigate} />
157
+ ? <ContentRow key={key} variant={rowVariant} media={c.media} ratio={c.ratio} title={c.title} detail={c.detail} actions={c.actions} onClick={c.onClick} href={c.href} onNavigate={c.onNavigate} />
141
158
  : <ContentCard key={key} variant="catalog" fit={c.fit ?? 'cover'} ratio={c.ratio} title={c.title} detail={c.detail} media={c.media} actions={c.actions} onClick={c.onClick} href={c.href} onNavigate={c.onNavigate} expanded={c.expanded} expandedContent={c.expandedContent} />
142
159
  })}
143
160
  </div>