@hadoku/game-ui 0.1.65 → 0.1.67
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/whoami.d.ts +6 -5
- package/dist/room/whoami.js +5 -4
- package/package.json +6 -6
package/dist/room/whoami.d.ts
CHANGED
|
@@ -10,13 +10,14 @@ export interface Who {
|
|
|
10
10
|
type WhoamiAnswer = Awaited<ReturnType<typeof hadokuWhoami>>;
|
|
11
11
|
/** The viewer, `null` when the fleet could not say, `'pending'` while it is asked. */
|
|
12
12
|
export type WhoState = Who | null | 'pending';
|
|
13
|
-
export declare const registerWhoamiTier: (value: (r: Pick<WhoamiAnswer, "userType"
|
|
13
|
+
export declare const registerWhoamiTier: (value: (r: Pick<WhoamiAnswer, "userType">) => Who["tier"]) => void;
|
|
14
14
|
/**
|
|
15
|
-
* The viewer's tier as cardtable treats it: a member the operator has verified IS a friend
|
|
16
|
-
* operator, 2026-11-05: *"for cardtable they will be equivalent"*)
|
|
17
|
-
*
|
|
15
|
+
* The viewer's tier as cardtable treats it: a member (a guest the operator has verified) IS a friend
|
|
16
|
+
* here (the operator, 2026-11-05: *"for cardtable they will be equivalent"*); a guest is never
|
|
17
|
+
* promoted. Read from the tier alone, never the fleet's `verified` flag. The server's `tierOf` makes
|
|
18
|
+
* the same call for every gate; this is the tier the fleet chrome is handed to show.
|
|
18
19
|
*/
|
|
19
|
-
export declare function tierOfWhoami(r: Pick<WhoamiAnswer, 'userType'
|
|
20
|
+
export declare function tierOfWhoami(r: Pick<WhoamiAnswer, 'userType'>): Who['tier'];
|
|
20
21
|
/** Hands `who` to every `useWhoami` below, which then asks nothing of its own. */
|
|
21
22
|
export declare function WhoProvider({ who, children }: {
|
|
22
23
|
who: WhoState;
|
package/dist/room/whoami.js
CHANGED
|
@@ -20,12 +20,13 @@ import { registered } from "../registered.js";
|
|
|
20
20
|
const whoamiTier = registered('whoami tier', () => (r) => r.userType);
|
|
21
21
|
export const registerWhoamiTier = whoamiTier.set;
|
|
22
22
|
/**
|
|
23
|
-
* The viewer's tier as cardtable treats it: a member the operator has verified IS a friend
|
|
24
|
-
* operator, 2026-11-05: *"for cardtable they will be equivalent"*)
|
|
25
|
-
*
|
|
23
|
+
* The viewer's tier as cardtable treats it: a member (a guest the operator has verified) IS a friend
|
|
24
|
+
* here (the operator, 2026-11-05: *"for cardtable they will be equivalent"*); a guest is never
|
|
25
|
+
* promoted. Read from the tier alone, never the fleet's `verified` flag. The server's `tierOf` makes
|
|
26
|
+
* the same call for every gate; this is the tier the fleet chrome is handed to show.
|
|
26
27
|
*/
|
|
27
28
|
export function tierOfWhoami(r) {
|
|
28
|
-
return r.userType === 'member'
|
|
29
|
+
return r.userType === 'member' ? 'friend' : r.userType;
|
|
29
30
|
}
|
|
30
31
|
/** The page's one resolution, when an app shell above has made it (`../app/GameAppShell.tsx`). */
|
|
31
32
|
const WhoContext = createContext(undefined);
|
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.67",
|
|
4
|
+
"gitHead": "eb198fb94e7021c2f65fa71802c1dab746741a1b",
|
|
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,13 +49,13 @@
|
|
|
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.71",
|
|
53
|
+
"@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.71",
|
|
54
54
|
"@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.1.30",
|
|
55
55
|
"@wolffm/rooms-client": "npm:@hadoku/rooms-client@^0.45.121",
|
|
56
56
|
"@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.121",
|
|
57
|
-
"@wolffm/task-ui-components": "npm:@hadoku/task-ui-components@^4.23.
|
|
58
|
-
"@wolffm/themes": "npm:@hadoku/themes@^5.14.
|
|
57
|
+
"@wolffm/task-ui-components": "npm:@hadoku/task-ui-components@^4.23.43",
|
|
58
|
+
"@wolffm/themes": "npm:@hadoku/themes@^5.14.12",
|
|
59
59
|
"@wolffm/watchparty-ui": "npm:@hadoku/watchparty-ui@^0.45.121",
|
|
60
60
|
"socket.io-client": "^4.8.3",
|
|
61
61
|
"zod": "4.5.4"
|