@ai-matrx/canvas 0.9.3 → 0.10.1

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 CHANGED
@@ -1,5 +1,49 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.10.1
4
+
5
+ - `<CanvasProvider output={…}>` reaches the pane menu (0.10.0 accepted the prop and dropped it).
6
+
7
+ Consumer action: none.
8
+
9
+ ## 0.10.0
10
+ ### The rendered-output standard: every tab prints, captures and attaches — or says why not
11
+
12
+ - **Breaking: every kind declares `surface: "dom" | "frame" | "native"`** (required, no default;
13
+ `defineCanvasKind` throws without it, and a `body: "native"` kind must be `"native"`). "dom" =
14
+ same-origin DOM the host can copy; "frame" = an iframe page, a `<canvas>`, WebGL, a map — a DOM
15
+ copy prints blank; "native" = host-drawn.
16
+ - **Standard pane-menu entries, drawn by the package**: Print, Save as PDF, Copy image, then the
17
+ host's "Attach to chat" options. Answered in order by what the body offers now
18
+ (`useCanvasOutput(itemId, { print, savePdf, capture, unavailable })`), the kind's declaration
19
+ (`kind.print` / `kind.capture`: a handler, an honest reason string shown disabled, or `false` for
20
+ nothing to print), then the host's engines (`CanvasHostPorts.output: CanvasOutputPorts` —
21
+ `print`, `savePdf`, `capture`, `copyImage`, `attachOptions`, `onError`) — the DOM engines only for
22
+ "dom" kinds. An entry nobody serves is absent; never a silent no-op.
23
+ - `CanvasMenuItem.disabled` / `CanvasMenuEntry.disabled` (a host `showMenu` should draw it
24
+ disabled).
25
+ - Guard helper `canvasKindOutputProblems(kind)` (every kind has a surface; frame/native kinds
26
+ declare print and capture) for hosts' tests; in development a "dom" body that grows an `<iframe>`
27
+ or `<canvas>` logs a loud error naming its kind.
28
+ - Added: `canvasOutputMenu`, `canvasItemElement`, `canvasKindSurface`, `CanvasKindSurface`,
29
+ `CanvasOutputHandlers`, `CanvasOutputPorts`, `CanvasOutputRequest`.
30
+
31
+ ### Consumer action
32
+
33
+ - Add `surface` to every `defineCanvasKind` (and to any hand-built `AnyCanvasKind`). Frame/native
34
+ kinds add `print` and `capture` (a handler or a short honest reason). Pass
35
+ `ports.output` on `<CanvasProvider>` to serve DOM print/capture and Attach options. A host
36
+ `showMenu` draws `entry.disabled` items disabled.
37
+
38
+ ## 0.9.4
39
+ ### tap-target comes from design-system
40
+
41
+ - Imports `@ai-matrx/design-system/tap-target` (and `/tap-target/buttons`, `tap-target.css`) instead of the
42
+ retired `@ai-matrx/tap-target` (Arman, 2026-10-08: tap-target merges into design-system); the
43
+ `@ai-matrx/tap-target` dependency is dropped.
44
+
45
+ Consumer action: none.
46
+
3
47
  ## 0.9.3
4
48
 
5
49
  Automatic changed-only republish (docs/metadata drift since the last tag — see