@kolkrabbi/kol-workshop 0.5.0 → 0.5.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.5.0",
3
+ "version": "0.5.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,11 +13,11 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "d3": "^7.9.0",
16
- "@kolkrabbi/kol-icons": "0.8.11",
17
- "@kolkrabbi/kol-component": "0.14.3",
18
16
  "@kolkrabbi/kol-brand": "^0.1.2",
17
+ "@kolkrabbi/kol-icons": "0.8.11",
18
+ "@kolkrabbi/kol-framework": "0.9.1",
19
19
  "@kolkrabbi/kol-theme": "0.13.3",
20
- "@kolkrabbi/kol-framework": "0.9.1"
20
+ "@kolkrabbi/kol-component": "0.14.3"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": "^18.3.0 || ^19.0.0",
@@ -157,9 +157,15 @@ const TagModeOverlay = () => {
157
157
  {hasFilters && filteredDocs.length > 0 && (
158
158
  <div className="flex flex-col pt-4 border-t border-fg-08">
159
159
  {filteredDocs.map((d) => (
160
+ /* `d.href` wins over `docHref(d.id)` so ONE tag system can
161
+ * span content types that live in different URL spaces —
162
+ * a vault doc at /documentation/:id and a component page
163
+ * at /components/:slug. Without it the inventory could
164
+ * only ever hold one kind of thing, which is why the
165
+ * graph saw the vault's 46 docs and nothing else. */
160
166
  <Link
161
167
  key={d.id}
162
- to={docHref(d.id)}
168
+ to={d.href ?? docHref(d.id)}
163
169
  className="tag-list-item"
164
170
  onClick={closeTagMode}
165
171
  >