├── .editorconfig ├── .github └── workflows │ ├── main.yml │ └── publish.yml ├── .gitignore ├── .npmrc ├── .prettierignore ├── .prettierrc.json ├── LICENSE ├── README.md ├── assets └── next-js-weekly.png ├── codecov.yml ├── eslint.config.js ├── migration_guide.md ├── package.json ├── src ├── csr │ ├── MDXClient.tsx │ ├── MDXClientAsync.tsx │ ├── MDXClientLazy.tsx │ ├── hydrate.tsx │ ├── hydrateAsync.tsx │ ├── hydrateLazy.tsx │ ├── idle-callback-polyfill.js │ ├── index.ts │ ├── requestIdleCallback.d.ts │ ├── serialize.ts │ └── types.ts ├── lib │ ├── compile.ts │ ├── prepare.ts │ ├── run.ts │ ├── types.ts │ └── util.ts ├── rsc │ ├── MDXRemote.tsx │ ├── evaluate.tsx │ ├── index.ts │ └── types.ts └── utils │ ├── getFrontmatter.ts │ └── index.ts ├── tests ├── ErrorBoundary.jsx ├── ErrorBoundarySimple.jsx ├── context │ ├── ExampleForm.mjs │ ├── ExampleFormTransformedAutomatic.mjs │ ├── ExampleFormTransformedClassic.mjs │ ├── HelloDave.mjs │ ├── components.js │ └── data.js ├── test.MDXClient.spec.tsx ├── test.MDXClientAsync.esm.spec.tsx ├── test.MDXClientLazy.spec.tsx ├── test.MDXProvider.spec.tsx ├── test.MDXRemote.esm.spec.tsx ├── test.compile.spec.tsx ├── test.core.spec.ts ├── test.evaluate.esm.spec.tsx ├── test.evaluate.spec.tsx ├── test.original.compile.spec.tsx ├── test.run.spec.tsx ├── test.serialize-hydrate.spec.tsx ├── test.utils.spec.ts └── test.wrapper.spec.tsx ├── tsconfig.json ├── vite.config.js └── vitest-setup-tests.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/workflows/main.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/.github/workflows/main.yml -------------------------------------------------------------------------------- /.github/workflows/publish.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/.github/workflows/publish.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | .vscode 3 | dist 4 | node_modules 5 | archive 6 | coverage -------------------------------------------------------------------------------- /.npmrc: -------------------------------------------------------------------------------- 1 | ignore-scripts=true -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/.prettierignore -------------------------------------------------------------------------------- /.prettierrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/.prettierrc.json -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/README.md -------------------------------------------------------------------------------- /assets/next-js-weekly.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/assets/next-js-weekly.png -------------------------------------------------------------------------------- /codecov.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/codecov.yml -------------------------------------------------------------------------------- /eslint.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/eslint.config.js -------------------------------------------------------------------------------- /migration_guide.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/migration_guide.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/package.json -------------------------------------------------------------------------------- /src/csr/MDXClient.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/csr/MDXClient.tsx -------------------------------------------------------------------------------- /src/csr/MDXClientAsync.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/csr/MDXClientAsync.tsx -------------------------------------------------------------------------------- /src/csr/MDXClientLazy.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/csr/MDXClientLazy.tsx -------------------------------------------------------------------------------- /src/csr/hydrate.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/csr/hydrate.tsx -------------------------------------------------------------------------------- /src/csr/hydrateAsync.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/csr/hydrateAsync.tsx -------------------------------------------------------------------------------- /src/csr/hydrateLazy.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/csr/hydrateLazy.tsx -------------------------------------------------------------------------------- /src/csr/idle-callback-polyfill.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/csr/idle-callback-polyfill.js -------------------------------------------------------------------------------- /src/csr/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/csr/index.ts -------------------------------------------------------------------------------- /src/csr/requestIdleCallback.d.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/csr/requestIdleCallback.d.ts -------------------------------------------------------------------------------- /src/csr/serialize.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/csr/serialize.ts -------------------------------------------------------------------------------- /src/csr/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/csr/types.ts -------------------------------------------------------------------------------- /src/lib/compile.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/lib/compile.ts -------------------------------------------------------------------------------- /src/lib/prepare.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/lib/prepare.ts -------------------------------------------------------------------------------- /src/lib/run.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/lib/run.ts -------------------------------------------------------------------------------- /src/lib/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/lib/types.ts -------------------------------------------------------------------------------- /src/lib/util.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/lib/util.ts -------------------------------------------------------------------------------- /src/rsc/MDXRemote.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/rsc/MDXRemote.tsx -------------------------------------------------------------------------------- /src/rsc/evaluate.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/rsc/evaluate.tsx -------------------------------------------------------------------------------- /src/rsc/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/rsc/index.ts -------------------------------------------------------------------------------- /src/rsc/types.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/rsc/types.ts -------------------------------------------------------------------------------- /src/utils/getFrontmatter.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/utils/getFrontmatter.ts -------------------------------------------------------------------------------- /src/utils/index.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/src/utils/index.ts -------------------------------------------------------------------------------- /tests/ErrorBoundary.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/ErrorBoundary.jsx -------------------------------------------------------------------------------- /tests/ErrorBoundarySimple.jsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/ErrorBoundarySimple.jsx -------------------------------------------------------------------------------- /tests/context/ExampleForm.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/context/ExampleForm.mjs -------------------------------------------------------------------------------- /tests/context/ExampleFormTransformedAutomatic.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/context/ExampleFormTransformedAutomatic.mjs -------------------------------------------------------------------------------- /tests/context/ExampleFormTransformedClassic.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/context/ExampleFormTransformedClassic.mjs -------------------------------------------------------------------------------- /tests/context/HelloDave.mjs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/context/HelloDave.mjs -------------------------------------------------------------------------------- /tests/context/components.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/context/components.js -------------------------------------------------------------------------------- /tests/context/data.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/context/data.js -------------------------------------------------------------------------------- /tests/test.MDXClient.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.MDXClient.spec.tsx -------------------------------------------------------------------------------- /tests/test.MDXClientAsync.esm.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.MDXClientAsync.esm.spec.tsx -------------------------------------------------------------------------------- /tests/test.MDXClientLazy.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.MDXClientLazy.spec.tsx -------------------------------------------------------------------------------- /tests/test.MDXProvider.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.MDXProvider.spec.tsx -------------------------------------------------------------------------------- /tests/test.MDXRemote.esm.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.MDXRemote.esm.spec.tsx -------------------------------------------------------------------------------- /tests/test.compile.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.compile.spec.tsx -------------------------------------------------------------------------------- /tests/test.core.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.core.spec.ts -------------------------------------------------------------------------------- /tests/test.evaluate.esm.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.evaluate.esm.spec.tsx -------------------------------------------------------------------------------- /tests/test.evaluate.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.evaluate.spec.tsx -------------------------------------------------------------------------------- /tests/test.original.compile.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.original.compile.spec.tsx -------------------------------------------------------------------------------- /tests/test.run.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.run.spec.tsx -------------------------------------------------------------------------------- /tests/test.serialize-hydrate.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.serialize-hydrate.spec.tsx -------------------------------------------------------------------------------- /tests/test.utils.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.utils.spec.ts -------------------------------------------------------------------------------- /tests/test.wrapper.spec.tsx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tests/test.wrapper.spec.tsx -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/tsconfig.json -------------------------------------------------------------------------------- /vite.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/vite.config.js -------------------------------------------------------------------------------- /vitest-setup-tests.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ipikuka/next-mdx-remote-client/HEAD/vitest-setup-tests.js --------------------------------------------------------------------------------