@zsherman/canvas 0.1.0 → 0.1.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,22 @@
1
1
  # @zsherman/canvas
2
2
 
3
+ ## 0.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 6c9c479: Fixes found by running every e2e spec against the 0.1.0 tarballs.
8
+
9
+ - PeekPanel: after a click on a row, the row's button or link has focus, so Escape and J/K work in Safari, which doesn't focus a clicked button.
10
+ - CardInput: the brand marks fit their plate; the square ones (American Express, Diners Club) no longer spill over its edge.
11
+ - DatePicker: a disabled trigger inside its group fades once, not twice (the group carries `data-slot="date-picker-group"`).
12
+ - Command palette block: the launcher's defaults sit in `:where(.launcher)`, so a class you pass (the app shell's header search on phones) wins whatever order the CSS loads in.
13
+ - HeatMatrix (`@zsherman/charts`): the corner label uses `--sui-text-muted`, which meets 4.5:1 in light mode.
14
+ - EventCalendar (`@zsherman/calendar`): the day headers' and list rows' focus rings are inset, so the header cells and the list scroller no longer cut them; the calendar takes its width from its parent instead of widening it.
15
+ - CanvasBoard (`@zsherman/canvas`): cursors and comment pins are marked as seated on the board (they pan under its edge like shapes).
16
+ - Every package names its repository, for npm's trusted publishing.
17
+ - Updated dependencies [6c9c479]
18
+ - @zsherman/kit@0.1.1
19
+
3
20
  ## 0.1.0
4
21
 
5
22
  The first published release, on npm as `@zsherman/canvas` (it was `@solid-ui/canvas` 0.0.1 inside the repository). Versioned with `@zsherman/kit`: every package in the family shares one version, and each one's `@zsherman/kit` peer range is that version's minor.
@@ -31,7 +31,7 @@ var _tmpl$9 = /* @__PURE__ */ template(`<ol>`);
31
31
  var _tmpl$10 = /* @__PURE__ */ template(`<div><!$><!/><!$><!/><!$><!/>`);
32
32
  var _tmpl$11 = /* @__PURE__ */ template(`<li>`);
33
33
  var _tmpl$12 = /* @__PURE__ */ template(`<div>`);
34
- var _tmpl$13 = /* @__PURE__ */ template(`<button type=button aria-haspopup=dialog data-slot=canvas-comment-pin>`);
34
+ var _tmpl$13 = /* @__PURE__ */ template(`<button type=button aria-haspopup=dialog data-seated data-slot=canvas-comment-pin>`);
35
35
  var _tmpl$14 = /* @__PURE__ */ template(`<span aria-hidden=true data-comment-anchor data-slot=canvas-comment-draft>`);
36
36
  /** A pin's size in screen pixels; its bottom-left tip marks the spot. */
37
37
  const PIN = 32;
@@ -180,6 +180,7 @@ function CursorMark(props) {
180
180
  get "data-name"() {
181
181
  return props.cursor.name;
182
182
  },
183
+ "data-seated": "",
183
184
  "data-slot": "canvas-cursor"
184
185
  }], true);
185
186
  spread(_el$5, () => {
@@ -371,7 +371,7 @@ function CanvasCommentLayer(props) {
371
371
  {(thread) => {
372
372
  const open = () => thread().id === openId();
373
373
  const at = () => pinPoint(board(), thread().anchor);
374
- return <button type="button" aria-expanded={open() ? "true" : "false"} aria-haspopup="dialog" aria-label={pinLabel(thread())} class={pinClass} data-comment-anchor={open() ? "" : void 0} data-open={open() ? "" : void 0} data-pin-x={at().x} data-pin-y={at().y} data-resolved={thread().resolved === null ? void 0 : ""} data-slot="canvas-comment-pin" onClick={() => setOpened(open() ? null : {
374
+ return <button type="button" aria-expanded={open() ? "true" : "false"} aria-haspopup="dialog" aria-label={pinLabel(thread())} class={pinClass} data-comment-anchor={open() ? "" : void 0} data-open={open() ? "" : void 0} data-pin-x={at().x} data-pin-y={at().y} data-resolved={thread().resolved === null ? void 0 : ""} data-seated="" data-slot="canvas-comment-pin" onClick={() => setOpened(open() ? null : {
375
375
  _tag: "Thread",
376
376
  id: thread().id
377
377
  })}>
@@ -93,7 +93,7 @@ function CursorMark(props) {
93
93
  color: actorInk(props.cursor.kind)
94
94
  });
95
95
  const agent = () => props.cursor.kind === "agent";
96
- return <div {...stylex.attrs(cursor.root)} data-cursor={props.cursor.key} data-kind={props.cursor.kind} data-name={props.cursor.name} data-slot="canvas-cursor">
96
+ return <div {...stylex.attrs(cursor.root)} data-cursor={props.cursor.key} data-kind={props.cursor.kind} data-name={props.cursor.name} data-seated="" data-slot="canvas-cursor">
97
97
  <div {...stylex.attrs(cursor.body)}>
98
98
  <Pointer color={tint()} />
99
99
  <span {...stylex.attrs(cursor.pill, cursor.full)} data-part="label" style={chip()}>
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "@zsherman/canvas",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A shared whiteboard for @zsherman/kit: notes, shapes, text, arrows, ink, images, comments, presence and agent proposals on an optimistic store the app owns, on a copy of Hyper's canvas kernel, themed with the kit's --sui-* tokens.",
5
5
  "license": "MPL-2.0",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/zsherman/solid-ui.git",
9
+ "directory": "packages/canvas"
10
+ },
6
11
  "files": [
7
12
  "dist",
8
13
  "docs",
@@ -47,11 +52,11 @@
47
52
  "@stylexjs/stylex": "0.19.2"
48
53
  },
49
54
  "devDependencies": {
50
- "@zsherman/kit": "0.1.0"
55
+ "@zsherman/kit": "0.1.1"
51
56
  },
52
57
  "peerDependencies": {
53
58
  "@solidjs/web": "^2.0.3",
54
- "@zsherman/kit": "^0.1.0",
59
+ "@zsherman/kit": "^0.1.1",
55
60
  "solid-js": "^2.0.3"
56
61
  }
57
62
  }