@wildwinter/app-shell 0.57.0 → 0.58.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.
Files changed (66) hide show
  1. package/README.md +195 -0
  2. package/dist/chunk-4JQWNC6Z.js +319 -0
  3. package/dist/chunk-4JQWNC6Z.js.map +1 -0
  4. package/dist/chunk-ICYPXUNA.js +8 -0
  5. package/dist/chunk-ICYPXUNA.js.map +1 -0
  6. package/dist/{chunk-XJM733E6.js → chunk-OO6O4LEL.js} +6 -2
  7. package/dist/chunk-OO6O4LEL.js.map +1 -0
  8. package/dist/{chunk-CPNTROWD.js → chunk-OZQ2BYXH.js} +13 -4
  9. package/dist/chunk-OZQ2BYXH.js.map +1 -0
  10. package/dist/{chunk-5BKGDTYD.js → chunk-RMQNBWLZ.js} +3 -3
  11. package/dist/{chunk-5BKGDTYD.js.map → chunk-RMQNBWLZ.js.map} +1 -1
  12. package/dist/index.cjs +334 -3
  13. package/dist/index.cjs.map +1 -1
  14. package/dist/index.d.cts +2 -0
  15. package/dist/index.d.ts +2 -0
  16. package/dist/index.js +4 -2
  17. package/dist/index.js.map +1 -1
  18. package/dist/property-list.cjs.map +1 -1
  19. package/dist/property-list.js +2 -2
  20. package/dist/tool-window.cjs +11 -2
  21. package/dist/tool-window.cjs.map +1 -1
  22. package/dist/tool-window.d.cts +10 -4
  23. package/dist/tool-window.d.ts +10 -4
  24. package/dist/tool-window.js +1 -1
  25. package/dist/updater.cjs.map +1 -1
  26. package/dist/updater.js +1 -1
  27. package/dist/value-control.cjs +4 -0
  28. package/dist/value-control.cjs.map +1 -1
  29. package/dist/value-control.d.cts +4 -4
  30. package/dist/value-control.d.ts +4 -4
  31. package/dist/value-control.js +1 -1
  32. package/dist/value-rows.cjs +8 -1
  33. package/dist/value-rows.cjs.map +1 -1
  34. package/dist/value-rows.js +5 -2
  35. package/dist/value-rows.js.map +1 -1
  36. package/dist/view-client.cjs +172 -0
  37. package/dist/view-client.cjs.map +1 -0
  38. package/dist/view-client.d.cts +46 -0
  39. package/dist/view-client.d.ts +46 -0
  40. package/dist/view-client.js +165 -0
  41. package/dist/view-client.js.map +1 -0
  42. package/dist/view-host-web.cjs +327 -0
  43. package/dist/view-host-web.cjs.map +1 -0
  44. package/dist/view-host-web.d.cts +61 -0
  45. package/dist/view-host-web.d.ts +61 -0
  46. package/dist/view-host-web.js +4 -0
  47. package/dist/view-host-web.js.map +1 -0
  48. package/dist/view-host.cjs +532 -0
  49. package/dist/view-host.cjs.map +1 -0
  50. package/dist/view-host.d.cts +178 -0
  51. package/dist/view-host.d.ts +178 -0
  52. package/dist/view-host.js +426 -0
  53. package/dist/view-host.js.map +1 -0
  54. package/dist/view-preload.cjs +16 -0
  55. package/dist/view-preload.cjs.map +1 -0
  56. package/dist/view-preload.js +8 -0
  57. package/dist/view-preload.js.map +1 -0
  58. package/dist/view-protocol.cjs +12 -0
  59. package/dist/view-protocol.cjs.map +1 -0
  60. package/dist/view-protocol.d.cts +257 -0
  61. package/dist/view-protocol.d.ts +257 -0
  62. package/dist/view-protocol.js +3 -0
  63. package/dist/view-protocol.js.map +1 -0
  64. package/package.json +25 -4
  65. package/dist/chunk-CPNTROWD.js.map +0 -1
  66. package/dist/chunk-XJM733E6.js.map +0 -1
@@ -55,13 +55,13 @@ interface FieldDeclLike extends ValueDeclLike {
55
55
  name: string;
56
56
  /** What the field is for, shown under the control. */
57
57
  purpose?: string;
58
- /** A sentence about each value (an enum's values, the flags, a quality's stages), as an extension's manifest
59
- * gives them: the chosen value's is shown under the control, and each chosen flag's. */
58
+ /** A sentence about each value (an enum's values, the flags, a quality's stages, a pick's fixed words), as an
59
+ * extension's manifest gives them: the chosen value's is shown under the control, and each chosen flag's. */
60
60
  valueHelp?: Readonly<Record<string, string>>;
61
61
  }
62
62
  /**
63
- * The help for what `decl` holds: the chosen enum value's or stage's (the one it falls back to, when unset), or
64
- * each chosen flag's, "name: sentence" a line each. Empty when the declaration describes none of them.
63
+ * The help for what `decl` holds: the chosen enum value's, stage's or pick word's (the one it falls back to, when
64
+ * unset), or each chosen flag's, "name: sentence" a line each. Empty when the declaration describes none of them.
65
65
  */
66
66
  declare function valueHelpText(decl: FieldDeclLike, value: unknown): string;
67
67
  interface FieldRowOptions {
@@ -55,13 +55,13 @@ interface FieldDeclLike extends ValueDeclLike {
55
55
  name: string;
56
56
  /** What the field is for, shown under the control. */
57
57
  purpose?: string;
58
- /** A sentence about each value (an enum's values, the flags, a quality's stages), as an extension's manifest
59
- * gives them: the chosen value's is shown under the control, and each chosen flag's. */
58
+ /** A sentence about each value (an enum's values, the flags, a quality's stages, a pick's fixed words), as an
59
+ * extension's manifest gives them: the chosen value's is shown under the control, and each chosen flag's. */
60
60
  valueHelp?: Readonly<Record<string, string>>;
61
61
  }
62
62
  /**
63
- * The help for what `decl` holds: the chosen enum value's or stage's (the one it falls back to, when unset), or
64
- * each chosen flag's, "name: sentence" a line each. Empty when the declaration describes none of them.
63
+ * The help for what `decl` holds: the chosen enum value's, stage's or pick word's (the one it falls back to, when
64
+ * unset), or each chosen flag's, "name: sentence" a line each. Empty when the declaration describes none of them.
65
65
  */
66
66
  declare function valueHelpText(decl: FieldDeclLike, value: unknown): string;
67
67
  interface FieldRowOptions {
@@ -1,4 +1,4 @@
1
- export { defaultLabel, fallbackText, fieldRow, fieldRowFocus, fieldRows, fieldValueProblem, rungStrip, stageGateNote, valueHelpText } from './chunk-XJM733E6.js';
1
+ export { defaultLabel, fallbackText, fieldRow, fieldRowFocus, fieldRows, fieldValueProblem, rungStrip, stageGateNote, valueHelpText } from './chunk-OO6O4LEL.js';
2
2
  import './chunk-W4WC4FO5.js';
3
3
  //# sourceMappingURL=value-control.js.map
4
4
  //# sourceMappingURL=value-control.js.map
@@ -493,6 +493,10 @@ function valueHelpText(decl, value) {
493
493
  return h === void 0 ? [] : [`${v}: ${h}`];
494
494
  }).join("\n");
495
495
  }
496
+ if (decl.type === "pick") {
497
+ const held = typeof value === "string" && value !== "" ? value : typeof decl.default === "string" ? decl.default : "";
498
+ return held === "" ? "" : said(held) ?? "";
499
+ }
496
500
  return "";
497
501
  }
498
502
  var fallbackFlags = (decl) => Array.isArray(decl.default) ? decl.default.filter((v) => typeof v === "string") : [];
@@ -1205,9 +1209,10 @@ function pickRow(initial) {
1205
1209
  const body = el("div", "shell-fieldrow-body");
1206
1210
  const sel = el("select", "field shell-fieldrow-select");
1207
1211
  const help = el("p", "shell-fieldrow-purpose");
1212
+ const valueHelp = el("p", "shell-fieldrow-purpose shell-fieldrow-valuehelp");
1208
1213
  const problem = el("p", "shell-fieldrow-problem");
1209
1214
  problem.setAttribute("role", "status");
1210
- body.append(sel, help, problem);
1215
+ body.append(sel, help, valueHelp, problem);
1211
1216
  row.append(caption, body);
1212
1217
  sel.addEventListener("change", () => {
1213
1218
  const v = sel.value === "" ? void 0 : sel.value;
@@ -1263,6 +1268,8 @@ function pickRow(initial) {
1263
1268
  sel.disabled = o.onCommit === void 0 || o.disabled === true;
1264
1269
  help.textContent = o.decl.help ?? o.decl.purpose ?? "";
1265
1270
  help.hidden = help.textContent === "";
1271
+ valueHelp.textContent = valueHelpText(o.decl, o.value);
1272
+ valueHelp.hidden = valueHelp.textContent === "";
1266
1273
  const words = o.replaceProblem ?? [ownProblems(o.decl, o.value, o.adapter), o.problem ?? ""].filter((w) => w !== "").join(" ");
1267
1274
  problem.textContent = words;
1268
1275
  problem.hidden = words === "";