@damiro/stylo 0.17.0 → 0.19.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 (52) hide show
  1. package/README.md +5 -3
  2. package/dist/{InPlaceView-CRb5AkfX.js → InPlaceView-D2GIV1A-.js} +692 -613
  3. package/dist/InPlaceView-D2GIV1A-.js.map +1 -0
  4. package/dist/{Preview-5lm2uUVj.js → Preview-BRA_R_Gp.js} +3 -3
  5. package/dist/{Preview-5lm2uUVj.js.map → Preview-BRA_R_Gp.js.map} +1 -1
  6. package/dist/Stylo.d.ts.map +1 -1
  7. package/dist/{embed-DKKeCE1Y.js → embed-DJAydn-v.js} +2 -2
  8. package/dist/{embed-DKKeCE1Y.js.map → embed-DJAydn-v.js.map} +1 -1
  9. package/dist/{embed-cache-CcBfVrc9.js → embed-cache-BU9Smn-h.js} +24 -17
  10. package/dist/embed-cache-BU9Smn-h.js.map +1 -0
  11. package/dist/inplace/InPlaceView.d.ts.map +1 -1
  12. package/dist/inplace/config.d.ts +8 -1
  13. package/dist/inplace/config.d.ts.map +1 -1
  14. package/dist/inplace/context-menu-actions.d.ts +4 -4
  15. package/dist/inplace/context-menu-actions.d.ts.map +1 -1
  16. package/dist/inplace/context-menu-types.d.ts +4 -0
  17. package/dist/inplace/context-menu-types.d.ts.map +1 -1
  18. package/dist/inplace/context-menu.d.ts.map +1 -1
  19. package/dist/inplace/extension.d.ts +7 -1
  20. package/dist/inplace/extension.d.ts.map +1 -1
  21. package/dist/inplace/host-cell.d.ts +10 -0
  22. package/dist/inplace/host-cell.d.ts.map +1 -0
  23. package/dist/inplace/host-items.d.ts +19 -0
  24. package/dist/inplace/host-items.d.ts.map +1 -0
  25. package/dist/inplace/menu-plugin.d.ts +9 -1
  26. package/dist/inplace/menu-plugin.d.ts.map +1 -1
  27. package/dist/styles.css +1 -1
  28. package/dist/stylo.js +391 -166
  29. package/dist/stylo.js.map +1 -1
  30. package/dist/toolbar/OverflowBar.d.ts +19 -0
  31. package/dist/toolbar/OverflowBar.d.ts.map +1 -0
  32. package/dist/toolbar/OverflowMenu.d.ts +24 -0
  33. package/dist/toolbar/OverflowMenu.d.ts.map +1 -0
  34. package/dist/toolbar/Toolbar.d.ts +5 -1
  35. package/dist/toolbar/Toolbar.d.ts.map +1 -1
  36. package/dist/toolbar/overflow-fit.d.ts +27 -0
  37. package/dist/toolbar/overflow-fit.d.ts.map +1 -0
  38. package/dist/toolbar/toolbar-model.d.ts +31 -0
  39. package/dist/toolbar/toolbar-model.d.ts.map +1 -0
  40. package/dist/toolbar/use-toolbar-overflow.d.ts +17 -0
  41. package/dist/toolbar/use-toolbar-overflow.d.ts.map +1 -0
  42. package/dist/types/inplace.d.ts +48 -5
  43. package/dist/types/inplace.d.ts.map +1 -1
  44. package/dist/types/toolbar.d.ts +16 -0
  45. package/dist/types/toolbar.d.ts.map +1 -1
  46. package/dist/types.d.ts +1 -1
  47. package/dist/types.d.ts.map +1 -1
  48. package/dist/{useCodeMirror-B07wRexo.js → useCodeMirror-Fn6qEfMx.js} +2 -2
  49. package/dist/{useCodeMirror-B07wRexo.js.map → useCodeMirror-Fn6qEfMx.js.map} +1 -1
  50. package/package.json +1 -1
  51. package/dist/InPlaceView-CRb5AkfX.js.map +0 -1
  52. package/dist/embed-cache-CcBfVrc9.js.map +0 -1
package/README.md CHANGED
@@ -38,8 +38,8 @@ built in.
38
38
  - **Callouts** — `> [!note]` blockquotes render as tinted admonition blocks
39
39
  (`note` / `tip` / `warning` / `danger` / `example`).
40
40
  - **Declarative toolbar** — trim, reorder, or extend the command set, supply
41
- your own buttons, swap the icons.
42
- [Reference](./docs/wiki/reference/toolbar.md).
41
+ your own buttons, swap the icons, and fold what doesn't fit into a `⋯` menu
42
+ instead of wrapping. [Reference](./docs/wiki/reference/toolbar.md).
43
43
  - **End-user toolbar customizer** — an optional `<StyloToolbarSettings>`
44
44
  component: drag- and keyboard-reorderable.
45
45
  [Reference](./docs/wiki/reference/toolbar-settings.md).
@@ -170,7 +170,9 @@ function Editor() {
170
170
  `insertAtCursor(md)`, and `getView()` for the raw CodeMirror `EditorView`.
171
171
 
172
172
  `toolbar` trims, reorders, or extends the formatting bar — built-in command ids,
173
- your own `ToolbarCustomItem` buttons, and a `render` slot to wrap it. See the
173
+ your own `ToolbarCustomItem` buttons, and a `render` slot to wrap it.
174
+ `overflow: "menu"` keeps the bar on one row, folding the buttons that don't fit
175
+ into a trailing menu. See the
174
176
  [toolbar reference](./docs/wiki/reference/toolbar.md).
175
177
 
176
178
  `canvasHeader` docks your own content — a frontmatter card, say — inside the