@hadoku/game-ui 0.1.65 → 0.1.68

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.
@@ -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" | "verified">) => Who["tier"]) => void;
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 here (the
16
- * operator, 2026-11-05: *"for cardtable they will be equivalent"*). The server's `tierOf` makes the
17
- * same call for every gate; this is the tier the fleet chrome is handed to show.
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' | 'verified'>): Who['tier'];
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;
@@ -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 here (the
24
- * operator, 2026-11-05: *"for cardtable they will be equivalent"*). The server's `tierOf` makes the
25
- * same call for every gate; this is the tier the fleet chrome is handed to show.
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' && r.verified === true ? 'friend' : r.userType;
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.65",
4
- "gitHead": "e08e1963c06c1be454d8a685188301337d0c2c2d",
3
+ "version": "0.1.68",
4
+ "gitHead": "05dcae1a1c2b2e66220a55e98e8b3934fd1ae0ff",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "description": "The browser parts any hosted game shares, above ui-shell: the room shell and session, seats and looks, the room route, the front page's generic pieces (gate, polls, gallery, patch notes), the bundle slot and relay channel a game's client mounts in, settings and trim screens, the HTTP and socket helpers, and the generic components (modal, popover, avatar, action button, radio cards). Knows no game; Magic's UI (games/magic/ui) plugs in, composed by the site (apps/ui). MIT; imports only react, react-dom, socket.io-client, @wolffm/* and the platform packages.",
@@ -49,14 +49,14 @@
49
49
  "react-dom": "^19.2.8"
50
50
  },
51
51
  "dependencies": {
52
- "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.69",
53
- "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.69",
52
+ "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.72",
53
+ "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.72",
54
54
  "@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.1.30",
55
- "@wolffm/rooms-client": "npm:@hadoku/rooms-client@^0.45.121",
56
- "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.121",
57
- "@wolffm/task-ui-components": "npm:@hadoku/task-ui-components@^4.23.42",
58
- "@wolffm/themes": "npm:@hadoku/themes@^5.14.11",
59
- "@wolffm/watchparty-ui": "npm:@hadoku/watchparty-ui@^0.45.121",
55
+ "@wolffm/rooms-client": "npm:@hadoku/rooms-client@^0.45.122",
56
+ "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.122",
57
+ "@wolffm/task-ui-components": "npm:@hadoku/task-ui-components@^4.23.43",
58
+ "@wolffm/themes": "npm:@hadoku/themes@^5.14.12",
59
+ "@wolffm/watchparty-ui": "npm:@hadoku/watchparty-ui@^0.45.122",
60
60
  "socket.io-client": "^4.8.3",
61
61
  "zod": "4.5.4"
62
62
  },