@damiro/stylo 0.9.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.
Files changed (44) hide show
  1. package/README.md +5 -0
  2. package/dist/{InPlaceView-Bu91_3Ig.js → InPlaceView-Dyf7I4XQ.js} +566 -562
  3. package/dist/InPlaceView-Dyf7I4XQ.js.map +1 -0
  4. package/dist/{Preview-AaGGwLQP.js → Preview-DIsFdBFA.js} +3 -3
  5. package/dist/{Preview-AaGGwLQP.js.map → Preview-DIsFdBFA.js.map} +1 -1
  6. package/dist/SplitView.d.ts +6 -1
  7. package/dist/SplitView.d.ts.map +1 -1
  8. package/dist/Stylo.d.ts.map +1 -1
  9. package/dist/editor/SourceView.d.ts +6 -1
  10. package/dist/editor/SourceView.d.ts.map +1 -1
  11. package/dist/editor/canvas-header-panel.d.ts +27 -0
  12. package/dist/editor/canvas-header-panel.d.ts.map +1 -0
  13. package/dist/editor/extensions.d.ts.map +1 -1
  14. package/dist/editor/search-panel-dom.d.ts +27 -0
  15. package/dist/editor/search-panel-dom.d.ts.map +1 -0
  16. package/dist/editor/search-panel.d.ts +13 -0
  17. package/dist/editor/search-panel.d.ts.map +1 -0
  18. package/dist/editor/theme.d.ts.map +1 -1
  19. package/dist/{embed-B2Dfkpd_.js → embed-Dsu6b-MV.js} +16 -9
  20. package/dist/embed-Dsu6b-MV.js.map +1 -0
  21. package/dist/frontmatter-DTCC0gaa.js +40 -0
  22. package/dist/frontmatter-DTCC0gaa.js.map +1 -0
  23. package/dist/inplace/InPlaceView.d.ts +6 -1
  24. package/dist/inplace/InPlaceView.d.ts.map +1 -1
  25. package/dist/inplace/table-widget.d.ts +10 -5
  26. package/dist/inplace/table-widget.d.ts.map +1 -1
  27. package/dist/inplace/theme-canvas.d.ts +7 -1
  28. package/dist/inplace/theme-canvas.d.ts.map +1 -1
  29. package/dist/render/Embed.d.ts.map +1 -1
  30. package/dist/styles.css +1 -1
  31. package/dist/stylo.js +190 -163
  32. package/dist/stylo.js.map +1 -1
  33. package/dist/toolbar/Toolbar.d.ts.map +1 -1
  34. package/dist/toolbar/commands.d.ts.map +1 -1
  35. package/dist/types.d.ts +12 -0
  36. package/dist/types.d.ts.map +1 -1
  37. package/dist/{useCodeMirror-DtwupFgc.js → useCodeMirror-CjG9CwpB.js} +386 -228
  38. package/dist/useCodeMirror-CjG9CwpB.js.map +1 -0
  39. package/package.json +1 -1
  40. package/dist/InPlaceView-Bu91_3Ig.js.map +0 -1
  41. package/dist/embed-B2Dfkpd_.js.map +0 -1
  42. package/dist/frontmatter-DGUkb9z-.js +0 -39
  43. package/dist/frontmatter-DGUkb9z-.js.map +0 -1
  44. package/dist/useCodeMirror-DtwupFgc.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