@hadoku/game-ui 0.1.47 → 0.1.48
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/front/LobbyShell.css +56 -0
- package/dist/front/LobbyShell.d.ts +1 -0
- package/dist/front/LobbyShell.js +6 -1
- package/dist/front/RoomFront.css +663 -0
- package/dist/front/RoomFront.d.ts +26 -16
- package/dist/front/RoomFront.js +10 -14
- package/dist/rooms/feed.d.ts +17 -0
- package/dist/rooms/feed.js +62 -0
- package/dist/rooms/room-core-client.d.ts +69 -0
- package/dist/rooms/room-core-client.js +148 -0
- package/dist/seats/SeatChip.css +256 -0
- package/dist/seats/SeatChip.d.ts +1 -0
- package/dist/seats/SeatChip.js +3 -2
- package/dist/seats/SpectatorRow.js +1 -1
- package/dist/visible.js +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* The seats (`./SeatChip.tsx`'s `SeatList`) and the spectators beside them (`./SpectatorRow.tsx`):
|
|
3
|
+
* a strip of round avatars, each with its label and its own always-visible buttons. Theme tokens
|
|
4
|
+
* only. Colour and hover of a seat's buttons are `.ct-action` (`../components/Button.css`); this
|
|
5
|
+
* sheet sizes them.
|
|
6
|
+
*
|
|
7
|
+
* The defaults are cardtable's pod lobby: a flex row that wraps, and below 560px one row that
|
|
8
|
+
* scrolls sideways on its own (never the page). A game drawing the seats somewhere else — over its
|
|
9
|
+
* board, at its own scale — sets these on any ancestor (bomberman's overlay does):
|
|
10
|
+
*
|
|
11
|
+
* strip --seat-list-gap, -list-justify, -list-align, -list-min-width, -list-margin,
|
|
12
|
+
* --seat-list-narrow-wrap, -narrow-overflow-x, -narrow-overflow-y, -narrow-padding,
|
|
13
|
+
* -narrow-tail (the trailing spacer's `content`)
|
|
14
|
+
* seat --seat-position, -gap, -width, -min-width, -flex, -wrap-position, -wrap-display
|
|
15
|
+
* avatar --seat-avatar-display, -size, -border, -edge, -radius, -bg, -ink, -text, -weight,
|
|
16
|
+
* -overflow, -flex, -fit, -rendering, --seat-ready-ring, --seat-unready-edge
|
|
17
|
+
* inside --seat-img-display, -img-size, -img-border, -img-radius, -img-bg, -img-fit,
|
|
18
|
+
* -img-rendering (the picture and the fallback alike)
|
|
19
|
+
* kinds --seat-kind-display, -kind-cursor, --seat-open-edge, -open-ink, -open-bg, --seat-closed-bg, -closed-ink, -closed-edge,
|
|
20
|
+
* --seat-ai-bg, -ai-ink, -ai-edge-style, -ai-opacity, -ai-mark-size
|
|
21
|
+
* crown --seat-crown-top, -crown-left, -crown-right, -crown-size, -crown-padding,
|
|
22
|
+
* -crown-radius, -crown-bg, -crown-fill, -crown-ink, -crown-filter, -crown-transform
|
|
23
|
+
* label --seat-label-text, -label-weight, -label-ink, -label-max, -label-shadow,
|
|
24
|
+
* --seat-mine-label-ink
|
|
25
|
+
* actions --seat-actions-gap, -actions-wrap, -actions-justify, --seat-action-* (size and paint)
|
|
26
|
+
* heading --seat-side-align, -side-gap, -side-margin, --seat-heading-*
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
.pod-seats {
|
|
30
|
+
display: flex;
|
|
31
|
+
flex-wrap: wrap;
|
|
32
|
+
align-items: var(--seat-list-align, normal);
|
|
33
|
+
justify-content: var(--seat-list-justify, normal);
|
|
34
|
+
gap: var(--seat-list-gap, 14px);
|
|
35
|
+
min-width: var(--seat-list-min-width, 0);
|
|
36
|
+
margin: var(--seat-list-margin, 0);
|
|
37
|
+
padding: 0;
|
|
38
|
+
list-style: none;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/*
|
|
42
|
+
* Below 560px, eight wrapped seats (each with its buttons under it) filled a phone's whole first
|
|
43
|
+
* screen, so the strip becomes one row that scrolls sideways. The scroller clips at its padding
|
|
44
|
+
* edge, so 6px clears the ready ring's 3px and a focus outline; the trailing spacer is a real flex
|
|
45
|
+
* item because Chromium does not count a scroller's own trailing padding toward its extent.
|
|
46
|
+
*/
|
|
47
|
+
@media (max-width: 560px) {
|
|
48
|
+
.pod-seats {
|
|
49
|
+
flex-wrap: var(--seat-list-narrow-wrap, nowrap);
|
|
50
|
+
overflow-x: var(--seat-list-narrow-overflow-x, auto);
|
|
51
|
+
overflow-y: var(--seat-list-narrow-overflow-y, hidden);
|
|
52
|
+
padding: var(--seat-list-narrow-padding, 6px 0 6px 6px);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.pod-seats::after {
|
|
56
|
+
content: var(--seat-list-narrow-tail, '');
|
|
57
|
+
flex: none;
|
|
58
|
+
width: 6px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.pod-seats__seat {
|
|
63
|
+
position: var(--seat-position, static);
|
|
64
|
+
display: flex;
|
|
65
|
+
flex: var(--seat-flex, none);
|
|
66
|
+
flex-direction: column;
|
|
67
|
+
align-items: center;
|
|
68
|
+
gap: var(--seat-gap, 4px);
|
|
69
|
+
width: var(--seat-width, 76px);
|
|
70
|
+
min-width: var(--seat-min-width, auto);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.pod-seats__avatar-wrap {
|
|
74
|
+
position: var(--seat-wrap-position, relative);
|
|
75
|
+
display: var(--seat-wrap-display, flex);
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.pod-seats__avatar {
|
|
79
|
+
display: var(--seat-avatar-display, flex);
|
|
80
|
+
flex: var(--seat-avatar-flex, none);
|
|
81
|
+
align-items: center;
|
|
82
|
+
justify-content: center;
|
|
83
|
+
box-sizing: border-box;
|
|
84
|
+
width: var(--seat-avatar-size, 44px);
|
|
85
|
+
height: var(--seat-avatar-size, 44px);
|
|
86
|
+
overflow: var(--seat-avatar-overflow, hidden);
|
|
87
|
+
border: var(--seat-avatar-border, 2px solid) var(--seat-avatar-edge, transparent);
|
|
88
|
+
border-radius: var(--seat-avatar-radius, 999px);
|
|
89
|
+
background-color: var(--seat-avatar-bg, var(--color-bg-hover));
|
|
90
|
+
color: var(--seat-avatar-ink, var(--color-text));
|
|
91
|
+
font-size: var(--seat-avatar-text, 15px);
|
|
92
|
+
font-weight: var(--seat-avatar-weight, 600);
|
|
93
|
+
object-fit: var(--seat-avatar-fit, fill);
|
|
94
|
+
image-rendering: var(--seat-avatar-rendering, auto);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* The member's picture filling the ring, or `Avatar`'s fallback (an initial, or the mark) centred in it. */
|
|
98
|
+
.pod-seats__avatar-img,
|
|
99
|
+
.pod-seats__avatar-fallback {
|
|
100
|
+
display: var(--seat-img-display, flex);
|
|
101
|
+
align-items: center;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
box-sizing: border-box;
|
|
104
|
+
width: var(--seat-img-size, 100%);
|
|
105
|
+
height: var(--seat-img-size, 100%);
|
|
106
|
+
border: var(--seat-img-border, 0 none);
|
|
107
|
+
border-radius: var(--seat-img-radius, 0);
|
|
108
|
+
background: var(--seat-img-bg, transparent);
|
|
109
|
+
object-fit: var(--seat-img-fit, fill);
|
|
110
|
+
image-rendering: var(--seat-img-rendering, auto);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.pod-seats__avatar-img {
|
|
114
|
+
object-fit: var(--seat-img-fit, cover);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.pod-seats__avatar[data-ready='true'] {
|
|
118
|
+
box-shadow: var(--seat-ready-ring, 0 0 0 3px var(--color-success));
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.pod-seats__avatar[data-ready='false'] {
|
|
122
|
+
border-color: var(--seat-unready-edge, var(--color-border-light));
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.pod-seats__avatar--open {
|
|
126
|
+
display: var(--seat-kind-display, flex);
|
|
127
|
+
border-style: dashed;
|
|
128
|
+
border-color: var(--seat-open-edge, var(--color-border-light));
|
|
129
|
+
background-color: var(--seat-open-bg, transparent);
|
|
130
|
+
color: var(--seat-open-ink, var(--color-text-tertiary));
|
|
131
|
+
cursor: pointer;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.pod-seats__avatar--open:disabled {
|
|
135
|
+
opacity: 0.5;
|
|
136
|
+
cursor: default;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.pod-seats__avatar--closed {
|
|
140
|
+
display: var(--seat-kind-display, flex);
|
|
141
|
+
border-color: var(--seat-closed-edge, var(--color-border-light));
|
|
142
|
+
background-color: var(--seat-closed-bg, var(--color-bg-alt));
|
|
143
|
+
color: var(--seat-closed-ink, var(--color-text-tertiary));
|
|
144
|
+
cursor: var(--seat-kind-cursor, auto);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.pod-seats__avatar--ai {
|
|
148
|
+
display: var(--seat-kind-display, flex);
|
|
149
|
+
border-style: var(--seat-ai-edge-style, solid);
|
|
150
|
+
background-color: var(--seat-ai-bg, var(--color-primary-bg));
|
|
151
|
+
color: var(--seat-ai-ink, var(--color-on-primary-bg));
|
|
152
|
+
opacity: var(--seat-ai-opacity, 1);
|
|
153
|
+
cursor: var(--seat-kind-cursor, auto);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.pod-seats__avatar--ai .pod-seats__avatar-fallback {
|
|
157
|
+
width: var(--seat-ai-mark-size, 60%);
|
|
158
|
+
height: var(--seat-ai-mark-size, 60%);
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* The room's owner: a small crown on the avatar's corner. */
|
|
162
|
+
.pod-seats__crown {
|
|
163
|
+
position: absolute;
|
|
164
|
+
top: var(--seat-crown-top, -4px);
|
|
165
|
+
right: var(--seat-crown-right, -4px);
|
|
166
|
+
left: var(--seat-crown-left, auto);
|
|
167
|
+
width: var(--seat-crown-size, 14px);
|
|
168
|
+
height: var(--seat-crown-size, 14px);
|
|
169
|
+
padding: var(--seat-crown-padding, 1px);
|
|
170
|
+
border-radius: var(--seat-crown-radius, 999px);
|
|
171
|
+
background: var(--seat-crown-bg, var(--color-bg-card));
|
|
172
|
+
color: var(--seat-crown-ink, inherit);
|
|
173
|
+
fill: var(--seat-crown-fill, var(--color-primary));
|
|
174
|
+
filter: var(--seat-crown-filter, none);
|
|
175
|
+
transform: var(--seat-crown-transform, none);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.pod-seats__label {
|
|
179
|
+
max-width: var(--seat-label-max, 76px);
|
|
180
|
+
overflow: hidden;
|
|
181
|
+
color: var(--seat-label-ink, var(--color-text-secondary));
|
|
182
|
+
font-size: var(--seat-label-text, 12px);
|
|
183
|
+
font-weight: var(--seat-label-weight, inherit);
|
|
184
|
+
text-overflow: ellipsis;
|
|
185
|
+
text-shadow: var(--seat-label-shadow, none);
|
|
186
|
+
white-space: nowrap;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.pod-seats__seat[data-mine] .pod-seats__label {
|
|
190
|
+
color: var(--seat-mine-label-ink, var(--seat-label-ink, var(--color-text-secondary)));
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.pod-seats__actions {
|
|
194
|
+
display: flex;
|
|
195
|
+
flex-wrap: var(--seat-actions-wrap, wrap);
|
|
196
|
+
justify-content: var(--seat-actions-justify, center);
|
|
197
|
+
gap: var(--seat-actions-gap, 3px);
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/* The size of a seat's button; its colour and hover are `.ct-action`, unless a game paints its own. */
|
|
201
|
+
.pod-seats__action {
|
|
202
|
+
padding: var(--seat-action-padding, 2px 6px);
|
|
203
|
+
border-radius: var(--seat-action-radius, var(--hdk-radius-sm));
|
|
204
|
+
font: inherit;
|
|
205
|
+
font-size: var(--seat-action-text, 11px);
|
|
206
|
+
font-weight: var(--seat-action-weight, inherit);
|
|
207
|
+
line-height: var(--seat-action-line, 1.2);
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.pod-seats__action:not(:hover, :focus-visible) {
|
|
211
|
+
border-color: var(--seat-action-edge, var(--color-border));
|
|
212
|
+
background: var(--seat-action-bg, var(--color-bg));
|
|
213
|
+
color: var(--seat-action-ink, var(--color-text));
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.pod-seats__action:is(:hover, :focus-visible) {
|
|
217
|
+
border-color: var(--seat-action-hover-edge, var(--color-primary));
|
|
218
|
+
background: var(--seat-action-hover-bg, var(--color-primary));
|
|
219
|
+
color: var(--seat-action-hover-ink, var(--color-on-primary));
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/* The leader's hand-off: the crown the leader wears, as a button. */
|
|
223
|
+
.pod-seats__action-icon {
|
|
224
|
+
display: block;
|
|
225
|
+
width: 12px;
|
|
226
|
+
height: 13px;
|
|
227
|
+
fill: currentColor;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/* ── the spectators, beside or under the seats ───────────────────────── */
|
|
231
|
+
|
|
232
|
+
.table-side {
|
|
233
|
+
display: flex;
|
|
234
|
+
flex-direction: column;
|
|
235
|
+
align-items: var(--seat-side-align, normal);
|
|
236
|
+
gap: var(--seat-side-gap, 6px);
|
|
237
|
+
min-width: 0;
|
|
238
|
+
margin: var(--seat-side-margin, 0);
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.table-side__heading {
|
|
242
|
+
display: flex;
|
|
243
|
+
align-items: center;
|
|
244
|
+
gap: 8px;
|
|
245
|
+
margin: 0;
|
|
246
|
+
color: var(--seat-heading-ink, var(--color-text-tertiary));
|
|
247
|
+
font-size: var(--seat-heading-text, 12px);
|
|
248
|
+
font-weight: var(--seat-heading-weight, 600);
|
|
249
|
+
letter-spacing: var(--seat-heading-spacing, normal);
|
|
250
|
+
text-transform: var(--seat-heading-case, none);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
/* Under a pod's strip: apart from the strip above and what follows. */
|
|
254
|
+
.table-side--under {
|
|
255
|
+
margin: 0.75rem 0 1rem;
|
|
256
|
+
}
|
package/dist/seats/SeatChip.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { Look } from '@wolffm/platform-wire/look';
|
|
2
2
|
import '../components/Button.css';
|
|
3
|
+
import './SeatChip.css';
|
|
3
4
|
/** 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. */
|
|
4
5
|
export declare const SEAT_CROWN_PATH = "M2 9V3.5l2.2 2L6 2.6l1.8 2.9L10 3.5V9Z";
|
|
5
6
|
/**
|
package/dist/seats/SeatChip.js
CHANGED
|
@@ -11,14 +11,15 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
11
11
|
* `pod-seats__seat`, `pod-seat-<n>`, … — unchanged: cardtable's existing CSS (`PodSeats.css`) and
|
|
12
12
|
* its own extensive DOM-contract tests (`PodSeats.test.ts`) both key off them, and the DOM a
|
|
13
13
|
* caller already had must stay byte-identical after this lift (wave 119 §U.2's own "done when").
|
|
14
|
-
*
|
|
15
|
-
* file
|
|
14
|
+
* Its paint is `./SeatChip.css`, after `.ct-action`'s: a game drawing the seats at its own scale
|
|
15
|
+
* (bomberman's overlay, over its board) sets that file's custom properties, never a copy of it.
|
|
16
16
|
*/
|
|
17
17
|
import { ActionButton } from "../components/ActionButton.js";
|
|
18
18
|
import { Avatar } from "../components/Avatar.js";
|
|
19
19
|
import { PlayerName } from "../room/look.js";
|
|
20
20
|
import { StatusPill } from "../components/StatusPill.js";
|
|
21
21
|
import '../components/Button.css';
|
|
22
|
+
import './SeatChip.css';
|
|
22
23
|
/** 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. */
|
|
23
24
|
export const SEAT_CROWN_PATH = 'M2 9V3.5l2.2 2L6 2.6l1.8 2.9L10 3.5V9Z';
|
|
24
25
|
/** 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. */
|
|
@@ -18,5 +18,5 @@ import { SEAT_CROWN_PATH } from "./SeatChip.js";
|
|
|
18
18
|
export function SpectatorRow({ spectators, myId, leaderId, onWatch, watchDisabled = false, under = false, onMakeLeader }) {
|
|
19
19
|
if (spectators.length === 0 && onWatch === undefined)
|
|
20
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" }), onMakeLeader !== undefined && member.id !== myId && (_jsx("span", { className: "pod-seats__actions", children: _jsx(ActionButton, { action: "make-leader", className: "pod-seats__action", "data-testid": "spectator-make-leader", "data-member": member.id, "aria-label": `Make ${member.name} the room leader`, onPress: () => onMakeLeader(member.id), children: _jsx("svg", { className: "pod-seats__action-icon", viewBox: "0 0 12 12", "aria-hidden": "true", focusable: "false", children: _jsx("path", { d: SEAT_CROWN_PATH }) }) }) }))] }, 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" })] }))] })] }));
|
|
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" }), onMakeLeader !== undefined && member.id !== myId && (_jsx("span", { className: "pod-seats__actions", children: _jsx(ActionButton, { action: "make-leader", className: "pod-seats__action ct-action", "data-testid": "spectator-make-leader", "data-member": member.id, "aria-label": `Make ${member.name} the room leader`, onPress: () => onMakeLeader(member.id), children: _jsx("svg", { className: "pod-seats__action-icon", viewBox: "0 0 12 12", "aria-hidden": "true", focusable: "false", children: _jsx("path", { d: SEAT_CROWN_PATH }) }) }) }))] }, 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
22
|
}
|
package/dist/visible.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Reading something again while the tab is shown, and never while it is hidden.
|
|
3
3
|
*
|
|
4
4
|
* A hidden tab reads nothing; shown again, it reads at once, then on the timer. The room feed's
|
|
5
|
-
* resilience read (`rooms/
|
|
5
|
+
* resilience read (`rooms/feed.ts`) and the front page's calendar and polls (`front/events.ts`,
|
|
6
6
|
* `front/polls.ts`) all re-read on a timer, and a tab left open in the background used to keep
|
|
7
7
|
* the last two going around the clock, each poll a request through the edge (and the polls one a
|
|
8
8
|
* read of Rally behind it).
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/game-ui",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "0.1.48",
|
|
4
|
+
"gitHead": "d26cb221e70ec1eaba3ec1917b1442c3180d3ded",
|
|
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,8 +49,8 @@
|
|
|
49
49
|
"react-dom": "^19.2.8"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.
|
|
53
|
-
"@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.
|
|
52
|
+
"@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.48",
|
|
53
|
+
"@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.48",
|
|
54
54
|
"@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.1.27",
|
|
55
55
|
"@wolffm/rooms-client": "npm:@hadoku/rooms-client@^0.45.111",
|
|
56
56
|
"@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.111",
|