From 2724cbe7ad8a31c419ff4debebacb221120bcaa5 Mon Sep 17 00:00:00 2001 From: Brent Jackson Date: Sun, 3 Mar 2019 17:54:52 -0500 Subject: [PATCH] Add module for backwards compatibility --- notes.md | 6 +++--- packages/mdx-deck/index.js | 3 +++ packages/mdx-deck/package.json | 1 + 3 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 packages/mdx-deck/index.js diff --git a/notes.md b/notes.md index 9642e1f..6d8c59d 100644 --- a/notes.md +++ b/notes.md @@ -12,9 +12,9 @@ todo: - [ ] timer/clock - [ ] open new tab button - [ ] overview highlighted state bug - MDXDeck doesn't render on link navigation -- [ ] set url query - - [ ] docs for customizing any component + +- [x] set url query - [x] BUG: import/export statements in code blocks - [x] mdx-plugin: fix markdown table whitespace warnings - [x] test with v1 demo deck & multiple elements per slide @@ -64,7 +64,7 @@ extras - Removed PDF export from core - Removed default Provider component with dot indicator -- Removes react-syntax-highlighter +- Removes react-syntax-highlighter from the core - Syntax highlighting can now be completely controlled via themes - Changes to print styles - Removed Grid mode diff --git a/packages/mdx-deck/index.js b/packages/mdx-deck/index.js new file mode 100644 index 0000000..10086e8 --- /dev/null +++ b/packages/mdx-deck/index.js @@ -0,0 +1,3 @@ +export * from '@mdx-deck/components' +export * as themes from '@mdx-deck/themes' +export * as Layouts from '@mdx-deck/layouts' diff --git a/packages/mdx-deck/package.json b/packages/mdx-deck/package.json index 4be27e5..065eead 100644 --- a/packages/mdx-deck/package.json +++ b/packages/mdx-deck/package.json @@ -5,6 +5,7 @@ "bin": { "mdx-deck": "./cli.js" }, + "main": "index.js", "scripts": { "start": "./cli.js demo.mdx -p 8080", "build": "./cli.js build demo.mdx -d public",