@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xynogen/pix-runtime",
3
- "version": "0.13.0",
3
+ "version": "0.13.1",
4
4
  "description": "Pix shared runtime — versioned pix.json config, atomic persistence, typed change events",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -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) => (v.footer[part] ? "show" : "hide"),
195
- patch: (value) => ({ footer: { [part]: value === "show" } }),
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
  ];
@@ -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