@copylee/dsh-computer-use 0.7.4 → 0.7.5
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/lib/client.js +2 -2
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -166,7 +166,7 @@ window.__ModuleLoader__.load({
|
|
|
166
166
|
return [accent, writeAccent];
|
|
167
167
|
}
|
|
168
168
|
/** A row of round swatches: one of them is always chosen. */
|
|
169
|
-
function AccentPicker({ label = "强调色", hint = "
|
|
169
|
+
function AccentPicker({ label = "强调色", hint = "", names }) {
|
|
170
170
|
const [accent, choose] = useAccent();
|
|
171
171
|
const h = react.createElement;
|
|
172
172
|
const name = (id) => names?.[id] ?? ACCENTS[id].name;
|
|
@@ -204,7 +204,7 @@ window.__ModuleLoader__.load({
|
|
|
204
204
|
}))), h("span", { style: {
|
|
205
205
|
fontSize: 12,
|
|
206
206
|
color: "var(--dsw-alias-label-tertiary, #888)"
|
|
207
|
-
} }, `${name(accent)} · ${hint}`));
|
|
207
|
+
} }, hint ? `${name(accent)} · ${hint}` : name(accent)));
|
|
208
208
|
}
|
|
209
209
|
//#endregion
|
|
210
210
|
//#region lib/types/client/nav-icon.js
|
package/package.json
CHANGED