@loupekit/sdk 0.10.19-next.65 → 0.10.20-next.66
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.global.js +17 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.global.js
CHANGED
|
@@ -639,6 +639,13 @@ var Loupe = (() => {
|
|
|
639
639
|
.prchip.st-merged { border-color: #8250df; color: #8250df; }
|
|
640
640
|
.prchip.st-merged:hover { background: #8250df; color: #fff; }
|
|
641
641
|
.prchip.st-closed { border-color: var(--line); color: var(--muted); }
|
|
642
|
+
/* a preview that is actually live \u2014 never shown optimistically */
|
|
643
|
+
.previewchip {
|
|
644
|
+
padding: 1px 6px; border-radius: 6px; text-decoration: none; white-space: nowrap;
|
|
645
|
+
border: 1px solid #2f9e6a; background: var(--bg); color: #2f9e6a;
|
|
646
|
+
font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
|
|
647
|
+
}
|
|
648
|
+
.previewchip:hover { background: #2f9e6a; color: #fff; }
|
|
642
649
|
/* checks meter \u2014 a numerator over a thin bar */
|
|
643
650
|
.checks { display: inline-flex; align-items: center; gap: 4px; }
|
|
644
651
|
.checks-n { font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
@@ -3210,7 +3217,7 @@ var Loupe = (() => {
|
|
|
3210
3217
|
}
|
|
3211
3218
|
|
|
3212
3219
|
// src/app.ts
|
|
3213
|
-
var SDK_VERSION = true ? "0.10.
|
|
3220
|
+
var SDK_VERSION = true ? "0.10.20" : "dev";
|
|
3214
3221
|
var ACCENTS = [
|
|
3215
3222
|
{ id: "indigo", dark: "#6b73e6", light: "#4a55d6", soft: "rgba(107,115,230,0.12)" },
|
|
3216
3223
|
{ id: "violet", dark: "#a06be6", light: "#7c3fd4", soft: "rgba(160,107,230,0.14)" },
|
|
@@ -5292,6 +5299,15 @@ var Loupe = (() => {
|
|
|
5292
5299
|
meter.innerHTML = `<span class="checks-n">${escapeHtml(lc.checks.text)}</span><span class="checks-bar"><i style="width:${Math.round(lc.checks.ratio * 100)}%"></i></span>`;
|
|
5293
5300
|
top.appendChild(meter);
|
|
5294
5301
|
}
|
|
5302
|
+
if (lc.pr?.previewUrl) {
|
|
5303
|
+
const preview = el("a", "previewchip", "Preview");
|
|
5304
|
+
preview.href = lc.pr.previewUrl;
|
|
5305
|
+
preview.target = "_blank";
|
|
5306
|
+
preview.rel = "noreferrer";
|
|
5307
|
+
preview.title = `Preview live at ${lc.pr.previewUrl}`;
|
|
5308
|
+
preview.addEventListener("click", (e) => e.stopPropagation());
|
|
5309
|
+
top.appendChild(preview);
|
|
5310
|
+
}
|
|
5295
5311
|
}
|
|
5296
5312
|
if (this.showPaths && this.scope === "all" && c.url) {
|
|
5297
5313
|
top.appendChild(el("span", "pathtag", shortPath(c.url)));
|