@loupekit/sdk 0.10.20 → 0.10.21-next.67
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 +20 -1
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +20 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -605,6 +605,12 @@ 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 revision of another thread \u2014 the conversation carried over */
|
|
609
|
+
.iterchip {
|
|
610
|
+
padding: 1px 6px; border-radius: 999px; white-space: nowrap;
|
|
611
|
+
border: 1px dashed var(--line); background: var(--bg); color: var(--muted);
|
|
612
|
+
font-size: 9.5px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase;
|
|
613
|
+
}
|
|
608
614
|
/* a preview that is actually live \u2014 never shown optimistically */
|
|
609
615
|
.previewchip {
|
|
610
616
|
padding: 1px 6px; border-radius: 6px; text-decoration: none; white-space: nowrap;
|
|
@@ -3136,6 +3142,13 @@ function withdraw(record) {
|
|
|
3136
3142
|
return isPending(record) ? { ...record, state: "idle", request: null } : record;
|
|
3137
3143
|
}
|
|
3138
3144
|
|
|
3145
|
+
// ../shared/dist/thread.js
|
|
3146
|
+
function iterationLabel(link) {
|
|
3147
|
+
if (!link.parentThreadId || link.iterationType !== "revision")
|
|
3148
|
+
return null;
|
|
3149
|
+
return `Iteration ${link.iterationNumber ?? 2}`;
|
|
3150
|
+
}
|
|
3151
|
+
|
|
3139
3152
|
// ../shared/dist/index.js
|
|
3140
3153
|
var COMMENT_STAGES = ["queue", "todo", "in_progress", "in_review", "resolved"];
|
|
3141
3154
|
var STAGE_LABELS = {
|
|
@@ -3183,7 +3196,7 @@ function normalizePriority(value) {
|
|
|
3183
3196
|
}
|
|
3184
3197
|
|
|
3185
3198
|
// src/app.ts
|
|
3186
|
-
var SDK_VERSION = true ? "0.10.
|
|
3199
|
+
var SDK_VERSION = true ? "0.10.21" : "dev";
|
|
3187
3200
|
var ACCENTS = [
|
|
3188
3201
|
{ id: "indigo", dark: "#6b73e6", light: "#4a55d6", soft: "rgba(107,115,230,0.12)" },
|
|
3189
3202
|
{ id: "violet", dark: "#a06be6", light: "#7c3fd4", soft: "rgba(160,107,230,0.14)" },
|
|
@@ -5275,6 +5288,12 @@ var LoupeApp = class {
|
|
|
5275
5288
|
top.appendChild(preview);
|
|
5276
5289
|
}
|
|
5277
5290
|
}
|
|
5291
|
+
const iteration = iterationLabel(c);
|
|
5292
|
+
if (iteration) {
|
|
5293
|
+
const chip = el("span", "iterchip", iteration);
|
|
5294
|
+
chip.title = `Revision of thread #${c.parentThreadId}`;
|
|
5295
|
+
top.appendChild(chip);
|
|
5296
|
+
}
|
|
5278
5297
|
if (this.showPaths && this.scope === "all" && c.url) {
|
|
5279
5298
|
top.appendChild(el("span", "pathtag", shortPath(c.url)));
|
|
5280
5299
|
}
|