@hadoku/game-ui 0.1.12 → 0.1.14

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.
@@ -0,0 +1,12 @@
1
+ import { type ReactNode } from 'react';
2
+ export interface LobbyShellProps {
3
+ /** The header's own tools row (settings, decks, stats, …) — omitted renders no `<nav>` at all. */
4
+ navTools?: ReactNode;
5
+ /** A Twitch-like banner above the room list — omitted draws none of its markup. */
6
+ banner?: ReactNode;
7
+ /** The room list itself (create + list), or whatever else a caller puts in the page's main slot. */
8
+ children: ReactNode;
9
+ /** A footer line under the page's own scroll (a licensing disclaimer, today) — omitted draws none. */
10
+ disclaimer?: ReactNode;
11
+ }
12
+ export declare function LobbyShell({ navTools, banner, children, disclaimer }: LobbyShellProps): import("react").JSX.Element;
@@ -0,0 +1,34 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * The front page's own shell: nav tools, an optional banner, the room list, and an optional
4
+ * footer (a licensing disclaimer, today) — lifted from `apps/ui/src/screens/LobbyScreen.tsx`
5
+ * (wave 119 §U.3, "the front page is a reusable module"). Every slot is a plain `ReactNode`;
6
+ * `undefined` renders nothing, so a caller with no banner (bomberman's front page, the operator's
7
+ * own words: "Bomberman's front page will be this module with no banner") gets none of its
8
+ * markup, not an empty wrapper.
9
+ *
10
+ * Platform: knows no game's own banner, nav buttons or room list — `LobbyScreen.tsx` still
11
+ * assembles those (`Banner`, `DecksButton`/`InventoryButton`/`StatsButton`, `RoomList`, the Fan
12
+ * Content Policy line) and hands them in as children/props. What stays here is what was already
13
+ * game-agnostic: the shell chrome, the page-reveal gate (`./gate.ts`) and the trim-loaded settle.
14
+ *
15
+ * `LobbyScreen.tsx`'s own DOM is unchanged by this lift: it still always passes a `navTools` and
16
+ * a `disclaimer`, so its rendered markup is the same `<nav>`/`<p className="shell__disclaimer">`
17
+ * it always drew (this lane's closing note has the render diff). A caller that omits either slot
18
+ * is the new behaviour this module exists to offer.
19
+ */
20
+ import { useEffect } from 'react';
21
+ import { FrontGateContext, useFrontGateState } from "./gate.js";
22
+ import { useSiteTrim } from "../settings/siteTrim.js";
23
+ import { useChromeShell } from '@wolffm/ui-shell/chrome/shell';
24
+ export function LobbyShell({ navTools, banner, children, disclaimer }) {
25
+ const shellRef = useChromeShell('fit');
26
+ const gate = useFrontGateState();
27
+ const trimLoaded = useSiteTrim().loaded;
28
+ const { settle } = gate;
29
+ useEffect(() => {
30
+ if (trimLoaded)
31
+ settle('trim');
32
+ }, [trimLoaded, settle]);
33
+ return (_jsxs("div", { ref: shellRef, className: "shell shell--fit", "data-testid": "lobby", children: [navTools !== undefined && _jsx("nav", { className: "shell__tools", children: navTools }), _jsx(FrontGateContext.Provider, { value: gate, children: _jsxs("main", { className: "front", "aria-busy": !gate.revealed, children: [banner, children] }) }), disclaimer !== undefined && _jsx("p", { className: "shell__disclaimer", children: disclaimer })] }));
34
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * The ONE config for every external game cardtable may host as a room type — pure data, no
3
+ * React, no import beyond this file's own types. "Deleting that one entry removes bomberman from
4
+ * cardtable" (wave 119's settled rule): each entry names everything a room of that type needs —
5
+ * its id, its label on the create form, its seat range, that it runs on cardtable's relay, its
6
+ * same-origin embed bundle and its seat-rejoin grace — and nothing of that game's own code lives
7
+ * here, exactly as `packages/shared/src/bomberman-game-type.ts` (deleted this wave) said of
8
+ * itself.
9
+ *
10
+ * Read by both sides, which never import each other:
11
+ * - `apps/server/src/plugins/external-games.ts` (the site, which may import anything) builds
12
+ * each entry into a `GameTypeSpec` and registers it, gated on `CARDTABLE_EXPERIMENTAL_GAMES=1`
13
+ * — unset, nothing here ever reaches the room registry, and creating or joining one of these
14
+ * room types refuses the same way any unregistered type always has.
15
+ * - `./external-games.tsx` (platform) builds the same shape into a client `GameTypeSpec` plus the
16
+ * room UI's `BundleSlot`, unconditionally — a room already made keeps rendering whatever today's
17
+ * deployment flag says, since reading it needs no server round trip the client doesn't already
18
+ * make.
19
+ *
20
+ * Two test files outside this package read this same array rather than re-typing its fields:
21
+ * `games/magic/server/src/plugins/relay.test.ts` and `games/magic/server/src/room/codec-generic.test.ts`.
22
+ */
23
+ export interface ExternalGameConfig {
24
+ /** The room's wire `gameType`. */
25
+ id: string;
26
+ /** What Create room's radio calls it. */
27
+ label: string;
28
+ /** The ROOM's own capacity — one meaning across every registered type (`GameTypeSpec.seats`). */
29
+ seats: {
30
+ min: number;
31
+ max: number;
32
+ };
33
+ /**
34
+ * This game type's match runs on cardtable's relay (`RelaySession`): the host has no engine
35
+ * of its own for it, only seats, watchers and a channel each seat's bundle speaks over.
36
+ */
37
+ runtime: 'relay';
38
+ /** The same-origin path the client's `BundleSlot` loads this game's bundle from, its own repo's own embed entry. */
39
+ embedSrc: string;
40
+ /** How long a dropped seat is held for its player to come back (`relay-match.ts`'s `seatRejoinGraceMs`). */
41
+ seatRejoinGraceMs: number;
42
+ }
43
+ /**
44
+ * One entry per external game cardtable may host. Bomberman is the only one today — its own
45
+ * repo serves `/bomberman/embed/bomberman-embed.js` same-origin, the same path watchparty loads
46
+ * it from.
47
+ *
48
+ * - `seats: {min:2, max:10}` — `hadoku-bomberman/game/src/consts.rs:54` (`MAX_PLAYERS = 10`) and
49
+ * `game/src/board.rs:136` (no 1-player map).
50
+ * - `seatRejoinGraceMs: 120_000` — bomberman's own seat hold (its `BOMBERMAN_SEAT_HOLD_MS`), so a
51
+ * player who drops keeps their seat as long here as on bomberman's own server.
52
+ */
53
+ export declare const EXTERNAL_GAMES: readonly ExternalGameConfig[];
@@ -0,0 +1,42 @@
1
+ /**
2
+ * The ONE config for every external game cardtable may host as a room type — pure data, no
3
+ * React, no import beyond this file's own types. "Deleting that one entry removes bomberman from
4
+ * cardtable" (wave 119's settled rule): each entry names everything a room of that type needs —
5
+ * its id, its label on the create form, its seat range, that it runs on cardtable's relay, its
6
+ * same-origin embed bundle and its seat-rejoin grace — and nothing of that game's own code lives
7
+ * here, exactly as `packages/shared/src/bomberman-game-type.ts` (deleted this wave) said of
8
+ * itself.
9
+ *
10
+ * Read by both sides, which never import each other:
11
+ * - `apps/server/src/plugins/external-games.ts` (the site, which may import anything) builds
12
+ * each entry into a `GameTypeSpec` and registers it, gated on `CARDTABLE_EXPERIMENTAL_GAMES=1`
13
+ * — unset, nothing here ever reaches the room registry, and creating or joining one of these
14
+ * room types refuses the same way any unregistered type always has.
15
+ * - `./external-games.tsx` (platform) builds the same shape into a client `GameTypeSpec` plus the
16
+ * room UI's `BundleSlot`, unconditionally — a room already made keeps rendering whatever today's
17
+ * deployment flag says, since reading it needs no server round trip the client doesn't already
18
+ * make.
19
+ *
20
+ * Two test files outside this package read this same array rather than re-typing its fields:
21
+ * `games/magic/server/src/plugins/relay.test.ts` and `games/magic/server/src/room/codec-generic.test.ts`.
22
+ */
23
+ /**
24
+ * One entry per external game cardtable may host. Bomberman is the only one today — its own
25
+ * repo serves `/bomberman/embed/bomberman-embed.js` same-origin, the same path watchparty loads
26
+ * it from.
27
+ *
28
+ * - `seats: {min:2, max:10}` — `hadoku-bomberman/game/src/consts.rs:54` (`MAX_PLAYERS = 10`) and
29
+ * `game/src/board.rs:136` (no 1-player map).
30
+ * - `seatRejoinGraceMs: 120_000` — bomberman's own seat hold (its `BOMBERMAN_SEAT_HOLD_MS`), so a
31
+ * player who drops keeps their seat as long here as on bomberman's own server.
32
+ */
33
+ export const EXTERNAL_GAMES = [
34
+ {
35
+ id: 'bomberman',
36
+ label: 'Bomberman',
37
+ seats: { min: 2, max: 10 },
38
+ runtime: 'relay',
39
+ embedSrc: '/bomberman/embed/bomberman-embed.js',
40
+ seatRejoinGraceMs: 120_000,
41
+ },
42
+ ];
@@ -0,0 +1,59 @@
1
+ import type { Look } from '@wolffm/platform-wire/look';
2
+ /** The same crown `magic-room-ui.tsx` draws for its own direct uses — duplicated, not imported, so this file pulls in nothing of Magic's. */
3
+ export declare const SEAT_CROWN_PATH = "M2 9V3.5l2.2 2L6 2.6l1.8 2.9L10 3.5V9Z";
4
+ /**
5
+ * What one seat holds, already classified by the caller: nobody (open), the room's leader closed
6
+ * it, the game's own bot, or a real member. A caller with no bot or close concept at all simply
7
+ * never produces those two kinds.
8
+ */
9
+ export type SeatOccupant = {
10
+ kind: 'open';
11
+ } | {
12
+ kind: 'closed';
13
+ } | {
14
+ kind: 'bot';
15
+ name: string;
16
+ avatarId?: string;
17
+ } | {
18
+ kind: 'member';
19
+ id: string;
20
+ name: string;
21
+ avatarId?: string;
22
+ look?: Look;
23
+ ready: boolean;
24
+ leader: boolean;
25
+ mine: boolean;
26
+ };
27
+ export interface SeatSlot {
28
+ seat: number;
29
+ occupant: SeatOccupant;
30
+ }
31
+ export interface SeatListProps {
32
+ slots: readonly SeatSlot[];
33
+ /** Whether the viewer leads the room: gates Close/Open, and an open seat's Close past `realSeatCount`. */
34
+ iLead: boolean;
35
+ /** An event's room before its seats open: nobody sits, nor gives a seat to the bot. */
36
+ shut?: boolean;
37
+ /** A fixed field (a Challenge's): no seat is grown, given to the bot, taken from it or closed. */
38
+ fieldFixed?: boolean;
39
+ /** How many of `slots` are seats the room has today — the rest are one caller-grown "+1" slot. An open seat at or past this index offers Sit to nobody already seated, and Close to nobody at all. */
40
+ realSeatCount: number;
41
+ /** The viewer's own seat index, or null before they sit. */
42
+ mySeat: number | null;
43
+ onSit?: (seat: number) => void;
44
+ onBotOn?: (seat: number) => void;
45
+ onBotOff?: (seat: number) => void;
46
+ onCloseSeat?: (seat: number) => void;
47
+ onOpenSeat?: (seat: number) => void;
48
+ /**
49
+ * The leader removes a SEATED human (never a bot — that is `onBotOff`), landing them a
50
+ * spectator (lane S's `rooms-protocol` seat op, wave 119 §P/§S — not yet landed as this is
51
+ * written). Absent: no Remove button is drawn on anyone's seat, which keeps a caller wired
52
+ * only up to `onCloseSeat`/`onBotOn` (today's `PodSeats.tsx`) byte-identical to before this
53
+ * lift. Never offered on the viewer's own seat (`occupant.mine`): standing is `onSit`
54
+ * elsewhere, not a self-removal.
55
+ */
56
+ onRemoveMember?: (seat: number, memberId: string) => void;
57
+ }
58
+ /** A strip of seats, one `<li>` each: dashed-open / "×"-closed / the bot's own look / a member's avatar, a label underneath, every action its own always-visible button. */
59
+ export declare function SeatList({ slots, iLead, shut, fieldFixed, realSeatCount, mySeat, onSit, onBotOn, onBotOff, onCloseSeat, onOpenSeat, onRemoveMember }: SeatListProps): import("react").JSX.Element;
@@ -0,0 +1,39 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * L3a, shared: the seat chip — one seat's own avatar, name, ready ring, leader crown and actions
4
+ * (sit, bot on/off, close/open) — lifted from `games/magic/ui/src/screens/pod/PodSeats.tsx`
5
+ * (wave 119 §U). Platform: knows nothing of a draft pod, a Magic match or any other game's own
6
+ * seat semantics — the caller classifies each seat into a `SeatOccupant` first (Magic's own
7
+ * `PodSeats.tsx` still owns that classification, reading `isPodAi`/`POD_CLOSED` from its own
8
+ * `./wire.ts`; a future game classifies its own seats the same way, into the same four shapes).
9
+ *
10
+ * `PodSeats.tsx` keeps its own markup's every class name and `data-testid` — `pod-seats`,
11
+ * `pod-seats__seat`, `pod-seat-<n>`, … — unchanged: cardtable's existing CSS (`PodSeats.css`) and
12
+ * its own extensive DOM-contract tests (`PodSeats.test.ts`) both key off them, and the DOM a
13
+ * caller already had must stay byte-identical after this lift (wave 119 §U.2's own "done when").
14
+ * A future caller styling this chip under a different block name does so with its own CSS; this
15
+ * file draws the shapes, never the paint.
16
+ */
17
+ import { ActionButton } from "../components/ActionButton.js";
18
+ import { Avatar } from "../components/Avatar.js";
19
+ import { PlayerName } from "../room/look.js";
20
+ import { StatusPill } from "../components/StatusPill.js";
21
+ /** The same crown `magic-room-ui.tsx` draws for its own direct uses — duplicated, not imported, so this file pulls in nothing of Magic's. */
22
+ export const SEAT_CROWN_PATH = 'M2 9V3.5l2.2 2L6 2.6l1.8 2.9L10 3.5V9Z';
23
+ /** A strip of seats, one `<li>` each: dashed-open / "×"-closed / the bot's own look / a member's avatar, a label underneath, every action its own always-visible button. */
24
+ export function SeatList({ slots, iLead, shut = false, fieldFixed = false, realSeatCount, mySeat, onSit, onBotOn, onBotOff, onCloseSeat, onOpenSeat, onRemoveMember }) {
25
+ return (_jsx("ul", { className: "pod-seats", "data-testid": "pod-seats", children: slots.map(({ seat, occupant }) => {
26
+ if (occupant.kind === 'open') {
27
+ return (_jsxs("li", { className: "pod-seats__seat", "data-testid": `pod-seat-${seat}`, children: [_jsx(ActionButton, { action: "sit", className: "pod-seats__avatar pod-seats__avatar--open", "data-testid": "pod-seat-sit", "data-seat": seat, "aria-label": `Sit in seat ${seat + 1}`, disabled: shut || (mySeat !== null && seat >= realSeatCount), onPress: () => onSit?.(seat), children: _jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", "aria-hidden": "true", children: _jsx("path", { d: "M12 5v14M5 12h14" }) }) }), _jsx("span", { className: "pod-seats__label", children: "Open" }), !fieldFixed && (_jsxs("span", { className: "pod-seats__actions", children: [_jsx(ActionButton, { action: "ai", className: "pod-seats__action", "data-testid": "pod-seat-ai", "data-seat": seat, "aria-label": `Fill seat ${seat + 1} with AI`, disabled: shut, onPress: () => onBotOn?.(seat), children: "AI" }), iLead && seat < realSeatCount && (_jsx(ActionButton, { action: "close", className: "pod-seats__action", "data-testid": "pod-seat-close", "data-seat": seat, "aria-label": `Close seat ${seat + 1}`, onPress: () => onCloseSeat?.(seat), children: "Close" }))] }))] }, seat));
28
+ }
29
+ if (occupant.kind === 'closed') {
30
+ return (_jsxs("li", { className: "pod-seats__seat", "data-testid": `pod-seat-${seat}`, "data-closed": "", children: [_jsx("span", { className: "pod-seats__avatar pod-seats__avatar--closed", "aria-hidden": "true", children: "\u00D7" }), _jsx("span", { className: "pod-seats__label", children: "Closed" }), iLead && (_jsx("span", { className: "pod-seats__actions", children: _jsx(ActionButton, { action: "open", className: "pod-seats__action", "data-testid": "pod-seat-open", "data-seat": seat, "aria-label": `Open seat ${seat + 1}`, onPress: () => onOpenSeat?.(seat), children: "Open" }) }))] }, seat));
31
+ }
32
+ if (occupant.kind === 'bot') {
33
+ return (_jsxs("li", { className: "pod-seats__seat", "data-testid": `pod-seat-${seat}`, "data-ai": "", children: [_jsx("span", { className: "pod-seats__avatar pod-seats__avatar--ai", children: _jsx(Avatar, { id: occupant.avatarId, fallback: "mark", className: "pod-seats__avatar-img", fallbackClassName: "pod-seats__avatar-fallback" }) }), _jsx("span", { className: "pod-seats__label", children: occupant.name }), !fieldFixed && (_jsx("span", { className: "pod-seats__actions", children: _jsx(ActionButton, { action: "ai-remove", className: "pod-seats__action", "data-testid": "pod-seat-ai-remove", "data-seat": seat, "aria-label": `Remove AI from seat ${seat + 1}`, onPress: () => onBotOff?.(seat), children: "Remove" }) }))] }, seat));
34
+ }
35
+ const { id, name, avatarId, look, ready, leader, mine } = occupant;
36
+ const face = { id: avatarId ?? null, look };
37
+ return (_jsxs("li", { className: "pod-seats__seat", "data-testid": `pod-seat-${seat}`, "data-mine": mine ? '' : undefined, children: [_jsxs("span", { className: "pod-seats__avatar-wrap", children: [_jsx("span", { className: "pod-seats__avatar", "data-ready": ready ? 'true' : 'false', children: _jsx(Avatar, { ...face, fallback: "initial", name: name, className: "pod-seats__avatar-img", fallbackClassName: "pod-seats__avatar-fallback" }) }), leader && (_jsxs("svg", { className: "pod-seats__crown", "data-testid": `pod-seat-${seat}-leader`, viewBox: "0 0 12 12", role: "img", "aria-label": "Room owner", children: [_jsx("title", { children: "Room owner" }), _jsx("path", { d: SEAT_CROWN_PATH })] }))] }), _jsx(PlayerName, { name: name, face: face, className: "pod-seats__label" }), _jsx(StatusPill, { testId: `pod-seat-${seat}-ready`, state: ready ? 'yes' : 'no', mark: ready ? 'tick' : 'ring', label: ready ? 'ready' : 'not ready' }), onRemoveMember !== undefined && !mine && (_jsx("span", { className: "pod-seats__actions", children: _jsx(ActionButton, { action: "remove", className: "pod-seats__action", "data-testid": "pod-seat-remove", "data-seat": seat, "aria-label": `Remove ${name} from the table`, onPress: () => onRemoveMember(seat, id), children: "Remove" }) }))] }, seat));
38
+ }) }));
39
+ }
@@ -0,0 +1,19 @@
1
+ import type { Look } from '@wolffm/platform-wire/look';
2
+ export interface SpectatorRowProps {
3
+ /** The room's members who hold no seat, in the room's order. */
4
+ spectators: readonly {
5
+ id: string;
6
+ name: string;
7
+ avatarId?: string;
8
+ look?: Look;
9
+ }[];
10
+ myId: string | null;
11
+ leaderId: string;
12
+ /** Given while I hold a seat: the open slot that gives it back. */
13
+ onWatch?: () => void;
14
+ /** The seat cannot be given back now: the table is locked or a match is under way. */
15
+ watchDisabled?: boolean;
16
+ /** Drawn under the seats rather than beside them (a pod's strip). */
17
+ under?: boolean;
18
+ }
19
+ export declare function SpectatorRow({ spectators, myId, leaderId, onWatch, watchDisabled, under }: SpectatorRowProps): import("react").JSX.Element | null;
@@ -0,0 +1,22 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * L3a, shared: the spectator row — every member who holds no seat, drawn the way the seats are
4
+ * (`pod-seats`), beside or under them. Lifted from
5
+ * `games/magic/ui/src/screens/RoomSpectators.tsx` (wave 119 §U). Platform: the caller still
6
+ * decides WHO is a spectator (a member not found among the room's seats — today three separate,
7
+ * not-yet-unified derivations across Magic's own files; see this lane's closing note) and hands
8
+ * this component the finished list.
9
+ *
10
+ * Every class name and `data-testid` this draws is unchanged from `RoomSpectators.tsx`'s own —
11
+ * `table-side`, `pod-seats`, `room-spectators`, `room-spectator`, `seat-stand` — so cardtable's
12
+ * existing CSS and its callers' own tests key off the identical DOM this always drew.
13
+ */
14
+ import { ActionButton } from "../components/ActionButton.js";
15
+ import { Avatar, faceOf } from "../components/Avatar.js";
16
+ import { PlayerName } from "../room/look.js";
17
+ import { SEAT_CROWN_PATH } from "./SeatChip.js";
18
+ export function SpectatorRow({ spectators, myId, leaderId, onWatch, watchDisabled = false, under = false }) {
19
+ if (spectators.length === 0 && onWatch === undefined)
20
+ return null;
21
+ return (_jsxs("div", { className: under ? 'table-side table-side--under' : 'table-side', "data-testid": "room-spectators", children: [_jsx("h3", { className: "table-side__heading", children: "Spectators" }), _jsxs("ul", { className: "pod-seats", children: [spectators.map((member) => (_jsxs("li", { className: "pod-seats__seat", "data-testid": "room-spectator", "data-member": member.id, "data-mine": member.id === myId ? '' : undefined, children: [_jsxs("span", { className: "pod-seats__avatar-wrap", children: [_jsx("span", { className: "pod-seats__avatar", children: _jsx(Avatar, { ...faceOf(member), fallback: "initial", name: member.name, className: "pod-seats__avatar-img", fallbackClassName: "pod-seats__avatar-fallback" }) }), member.id === leaderId && leaderId !== '' && (_jsxs("svg", { className: "pod-seats__crown", viewBox: "0 0 12 12", role: "img", "aria-label": "Room owner", children: [_jsx("title", { children: "Room owner" }), _jsx("path", { d: SEAT_CROWN_PATH })] }))] }), _jsx(PlayerName, { name: member.name, face: faceOf(member), className: "pod-seats__label" })] }, member.id))), onWatch !== undefined && (_jsxs("li", { className: "pod-seats__seat", children: [_jsx(ActionButton, { action: "stand", className: "pod-seats__avatar pod-seats__avatar--open", "data-testid": "seat-stand", "aria-label": "Spectate", disabled: watchDisabled, onPress: onWatch, children: _jsx("svg", { width: "16", height: "16", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2.5", strokeLinecap: "round", "aria-hidden": "true", children: _jsx("path", { d: "M12 5v14M5 12h14" }) }) }), _jsx("span", { className: "pod-seats__label", children: "Open" })] }))] })] }));
22
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/game-ui",
3
- "version": "0.1.12",
4
- "gitHead": "8c3d2c5886240ed06074e2ae67f91da8e193b889",
3
+ "version": "0.1.14",
4
+ "gitHead": "771e4a1d2b0a7925f44addba9994fe530fec5d15",
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.",
@@ -21,8 +21,8 @@
21
21
  "react-dom": "^19.2.8"
22
22
  },
23
23
  "dependencies": {
24
- "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.12",
25
- "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.12",
24
+ "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.14",
25
+ "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.14",
26
26
  "@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.1.27",
27
27
  "@wolffm/rooms-client": "npm:@hadoku/rooms-client@^0.45.98",
28
28
  "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.98",