@wix/himalaya-cli 0.1061.0 → 0.1063.0

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 (2) hide show
  1. package/dist/cli.mjs +14 -6
  2. package/package.json +2 -2
package/dist/cli.mjs CHANGED
@@ -22843,6 +22843,7 @@ function shouldRevealError(args) {
22843
22843
  var EMAIL_RE, URL_HOST_RE, INTEGER_RE, NUMBER_RE;
22844
22844
  var init_validation = __esm({
22845
22845
  "../../core/ts/src/validation.ts"() {
22846
+ "use strict";
22846
22847
  EMAIL_RE = /^[A-Za-z0-9._%+-]+@[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*\.[A-Za-z]{2,}$/;
22847
22848
  URL_HOST_RE = /^[A-Za-z0-9-]+(\.[A-Za-z0-9-]+)*(:[0-9]+)?$/;
22848
22849
  INTEGER_RE = /^[+-]?[0-9]+$/;
@@ -26443,6 +26444,7 @@ function validateWorkerSubtree(raw, slotId, policy, actionCatalog) {
26443
26444
  var WORKER_SUBTREE_CEILINGS, ID_PART, ACTION_ID;
26444
26445
  var init_worker_subtree = __esm({
26445
26446
  "../../core/ts/src/worker-subtree.ts"() {
26447
+ "use strict";
26446
26448
  init_worker_subtree_safe_types_generated();
26447
26449
  WORKER_SUBTREE_CEILINGS = Object.freeze({
26448
26450
  maxEncodedBytes: 65536,
@@ -42362,7 +42364,7 @@ h1{font-size:20px;font-weight:600;margin:0}.sub{color:var(--muted);font-size:13p
42362
42364
  .step .lbl{font-size:11px;color:var(--faint);margin-top:4px;text-transform:capitalize}.step.cur .lbl{color:var(--ink);font-weight:600}
42363
42365
  .card{background:var(--card);border:1px solid var(--line);border-radius:14px;padding:14px 16px;box-shadow:var(--shadow)}
42364
42366
  .now{display:flex;gap:12px;align-items:flex-start;margin-bottom:16px}.now .msg{font-size:16px}.now .meta{color:var(--muted);font-size:12px}
42365
- .grid{display:grid;grid-template-columns:320px 1fr;gap:16px;align-items:start}@media (max-width:860px){.grid{grid-template-columns:1fr}.steps .lbl{display:none}}
42367
+ .grid{display:grid;grid-template-columns:320px minmax(0,1fr);gap:16px;align-items:start}@media (max-width:860px){.grid{grid-template-columns:minmax(0,1fr)}.steps .lbl{display:none}}
42366
42368
  h2{font-size:12px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.04em;margin:0 0 10px}
42367
42369
  .phone{width:100%;max-width:300px;aspect-ratio:390/844;border-radius:34px;border:9px solid #111;background:#fff;overflow:hidden;margin:0 auto;display:block}
42368
42370
  .phone img,.phone iframe{width:100%;height:100%;object-fit:cover;object-position:top;border:0;display:block;cursor:zoom-in}
@@ -42467,7 +42469,9 @@ function el(tag,cls,txt){var e=document.createElement(tag);if(cls)e.className=cl
42467
42469
  screens nothing leads to sit in their own last row, a link to a screen that does not exist is a red
42468
42470
  stub naming it. Built with DOM calls: a screen id is SVG text, never markup. Past 60 screens only
42469
42471
  the ones worth looking at are drawn (unreached, failed) and the summary carries the rest. */
42470
- function drawMap(m){var card=$("appmap"),box=$("mapbox");clear(box);if(!m){card.hidden=true;return}card.hidden=false;
42472
+ /* The last map drawn and the width it was wrapped to: an unchanged state never redraws, so a resize has to. */
42473
+ var lastMap=null,mapAvail=0;
42474
+ function drawMap(m){var card=$("appmap"),box=$("mapbox");lastMap=m;clear(box);if(!m){card.hidden=true;return}card.hidden=false;
42471
42475
  var un=m.screens.filter(function(x){return !x.reached});
42472
42476
  /* "Nothing leads here" only when the crawl saw every link: a link built from list data (a feed's rows,
42473
42477
  a home grid) has a target it cannot resolve, and one of those may well open the screen. */
@@ -42484,17 +42488,20 @@ function drawMap(m){var card=$("appmap"),box=$("mapbox");clear(box);if(!m){card.
42484
42488
  goes and both ends stay; the full id is always in the node's title. */
42485
42489
  var CW=6.5,longest=0;show.forEach(function(x){longest=Math.max(longest,x.id.length)});
42486
42490
  var W=Math.round(Math.min(300,Math.max(124,longest*CW+20))),H=28,HG=12,VG=36,P=10,ns="http://www.w3.org/2000/svg",pos={},y=P,width=0,unRow=maxd+2;
42491
+ /* A row wraps to the card: one line of 21 not-reached screens once made the card, and the whole
42492
+ board, 5,500px wide. The width is the box's own (a hidden card measures 0; then a card's width). */
42493
+ var avail=box.clientWidth||760;mapAvail=avail;var per=Math.max(1,Math.floor((avail-2*P+HG)/(W+HG))),LG=10;
42487
42494
  function lab(id){var k=Math.floor((W-20)/CW);if(id.length<=k)return id;var a=Math.ceil((k-1)/2),b=Math.floor((k-1)/2);return id.slice(0,a)+"\u2026"+id.slice(id.length-b)}
42488
42495
  var svg=document.createElementNS(ns,"svg"),edgesG=document.createElementNS(ns,"g"),nodesG=document.createElementNS(ns,"g");svg.appendChild(edgesG);svg.appendChild(nodesG);
42489
42496
  function sv(tag,attrs,txt){var e=document.createElementNS(ns,tag);for(var k in attrs)e.setAttribute(k,String(attrs[k]));if(txt!=null)e.textContent=txt;return e}
42490
42497
  for(var r=0;r<rows.length;r++){var row=rows[r];if(!row)continue;
42491
42498
  if(r===unRow){nodesG.appendChild(sv("text",{x:P,y:y+10,"class":"mrow"},!m.done?"Not reached yet \u2014 no link to these seen so far":m.unfollowed?"Not seen linked \u2014 "+m.unfollowed+" link"+(m.unfollowed===1?"":"s")+" built from list data could not be followed":"Unreached \u2014 nothing leads here"));y+=16}
42492
- row.forEach(function(x,i){var nx=P+i*(W+HG);pos[x.id]={x:nx,y:y};width=Math.max(width,nx+W+P);
42499
+ row.forEach(function(x,i){var nx=P+(i%per)*(W+HG),ny=y+Math.floor(i/per)*(H+LG);pos[x.id]={x:nx,y:ny};width=Math.max(width,nx+W+P);
42493
42500
  var g=sv("g",{"class":"mnode "+x.status+(x.entry?" entry":"")+(x.reached?"":" unreached")+(x.unfollowed?" unfollowed":""),"data-id":x.id});
42494
- g.appendChild(sv("rect",{x:nx,y:y,width:W,height:H,rx:7}));g.appendChild(sv("text",{x:nx+W/2,y:y+H/2+4,"text-anchor":"middle"},lab(x.id)));
42501
+ g.appendChild(sv("rect",{x:nx,y:ny,width:W,height:H,rx:7}));g.appendChild(sv("text",{x:nx+W/2,y:ny+H/2+4,"text-anchor":"middle"},lab(x.id)));
42495
42502
  g.appendChild(sv("title",{},x.id+" \xB7 "+x.status+(x.entry?" \xB7 entry":"")+(x.reached?"":" \xB7 unreached")+(x.unfollowed?" \xB7 "+x.unfollowed+" links the crawl could not follow":"")));
42496
- if(x.unfollowed)g.appendChild(sv("text",{x:nx+W-6,y:y+10,"text-anchor":"end","class":"mfollow"},"+"+x.unfollowed+"?"));nodesG.appendChild(g)});
42497
- y+=H+VG}
42503
+ if(x.unfollowed)g.appendChild(sv("text",{x:nx+W-6,y:ny+10,"text-anchor":"end","class":"mfollow"},"+"+x.unfollowed+"?"));nodesG.appendChild(g)});
42504
+ y+=Math.ceil(row.length/per)*(H+LG)-LG+VG}
42498
42505
  m.edges.forEach(function(e){var a=pos[e.from],b=pos[e.to];if(!a||!b)return;var x1=a.x+W/2,y1=a.y+H,x2=b.x+W/2,y2=b.y,my=(y1+y2)/2;
42499
42506
  edgesG.appendChild(sv("path",{"class":"medge",d:"M"+x1+" "+y1+" C"+x1+" "+my+" "+x2+" "+my+" "+x2+" "+y2}))});
42500
42507
  var by=y;m.broken.forEach(function(e,i){var a=pos[e.from];if(!a)return;var bx=a.x+W+4,yy=a.y+H/2+4+i%2*10;
@@ -42674,6 +42681,7 @@ function accentNow(){return (getComputedStyle(document.documentElement).getPrope
42674
42681
  sideways and scrolled horizontally. */
42675
42682
  function fit(){var ph=$("focus").querySelector(".phone.vpf");if(!ph)return;var w=ph.clientWidth,h=ph.clientHeight;if(w&&h)ph.style.setProperty("--k",String(Math.min(w/390,h/844)))}
42676
42683
  window.addEventListener("resize",fit);
42684
+ window.addEventListener("resize",function(){var b=$("mapbox");if(lastMap&&b&&b.clientWidth&&b.clientWidth!==mapAvail)drawMap(lastMap)});
42677
42685
  function favicon(n,bad){try{var c=document.createElement("canvas");c.width=c.height=32;var x=c.getContext&&c.getContext("2d");if(!x)return;x.lineWidth=5;x.strokeStyle="rgba(128,128,128,.35)";x.beginPath();x.arc(16,16,12,0,6.2832);x.stroke();x.strokeStyle=accentNow();x.beginPath();x.arc(16,16,12,-1.5708,-1.5708+6.2832*n/8);x.stroke();if(bad){x.fillStyle="#d33";x.beginPath();x.arc(25,7,6,0,6.2832);x.fill()}$("fav").href=c.toDataURL("image/png")}catch(e){}}
42678
42686
  function burst(){var c=$("fx");c.setAttribute("data-bursts",String((+c.getAttribute("data-bursts")||0)+1));if(reduced())return;var x=c.getContext&&c.getContext("2d");if(!x)return;var W=c.width=innerWidth,H=c.height=innerHeight,cols=["#1f7a4d","#3b6fd8","#e0a030","#d4537e",accentNow()],P=[];for(var i=0;i<120;i++)P.push({x:W/2,y:H*.35,vx:(Math.random()-.5)*14,vy:-Math.random()*12-4,c:cols[i%cols.length],r:Math.random()*6.28});var t0=now();(function f(){x.clearRect(0,0,W,H);P.forEach(function(p){p.x+=p.vx;p.y+=p.vy;p.vy+=.35;p.r+=.2;x.save();x.translate(p.x,p.y);x.rotate(p.r);x.fillStyle=p.c;x.fillRect(-4,-2,8,4);x.restore()});if(now()-t0<2200)raf(f);else x.clearRect(0,0,W,H)})()}
42679
42687
  function countTo(e,a,b){if(!e)return;if(reduced()){e.textContent=String(b);return}var t0=now();(function f(){var k=Math.min(1,(now()-t0)/900);e.textContent=String(Math.round(a+(b-a)*k));if(k<1)raf(f)})()}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wix/himalaya-cli",
3
- "version": "0.1061.0",
3
+ "version": "0.1063.0",
4
4
  "type": "module",
5
5
  "description": "himi — the Himalaya authoring CLI. Build a Tier-5 content package on your own machine, push it to the production serve as a draft, preview it on web + Himi Player, and read worker logs back — the remote dev loop. Wraps @himalaya/serve-cli for transport.",
6
6
  "keywords": [
@@ -65,5 +65,5 @@
65
65
  "artifactId": "himalaya-cli"
66
66
  }
67
67
  },
68
- "falconPackageHash": "b243ee9fc8a6a890b9210aa28588552b0722079d8481a0e61fb76869"
68
+ "falconPackageHash": "16dd7f4ab7b65f7c360fca033a4bfb6652609821bc7cd4c1beabb594"
69
69
  }