@openpkg-ts/fumadocs-adapter 0.6.3 → 0.6.4

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.
Files changed (2) hide show
  1. package/dist/index.js +2 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -178,10 +178,8 @@ function openpkgPlugin(options = {}) {
178
178
  const kind = pageData.export?.kind;
179
179
  if (!kind || !KIND_BADGES[kind])
180
180
  return node;
181
- const badge = createElement(KindBadge, { kind, key: "badge" });
182
- const name = createElement("span", { key: "name" }, node.name);
183
- const newName = createElement("span", { className: "openpkg-sidebar-item" }, badge, name);
184
- return { ...node, name: newName };
181
+ const badge = createElement(KindBadge, { kind });
182
+ return { ...node, icon: badge };
185
183
  }
186
184
  }
187
185
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpkg-ts/fumadocs-adapter",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "Fumadocs integration for OpenPkg API documentation",
5
5
  "type": "module",
6
6
  "sideEffects": false,