react-markdown-typewriter 1.0.4 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -12
- package/dist/components/MarkdownTypewriter.js +1 -1
- package/dist/components/MarkdownTypewriter.mjs +1 -1
- package/dist/components/MarkdownTypewriterAsync.js +1 -1
- package/dist/components/MarkdownTypewriterAsync.mjs +1 -1
- package/dist/components/MarkdownTypewriterHooks.d.mts +9 -0
- package/dist/components/MarkdownTypewriterHooks.d.ts +9 -0
- package/dist/components/MarkdownTypewriterHooks.js +1 -0
- package/dist/components/MarkdownTypewriterHooks.mjs +1 -0
- package/dist/components/TypewriterItem.js +1 -1
- package/dist/components/TypewriterItem.mjs +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.mjs +1 -1
- package/dist/functions/markdownComponents.js +1 -1
- package/dist/functions/markdownComponents.mjs +1 -1
- package/dist/functions/typewriterHook.js +1 -1
- package/dist/functions/typewriterHook.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -79,21 +79,23 @@ export default function NarrationScreen() {
|
|
|
79
79
|
}
|
|
80
80
|
```
|
|
81
81
|
|
|
82
|
-
##
|
|
82
|
+
## MarkdownTypewriterAsync
|
|
83
83
|
|
|
84
|
-
|
|
84
|
+
Component to render markdown with support for async plugins
|
|
85
|
+
through async/await.
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
Components returning promises are supported on the server.
|
|
88
|
+
For async support on the client,
|
|
89
|
+
see [`MarkdownTypewriterHooks`](#markdowntypewriterhooks)
|
|
88
90
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
91
|
+
## MarkdownTypewriterHooks
|
|
92
|
+
|
|
93
|
+
Component to render markdown with support for async plugins through hooks.
|
|
94
|
+
|
|
95
|
+
This uses `useEffect` and `useState` hooks.
|
|
96
|
+
Hooks run on the client and do not immediately render something.
|
|
97
|
+
For async support on the server,
|
|
98
|
+
see [`MarkdownTypewriterAsync`](#markdowntypewriterasync)
|
|
97
99
|
|
|
98
100
|
## API
|
|
99
101
|
|