@kolkrabbi/kol-workshop 0.30.0 → 0.30.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.30.0",
3
+ "version": "0.30.1",
4
4
  "private": false,
5
5
  "description": "KOL workshop/docs system — a handrolled markdown engine, search, tag system (incl. a d3 tag graph), docs viewer, and docs shell. Sits above @kolkrabbi/kol-{theme,icons,component,framework}; content is consumer-injected (the package never globs docs).",
6
6
  "license": "MIT",
@@ -13,8 +13,8 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "d3": "^7.9.0",
16
- "@kolkrabbi/kol-markdown": "^0.1.0",
17
- "@kolkrabbi/kol-search": "^0.1.0",
16
+ "@kolkrabbi/kol-search": "^0.2.0",
17
+ "@kolkrabbi/kol-markdown": "^0.1.1",
18
18
  "@kolkrabbi/kol-brand": "^0.1.3"
19
19
  },
20
20
  "peerDependencies": {
@@ -27,10 +27,10 @@
27
27
  "react-router-dom": "^6.0.0 || ^7.0.0"
28
28
  },
29
29
  "devDependencies": {
30
+ "@kolkrabbi/kol-component": "^0.229.0",
30
31
  "@kolkrabbi/kol-icons": "^0.29.0",
31
- "@kolkrabbi/kol-framework": "^0.45.0",
32
- "@kolkrabbi/kol-theme": "^0.155.0",
33
- "@kolkrabbi/kol-component": "^0.228.0"
32
+ "@kolkrabbi/kol-theme": "^0.156.0",
33
+ "@kolkrabbi/kol-framework": "^0.45.0"
34
34
  },
35
35
  "files": [
36
36
  "src",
@@ -2,7 +2,7 @@ import { useEffect, useRef, useMemo, useState } from 'react'
2
2
  import * as d3 from 'd3'
3
3
  import { useNavigate } from 'react-router-dom'
4
4
  import { getTagColor } from '@kolkrabbi/kol-markdown'
5
- import { buildTagCooccurrence } from '@kolkrabbi/kol-markdown'
5
+ import { tagGraph } from '@kolkrabbi/kol-search'
6
6
 
7
7
  /**
8
8
  * TagGraph - Obsidian-style tag graph
@@ -26,7 +26,8 @@ const TagGraph = ({ docs, activeTag, onTagClick, allDocs, tagHref = defaultTagHr
26
26
  const sourceDocs = allDocs || docs
27
27
 
28
28
  // Compute graph data: ALL tags with connections (pure — see engine/tags.js)
29
- const graphData = useMemo(() => buildTagCooccurrence(sourceDocs), [sourceDocs])
29
+ /* the engine's graph (kol-search `tagGraph`, 2026-09-29) over the docs' tags */
30
+ const graphData = useMemo(() => tagGraph(sourceDocs.map((d) => ({ id: d.id, tags: d.metadata?.tags ?? [] }))), [sourceDocs])
30
31
 
31
32
  // Update dimensions on resize
32
33
  useEffect(() => {