@ai-matrx/canvas 0.7.1 → 0.7.3
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.md +21 -0
- package/README.md +1 -1
- package/dist/index.cjs +5 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +24 -5
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +24 -5
- package/dist/react.js.map +1 -1
- package/dist/styles.css +14 -9
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.3
|
|
4
|
+
|
|
5
|
+
Census on 0.7.2 (40 web routes, 1440px window, chat open, canvas 360/640/900): with a 900px canvas the page beside it was 56px and route headers were 29-67px wide.
|
|
6
|
+
|
|
7
|
+
- **The canvas shrinks first, to a usable page.** `CANVAS_WEB_LAYOUT_RULES.centreMinWidth` 420 -> 600: a remembered or dragged width gives way (down to `minWidth`) so the content beside the canvas keeps 600px.
|
|
8
|
+
|
|
9
|
+
### Consumer action
|
|
10
|
+
|
|
11
|
+
- A host whose canvas shares the window with a sidebar or a docked panel passes `regionWidth` (the width right of the page's left edge) to `CanvasProvider`; without it the 600px is measured against the whole window and the page beside the canvas can still be crushed.
|
|
12
|
+
|
|
13
|
+
## 0.7.2
|
|
14
|
+
|
|
15
|
+
Measured live on 0.7.1 (phone 375px; a 363px canvas after a reload):
|
|
16
|
+
|
|
17
|
+
- **A tab's name ends before its close.** A background tab's close used to overlay the name's end (a fade), and on touch every tab showed one, so a name ran under it ("Quick Ch" cut at 103px, close at 90px). Now the close's room is reserved while it shows (hover / focus), and on touch (no hover) only the active tab shows a close - background names keep the room.
|
|
18
|
+
- **The tab fit is re-read until layout settles.** A reload measured the strip before fonts and the header's actions had settled, so two tabs that fit showed "Quick ..." plus one under "All tabs". The strip is re-measured on its own resize, when `document.fonts.ready` resolves, two frames after mount, and whenever the tab count changes.
|
|
19
|
+
|
|
20
|
+
### Consumer action
|
|
21
|
+
|
|
22
|
+
- None.
|
|
23
|
+
|
|
3
24
|
## 0.7.1
|
|
4
25
|
|
|
5
26
|
Measured live on 0.7.0 (a 480px strip, six tabs):
|
package/README.md
CHANGED
|
@@ -149,7 +149,7 @@ toggleKind(controller, { kind: "terminal" }); // absent → open · behind → f
|
|
|
149
149
|
|---|---|---|
|
|
150
150
|
| `defaultWidth` | 640 | `{ fraction: 0.36 }` |
|
|
151
151
|
| `minWidth` | 360 | 360 |
|
|
152
|
-
| `centreMinWidth` (the canvas shrinks first) |
|
|
152
|
+
| `centreMinWidth` (the canvas shrinks first) | 600 | 520 |
|
|
153
153
|
| `stackSplit` (split down: first pane's share) | 0.5 | 0.7 |
|
|
154
154
|
| `sideSplit` | 0.5 | 0.5 |
|
|
155
155
|
| `paneMinWidth` (narrower side-by-side panes stack) | 0 (never) | 360 |
|
package/dist/index.cjs
CHANGED
|
@@ -1119,7 +1119,11 @@ var CANVAS_PANE_MIN_WIDTH = 280;
|
|
|
1119
1119
|
var CANVAS_WEB_LAYOUT_RULES = {
|
|
1120
1120
|
defaultWidth: CANVAS_DEFAULT_WIDTH,
|
|
1121
1121
|
minWidth: CANVAS_MIN_WIDTH,
|
|
1122
|
-
|
|
1122
|
+
// The page beside the canvas keeps room for its route header (title, mode switch,
|
|
1123
|
+
// the shell's own controls): a 2026-10-03 census of 40 routes found headers 29-67px
|
|
1124
|
+
// wide at 420 with a 900px canvas. Hosts pass `regionWidth` so this is the PAGE's
|
|
1125
|
+
// width, not the window's.
|
|
1126
|
+
centreMinWidth: 600,
|
|
1123
1127
|
// Split down 70/30 like the desktop: what opens below (notifications, a feed) is the smaller pane.
|
|
1124
1128
|
stackSplit: 0.7,
|
|
1125
1129
|
sideSplit: 0.5,
|