@hadoku/game-ui 0.1.55 → 0.1.56

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.
@@ -13,7 +13,7 @@ export interface SettingsParts {
13
13
  onScaled: () => void;
14
14
  }
15
15
  export declare const registerSettings: (value: SettingsParts) => void;
16
- /** The settings as tabs, in the order a player looks for them: how the game plays first, one slider last. */
16
+ /** The settings as tabs, in the order a player looks for them: how the game plays (and the UI scale, under it), then sound. */
17
17
  export declare const CARDTABLE_SETTINGS_TABS: AppSettingsTab[];
18
18
  /** Every tab's sections one under another, for a popout with no tabs of its own. */
19
19
  export declare function CardtableSettings(): import("react").JSX.Element;
@@ -1,4 +1,4 @@
1
- import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  /*
3
3
  * Cardtable's own settings: one panel, drawn by whichever host is around the game.
4
4
  *
@@ -32,15 +32,14 @@ import { registered } from "../registered.js";
32
32
  import './settings.css';
33
33
  const parts = registered('settings');
34
34
  export const registerSettings = parts.set;
35
- /** The settings as tabs, in the order a player looks for them: how the game plays first, one slider last. */
35
+ /** The settings as tabs, in the order a player looks for them: how the game plays (and the UI scale, under it), then sound. */
36
36
  export const CARDTABLE_SETTINGS_TABS = [
37
37
  {
38
38
  id: 'game',
39
39
  label: 'Game',
40
- render: () => _jsx("div", { className: "ct-settings__tab", children: createElement(parts.get().Game) }),
40
+ render: () => (_jsxs("div", { className: "ct-settings__tab", children: [createElement(parts.get().Game), _jsx(DisplaySettings, {})] })),
41
41
  },
42
42
  { id: 'sound', label: 'Sound', render: () => _jsx("div", { className: "ct-settings__tab", children: createElement(parts.get().Sound) }) },
43
- { id: 'display', label: 'Display', render: () => _jsx("div", { className: "ct-settings__tab", children: _jsx(DisplaySettings, {}) }) },
44
43
  ];
45
44
  /** Every tab's sections one under another, for a popout with no tabs of its own. */
46
45
  export function CardtableSettings() {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@hadoku/game-ui",
3
- "version": "0.1.55",
4
- "gitHead": "07d65472edbda130769e4eb22c105b7c2d806bb6",
3
+ "version": "0.1.56",
4
+ "gitHead": "47587613c847d40817f0dd6fe9ced413b01e3d3e",
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.59",
53
- "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.59",
52
+ "@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.60",
53
+ "@wolffm/ui-shell": "npm:@hadoku/ui-shell@0.1.60",
54
54
  "@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.1.28",
55
55
  "@wolffm/rooms-client": "npm:@hadoku/rooms-client@^0.45.117",
56
56
  "@wolffm/rooms-protocol": "npm:@hadoku/rooms-protocol@^0.45.117",