@hadoku/ui-shell 0.1.272 → 0.1.274
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/chrome/chrome.css
CHANGED
|
@@ -24,6 +24,15 @@
|
|
|
24
24
|
box-shadow: var(--hdk-shadow-lg);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
/*
|
|
28
|
+
* A line saying what failed, wherever it is drawn: the place that draws it lays it out. In the
|
|
29
|
+
* theme's danger, as the room list's error line is; `--ct-error-ink` lets a host give it its own ink.
|
|
30
|
+
*/
|
|
31
|
+
.ct-error {
|
|
32
|
+
margin: 0;
|
|
33
|
+
color: var(--ct-error-ink, var(--color-danger));
|
|
34
|
+
}
|
|
35
|
+
|
|
27
36
|
/* A round icon button in a head: the decks, the stats, the settings gear. */
|
|
28
37
|
.ct-round-button {
|
|
29
38
|
display: inline-flex;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* A gain slider and its value, on one line; the screen that draws it places it. */
|
|
2
|
+
.sound-gain {
|
|
3
|
+
display: inline-flex;
|
|
4
|
+
gap: 6px;
|
|
5
|
+
align-items: center;
|
|
6
|
+
margin-top: 4px;
|
|
7
|
+
font-size: 11px;
|
|
8
|
+
color: var(--color-text-secondary);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.sound-gain input[type='range'] {
|
|
12
|
+
width: 96px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.sound-gain output {
|
|
16
|
+
font-variant-numeric: tabular-nums;
|
|
17
|
+
min-width: 2.6em;
|
|
18
|
+
}
|
package/dist/sound/GainSlider.js
CHANGED
|
@@ -4,6 +4,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
4
4
|
* commits once on release, so a drag is one save rather than fifty.
|
|
5
5
|
*/
|
|
6
6
|
import { useEffect, useState } from 'react';
|
|
7
|
+
import './GainSlider.css';
|
|
7
8
|
export function GainSlider({ label, value, onCommit }) {
|
|
8
9
|
const [local, setLocal] = useState(value);
|
|
9
10
|
useEffect(() => setLocal(value), [value]);
|
package/dist/sound/mix.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* repeating; a `reversed` role plays its target's cell backwards; an empty
|
|
14
14
|
* cell falls back down its `fallback` chain.
|
|
15
15
|
*/
|
|
16
|
-
import { pickNotLast } from '@wolffm/platform-wire/random';
|
|
16
|
+
import { pickNotLast, secureRandom } from '@wolffm/platform-wire/random';
|
|
17
17
|
let ambientRegistry = { roles: new Map(), fallback: {}, reversed: {} };
|
|
18
18
|
/** The registry a bare `createMixPlanner()` builds against, for a call site that leans on its default. The game sets this once, with its real roles, before such a call; new code prefers `createSound`. */
|
|
19
19
|
export function configureSoundRoles(registry) {
|
|
@@ -105,6 +105,6 @@ function buildPlanner(registry, rng) {
|
|
|
105
105
|
};
|
|
106
106
|
}
|
|
107
107
|
/** A planner against the game's real roles (`configureSoundRoles`), or against none until something configures one. New code prefers `createSound`. */
|
|
108
|
-
export function createMixPlanner(rng =
|
|
108
|
+
export function createMixPlanner(rng = secureRandom) {
|
|
109
109
|
return buildPlanner(ambientRegistry, rng);
|
|
110
110
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hadoku/ui-shell",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"gitHead": "
|
|
3
|
+
"version": "0.1.274",
|
|
4
|
+
"gitHead": "e4f7cc3b81941103445c6b9a75a320e660760110",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"description": "The parts of a game's UI any game keeps: chrome, trim, room shell, embed mount, theme and settings frame, UI scale, usage counting, the sound mixer, motion and generic components. One appId parameterizes its storage keys, events and chat prefix. MIT; imports only react, react-dom, platform-wire and @wolffm/*.",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"react-dom": "^19.2.8"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
75
|
-
"@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.
|
|
75
|
+
"@wolffm/platform-wire": "npm:@hadoku/platform-wire@0.1.274",
|
|
76
76
|
"@wolffm/prefs-client": "npm:@hadoku/prefs-client@^1.2.4",
|
|
77
77
|
"@wolffm/themes": "npm:@hadoku/themes@^5.14.22",
|
|
78
78
|
"zod": "^4.6.7"
|