-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the ability to overwrite the slide container, 0.11.0.
- Loading branch information
Showing
10 changed files
with
36 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.10.0", | ||
"version": "0.11.0", | ||
"author": "Christoph Nakazawa <[email protected]>", | ||
"private": true, | ||
"repository": { | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.10.0", | ||
"version": "0.11.0", | ||
"author": "Christoph Nakazawa <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@nkzw/remdx", | ||
"description": "Beautiful Minimalist React & MDX Presentations", | ||
"version": "0.10.0", | ||
"version": "0.11.0", | ||
"author": "Christoph Nakazawa <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,33 @@ | ||
import type { MDXComponents as _MDXComponents } from 'mdx/types.js'; | ||
import { CSSProperties } from 'react'; | ||
import { CSSProperties, ReactNode } from 'react'; | ||
|
||
export type MDXComponents = _MDXComponents; | ||
|
||
export type Themes = Record<string, CSSProperties>; | ||
|
||
export type SlideTransition = { | ||
export type SlideTransition = Readonly<{ | ||
enter?: CSSProperties; | ||
from?: CSSProperties; | ||
leave?: CSSProperties; | ||
}; | ||
}>; | ||
|
||
export type ReMDXSlide = { | ||
export type SlideContainer = ({ | ||
children, | ||
style, | ||
}: { | ||
children: JSX.Element; | ||
style: CSSProperties; | ||
}) => ReactNode; | ||
|
||
export type ReMDXSlide = Readonly<{ | ||
Component: () => JSX.Element; | ||
data: Record<string, string>; | ||
}; | ||
}>; | ||
|
||
export type ReMDXModule = { | ||
export type ReMDXModule = Readonly<{ | ||
Components?: _MDXComponents; | ||
Container?: SlideContainer; | ||
Themes?: Themes; | ||
Transitions?: Record<string, SlideTransition>; | ||
default: ReadonlyArray<ReMDXSlide>; | ||
}; | ||
}>; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.10.0", | ||
"version": "0.11.0", | ||
"author": "Christoph Nakazawa <[email protected]>", | ||
"repository": { | ||
"type": "git", | ||
|