Skip to content

Commit

Permalink
Fix type export for MDXComponents, 0.13.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpojer committed Mar 22, 2024
1 parent 2f9c88a commit 28720c4
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 238 deletions.
2 changes: 1 addition & 1 deletion examples/tokyo/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nkzw/remdx-tokyo-example",
"description": "Beautiful Minimalist React & MDX Presentations",
"version": "0.12.1",
"version": "0.13.0",
"author": "Christoph Nakazawa <[email protected]>",
"private": true,
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nkzw/remdx-private",
"version": "0.12.1",
"version": "0.13.0",
"author": "Christoph Nakazawa <[email protected]>",
"private": true,
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/create-remdx/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-remdx",
"description": "Beautiful Minimalist React & MDX Presentations",
"version": "0.12.1",
"version": "0.13.0",
"author": "Christoph Nakazawa <[email protected]>",
"repository": {
"type": "git",
Expand Down
9 changes: 4 additions & 5 deletions packages/remdx/package.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
{
"name": "@nkzw/remdx",
"description": "Beautiful Minimalist React & MDX Presentations",
"version": "0.12.1",
"version": "0.13.0",
"author": "Christoph Nakazawa <[email protected]>",
"repository": {
"type": "git",
"url": "git://github.com/cpojer/remdx.git"
},
"type": "module",
"main": "./index",
"dependencies": {
"@mdx-js/react": "^3.0.1"
},
"devDependencies": {
"@mdx-js/react": "^3.0.1",
"@types/mousetrap": "^1.6.15",
"@types/react": "^18.2.67",
"@types/react-dom": "^18.2.22",
Expand All @@ -29,8 +31,5 @@
},
"scripts": {
"build": "rm -f index.js; esbuild --format=esm --outfile=index.js --jsx=automatic --external:react --external:react-dom --bundle ./index.tsx"
},
"dependencies": {
"@types/mdx": "^2.0.11"
}
}
8 changes: 4 additions & 4 deletions packages/remdx/types.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { MDXComponents as _MDXComponents } from 'mdx/types.js';
import { CSSProperties, ReactNode } from 'react';
import type { useMDXComponents } from '@mdx-js/react';
import type { CSSProperties, ReactNode } from 'react';

export type MDXComponents = _MDXComponents;
export type MDXComponents = Parameters<typeof useMDXComponents>[0];

export type Themes = Record<string, CSSProperties>;

Expand All @@ -25,7 +25,7 @@ export type ReMDXSlide = Readonly<{
}>;

export type ReMDXModule = Readonly<{
Components?: _MDXComponents;
Components?: MDXComponents;
Container?: SlideContainer;
Themes?: Themes;
Transitions?: Record<string, SlideTransition>;
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin-remdx/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@nkzw/vite-plugin-remdx",
"description": "Beautiful Minimalist React & MDX Presentations",
"version": "0.12.1",
"version": "0.13.0",
"author": "Christoph Nakazawa <[email protected]>",
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit 28720c4

Please sign in to comment.