@podlite/editor-react 0.0.74 → 0.0.75
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/CHANGELOG.podlite +4 -0
- package/README.md +7 -0
- package/package.json +6 -5
package/CHANGELOG.podlite
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
=head1 Upcoming
|
|
4
4
|
|
|
5
|
+
=head1 0.0.75
|
|
6
|
+
|
|
7
|
+
=item shiki is a dependency again. Dropping it in 0.0.74 left every consumer without it, and their builds stopped resolving the module
|
|
8
|
+
|
|
5
9
|
=head1 0.0.74
|
|
6
10
|
|
|
7
11
|
=item rendering the editor again with the same props no longer reconfigures CodeMirror
|
package/README.md
CHANGED
|
@@ -65,6 +65,13 @@ npm install @podlite/editor-react
|
|
|
65
65
|
</td></tr></table>
|
|
66
66
|
</div>
|
|
67
67
|
|
|
68
|
+
## Code highlighting
|
|
69
|
+
|
|
70
|
+
Code blocks are rendered through `@podlite/highlight`, which loads `shiki` on
|
|
71
|
+
demand. `shiki` ships as a dependency of this package, so there is nothing for
|
|
72
|
+
you to install and nothing to configure. It is split into its own chunk: a
|
|
73
|
+
reader who never meets a code block downloads none of it.
|
|
74
|
+
|
|
68
75
|
## Author
|
|
69
76
|
|
|
70
77
|
Copyright (c) 2021–2026 Aliaksandr Zahatski
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@podlite/editor-react",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.75",
|
|
4
4
|
"description": "Rich text editor React component for Podlite — syntax highlighting, live preview, CodeMirror 6",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -86,14 +86,15 @@
|
|
|
86
86
|
"@codemirror/search": "^6.7.1",
|
|
87
87
|
"@codemirror/view": "^6.43.8",
|
|
88
88
|
"@lezer/highlight": "^1.2.1",
|
|
89
|
-
"@podlite/highlight": "0.0.
|
|
90
|
-
"@podlite/schema": "0.0.
|
|
91
|
-
"@podlite/to-jsx": "0.0.
|
|
89
|
+
"@podlite/highlight": "0.0.3",
|
|
90
|
+
"@podlite/schema": "0.0.69",
|
|
91
|
+
"@podlite/to-jsx": "0.0.73",
|
|
92
92
|
"@uiw/codemirror-extensions-events": "^4.23.8",
|
|
93
93
|
"@uiw/codemirror-themes": "^4.23.8",
|
|
94
94
|
"@uiw/react-codemirror": "^4.23.8",
|
|
95
95
|
"dom-to-image-more": "^3.7.2",
|
|
96
|
-
"react-is": "^18.0.0"
|
|
96
|
+
"react-is": "^18.0.0",
|
|
97
|
+
"shiki": "^3.21.0"
|
|
97
98
|
},
|
|
98
99
|
"peerDependencies": {
|
|
99
100
|
"@podlite/highlight": "*",
|