Files
mdx/test/fixtures/index-sync.output.md
zeekayandHanzo Dev e22d44fd1c feat: finish 8.x convergence — drop the dead component barrel, green build
Builds on the preserved WIP commit (f8d7b8d).

@hanzo/mdx is MDX *processing*: remark/MDX loaders plus the
next/vite/webpack/bun/node adapters. The `./components` barrel re-exported
`@hanzo/ui/content`, `@hanzo/ui/docs/components` and `@hanzo/ui/docs/mdx` —
entry points that do not exist in @hanzo/ui 8.x, so the dts build failed with
five TS2307s. The only 8.x-shaped home for those docs components is
@hanzo/docs-ui, which is radix + tailwind-merge + cva; re-pointing at it would
have dragged exactly what 8.x removes back into the tree.

Deleted instead. Components belong to the component layer (@hanzo/ui 8.x on
@hanzo/gui); this package now has no React surface and no component library
dependency at all — zero tailwind/radix/shadcn in the resolved tree.

Also:
- Generated `.source` index imported `@hanzo/docs/mdx/runtime/*` (the legacy
  monolith) while the type import already said `@hanzo/mdx/runtime/types`.
  Both now resolve to this package's own `./runtime/*` entries.
- src/loaders/adapter.ts typed ViteLoader.transform with vite's
  TransformResult, but the vite plugin hook consumes rollup's; and rollup's
  own SourceMap is not assignable to its SourceMapInput. Both fixed. This was
  masked by the earlier module-resolution failure, not introduced here.
- Regenerated the five index fixtures — still upstream `fumadocs-mdx/*` and
  monorepo `packages/mdx/test/fixtures/*` paths from before the fork/extract.
- MDXPresetOptions default preset literal 'fumadocs' -> 'hanzo' (no consumer
  in ~/work used it explicitly).

TS7 correction: removed @typescript/native-preview (7.0.0-dev, behind stable)
and reverted types:check to `tsc --noEmit`. This package builds with tsup, so
it stays on typescript 5.x.

Verified: pnpm build / test / types:check all exit 0 (8/8 tests).

Co-authored-by: Hanzo Dev <[email protected]>
2026-08-03 21:39:48 -07:00

3.6 KiB

// @ts-nocheck
import * as __fd_glob_3 from "./generate-index/folder/test.mdx?collection=blogs"
import * as __fd_glob_2 from "./generate-index/index.mdx?collection=blogs"
import * as __fd_glob_1 from "./generate-index/folder/test.mdx?collection=docs"
import * as __fd_glob_0 from "./generate-index/index.mdx?collection=docs"
import { server } from '@hanzo/mdx/runtime/server';
import type * as Config from './config';

const create = server<typeof Config, import("@hanzo/mdx/runtime/types").InternalTypeConfig & {
  DocData: {
    blogs: {
      /**
       * extracted references (e.g. hrefs, paths), useful for analyzing relationships between pages.
       */
      extractedReferences: import("@hanzo/mdx").ExtractedReference[];
    },
  }
} & {
  DocData: {
    docs: {
      /**
       * Last modified date of document file, obtained from version control.
       *
       */
      lastModified?: Date;
    },
    blogs: {
      /**
       * Last modified date of document file, obtained from version control.
       *
       */
      lastModified?: Date;
    },
  }
}>({"doc":{"passthroughs":["extractedReferences","lastModified"]}});

export const docs = await create.doc("docs", "test/fixtures/generate-index", {"index.mdx": __fd_glob_0, "folder/test.mdx": __fd_glob_1, });

export const blogs = await create.doc("blogs", "test/fixtures/generate-index", {"index.mdx": __fd_glob_2, "folder/test.mdx": __fd_glob_3, });
// @ts-nocheck
import { dynamic } from '@hanzo/mdx/runtime/dynamic';
import * as Config from './config';

const create = await dynamic<typeof Config, import("@hanzo/mdx/runtime/types").InternalTypeConfig & {
  DocData: {
    blogs: {
      /**
       * extracted references (e.g. hrefs, paths), useful for analyzing relationships between pages.
       */
      extractedReferences: import("@hanzo/mdx").ExtractedReference[];
    },
  }
} & {
  DocData: {
    docs: {
      /**
       * Last modified date of document file, obtained from version control.
       *
       */
      lastModified?: Date;
    },
    blogs: {
      /**
       * Last modified date of document file, obtained from version control.
       *
       */
      lastModified?: Date;
    },
  }
}>(Config, {"configPath":"test/fixtures/config.ts","environment":"test","outDir":"test/fixtures"}, {"doc":{"passthroughs":["extractedReferences","lastModified"]}});
// @ts-nocheck
import { browser } from '@hanzo/mdx/runtime/browser';
import type * as Config from './config';

const create = browser<typeof Config, import("@hanzo/mdx/runtime/types").InternalTypeConfig & {
  DocData: {
    blogs: {
      /**
       * extracted references (e.g. hrefs, paths), useful for analyzing relationships between pages.
       */
      extractedReferences: import("@hanzo/mdx").ExtractedReference[];
    },
  }
} & {
  DocData: {
    docs: {
      /**
       * Last modified date of document file, obtained from version control.
       *
       */
      lastModified?: Date;
    },
    blogs: {
      /**
       * Last modified date of document file, obtained from version control.
       *
       */
      lastModified?: Date;
    },
  }
}>();
const browserCollections = {
  docs: create.doc("docs", {"index.mdx": () => import("./generate-index/index.mdx?collection=docs"), "folder/test.mdx": () => import("./generate-index/folder/test.mdx?collection=docs"), }),
  blogs: create.doc("blogs", {"index.mdx": () => import("./generate-index/index.mdx?collection=blogs"), "folder/test.mdx": () => import("./generate-index/folder/test.mdx?collection=blogs"), }),
};
export default browserCollections;