-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: next.js pages compatability - see readme for details
- Loading branch information
Showing
9 changed files
with
1,016 additions
and
662 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 |
---|---|---|
|
@@ -58,3 +58,6 @@ yalc.lock | |
|
||
# Compiled plugin | ||
lib | ||
|
||
# Output from pakg-utils we dont care about | ||
next.js |
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
Large diffs are not rendered by default.
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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
export {markdownSchemaType, type MarkdownDefinition} from './schema' | ||
export {MarkdownInput, defaultMdeTools, type MarkdownInputProps} from './components/MarkdownInput' | ||
|
||
export {markdownSchema, type MarkdownConfig} from './plugin' |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import {lazy, useEffect, useState} from 'react' | ||
|
||
export const SimpleMdeReact = lazy(() => import('react-simplemde-editor')) | ||
|
||
export function useSimpleMdeReact() { | ||
const [mounted, setMounted] = useState(false) | ||
useEffect(() => { | ||
requestAnimationFrame(() => setMounted(true)) | ||
}, []) | ||
|
||
return mounted ? SimpleMdeReact : null | ||
} |
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,4 +1,3 @@ | ||
export {markdownSchemaType, type MarkdownDefinition} from './schema' | ||
export {MarkdownInput, defaultMdeTools, type MarkdownInputProps} from './components/MarkdownInput' | ||
import 'easymde/dist/easymde.min.css' | ||
|
||
export {markdownSchema, type MarkdownConfig} from './plugin' | ||
export * from './commonExports' |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './commonExports' |