@indexnetwork/cli 0.30.0-rc.100.1 → 0.30.0-rc.104.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 (2) hide show
  1. package/dist/index.js +25 -28
  2. package/package.json +5 -5
package/dist/index.js CHANGED
@@ -921,39 +921,36 @@ async function handleLogin(apiUrl, appUrl, store, options = {}) {
921
921
  callbackPromise: wrappedPromise
922
922
  };
923
923
  }
924
- var WORDMARK_SVG = `<svg viewBox="0 0 522 44" fill="none" xmlns="http://www.w3.org/2000/svg">
925
- <path d="M184.51 21.66C184.51 18.33 187.42 15.73 191.23 15.73C195.04 15.73 197.95 18.33 197.95 21.66C197.95 24.99 195.1 27.54 191.23 27.54C187.36 27.54 184.51 25 184.51 21.66Z" fill="white"/>
926
- <path d="M0 0.72998H7.47V42.61H0V0.72998Z" fill="white"/>
927
- <path d="M16.6301 0.72998H25.0701L44.3701 27.26H45.4001V0.72998H52.9301V42.61H44.4301L25.1901 16.08H24.1001V42.61H16.6301V0.72998Z" fill="white"/>
928
- <path d="M99.91 21.67C99.91 33.63 90.74 42.61 78.54 42.61H62.03V0.72998H78.54C90.74 0.72998 99.91 9.70995 99.91 21.67ZM92.2 21.67C92.2 14.93 86.25 9.88998 78.3 9.88998H69.5V33.44H78.3C86.25 33.44 92.2 28.4 92.2 21.66V21.67Z" fill="white"/>
929
- <path d="M137.61 33.45V42.62H107.08V0.73999H137.31V9.91H114.55V17.13H135.31V25.99H114.55V33.46H137.62L137.61 33.45Z" fill="white"/>
930
- <path d="M167.53 21.7899L181.49 42.61H172.75L162.43 27.86H160.97L150.71 42.61H141.3L155.56 21.37L141.84 0.72998H150.58L160.66 15.36H162.06L172.14 0.72998H181.55L167.53 21.7899Z" fill="white"/>
931
- <path d="M209.87 0.72998H218.31L237.61 27.26H238.64V0.72998H246.17V42.61H237.67L218.43 16.08H217.34V42.61H209.87V0.72998Z" fill="white"/>
932
- <path d="M285.8 33.45V42.62H255.27V0.73999H285.5V9.91H262.74V17.13H283.5V25.99H262.74V33.46H285.81L285.8 33.45Z" fill="white"/>
933
- <path d="M324.77 9.88998H311.48V42.61H304.01V9.88998H290.72V0.719971H324.77V9.88998Z" fill="white"/>
934
- <path d="M328.96 0.72998H336.91L346.14 28.35H347.41L356.09 0.72998H362.71L371.45 28.35H372.79L381.89 0.72998H390.33L376.92 42.61H368.42L360.59 17.24H358.71L350.88 42.61H342.38L328.97 0.72998H328.96Z" fill="white"/>
935
- <path d="M391.54 21.67C391.54 9.34998 401.07 0 413.7 0C426.33 0 435.86 9.34998 435.86 21.67C435.86 33.99 426.33 43.34 413.7 43.34C401.07 43.34 391.54 33.99 391.54 21.67ZM428.14 21.67C428.14 14.63 421.89 9.35004 413.69 9.35004C405.49 9.35004 399.24 14.63 399.24 21.67C399.24 28.71 405.49 33.99 413.69 33.99C421.89 33.99 428.14 28.71 428.14 21.67Z" fill="white"/>
936
- <path d="M459.46 29.5H450.42V42.61H442.95V0.72998H462.13C470.57 0.72998 477 6.91996 477 15.12C477 21.31 473.36 26.35 467.9 28.47L477.55 42.61H468.45L459.47 29.5H459.46ZM450.42 20.33H461.95C466.44 20.33 469.23 18.27 469.23 15.11C469.23 11.95 466.44 9.88998 461.95 9.88998H450.42V20.33Z" fill="white"/>
937
- <path d="M497.83 25.56L491.4 30.96V42.61H483.93V0.72998H491.4V17.67H492.92L509.07 0.72998H521.03L503.31 20.21L521.46 42.61H512.11L497.85 25.55L497.83 25.56Z" fill="white"/>
938
- </svg>`;
939
924
  function callbackHtml(title, message, ok = false) {
940
- const check = ok ? `<div class="check"><svg viewBox="0 0 24 24" width="26" height="26" fill="none" stroke="#0b1612" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6L9 17l-5-5"/></svg></div>` : "";
941
- return `<!doctype html><html><head><meta charset="utf-8"><title>${title} · index</title>
925
+ const bar = ok ? "signed in" : "index";
926
+ return `<!doctype html><html lang="en"><head><meta charset="utf-8">
927
+ <meta name="viewport" content="width=device-width, initial-scale=1">
928
+ <title>${title} · Index</title>
942
929
  <link rel="preconnect" href="https://fonts.googleapis.com">
943
930
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
944
- <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Public+Sans:wght@300;400;500;600&display=swap">
931
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;700&display=swap">
945
932
  <style>
946
- body{margin:0;min-height:100vh;display:flex;flex-direction:column;background:#14241f;color:#F4FBF6;font-family:'Public Sans',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
947
- .nav{display:flex;align-items:center;padding:22px 56px}
948
- .nav svg{height:14px;width:auto;display:block}
949
- main{flex:1;display:flex;align-items:center;justify-content:center;padding:24px}
950
- .c{text-align:center;max-width:420px}
951
- .check{width:56px;height:56px;margin:0 auto 26px;border-radius:50%;background:#3FBF7F;display:flex;align-items:center;justify-content:center}
952
- h1{font-size:20px;font-weight:600;margin:0 0 10px}
953
- p{font-size:14px;font-weight:500;margin:0;color:rgba(244,251,246,0.78)}
933
+ *{box-sizing:border-box}
934
+ html,body{margin:0}
935
+ body{
936
+ min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px;
937
+ background-color:#0055aa;background-image:radial-gradient(rgba(255,255,255,.22) 1px,transparent 1px);background-size:4px 4px;
938
+ color:#000;font-family:"JetBrains Mono",ui-monospace,"SF Mono",Menlo,monospace;-webkit-font-smoothing:antialiased;
939
+ }
940
+ .win{width:100%;max-width:520px;background:#fff;color:#000;border:2px solid #000}
941
+ .bar{
942
+ height:24px;margin:0;display:flex;align-items:center;border-bottom:2px solid #000;
943
+ background-image:repeating-linear-gradient(0deg,#000 0 2px,transparent 2px 6px);background-position:0 4px;
944
+ font-size:13px;font-weight:500;letter-spacing:.3px;line-height:1;
945
+ }
946
+ .bar span{background:#fff;padding:0 12px 0 8px;margin-left:4px;height:100%;display:flex;align-items:center}
947
+ .body{padding:28px;display:flex;flex-direction:column;gap:16px}
948
+ h1{margin:0;font-size:28px;font-weight:500;line-height:1.25;letter-spacing:-.03em}
949
+ p{margin:0;font-size:14px;line-height:1.6;font-weight:400;color:#000}
954
950
  </style></head>
955
- <body><nav class="nav">${WORDMARK_SVG}</nav>
956
- <main><div class="c">${check}<h1>${title}</h1><p>${message}</p></div></main></body></html>`;
951
+ <body>
952
+ <main><section class="win"><h2 class="bar"><span>${bar}</span></h2><div class="body"><h1>${title}</h1><p>${message}</p></div></section></main>
953
+ </body></html>`;
957
954
  }
958
955
 
959
956
  // src/logout.command.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@indexnetwork/cli",
3
- "version": "0.30.0-rc.100.1",
3
+ "version": "0.30.0-rc.104.1",
4
4
  "description": "Command-line interface for Index Network",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -20,10 +20,10 @@
20
20
  "publish:all": "bun scripts/publish.ts"
21
21
  },
22
22
  "optionalDependencies": {
23
- "@indexnetwork/cli-linux-x64": "0.30.0-rc.100.1",
24
- "@indexnetwork/cli-linux-arm64": "0.30.0-rc.100.1",
25
- "@indexnetwork/cli-darwin-x64": "0.30.0-rc.100.1",
26
- "@indexnetwork/cli-darwin-arm64": "0.30.0-rc.100.1"
23
+ "@indexnetwork/cli-linux-x64": "0.30.0-rc.104.1",
24
+ "@indexnetwork/cli-linux-arm64": "0.30.0-rc.104.1",
25
+ "@indexnetwork/cli-darwin-x64": "0.30.0-rc.104.1",
26
+ "@indexnetwork/cli-darwin-arm64": "0.30.0-rc.104.1"
27
27
  },
28
28
  "devDependencies": {
29
29
  "@types/bun": "1.3.14"