@xynogen/pix-runtime 0.13.0 → 0.13.1
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/package.json +1 -1
- package/src/pix-command.ts +5 -4
- package/src/sections/pretty.ts +3 -1
package/package.json
CHANGED
package/src/pix-command.ts
CHANGED
|
@@ -188,11 +188,12 @@ const SETTINGS: SettingRow<unknown>[] = [
|
|
|
188
188
|
const part = key as keyof typeof prettySection.defaults.footer;
|
|
189
189
|
return row({
|
|
190
190
|
section: "Footer",
|
|
191
|
-
label: part,
|
|
191
|
+
label: part === "wrap" ? "wrap line" : part,
|
|
192
192
|
handle: prettySection,
|
|
193
|
-
values: ["show", "hide"],
|
|
194
|
-
read: (v) =>
|
|
195
|
-
|
|
193
|
+
values: part === "wrap" ? ["on", "off"] : ["show", "hide"],
|
|
194
|
+
read: (v) =>
|
|
195
|
+
part === "wrap" ? (v.footer[part] ? "on" : "off") : v.footer[part] ? "show" : "hide",
|
|
196
|
+
patch: (value) => ({ footer: { [part]: value === "show" || value === "on" } }),
|
|
196
197
|
});
|
|
197
198
|
}),
|
|
198
199
|
];
|
package/src/sections/pretty.ts
CHANGED
|
@@ -31,7 +31,8 @@ export interface PrettyConfig {
|
|
|
31
31
|
| "statuses"
|
|
32
32
|
| "tokens"
|
|
33
33
|
| "cost"
|
|
34
|
-
| "tps"
|
|
34
|
+
| "tps"
|
|
35
|
+
| "wrap",
|
|
35
36
|
boolean
|
|
36
37
|
>;
|
|
37
38
|
}
|
|
@@ -71,6 +72,7 @@ const DEFAULTS: Readonly<PrettyConfig> = {
|
|
|
71
72
|
tokens: true,
|
|
72
73
|
cost: true,
|
|
73
74
|
tps: true,
|
|
75
|
+
wrap: false,
|
|
74
76
|
},
|
|
75
77
|
};
|
|
76
78
|
|