@xenosystem/blocks 0.13.15 → 0.13.16

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.
@@ -770,7 +770,8 @@ interface ConsentViewFact {
770
770
  interface ConsentViewScope {
771
771
  id: string;
772
772
  label: string;
773
- detail?: string;
773
+ detail?: string; /** a two-line row needs its height — the unit's default row clips the detail */
774
+ height?: number;
774
775
  risk?: string;
775
776
  riskTone: Tone;
776
777
  granted: boolean;
@@ -782,6 +783,7 @@ interface ConsentViewOption {
782
783
  id: string;
783
784
  label: string;
784
785
  detail?: string;
786
+ height?: number;
785
787
  risk?: string;
786
788
  riskTone: Tone;
787
789
  toggleLabel: string;
@@ -715,6 +715,7 @@ function consentViewState(c, options = {}) {
715
715
  id: scope.id,
716
716
  label: scope.label,
717
717
  detail: scope.detail,
718
+ height: scope.detail ? 36 : void 0,
718
719
  risk: scope.risk && scope.risk !== risk ? scope.risk : void 0,
719
720
  riskTone: scope.risk ? RISK_TONE[scope.risk] : "neutral",
720
721
  granted: scope.alreadyGranted === true,
@@ -732,6 +733,7 @@ function consentViewState(c, options = {}) {
732
733
  id: option.id,
733
734
  label: option.label,
734
735
  detail: option.detail,
736
+ height: option.detail ? 36 : void 0,
735
737
  risk: option.risk && option.risk !== risk ? option.risk : void 0,
736
738
  riskTone: option.risk ? RISK_TONE[option.risk] : "neutral",
737
739
  toggleLabel: `Choose ${option.label}`,
@@ -851,6 +853,7 @@ var CONSENT_DECLARATION = {
851
853
  each: { input: "view.scopes", key: "id" },
852
854
  props: {
853
855
  noIcon: { value: true },
856
+ height: { item: "height" },
854
857
  label: { node: twoLine },
855
858
  meta: riskMeta,
856
859
  trailing: {
@@ -878,7 +881,7 @@ var CONSENT_DECLARATION = {
878
881
  {
879
882
  component: "chrome/Row",
880
883
  each: { input: "view.options", key: "id" },
881
- props: { noIcon: { value: true }, label: { node: twoLine }, meta: riskMeta, trailing: { node: { component: "chrome/Toggle", props: { size: { value: "sm" }, label: { item: "toggleLabel" }, checked: { item: "selected" } }, on: { onChange: ui("option", { id: { item: "id" }, on: { arg: "" } }) } } } }
884
+ props: { noIcon: { value: true }, height: { item: "height" }, label: { node: twoLine }, meta: riskMeta, trailing: { node: { component: "chrome/Toggle", props: { size: { value: "sm" }, label: { item: "toggleLabel" }, checked: { item: "selected" } }, on: { onChange: ui("option", { id: { item: "id" }, on: { arg: "" } }) } } } }
882
885
  }
883
886
  ]
884
887
  },
@@ -969,6 +972,7 @@ function ConsentPanelView({ controller, showQueueCount, emptyHint }) {
969
972
  Row,
970
973
  {
971
974
  noIcon: true,
975
+ height: scope.height,
972
976
  label: /* @__PURE__ */ jsx(TwoLine, { label: scope.label, detail: scope.detail }),
973
977
  meta: scope.risk ? /* @__PURE__ */ jsx(Badge, { tone: scope.riskTone, children: scope.risk }) : null,
974
978
  trailing: /* @__PURE__ */ jsxs(Fragment, { children: [
@@ -983,6 +987,7 @@ function ConsentPanelView({ controller, showQueueCount, emptyHint }) {
983
987
  Row,
984
988
  {
985
989
  noIcon: true,
990
+ height: option.height,
986
991
  label: /* @__PURE__ */ jsx(TwoLine, { label: option.label, detail: option.detail }),
987
992
  meta: option.risk ? /* @__PURE__ */ jsx(Badge, { tone: option.riskTone, children: option.risk }) : null,
988
993
  trailing: /* @__PURE__ */ jsx(Toggle, { size: "sm", label: option.toggleLabel, checked: option.selected, onChange: (on) => ui2({ kind: "option", id: option.id, on }) })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xenosystem/blocks",
3
- "version": "0.13.15",
3
+ "version": "0.13.16",
4
4
  "description": "XENO Blocks — rung 3 of the front ladder: components composed into a contract-bearing unit (manifest: ports, intents, commands, agent surface), rendered by @xenosystem/workbench. ONE package, one subpath per family (/auth, /edit, /data, /time, /ops, /trust, /agent), one named export per block — XENO PACKAGE NAMING - STANDARD.md.",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",