@loupekit/sdk 0.10.19 → 0.10.20
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.js
CHANGED
|
@@ -605,6 +605,13 @@ var STYLES = (
|
|
|
605
605
|
.prchip.st-merged { border-color: #8250df; color: #8250df; }
|
|
606
606
|
.prchip.st-merged:hover { background: #8250df; color: #fff; }
|
|
607
607
|
.prchip.st-closed { border-color: var(--line); color: var(--muted); }
|
|
608
|
+
/* a preview that is actually live \u2014 never shown optimistically */
|
|
609
|
+
.previewchip {
|
|
610
|
+
padding: 1px 6px; border-radius: 6px; text-decoration: none; white-space: nowrap;
|
|
611
|
+
border: 1px solid #2f9e6a; background: var(--bg); color: #2f9e6a;
|
|
612
|
+
font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
|
|
613
|
+
}
|
|
614
|
+
.previewchip:hover { background: #2f9e6a; color: #fff; }
|
|
608
615
|
/* checks meter \u2014 a numerator over a thin bar */
|
|
609
616
|
.checks { display: inline-flex; align-items: center; gap: 4px; }
|
|
610
617
|
.checks-n { font-family: ui-monospace, Menlo, monospace; font-size: 9.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
|
|
@@ -3176,7 +3183,7 @@ function normalizePriority(value) {
|
|
|
3176
3183
|
}
|
|
3177
3184
|
|
|
3178
3185
|
// src/app.ts
|
|
3179
|
-
var SDK_VERSION = true ? "0.10.
|
|
3186
|
+
var SDK_VERSION = true ? "0.10.20" : "dev";
|
|
3180
3187
|
var ACCENTS = [
|
|
3181
3188
|
{ id: "indigo", dark: "#6b73e6", light: "#4a55d6", soft: "rgba(107,115,230,0.12)" },
|
|
3182
3189
|
{ id: "violet", dark: "#a06be6", light: "#7c3fd4", soft: "rgba(160,107,230,0.14)" },
|
|
@@ -5258,6 +5265,15 @@ var LoupeApp = class {
|
|
|
5258
5265
|
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>`;
|
|
5259
5266
|
top.appendChild(meter);
|
|
5260
5267
|
}
|
|
5268
|
+
if (lc.pr?.previewUrl) {
|
|
5269
|
+
const preview = el("a", "previewchip", "Preview");
|
|
5270
|
+
preview.href = lc.pr.previewUrl;
|
|
5271
|
+
preview.target = "_blank";
|
|
5272
|
+
preview.rel = "noreferrer";
|
|
5273
|
+
preview.title = `Preview live at ${lc.pr.previewUrl}`;
|
|
5274
|
+
preview.addEventListener("click", (e) => e.stopPropagation());
|
|
5275
|
+
top.appendChild(preview);
|
|
5276
|
+
}
|
|
5261
5277
|
}
|
|
5262
5278
|
if (this.showPaths && this.scope === "all" && c.url) {
|
|
5263
5279
|
top.appendChild(el("span", "pathtag", shortPath(c.url)));
|