@damiro/stylo 0.16.0 → 0.18.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 +6 -4
- package/dist/{InPlaceView-CC5hZCcI.js → InPlaceView-Z8c9cqW8.js} +461 -460
- package/dist/{InPlaceView-CC5hZCcI.js.map → InPlaceView-Z8c9cqW8.js.map} +1 -1
- package/dist/{Preview-5lm2uUVj.js → Preview-BRA_R_Gp.js} +3 -3
- package/dist/{Preview-5lm2uUVj.js.map → Preview-BRA_R_Gp.js.map} +1 -1
- package/dist/SplitView.d.ts +4 -1
- package/dist/SplitView.d.ts.map +1 -1
- package/dist/Stylo.d.ts.map +1 -1
- package/dist/editor/SourceView.d.ts +4 -1
- package/dist/editor/SourceView.d.ts.map +1 -1
- package/dist/editor/theme.d.ts.map +1 -1
- package/dist/editor/useCodeMirror.d.ts +7 -1
- package/dist/editor/useCodeMirror.d.ts.map +1 -1
- package/dist/{embed-DKKeCE1Y.js → embed-DJAydn-v.js} +2 -2
- package/dist/{embed-DKKeCE1Y.js.map → embed-DJAydn-v.js.map} +1 -1
- package/dist/{embed-cache-CcBfVrc9.js → embed-cache-BU9Smn-h.js} +24 -17
- package/dist/embed-cache-BU9Smn-h.js.map +1 -0
- package/dist/inplace/InPlaceView.d.ts +4 -1
- package/dist/inplace/InPlaceView.d.ts.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/stylo.js +384 -154
- package/dist/stylo.js.map +1 -1
- package/dist/toolbar/OverflowBar.d.ts +19 -0
- package/dist/toolbar/OverflowBar.d.ts.map +1 -0
- package/dist/toolbar/OverflowMenu.d.ts +24 -0
- package/dist/toolbar/OverflowMenu.d.ts.map +1 -0
- package/dist/toolbar/Toolbar.d.ts +5 -1
- package/dist/toolbar/Toolbar.d.ts.map +1 -1
- package/dist/toolbar/overflow-fit.d.ts +27 -0
- package/dist/toolbar/overflow-fit.d.ts.map +1 -0
- package/dist/toolbar/toolbar-model.d.ts +31 -0
- package/dist/toolbar/toolbar-model.d.ts.map +1 -0
- package/dist/toolbar/use-toolbar-overflow.d.ts +17 -0
- package/dist/toolbar/use-toolbar-overflow.d.ts.map +1 -0
- package/dist/types/core.d.ts +9 -0
- package/dist/types/core.d.ts.map +1 -1
- package/dist/types/toolbar.d.ts +16 -0
- package/dist/types/toolbar.d.ts.map +1 -1
- package/dist/{useCodeMirror-TAWSJQiZ.js → useCodeMirror-Fn6qEfMx.js} +262 -254
- package/dist/{useCodeMirror-TAWSJQiZ.js.map → useCodeMirror-Fn6qEfMx.js.map} +1 -1
- package/package.json +4 -4
- 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).
|
|
@@ -63,7 +63,7 @@ npm install @damiro/stylo
|
|
|
63
63
|
```
|
|
64
64
|
|
|
65
65
|
To track an unreleased commit, install from git instead
|
|
66
|
-
(`npm install github:
|
|
66
|
+
(`npm install github:itsdamiro/stylo`) — the `prepare` script builds the
|
|
67
67
|
bundle during install, so there is nothing else to wire up.
|
|
68
68
|
|
|
69
69
|
CodeMirror, Lezer, and React are **peer dependencies** — Stylo shares the host's
|
|
@@ -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.
|
|
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
|