@hadoku/game-ui 0.1.26 → 0.1.28

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/dist/room/look.js CHANGED
@@ -104,6 +104,15 @@ function decorHost(face) {
104
104
  // A face that turns away (a coin's sides) hides what it holds: its overlay stays inside it.
105
105
  if (style.backfaceVisibility === 'hidden')
106
106
  break;
107
+ // A box clipped on purpose to hide its content from sighted eyes — the screen-reader-only idiom
108
+ // (`rooms.css`'s `.rooms__sr`: `clip:rect(0 0 0 0)`), never how a seat's round RING clips (that is
109
+ // `overflow` plus a border-radius, no `clip`/`clip-path` at all) — is not a box to escape: the
110
+ // overlay must stay inside it (a spectator's halo once leaked out of a front-page room card's
111
+ // hidden member list, under the room's own name). Read from the computed STYLE, not a measured
112
+ // size: jsdom lays nothing out, so every box's `getBoundingClientRect()` is 0×0 there regardless
113
+ // of which kind of clip it is.
114
+ if (!['', 'auto'].includes(style.clip) || !['', 'none'].includes(style.clipPath))
115
+ break;
107
116
  if ([style.overflow, style.overflowX, style.overflowY].some((o) => o !== '' && o !== 'visible'))
108
117
  host = box.parentElement;
109
118
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/game-ui",
3
- "version": "0.1.26",
4
- "gitHead": "6fa45fe84c6f27c76a08d2545b5b62df6f51cdd3",
3
+ "version": "0.1.28",
4
+ "gitHead": "cb203e1bc9ba6e6fe806762120d84a248223c55a",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "The browser parts any hosted game shares, above ui-shell: the room shell and session, seats and looks, the room route, the front page's generic pieces (gate, polls, gallery, patch notes), the bundle slot and relay channel a game's client mounts in, settings and trim screens, the HTTP and socket helpers, and the generic components (modal, popover, avatar, action button, radio cards). Knows no game; Magic's UI (games/magic/ui) plugs in, composed by the site (apps/ui). MIT; imports only react, react-dom, socket.io-client, @wolffm/* and the platform packages.",
@@ -49,14 +49,14 @@
49
49
  "react-dom": "^19.2.8"
50
50
  },
51
51
  "dependencies": {
52
- "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.26",
53
- "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.26",
52
+ "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.28",
53
+ "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.28",
54
54
  "@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.1.27",
55
- "@wolffm/rooms-client": "npm:@hadoku/rooms-client@^0.45.102",
56
- "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.102",
55
+ "@wolffm/rooms-client": "npm:@hadoku/rooms-client@^0.45.103",
56
+ "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.103",
57
57
  "@wolffm/task-ui-components": "npm:@hadoku/task-ui-components@^4.23.35",
58
58
  "@wolffm/themes": "npm:@hadoku/themes@^5.14.4",
59
- "@wolffm/watchparty-ui": "npm:@hadoku/watchparty-ui@^0.45.102",
59
+ "@wolffm/watchparty-ui": "npm:@hadoku/watchparty-ui@^0.45.103",
60
60
  "socket.io-client": "^4.8.3",
61
61
  "zod": "4.5.4"
62
62
  },