@hadoku/game-ui 0.1.268 → 0.1.270

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.
@@ -1,4 +1,5 @@
1
1
  import { type ReactNode } from 'react';
2
+ import './front-card.css';
2
3
  export interface GalleryPage {
3
4
  key: string;
4
5
  title: string;
@@ -9,6 +9,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
9
9
  import { useState } from 'react';
10
10
  import { playRole } from "../sound/index.js";
11
11
  import { keepPage, stepPage } from "./gallery.js";
12
+ import './front-card.css';
12
13
  /**
13
14
  * The arrow inside a gallery's round button, drawn, not typed: a text ‹ › sits wherever its font
14
15
  * puts the glyph in its line box (1.25 px low and 0.4 px aside, measured on Linux; it moves with the
@@ -1 +1,2 @@
1
+ import './front-card.css';
1
2
  export declare function PatchNotesCard(): import("react").JSX.Element;
@@ -7,6 +7,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
7
7
  import { Fragment, useLayoutEffect, useRef, useState } from 'react';
8
8
  import { Modal } from "../components/Modal.js";
9
9
  import { creditRuns, fittingBullets, newestFirst, parseReleaseNotes, versionOfPath } from "./patchNotes.js";
10
+ import './front-card.css';
10
11
  // Vite bundles every match eagerly, as raw text, at build time (no server round trip for the notes).
11
12
  const RELEASE_FILES = import.meta.glob('../../../../docs/releases/v*.md', { query: '?raw', eager: true, import: 'default' });
12
13
  /** Every release this build shipped with, parsed, newest first. Computed once per build, not per render. */
@@ -0,0 +1,233 @@
1
+ /*
2
+ * A front card (`PatchNotesCard.tsx`, and a game's own cards around a `Gallery`): a raised surface
3
+ * with a 3px top border by kind, a head, its body and a foot with its one action. The game's own
4
+ * kinds (`front-card--<kind>`) set the border's colour, and its own rows go in its own sheet.
5
+ * Theme tokens only.
6
+ */
7
+
8
+ .front-card {
9
+ display: flex;
10
+ flex-direction: column;
11
+ gap: 8px;
12
+ min-height: 0;
13
+ overflow: hidden;
14
+ background: var(--color-bg-card);
15
+ border: 1px solid var(--color-border);
16
+ border-top: 3px solid var(--color-border);
17
+ border-radius: var(--hdk-radius-lg);
18
+ padding: 14px;
19
+ }
20
+
21
+ .front-card--patch-notes {
22
+ border-top-color: var(--color-primary);
23
+ }
24
+
25
+ .front-card__head {
26
+ display: flex;
27
+ align-items: baseline;
28
+ justify-content: space-between;
29
+ gap: 8px;
30
+ }
31
+
32
+ .front-card__title {
33
+ margin: 0;
34
+ font-size: 15px;
35
+ }
36
+
37
+ .front-card__version {
38
+ font-size: 12px;
39
+ color: var(--color-text-secondary);
40
+ }
41
+
42
+ .front-card__empty {
43
+ margin: 0;
44
+ color: var(--color-text-secondary);
45
+ font-size: 13px;
46
+ }
47
+
48
+ .front-card__release-title {
49
+ margin: 0;
50
+ font-size: 15px;
51
+ font-weight: 600;
52
+ }
53
+
54
+ .front-card__bullets {
55
+ margin: 0;
56
+ padding-left: 18px;
57
+ font-size: 12px;
58
+ color: var(--color-text-secondary);
59
+ overflow: hidden;
60
+ flex: 1 1 auto;
61
+ }
62
+
63
+ .front-card__foot {
64
+ display: flex;
65
+ align-items: center;
66
+ justify-content: space-between;
67
+ gap: 10px;
68
+ margin-top: auto;
69
+ }
70
+
71
+ /*
72
+ * A card's one action ("Read all", a game's own link drawn as one), right-aligned, in the theme's
73
+ * primary: as text it is mixed 35% toward the ink, which keeps the hue and stays readable on a card.
74
+ */
75
+ .front-card__more {
76
+ margin-left: auto;
77
+ display: inline-flex;
78
+ align-items: center;
79
+ text-decoration: none;
80
+ color: color-mix(in srgb, var(--color-primary) 35%, var(--color-text));
81
+ border-color: var(--color-primary);
82
+ cursor: pointer;
83
+ }
84
+
85
+ .front-card__more:hover,
86
+ .front-card__more:focus-visible {
87
+ background: var(--color-primary);
88
+ color: var(--color-on-primary);
89
+ }
90
+
91
+ /* The full notes, in `../components/Modal.tsx`: every release, newest first. */
92
+ .patch-notes {
93
+ display: flex;
94
+ flex-direction: column;
95
+ gap: 18px;
96
+ }
97
+
98
+ .patch-notes__release + .patch-notes__release {
99
+ padding-top: 18px;
100
+ border-top: 1px solid var(--color-border);
101
+ }
102
+
103
+ .patch-notes__title {
104
+ display: flex;
105
+ align-items: baseline;
106
+ gap: 10px;
107
+ margin: 0;
108
+ font-size: 15px;
109
+ }
110
+
111
+ .patch-notes__version {
112
+ font-size: 12px;
113
+ font-weight: 400;
114
+ color: var(--color-text-secondary);
115
+ }
116
+
117
+ .patch-notes__summary {
118
+ margin: 6px 0 0;
119
+ font-size: 13px;
120
+ color: var(--color-text-secondary);
121
+ }
122
+
123
+ .patch-notes__section {
124
+ margin: 12px 0 4px;
125
+ font-size: 12px;
126
+ text-transform: uppercase;
127
+ letter-spacing: 0.04em;
128
+ color: var(--color-text-secondary);
129
+ }
130
+
131
+ .patch-notes__bullets {
132
+ margin: 0;
133
+ padding-left: 18px;
134
+ font-size: 13px;
135
+ line-height: 1.45;
136
+ color: var(--color-text-secondary);
137
+ }
138
+
139
+ .patch-notes__bullets li + li {
140
+ margin-top: 4px;
141
+ }
142
+
143
+ .patch-notes__bullets strong {
144
+ color: var(--color-text);
145
+ }
146
+
147
+ /* A credited name, marked as the Discord post marks it: bold, italic, underlined. */
148
+ .patch-notes__credit {
149
+ color: var(--color-text);
150
+ font-weight: 700;
151
+ font-style: italic;
152
+ text-decoration: underline;
153
+ }
154
+
155
+ /*
156
+ * A card as a manual gallery (`Gallery.tsx`): the arrows in its head, the page between, the dots
157
+ * in its foot. A page fills what the card has left and scrolls inside itself, never the card.
158
+ */
159
+ .gallery__arrows {
160
+ display: inline-flex;
161
+ gap: 4px;
162
+ margin-left: auto;
163
+ }
164
+
165
+ .gallery__arrow {
166
+ width: 26px;
167
+ height: 26px;
168
+ display: inline-flex;
169
+ align-items: center;
170
+ justify-content: center;
171
+ padding: 0;
172
+ color: var(--color-text-secondary);
173
+ background: transparent;
174
+ border: 1px solid var(--color-border);
175
+ border-radius: 999px;
176
+ cursor: pointer;
177
+ }
178
+
179
+ .gallery__chevron {
180
+ width: 14px;
181
+ height: 14px;
182
+ fill: none;
183
+ stroke: currentColor;
184
+ stroke-width: 2.25;
185
+ stroke-linecap: round;
186
+ stroke-linejoin: round;
187
+ }
188
+
189
+ .gallery__arrow:hover,
190
+ .gallery__arrow:focus-visible {
191
+ color: var(--color-text);
192
+ border-color: var(--color-text-secondary);
193
+ }
194
+
195
+ .gallery__page {
196
+ display: flex;
197
+ flex-direction: column;
198
+ min-height: 0;
199
+ flex: 1 1 auto;
200
+ overflow: hidden;
201
+ }
202
+
203
+ @media (prefers-reduced-motion: no-preference) {
204
+ .gallery__page {
205
+ animation: gallery-page-in 200ms ease-out;
206
+ }
207
+ }
208
+
209
+ @keyframes gallery-page-in {
210
+ from {
211
+ opacity: 0;
212
+ transform: translateX(8px);
213
+ }
214
+ }
215
+
216
+ .gallery__dots {
217
+ display: inline-flex;
218
+ gap: 6px;
219
+ }
220
+
221
+ .gallery__dot {
222
+ width: 8px;
223
+ height: 8px;
224
+ padding: 0;
225
+ border: 0;
226
+ border-radius: 999px;
227
+ background: var(--color-border);
228
+ cursor: pointer;
229
+ }
230
+
231
+ .gallery__dot[aria-current='true'] {
232
+ background: var(--color-text-secondary);
233
+ }
@@ -0,0 +1,60 @@
1
+ import type { Point } from '@wolffm/ui-shell/motion';
2
+ /**
3
+ * How far the pointer must travel before a press is a DRAG (or a box-draw) rather than a click: every
4
+ * press-drag on the table and in a prompt, and the drift that cancels a long-press. Below it the
5
+ * element's own button handles the click.
6
+ */
7
+ export declare const DRAG_SLOP_PX = 6;
8
+ /** Whether the pointer has travelled from `press` to `at` far enough to be a drag: `px` away or further. */
9
+ export declare function pastSlop(press: Point, at: Point, px?: number): boolean;
10
+ /**
11
+ * `pastSlop` for a touch press the browser may pan sideways (`touch-action: pan-x`, a hand carousel): it
12
+ * becomes the board's drag only once it is past the slop AND upward AND more vertical than horizontal.
13
+ * Anything else is the browser's pan to take, with a `pointercancel`.
14
+ */
15
+ export declare function pastSlopUpward(press: Point, at: Point): boolean;
16
+ /**
17
+ * The same for a card in a sideways-panning row: past the slop and more vertical than horizontal, up or
18
+ * down — what the browser itself leaves a `pan-x` element, so a card carried toward a target off to its
19
+ * side is still the board's. Only a hand card must go up (it plays).
20
+ */
21
+ export declare function pastSlopAcross(press: Point, at: Point): boolean;
22
+ /** A press by a finger or a pen: the browser may pan it, and no box is ever drawn by one. */
23
+ export declare function byFinger(event: PointerEvent): boolean;
24
+ /**
25
+ * Whether the browser may pan a touch press on `node` sideways: the nearest element at or above it that
26
+ * sets a `touch-action` names `pan-x` — a sideways row's card, or the row itself between its cards.
27
+ */
28
+ export declare function pansSideways(node: EventTarget | null): boolean;
29
+ /**
30
+ * The native `click` a resolved press leaves behind, swallowed once: `arm` it
31
+ * when a press is claimed, `reset` it at the top of every fresh press (a press
32
+ * that never produced a click must not eat an unrelated later one), and hang
33
+ * `swallow` as a CAPTURE-phase click listener, so it runs before React's own
34
+ * delegated handler — and the element's `onClick` — ever sees the click.
35
+ *
36
+ * Only a pointer's click is a press's own (`detail` ≥ 1). A drag that ends over
37
+ * another element leaves no click, so the latch can stay armed until the next
38
+ * press; a keyboard press or a programmatic click (`detail` 0) in that gap is
39
+ * never the drag's, and goes through.
40
+ */
41
+ export interface ClickLatch {
42
+ /** `by`: the branch that claimed the press, said again when its click is swallowed. */
43
+ arm(by: string): void;
44
+ reset(): void;
45
+ /** The branch whose click this swallowed, or null when it let the click through. */
46
+ swallow(event: Pick<MouseEvent, 'preventDefault' | 'stopPropagation' | 'detail'>): string | null;
47
+ }
48
+ export declare function clickLatch(): ClickLatch;
49
+ /**
50
+ * What is under a pointer's CURRENT position, for a move or a release listened for on `window` — never a
51
+ * press, whose own target already is where it is.
52
+ *
53
+ * A mouse's events retarget as it moves, so the event's own target is the element under it. A touch's
54
+ * synthesized pointer events do not: every event of one touch names the element it first hit, so a touch's
55
+ * move and release would always read as over the press's own origin. `hitAt` in `scope` is the real hit
56
+ * test a mouse's retargeting gives for free; only touch needs it asked for.
57
+ */
58
+ export declare function retarget(scope: Document | ShadowRoot, event: PointerEvent): EventTarget | null;
59
+ /** Install the rule on `canvas`; returns its teardown. */
60
+ export declare function guardTextSelection(canvas: HTMLElement): () => void;
package/dist/input.js ADDED
@@ -0,0 +1,125 @@
1
+ import { eventTarget, hitAt } from "./dom.js";
2
+ /**
3
+ * How far the pointer must travel before a press is a DRAG (or a box-draw) rather than a click: every
4
+ * press-drag on the table and in a prompt, and the drift that cancels a long-press. Below it the
5
+ * element's own button handles the click.
6
+ */
7
+ export const DRAG_SLOP_PX = 6;
8
+ /** Whether the pointer has travelled from `press` to `at` far enough to be a drag: `px` away or further. */
9
+ export function pastSlop(press, at, px = DRAG_SLOP_PX) {
10
+ return Math.hypot(at.x - press.x, at.y - press.y) >= px;
11
+ }
12
+ /**
13
+ * `pastSlop` for a touch press the browser may pan sideways (`touch-action: pan-x`, a hand carousel): it
14
+ * becomes the board's drag only once it is past the slop AND upward AND more vertical than horizontal.
15
+ * Anything else is the browser's pan to take, with a `pointercancel`.
16
+ */
17
+ export function pastSlopUpward(press, at) {
18
+ const up = press.y - at.y;
19
+ return pastSlop(press, at) && up > 0 && up > Math.abs(at.x - press.x);
20
+ }
21
+ /**
22
+ * The same for a card in a sideways-panning row: past the slop and more vertical than horizontal, up or
23
+ * down — what the browser itself leaves a `pan-x` element, so a card carried toward a target off to its
24
+ * side is still the board's. Only a hand card must go up (it plays).
25
+ */
26
+ export function pastSlopAcross(press, at) {
27
+ return pastSlop(press, at) && Math.abs(press.y - at.y) >= Math.abs(at.x - press.x);
28
+ }
29
+ /** A press by a finger or a pen: the browser may pan it, and no box is ever drawn by one. */
30
+ export function byFinger(event) {
31
+ return event.pointerType === 'touch' || event.pointerType === 'pen';
32
+ }
33
+ /**
34
+ * Whether the browser may pan a touch press on `node` sideways: the nearest element at or above it that
35
+ * sets a `touch-action` names `pan-x` — a sideways row's card, or the row itself between its cards.
36
+ */
37
+ export function pansSideways(node) {
38
+ for (let el = node instanceof Element ? node : null; el !== null; el = el.parentElement) {
39
+ const action = getComputedStyle(el).touchAction;
40
+ if (action !== '' && action !== 'auto')
41
+ return action.includes('pan-x');
42
+ }
43
+ return false;
44
+ }
45
+ export function clickLatch() {
46
+ let armed = null;
47
+ return {
48
+ arm: (by) => {
49
+ armed = by;
50
+ },
51
+ reset: () => {
52
+ armed = null;
53
+ },
54
+ swallow: (event) => {
55
+ const by = armed;
56
+ if (by === null || event.detail === 0)
57
+ return null;
58
+ armed = null;
59
+ event.preventDefault();
60
+ event.stopPropagation();
61
+ return by;
62
+ },
63
+ };
64
+ }
65
+ /**
66
+ * What is under a pointer's CURRENT position, for a move or a release listened for on `window` — never a
67
+ * press, whose own target already is where it is.
68
+ *
69
+ * A mouse's events retarget as it moves, so the event's own target is the element under it. A touch's
70
+ * synthesized pointer events do not: every event of one touch names the element it first hit, so a touch's
71
+ * move and release would always read as over the press's own origin. `hitAt` in `scope` is the real hit
72
+ * test a mouse's retargeting gives for free; only touch needs it asked for.
73
+ */
74
+ export function retarget(scope, event) {
75
+ if (event.pointerType !== 'touch')
76
+ return eventTarget(event);
77
+ return hitAt(scope, event.clientX, event.clientY) ?? eventTarget(event);
78
+ }
79
+ /*
80
+ * A press on the board selects text only when it lands ON text. A press on the board's empty space is
81
+ * one no gesture claims, so the browser's own default runs: it anchors a selection at the nearest text
82
+ * and a drag extends it across the names and anything else in the way. A `user-select: none` written once
83
+ * a gesture passes the slop is too late, and a static one on the whole board would also take a name's
84
+ * own selection away.
85
+ *
86
+ * So the selection is refused where it begins: `selectstart`, the event the browser fires before it
87
+ * starts one, is cancelled unless the press that began it landed inside a run of text (or in a text
88
+ * field). Every press on the board, claimed by a gesture or not, is held to the same rule.
89
+ */
90
+ /** The press point is over a text node's own glyph boxes, not merely nearest to one. */
91
+ function pointOnText(doc, x, y) {
92
+ const node = doc.caretPositionFromPoint?.(x, y)?.offsetNode ?? doc.caretRangeFromPoint?.(x, y)?.startContainer ?? null;
93
+ if (node === null || node.nodeType !== Node.TEXT_NODE)
94
+ return false;
95
+ const range = doc.createRange();
96
+ range.selectNodeContents(node);
97
+ return Array.from(range.getClientRects()).some((b) => x >= b.left && x <= b.right && y >= b.top && y <= b.bottom);
98
+ }
99
+ const isTextField = (target) => target instanceof Element && target.closest('input, textarea, [contenteditable]:not([contenteditable="false"])') !== null;
100
+ /** Install the rule on `canvas`; returns its teardown. */
101
+ export function guardTextSelection(canvas) {
102
+ const view = canvas.ownerDocument.defaultView ?? window;
103
+ /** Whether the press now held may start a selection; `null` while no press is held. */
104
+ let mayselect = null;
105
+ const onDown = (event) => {
106
+ mayselect = isTextField(event.target) || pointOnText(canvas.ownerDocument, event.clientX, event.clientY);
107
+ };
108
+ const onUp = () => {
109
+ mayselect = null;
110
+ };
111
+ const onSelectStart = (event) => {
112
+ if (mayselect === false)
113
+ event.preventDefault();
114
+ };
115
+ canvas.addEventListener('pointerdown', onDown, true);
116
+ canvas.addEventListener('selectstart', onSelectStart);
117
+ view.addEventListener('pointerup', onUp, true);
118
+ view.addEventListener('pointercancel', onUp, true);
119
+ return () => {
120
+ canvas.removeEventListener('pointerdown', onDown, true);
121
+ canvas.removeEventListener('selectstart', onSelectStart);
122
+ view.removeEventListener('pointerup', onUp, true);
123
+ view.removeEventListener('pointercancel', onUp, true);
124
+ };
125
+ }
@@ -1,5 +1,107 @@
1
- /* Leave, first in the room's head row, the same size as Close and Room settings beside it
2
- (`.room-close`, Magic's own sheet). Colour and hover are `.ct-action`'s. */
1
+ /*
2
+ * What the room screen draws inside the host's shell (`shell`, `shell__head`, `shell__title` and
3
+ * `shell__tools` are the host's): its body, its password gate, the title's skeleton and Leave.
4
+ */
5
+
6
+ /*
7
+ * The room is rows, not columns, and it scrolls as one: each card a row at its content height, the
8
+ * host's fitted shell the one box that scrolls.
9
+ */
10
+ .room-screen {
11
+ display: flex;
12
+ flex-direction: column;
13
+ align-items: stretch;
14
+ gap: 16px;
15
+ }
16
+
17
+ /* A room holding a bundled game (`BundleSlot`) gives it the rest of the screen, down to the
18
+ window's bottom: the game sizes its board to that box. Every other room stays rows at their
19
+ content height. */
20
+ .room-screen:has(> .room-bundle-slot) {
21
+ flex: 1 0 auto;
22
+ }
23
+
24
+ /* The locked-room prompt. A direct link to a room you have the password for
25
+ is a valid way in: the screen asks rather than sending you to the list. */
26
+ .room-screen__locked {
27
+ display: flex;
28
+ flex-wrap: wrap;
29
+ align-items: center;
30
+ gap: 10px;
31
+ margin: 16px 0;
32
+ padding: 16px;
33
+ border: 1px solid var(--color-border);
34
+ border-radius: var(--hdk-radius-lg);
35
+ background: var(--color-bg-card);
36
+ }
37
+
38
+ .room-screen__locked p {
39
+ flex: 1 1 100%;
40
+ margin: 0;
41
+ }
42
+
43
+ .room-screen__locked input {
44
+ padding: 7px 10px;
45
+ border: 1px solid var(--color-border-light);
46
+ border-radius: var(--hdk-radius);
47
+ background: var(--color-bg-alt);
48
+ color: var(--color-text);
49
+ font: inherit;
50
+ }
51
+
52
+ .room-screen__locked button {
53
+ padding: 7px 16px;
54
+ border: 1px solid var(--color-border-light);
55
+ border-radius: var(--hdk-radius);
56
+ background: var(--color-bg-hover);
57
+ color: var(--color-text);
58
+ font: inherit;
59
+ cursor: pointer;
60
+ }
61
+
62
+ .room-screen__locked button:disabled {
63
+ opacity: 0.45;
64
+ cursor: default;
65
+ }
66
+
67
+ /* A placeholder takes the box of the thing it stands for, so the loaded room lands on the same
68
+ lines; a slow sheen says it is coming. A game's own placeholders add their sizes. */
69
+ .skeleton {
70
+ display: block;
71
+ border-radius: var(--hdk-radius);
72
+ background: linear-gradient(
73
+ 90deg,
74
+ var(--color-bg-alt) 0%,
75
+ var(--color-bg-hover) 50%,
76
+ var(--color-bg-alt) 100%
77
+ );
78
+ background-size: 200% 100%;
79
+ animation: skeleton-sheen 1.6s ease-in-out infinite;
80
+ }
81
+
82
+ @keyframes skeleton-sheen {
83
+ from {
84
+ background-position: 100% 0;
85
+ }
86
+ to {
87
+ background-position: -100% 0;
88
+ }
89
+ }
90
+
91
+ @media (prefers-reduced-motion: reduce) {
92
+ .skeleton {
93
+ animation: none;
94
+ }
95
+ }
96
+
97
+ /* The title's line box: 28px type at the UA's normal line height. */
98
+ .skeleton--title {
99
+ width: min(16rem, 70%);
100
+ height: 34px;
101
+ }
102
+
103
+ /* Leave, first in the room's head row, the same size as the game's own tools beside it.
104
+ Colour and hover are `.ct-action`'s. */
3
105
  .room-leave {
4
106
  flex: none;
5
107
  align-self: flex-start;
@@ -5,7 +5,7 @@ import './RoomShell.css';
5
5
  export function RoomShell({ shellRef, dataMembers, roomTitle, titleAside, settled = false, leave, leaveAsks, headerTools = null, streamed = false, streamedSubLine = null, resolved, pending = false, pendingBody = null, streamedBody = null, locked = null, password = '', onPasswordChange, onPasswordSubmit, roomMissingMessage = null, live = false, children, }) {
6
6
  useRoomLeave(leaveAsks === undefined ? (leave ?? null) : null);
7
7
  const home = useRoomHome();
8
- return (_jsxs("div", { ref: shellRef, className: "shell shell--fit", "data-testid": "constructed", "data-members": dataMembers, "data-live": live ? 'true' : undefined, children: [!live && (_jsxs("header", { className: "shell__head", children: [roomTitle !== undefined ? (_jsx("h1", { className: "shell__title", "data-testid": "room-name", children: roomTitle })) : settled ? (_jsx("h1", { className: "shell__title", children: "Room" })) : (_jsx("span", { className: "skeleton skeleton--title" })), roomTitle !== undefined && titleAside, _jsxs("div", { className: "shell__tools", children: [leave !== undefined && home !== null && _jsx(RoomLeave, { leave: leave, asks: leaveAsks, home: home }), headerTools] }), resolved && streamed && streamedSubLine] })), _jsxs("main", { className: "lobby lobby--room", "aria-busy": pending ? 'true' : undefined, children: [pending && pendingBody, streamed && streamedBody, !streamed && resolved && (_jsxs(_Fragment, { children: [locked !== null && (_jsxs("form", { className: "lobby__locked ct-panel", "data-testid": "room-locked", onSubmit: (e) => {
8
+ return (_jsxs("div", { ref: shellRef, className: "shell shell--fit", "data-testid": "constructed", "data-members": dataMembers, "data-live": live ? 'true' : undefined, children: [!live && (_jsxs("header", { className: "shell__head", children: [roomTitle !== undefined ? (_jsx("h1", { className: "shell__title", "data-testid": "room-name", children: roomTitle })) : settled ? (_jsx("h1", { className: "shell__title", children: "Room" })) : (_jsx("span", { className: "skeleton skeleton--title" })), roomTitle !== undefined && titleAside, _jsxs("div", { className: "shell__tools", children: [leave !== undefined && home !== null && _jsx(RoomLeave, { leave: leave, asks: leaveAsks, home: home }), headerTools] }), resolved && streamed && streamedSubLine] })), _jsxs("main", { className: "room-screen", "aria-busy": pending ? 'true' : undefined, children: [pending && pendingBody, streamed && streamedBody, !streamed && resolved && (_jsxs(_Fragment, { children: [locked !== null && (_jsxs("form", { className: "room-screen__locked ct-panel", "data-testid": "room-locked", onSubmit: (e) => {
9
9
  e.preventDefault();
10
10
  onPasswordSubmit?.();
11
11
  }, children: [_jsx("p", { role: "alert", children: locked === 'need' ? 'This room needs a password.' : locked === 'wrong' ? 'Wrong password.' : 'Too many attempts.' }), _jsx("label", { htmlFor: "room-password", children: "Password" }), _jsx("input", { id: "room-password", "data-testid": "room-password", type: "password", autoComplete: "off", value: password, onChange: (e) => onPasswordChange?.(e.target.value) }), _jsx("button", { type: "submit", "data-testid": "room-password-submit", disabled: locked === 'rate-limited', children: "Join" })] })), locked === null && roomMissingMessage !== null && (_jsx("p", { className: "ct-error", role: "alert", "data-testid": "room-missing", children: roomMissingMessage })), children] }))] })] }));
@@ -0,0 +1,43 @@
1
+ import type { Point } from '@wolffm/ui-shell/motion';
2
+ /**
3
+ * A hand on a dragged thing: where it is drawn from (`from`, at `since`), its latest point (`to`), and
4
+ * how long it takes to get there (`ms`). Once there, a relayed hand keeps moving along `vx`/`vy` (px per
5
+ * ms, measured from its last two points) for as long again as the catch-up took, instead of sitting
6
+ * still at a point that is already a relay stale. `vx`/`vy` are 0 for this screen's own hand, which
7
+ * never needs them, and for one with fewer than two points yet.
8
+ *
9
+ * Both halves are short on purpose: projecting a measured velocity for a whole relay interval overshoots
10
+ * whenever one relay arrives later than the last (a jittered network, never a metronome), and the drawn
11
+ * thing turns back on itself.
12
+ */
13
+ export interface Hand {
14
+ from: Point;
15
+ to: Point;
16
+ since: number;
17
+ ms: number;
18
+ vx: number;
19
+ vy: number;
20
+ }
21
+ /** The longest a hand's leg lasts, however long it was since its last point: a hand still for this long has stopped, not slowed. Also the ceiling on a stalled or dropped sender's thing running away. */
22
+ export declare const MAX_LEG_MS = 200;
23
+ /**
24
+ * A hand's leg to its new point: `gap`, the time since its last one, held between `floor` and
25
+ * `MAX_LEG_MS`. On a slow host, where points land 100-170ms apart, a hand then moves all the way to its
26
+ * next point instead of bursting there and standing still: two hands pulling opposite ways in bursts
27
+ * take turns, and the thing between them zigzags.
28
+ */
29
+ export declare const legMs: (gap: number, floor: number) => number;
30
+ export declare const lerp: (a: Point, b: Point, t: number) => Point;
31
+ /** How far through an `ms`-long leg that began at `since` `now` is, from 0 to 1; a leg of no length is done. */
32
+ export declare const progress: (now: number, since: number, ms: number) => number;
33
+ /**
34
+ * Where a hand is drawn at `now`: easing to its latest point over `ms`; once there, extrapolating
35
+ * along `vx`/`vy` for as long again as the catch-up took, so a relayed hand's drawn point keeps
36
+ * tracking the dragging screen's path between relays instead of waiting at the last one it heard.
37
+ * `ease` false (reduced motion): at its latest point.
38
+ */
39
+ export declare function handAt(hand: Hand, now: number, ease: boolean): Point;
40
+ /** Where the hands on a thing put it: between them. Null with no hand on it. */
41
+ export declare function handsPoint(held: ReadonlyMap<string, Hand>, now: number, ease: boolean): Point | null;
42
+ /** Whether `h` is still moving on its own: easing to its latest point, or (a relayed hand) still extrapolating past it. */
43
+ export declare const handMoving: (h: Hand, now: number) => boolean;
@@ -0,0 +1,38 @@
1
+ /** The longest a hand's leg lasts, however long it was since its last point: a hand still for this long has stopped, not slowed. Also the ceiling on a stalled or dropped sender's thing running away. */
2
+ export const MAX_LEG_MS = 200;
3
+ /**
4
+ * A hand's leg to its new point: `gap`, the time since its last one, held between `floor` and
5
+ * `MAX_LEG_MS`. On a slow host, where points land 100-170ms apart, a hand then moves all the way to its
6
+ * next point instead of bursting there and standing still: two hands pulling opposite ways in bursts
7
+ * take turns, and the thing between them zigzags.
8
+ */
9
+ export const legMs = (gap, floor) => Math.min(MAX_LEG_MS, Math.max(floor, gap));
10
+ export const lerp = (a, b, t) => ({ x: a.x + (b.x - a.x) * t, y: a.y + (b.y - a.y) * t });
11
+ /** How far through an `ms`-long leg that began at `since` `now` is, from 0 to 1; a leg of no length is done. */
12
+ export const progress = (now, since, ms) => (ms <= 0 ? 1 : Math.min(1, Math.max(0, (now - since) / ms)));
13
+ /**
14
+ * Where a hand is drawn at `now`: easing to its latest point over `ms`; once there, extrapolating
15
+ * along `vx`/`vy` for as long again as the catch-up took, so a relayed hand's drawn point keeps
16
+ * tracking the dragging screen's path between relays instead of waiting at the last one it heard.
17
+ * `ease` false (reduced motion): at its latest point.
18
+ */
19
+ export function handAt(hand, now, ease) {
20
+ if (!ease)
21
+ return hand.to;
22
+ const t = progress(now, hand.since, hand.ms);
23
+ if (t < 1)
24
+ return lerp(hand.from, hand.to, t);
25
+ if (hand.vx === 0 && hand.vy === 0)
26
+ return hand.to;
27
+ const aheadMs = Math.min(now - (hand.since + hand.ms), hand.ms);
28
+ return { x: hand.to.x + hand.vx * aheadMs, y: hand.to.y + hand.vy * aheadMs };
29
+ }
30
+ /** Where the hands on a thing put it: between them. Null with no hand on it. */
31
+ export function handsPoint(held, now, ease) {
32
+ const points = [...held.values()].map((h) => handAt(h, now, ease));
33
+ if (points.length === 0)
34
+ return null;
35
+ return { x: points.reduce((sum, p) => sum + p.x, 0) / points.length, y: points.reduce((sum, p) => sum + p.y, 0) / points.length };
36
+ }
37
+ /** Whether `h` is still moving on its own: easing to its latest point, or (a relayed hand) still extrapolating past it. */
38
+ export const handMoving = (h, now) => now - h.since < h.ms || ((h.vx !== 0 || h.vy !== 0) && now - (h.since + h.ms) < h.ms);
@@ -0,0 +1,77 @@
1
+ import type { Point, Rect } from '@wolffm/ui-shell/motion';
2
+ /** How far inside its bounds a tile stays (`within`). */
3
+ export declare const EDGE_GAP = 6;
4
+ /**
5
+ * A tile's own small, stable nudge off its spot, so tiles asked onto one spot do not stack exactly:
6
+ * seeded by its id, so both screens and every repaint agree, at most a fifth of the tile's width and a
7
+ * quarter of its height either way.
8
+ */
9
+ export declare function scatter(id: number, tile: {
10
+ width: number;
11
+ height: number;
12
+ }): {
13
+ dx: number;
14
+ dy: number;
15
+ };
16
+ /** `at`, moved just enough to keep a `tile` centred on it inside `bounds`, `EDGE_GAP` in from its edges. */
17
+ export declare function within(at: Point, tile: {
18
+ width: number;
19
+ height: number;
20
+ }, bounds: Rect): Point;
21
+ /**
22
+ * The width at which a text tile is as near square as its text allows. The tile is `fixed` high
23
+ * before its text (an art band and the text's own padding) plus the text's lines, whose area stays
24
+ * about the same at any width: `h(w) = fixed + area / (w - padX)`. `w = h(w)` is a quadratic; its
25
+ * larger root, held within `[min, max]` — never narrower than a card, never wider than the cap.
26
+ */
27
+ export declare function squareWidth(area: number, fixed: number, padX: number, min: number, max: number): number;
28
+ /**
29
+ * Room for a stack of tiles. Each asks for a spot (`want`) at its own size. The oldest is settled first
30
+ * and keeps its spot; each newer one bumps off the tiles settled before it: only their CORES collide
31
+ * (`STACK_CORE`, the inner half of a tile's area), so neighbours overlap at their edges. A bumped tile
32
+ * moves the shortest way to a free spot, starting from the push straight away from what it hit, turned
33
+ * by up to `STACK_JITTER` either way by its own `seed`, so a spread looks thrown rather than gridded, and
34
+ * the same asks draw the same layout. With no free spot left inside `bounds` it piles on top, where the
35
+ * tiles under it are thinnest: no tile is ever refused a place or shrunk. A `pinned` ask (one being
36
+ * dragged) is settled before all of them, exactly where it is. No tile's whole box enters a `keepOut`
37
+ * box. Deterministic: the same asks always settle the same way, on both screens.
38
+ *
39
+ * An ask that `yields` (a tile nobody put anywhere) keeps its whole box, and the reach of its hover
40
+ * (`HOVER_REACH`), off every `clickable` box: what the viewer can click. That outranks the stack's own
41
+ * crowding, so with no clear room left the yielding tiles pile on each other before one covers
42
+ * something clickable; only a table with no clear room at all lets one, where it covers least. A box
43
+ * nobody can click is no obstacle.
44
+ */
45
+ export interface StackAsk {
46
+ readonly want: Point;
47
+ readonly width: number;
48
+ readonly height: number;
49
+ readonly seed: number;
50
+ readonly pinned?: boolean;
51
+ readonly yields?: boolean;
52
+ }
53
+ /** The share of a stack tile's width and of its height that collides: the inner half of its area. */
54
+ export declare const STACK_CORE: number;
55
+ /** How far a bumped tile's direction turns off the straight push, either way, in radians (about 20°). */
56
+ export declare const STACK_JITTER = 0.35;
57
+ /**
58
+ * How far a hovering tile's drawn box reaches past its place: a bob of 5px and a drift of 3px, the
59
+ * turn's corner swing on a tile three cards wide, and a hair. A yielding tile keeps this much further
60
+ * off a clickable box, so its hover never carries it over one.
61
+ */
62
+ export declare const HOVER_REACH = 10;
63
+ /** `asks` is in stack order, top first — the order `view.stack` is in. */
64
+ export declare function settleStack(asks: readonly StackAsk[], bounds: Rect, keepOut?: readonly Rect[], clickable?: readonly Rect[]): Point[];
65
+ /**
66
+ * The nearest spot to an ask's own where it is drawn clear of every `clickable` box, ignoring the rest
67
+ * of the stack: a yielding tile is first shown here, so it never appears over something clickable and
68
+ * slides from there only to make room for the other tiles (`settleStack`). Any other ask keeps its own.
69
+ */
70
+ export declare function clearOfClickable(ask: StackAsk, bounds: Rect, keepOut: readonly Rect[], clickable: readonly Rect[]): Point;
71
+ /**
72
+ * Whether a `width` × `height` tile sliding in a straight line from `from` to `to`, its easing's overshoot
73
+ * and its hover's reach included, passes over any of `boxes`: both ends may be clear of a box and the way
74
+ * between them not (a corner cut on the way to its room). Each box is grown by half the tile and the reach,
75
+ * and the path's centre line is tested against it.
76
+ */
77
+ export declare function slideCrosses(from: Point, to: Point, width: number, height: number, boxes: readonly Rect[]): boolean;
@@ -0,0 +1,203 @@
1
+ /*
2
+ * Settling N tiles in a box, the same on every screen: each clear of keep-out boxes, of what can be
3
+ * clicked and of each other, piling where there is no room left (`settleStack`); a tile's seeded nudge
4
+ * off its spot (`scatter`); the near-square width of a text tile (`squareWidth`); and whether a slide
5
+ * between two spots crosses a box (`slideCrosses`). DOM-free: every box is client coordinates, as numbers.
6
+ */
7
+ /** How far inside its bounds a tile stays (`within`). */
8
+ export const EDGE_GAP = 6;
9
+ /** A stream of numbers in [0, 1) seeded by `id`: the same id draws the same numbers on both screens and on every repaint. */
10
+ function seeded(id) {
11
+ let h = (Math.abs(id) * 2654435761) >>> 0;
12
+ return () => {
13
+ h ^= h << 13;
14
+ h ^= h >>> 17;
15
+ h ^= h << 5;
16
+ h >>>= 0;
17
+ return h / 0x1_0000_0000;
18
+ };
19
+ }
20
+ /**
21
+ * A tile's own small, stable nudge off its spot, so tiles asked onto one spot do not stack exactly:
22
+ * seeded by its id, so both screens and every repaint agree, at most a fifth of the tile's width and a
23
+ * quarter of its height either way.
24
+ */
25
+ export function scatter(id, tile) {
26
+ const next = seeded(id);
27
+ return { dx: (next() - 0.5) * 0.4 * tile.width, dy: (next() - 0.5) * 0.5 * tile.height };
28
+ }
29
+ /** `at`, moved just enough to keep a `tile` centred on it inside `bounds`, `EDGE_GAP` in from its edges. */
30
+ export function within(at, tile, bounds) {
31
+ const clamp = (v, lo, hi) => Math.min(Math.max(v, lo), Math.max(lo, hi));
32
+ return {
33
+ x: clamp(at.x, bounds.left + EDGE_GAP + tile.width / 2, bounds.right - EDGE_GAP - tile.width / 2),
34
+ y: clamp(at.y, bounds.top + EDGE_GAP + tile.height / 2, bounds.bottom - EDGE_GAP - tile.height / 2),
35
+ };
36
+ }
37
+ /**
38
+ * The width at which a text tile is as near square as its text allows. The tile is `fixed` high
39
+ * before its text (an art band and the text's own padding) plus the text's lines, whose area stays
40
+ * about the same at any width: `h(w) = fixed + area / (w - padX)`. `w = h(w)` is a quadratic; its
41
+ * larger root, held within `[min, max]` — never narrower than a card, never wider than the cap.
42
+ */
43
+ export function squareWidth(area, fixed, padX, min, max) {
44
+ const s = fixed + padX;
45
+ const w = (s + Math.sqrt(s * s - 4 * (padX * fixed - area))) / 2;
46
+ return Math.min(Math.max(w, min), Math.max(min, max));
47
+ }
48
+ /** The share of a stack tile's width and of its height that collides: the inner half of its area. */
49
+ export const STACK_CORE = Math.SQRT1_2;
50
+ /** How far a bumped tile's direction turns off the straight push, either way, in radians (about 20°). */
51
+ export const STACK_JITTER = 0.35;
52
+ /** The directions a bumped tile tries, nearest the push first, and how far apart its tries are, as a share of its core. */
53
+ const SPREAD_RAYS = 24;
54
+ const SPREAD_STEP = 0.2;
55
+ /**
56
+ * How far a hovering tile's drawn box reaches past its place: a bob of 5px and a drift of 3px, the
57
+ * turn's corner swing on a tile three cards wide, and a hair. A yielding tile keeps this much further
58
+ * off a clickable box, so its hover never carries it over one.
59
+ */
60
+ export const HOVER_REACH = 10;
61
+ /** How much of the boxes in `boxes` a `width` × `height` box centred on `p` covers, in px². */
62
+ function covering(p, width, height, boxes) {
63
+ let sum = 0;
64
+ for (const b of boxes) {
65
+ const w = Math.min(p.x + width / 2, b.right) - Math.max(p.x - width / 2, b.left);
66
+ const h = Math.min(p.y + height / 2, b.bottom) - Math.max(p.y - height / 2, b.top);
67
+ if (w > 0.01 && h > 0.01)
68
+ sum += w * h;
69
+ }
70
+ return sum;
71
+ }
72
+ /** How much of `a`'s core the cores in `done` cover, in px². */
73
+ function crowding(a, done) {
74
+ let sum = 0;
75
+ for (const o of done) {
76
+ const w = Math.min(a.x + a.hw, o.x + o.hw) - Math.max(a.x - a.hw, o.x - o.hw);
77
+ const h = Math.min(a.y + a.hh, o.y + o.hh) - Math.max(a.y - a.hh, o.y - o.hh);
78
+ if (w > 0.01 && h > 0.01)
79
+ sum += w * h;
80
+ }
81
+ return sum;
82
+ }
83
+ /** `asks` is in stack order, top first — the order `view.stack` is in. */
84
+ export function settleStack(asks, bounds, keepOut = [], clickable = []) {
85
+ const order = asks.map((_, i) => i).sort((i, j) => Number(asks[j].pinned === true) - Number(asks[i].pinned === true) || j - i);
86
+ const at = new Array(asks.length);
87
+ const done = [];
88
+ for (const i of order) {
89
+ const ask = asks[i];
90
+ const p = ask.pinned === true ? ask.want : spread(ask, bounds, keepOut, done, clickable);
91
+ at[i] = p;
92
+ done.push({ x: p.x, y: p.y, hw: (ask.width * STACK_CORE) / 2, hh: (ask.height * STACK_CORE) / 2 });
93
+ }
94
+ return at;
95
+ }
96
+ /**
97
+ * The nearest spot to an ask's own where it is drawn clear of every `clickable` box, ignoring the rest
98
+ * of the stack: a yielding tile is first shown here, so it never appears over something clickable and
99
+ * slides from there only to make room for the other tiles (`settleStack`). Any other ask keeps its own.
100
+ */
101
+ export function clearOfClickable(ask, bounds, keepOut, clickable) {
102
+ return ask.yields === true && clickable.length > 0 ? spread(ask, bounds, keepOut, [], clickable) : ask.want;
103
+ }
104
+ /** How far past its room a sliding tile's easing carries it (a `cubic-bezier(0.2, 0.8, 0.25, 1.1)` peaks at 1.018). */
105
+ const SLIDE_OVERSHOOT = 0.02;
106
+ /**
107
+ * Whether a `width` × `height` tile sliding in a straight line from `from` to `to`, its easing's overshoot
108
+ * and its hover's reach included, passes over any of `boxes`: both ends may be clear of a box and the way
109
+ * between them not (a corner cut on the way to its room). Each box is grown by half the tile and the reach,
110
+ * and the path's centre line is tested against it.
111
+ */
112
+ export function slideCrosses(from, to, width, height, boxes) {
113
+ const dx = (to.x - from.x) * (1 + SLIDE_OVERSHOOT);
114
+ const dy = (to.y - from.y) * (1 + SLIDE_OVERSHOOT);
115
+ const hw = width / 2 + HOVER_REACH;
116
+ const hh = height / 2 + HOVER_REACH;
117
+ return boxes.some((b) => {
118
+ let enter = 0;
119
+ let exit = 1;
120
+ for (const [p, d, lo, hi] of [
121
+ [from.x, dx, b.left - hw, b.right + hw],
122
+ [from.y, dy, b.top - hh, b.bottom + hh],
123
+ ]) {
124
+ if (Math.abs(d) < 1e-9) {
125
+ if (p <= lo || p >= hi)
126
+ return false;
127
+ continue;
128
+ }
129
+ const a = (lo - p) / d;
130
+ const z = (hi - p) / d;
131
+ enter = Math.max(enter, Math.min(a, z));
132
+ exit = Math.min(exit, Math.max(a, z));
133
+ if (enter >= exit)
134
+ return false;
135
+ }
136
+ return true;
137
+ });
138
+ }
139
+ function spread(ask, bounds, keepOut, done, clickable) {
140
+ const size = { width: ask.width, height: ask.height };
141
+ const hw = (ask.width * STACK_CORE) / 2;
142
+ const hh = (ask.height * STACK_CORE) / 2;
143
+ const start = within(ask.want, size, bounds);
144
+ const allowed = (p) => fits(p, size, bounds) &&
145
+ keepOut.every((k) => p.x + size.width / 2 <= k.left || p.x - size.width / 2 >= k.right || p.y + size.height / 2 <= k.top || p.y - size.height / 2 >= k.bottom);
146
+ const crowd = (p) => crowding({ x: p.x, y: p.y, hw, hh }, done);
147
+ const avoid = ask.yields === true ? clickable : [];
148
+ const reachW = ask.width + 2 * HOVER_REACH;
149
+ const reachH = ask.height + 2 * HOVER_REACH;
150
+ const covers = (p) => (avoid.length === 0 ? 0 : covering(p, reachW, reachH, avoid));
151
+ if (allowed(start) && covers(start) === 0 && crowd(start) === 0)
152
+ return start;
153
+ // The push: straight away from what is in the way (the cores it hits and the cards it must not cover, else the box it must stay out of), turned by its seed.
154
+ let ax = 0;
155
+ let ay = 0;
156
+ for (const o of done) {
157
+ const c = crowding({ x: start.x, y: start.y, hw, hh }, [o]);
158
+ ax += (start.x - o.x) * c;
159
+ ay += (start.y - o.y) * c;
160
+ }
161
+ for (const k of avoid) {
162
+ const c = covering(start, reachW, reachH, [k]);
163
+ ax += (start.x - (k.left + k.right) / 2) * c;
164
+ ay += (start.y - (k.top + k.bottom) / 2) * c;
165
+ }
166
+ if (ax === 0 && ay === 0) {
167
+ for (const k of keepOut) {
168
+ ax += start.x - (k.left + k.right) / 2;
169
+ ay += start.y - (k.top + k.bottom) / 2;
170
+ }
171
+ }
172
+ const next = seeded(ask.seed);
173
+ const turn = (next() * 2 - 1) * STACK_JITTER;
174
+ const push = (ax === 0 && ay === 0 ? next() * 2 * Math.PI : Math.atan2(ay, ax)) + turn;
175
+ const step = Math.max(4, Math.min(hw, hh) * SPREAD_STEP);
176
+ const reach = Math.hypot(bounds.right - bounds.left, bounds.bottom - bounds.top);
177
+ // Where it piles with no free spot: covering the least of what can be clicked, then where the stack is thinnest.
178
+ let pile = allowed(start) ? { p: start, covers: covers(start), crowd: crowd(start) } : null;
179
+ for (let r = step; r <= reach; r += step) {
180
+ for (let k = 0; k < SPREAD_RAYS; k++) {
181
+ // Nearest the push first: 0, +1, −1, +2, −2 … rays off it.
182
+ const off = k % 2 === 0 ? k / 2 : -(k + 1) / 2;
183
+ const a = push + (off * 2 * Math.PI) / SPREAD_RAYS;
184
+ const p = { x: start.x + r * Math.cos(a), y: start.y + r * Math.sin(a) };
185
+ if (!allowed(p))
186
+ continue;
187
+ const v = covers(p);
188
+ if (pile !== null && v > pile.covers + 0.01)
189
+ continue;
190
+ const c = crowd(p);
191
+ if (v === 0 && c === 0)
192
+ return p;
193
+ if (pile === null || v < pile.covers - 0.01 || c < pile.crowd - 0.01)
194
+ pile = { p, covers: v, crowd: c };
195
+ }
196
+ }
197
+ return pile?.p ?? start;
198
+ }
199
+ /** Whether a `tile` centred on `p` lies inside `bounds`, as `within` would keep it. */
200
+ function fits(p, tile, bounds) {
201
+ const q = within(p, tile, bounds);
202
+ return Math.abs(q.x - p.x) < 0.01 && Math.abs(q.y - p.y) < 0.01;
203
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/game-ui",
3
- "version": "0.1.268",
4
- "gitHead": "0521d0d9654680f3a188647dc9122a8c217604e4",
3
+ "version": "0.1.270",
4
+ "gitHead": "e4f7cc3b81941103445c6b9a75a320e660760110",
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.",
@@ -53,8 +53,8 @@
53
53
  "react-dom": "^19.2.8"
54
54
  },
55
55
  "dependencies": {
56
- "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.272",
57
- "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.272",
56
+ "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.274",
57
+ "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.274",
58
58
  "@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.2.4",
59
59
  "@wolffm/rooms-client": "npm:@hadoku/rooms-client@^0.45.159",
60
60
  "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.159",