@wairon/cli 5.0.1 → 5.0.2-dev.2

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/dist/index.js CHANGED
@@ -4485,18 +4485,20 @@ var MODEL = __MODEL_JSON__;
4485
4485
  return markers[id];
4486
4486
  }
4487
4487
  var collapsed = [];
4488
- // True content overflow in px, measured with FRACTIONAL rect precision:
4489
- // scrollWidth/clientWidth are rounded integers and scrollWidth never reads
4490
- // below clientWidth, so a sub-pixel overflow that still paints a scrollbar
4491
- // is invisible to them. Positive = overflowing; negative = headroom.
4488
+ // Signed fit measure in px: positive = overflowing, negative = headroom.
4489
+ // The header is a flex row whose ONLY flex:1 child is the .spacer, so the
4490
+ // spacer's rendered width IS the free space -- it grows to absorb all slack
4491
+ // and collapses to 0 the instant the row is full. That makes a right-edge
4492
+ // measurement useless (the spacer keeps the trailing controls pinned to the
4493
+ // right padding at every width, so their edge always reads as a bare fit),
4494
+ // and scrollWidth clamps at clientWidth so it can't report headroom either.
4495
+ // So take headroom from the spacer's own (fractional) width, and true
4496
+ // overflow from scrollWidth - clientWidth (only ever > 0 once the spacer has
4497
+ // already collapsed to 0). The two terms are mutually exclusive.
4492
4498
  function overflowPx() {
4493
- var box = hdr.getBoundingClientRect();
4494
- var edge = box.left;
4495
- for (var c = hdr.firstElementChild; c; c = c.nextElementSibling) {
4496
- var cr = c.getBoundingClientRect();
4497
- if (cr.width > 0 && cr.right > edge) edge = cr.right;
4498
- }
4499
- return edge - (box.right - 14); // 14 = the header's right padding
4499
+ var spacer = hdr.querySelector('.spacer');
4500
+ var slack = spacer ? spacer.getBoundingClientRect().width : 0;
4501
+ return (hdr.scrollWidth - hdr.clientWidth) - slack;
4500
4502
  }
4501
4503
  function reflow() {
4502
4504
  // Not laid out (hidden tab, non-browser DOM) \u2014 measuring would misfire.
@@ -15228,7 +15230,7 @@ function defaultTargetConfig(type) {
15228
15230
  enabled: true
15229
15231
  };
15230
15232
  }
15231
- var WAIRON_VERSION = "5.0.1";
15233
+ var WAIRON_VERSION = "5.0.2-dev.2";
15232
15234
  var GITHUB_REPO = "SYW-Apps/Waffle-AIron";
15233
15235
  var ARCHITECT_AGENT_ID = "agent-architect";
15234
15236
  var ARCHITECT_TEMPLATE_ID = "architect";