@damiro/stylo 0.10.1 → 0.11.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 +5 -0
- package/dist/{InPlaceView-CkbMemAa.js → InPlaceView-Dyf7I4XQ.js} +566 -562
- package/dist/InPlaceView-Dyf7I4XQ.js.map +1 -0
- package/dist/{Preview-AaGGwLQP.js → Preview-DIsFdBFA.js} +3 -3
- package/dist/{Preview-AaGGwLQP.js.map → Preview-DIsFdBFA.js.map} +1 -1
- package/dist/SplitView.d.ts +6 -1
- package/dist/SplitView.d.ts.map +1 -1
- package/dist/Stylo.d.ts.map +1 -1
- package/dist/editor/SourceView.d.ts +6 -1
- package/dist/editor/SourceView.d.ts.map +1 -1
- package/dist/editor/canvas-header-panel.d.ts +27 -0
- package/dist/editor/canvas-header-panel.d.ts.map +1 -0
- package/dist/{embed-B2Dfkpd_.js → embed-Dsu6b-MV.js} +16 -9
- package/dist/embed-Dsu6b-MV.js.map +1 -0
- package/dist/frontmatter-DTCC0gaa.js +40 -0
- package/dist/frontmatter-DTCC0gaa.js.map +1 -0
- package/dist/inplace/InPlaceView.d.ts +6 -1
- package/dist/inplace/InPlaceView.d.ts.map +1 -1
- package/dist/inplace/table-widget.d.ts +10 -5
- package/dist/inplace/table-widget.d.ts.map +1 -1
- package/dist/inplace/theme-canvas.d.ts +7 -1
- package/dist/inplace/theme-canvas.d.ts.map +1 -1
- package/dist/render/Embed.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/stylo.js +190 -163
- package/dist/stylo.js.map +1 -1
- package/dist/toolbar/Toolbar.d.ts.map +1 -1
- package/dist/toolbar/commands.d.ts.map +1 -1
- package/dist/types.d.ts +12 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/{useCodeMirror-CpE_Ncfn.js → useCodeMirror-CjG9CwpB.js} +229 -207
- package/dist/useCodeMirror-CjG9CwpB.js.map +1 -0
- package/package.json +1 -1
- package/dist/InPlaceView-CkbMemAa.js.map +0 -1
- package/dist/embed-B2Dfkpd_.js.map +0 -1
- package/dist/frontmatter-DGUkb9z-.js +0 -39
- package/dist/frontmatter-DGUkb9z-.js.map +0 -1
- package/dist/useCodeMirror-CpE_Ncfn.js.map +0 -1
package/README.md
CHANGED
|
@@ -171,6 +171,11 @@ function Editor() {
|
|
|
171
171
|
your own `ToolbarCustomItem` buttons, and a `render` slot to wrap it. See the
|
|
172
172
|
[toolbar reference](./docs/wiki/reference/toolbar.md).
|
|
173
173
|
|
|
174
|
+
`canvasHeader` docks your own content — a frontmatter card, say — inside the
|
|
175
|
+
editing surface itself, below the find/replace panel and above the document
|
|
176
|
+
body, a seam `toolbar.render` can't reach since it wraps content before the
|
|
177
|
+
whole canvas. See [Canvas header](./docs/wiki/reference/props.md#canvas-header).
|
|
178
|
+
|
|
174
179
|
`inPlace`, `codeLanguages`, and `wikiLinkSource` are read once, when the editing
|
|
175
180
|
surface mounts — give `<Stylo>` a `key` derived from the config to apply a
|
|
176
181
|
change. Every other prop is fully reactive. See
|